; ; sub_18001F2A0 from 0x18001f2a0 to 0x18001f33a (154 bytes) ; ; 2 xrefs: ; > sub_180001140 @ 0x180001172 ; > @ 0x18004d0dc ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 12:15:45 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x18001f2a0 mov [rsp+arg_8], rsi ; +0x5, 0x18001f2a5 mov [rsp+arg_10], rdi ; +0xa, 0x18001f2aa push r14 ; +0xf, 0x18001f2af sub rsp, 20h ; +0x11, 0x18001f2b1 mov edx, cs:TlsIndex ; +0x15, 0x18001f2b5 mov rsi, rcx ; +0x1b, 0x18001f2bb mov rax, gs:58h ; +0x1e, 0x18001f2be mov r14d, 20h ; ' ' ; +0x27, 0x18001f2c7 mov rdi, [rax+rdx*8] ; +0x2d, 0x18001f2cd mov rbx, [r14+rdi] ; +0x31, 0x18001f2d1 test rbx, rbx ; +0x35, 0x18001f2d5 jnz short loc_18001F2E4 ; +0x38, 0x18001f2d8 mov ebx, 30h ; '0' ; +0x3a, 0x18001f2da add rbx, rdi ; +0x3f, 0x18001f2df jmp short loc_18001F311 ; +0x42, 0x18001f2e2 mov eax, [rbx] ; +0x44, 0x18001f2e4 cmp eax, 1Eh ; +0x46, 0x18001f2e6 jnz short loc_18001F319 ; +0x49, 0x18001f2e9 mov ecx, 100h; Size ; +0x4b, 0x18001f2eb call malloc ; +0x50, 0x18001f2f0 xor ecx, ecx; Block ; +0x55, 0x18001f2f5 mov rbx, rax ; +0x57, 0x18001f2f7 call free ; +0x5a, 0x18001f2fa test rbx, rbx ; +0x5f, 0x18001f2ff jnz short loc_18001F309 ; +0x62, 0x18001f302 or eax, 0FFFFFFFFh ; +0x64, 0x18001f304 jmp short loc_18001F324 ; +0x67, 0x18001f307 mov rax, [r14+rdi] ; +0x69, 0x18001f309 mov [rbx+8], rax ; +0x6d, 0x18001f30d xor eax, eax ; +0x71, 0x18001f311 mov [r14+rdi], rbx ; +0x73, 0x18001f313 mov [rbx], eax ; +0x77, 0x18001f317 cdqe ; +0x79, 0x18001f319 mov [rbx+rax*8+10h], rsi ; +0x7b, 0x18001f31b inc dword ptr [rbx] ; +0x80, 0x18001f320 xor eax, eax ; +0x82, 0x18001f322 mov rbx, [rsp+28h+arg_0] ; +0x84, 0x18001f324 mov rsi, [rsp+28h+arg_8] ; +0x89, 0x18001f329 mov rdi, [rsp+28h+arg_10] ; +0x8e, 0x18001f32e add rsp, 20h ; +0x93, 0x18001f333 pop r14 ; +0x97, 0x18001f337 retn ; +0x99, 0x18001f339