; ; sub_180042A00 from 0x180042a00 to 0x180042b69 (361 bytes) ; ; 8 xrefs: ; > sub_180041BB0 @ 0x180041c71 ; > sub_180041D20 @ 0x180041d76 ; > sub_180041F40 @ 0x18004201b ; > sub_180041F40 @ 0x18004210d ; > sub_180042340 @ 0x180042402 ; > sub_180042800 @ 0x1800428a8 ; > sub_180042920 @ 0x180042998 ; > @ 0x1801f8064 ; ; 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 10:53:11 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x180042a00 mov [rsp+arg_10], rsi ; +0x5, 0x180042a05 push rdi ; +0xa, 0x180042a0a sub rsp, 20h ; +0xb, 0x180042a0b mov edi, [rdx+14h] ; +0xf, 0x180042a0f mov rbx, rdx ; +0x12, 0x180042a12 mov edx, [rdx+0Ch] ; +0x15, 0x180042a15 mov rsi, rcx ; +0x18, 0x180042a18 test edi, edi ; +0x1b, 0x180042a1b jz short loc_180042A4A ; +0x1d, 0x180042a1d mov rcx, [rbx]; void * ; +0x1f, 0x180042a1f xor eax, eax ; +0x22, 0x180042a22 cmp [rbx+10h], eax ; +0x24, 0x180042a24 setnz al ; +0x27, 0x180042a27 sub eax, edi ; +0x2a, 0x180042a2a lea r8d, [rdx+rax] ; +0x2c, 0x180042a2c shl r8d, 2; Size ; +0x30, 0x180042a30 lea rdx, [rcx+rdi*4]; Src ; +0x34, 0x180042a34 call memmove ; +0x38, 0x180042a38 sub [rbx+0Ch], edi ; +0x3d, 0x180042a3d mov edx, [rbx+0Ch] ; +0x40, 0x180042a40 mov dword ptr [rbx+14h], 0 ; +0x43, 0x180042a43 mov eax, [rbx+8] ; +0x4a, 0x180042a4a mov ecx, [rbx+10h] ; +0x4d, 0x180042a4d sub eax, edx ; +0x50, 0x180042a50 shl eax, 2 ; +0x52, 0x180042a52 sub eax, ecx ; +0x55, 0x180042a55 mov [rsp+28h+arg_8], rax ; +0x57, 0x180042a57 jz loc_180042B57 ; +0x5c, 0x180042a5c mov r10, [rbx] ; +0x62, 0x180042a62 mov eax, edx ; +0x65, 0x180042a65 lea r9, ds:0[rax*4] ; +0x67, 0x180042a67 lea rdx, [r9+rcx] ; +0x6f, 0x180042a6f add rdx, r10 ; +0x73, 0x180042a73 test ecx, ecx ; +0x76, 0x180042a76 jz short loc_180042AA2 ; +0x78, 0x180042a78 mov ecx, [r9+r10] ; +0x7a, 0x180042a7a mov r8d, ecx ; +0x7e, 0x180042a7e shr r8d, 8 ; +0x81, 0x180042a81 mov eax, ecx ; +0x85, 0x180042a85 shl eax, 8 ; +0x87, 0x180042a87 xor r8d, eax ; +0x8a, 0x180042a8a shl ecx, 8 ; +0x8d, 0x180042a8d and r8d, 0FF00FFh ; +0x90, 0x180042a90 xor r8d, ecx ; +0x97, 0x180042a97 rol r8d, 10h ; +0x9a, 0x180042a9a mov [r9+r10], r8d ; +0x9e, 0x180042a9e mov r9, [rbx+30h] ; +0xa2, 0x180042aa2 lea r8, [rsp+28h+arg_8] ; +0xa6, 0x180042aa6 mov rcx, rsi ; +0xab, 0x180042aab call qword ptr [rbx+28h] ; +0xae, 0x180042aae test eax, eax ; +0xb1, 0x180042ab1 jz loc_180042B57 ; +0xb3, 0x180042ab3 mov ecx, [rbx+0Ch] ; +0xb9, 0x180042ab9 mov r9d, [rbx+10h] ; +0xbc, 0x180042abc mov r8, [rsp+28h+arg_8] ; +0xc0, 0x180042ac0 lea eax, [r9+rcx*4] ; +0xc5, 0x180042ac5 lea edx, [r8+3] ; +0xc9, 0x180042ac9 add edx, eax ; +0xcd, 0x180042acd shr edx, 2 ; +0xcf, 0x180042acf cmp ecx, edx ; +0xd2, 0x180042ad2 jnb short loc_180042B2D ; +0xd4, 0x180042ad4 sub edx, ecx ; +0xd6, 0x180042ad6 lea r9, ds:0[rcx*4] ; +0xd8, 0x180042ad8 mov r10d, edx ; +0xe0, 0x180042ae0 nop dword ptr [rax+00h] ; +0xe3, 0x180042ae3 nop word ptr [rax+rax+00000000h] ; +0xe7, 0x180042ae7 mov r8, [rbx] ; +0xf0, 0x180042af0 lea r9, [r9+4] ; +0xf3, 0x180042af3 mov ecx, [r8+r9-4] ; +0xf7, 0x180042af7 mov edx, ecx ; +0xfc, 0x180042afc shr edx, 8 ; +0xfe, 0x180042afe mov eax, ecx ; +0x101, 0x180042b01 shl eax, 8 ; +0x103, 0x180042b03 xor edx, eax ; +0x106, 0x180042b06 shl ecx, 8 ; +0x108, 0x180042b08 and edx, 0FF00FFh ; +0x10b, 0x180042b0b xor edx, ecx ; +0x111, 0x180042b11 rol edx, 10h ; +0x113, 0x180042b13 mov [r8+r9-4], edx ; +0x116, 0x180042b16 sub r10, 1 ; +0x11b, 0x180042b1b jnz short loc_180042AF0 ; +0x11f, 0x180042b1f mov ecx, [rbx+0Ch] ; +0x121, 0x180042b21 mov r9d, [rbx+10h] ; +0x124, 0x180042b24 mov r8, [rsp+28h+arg_8] ; +0x128, 0x180042b28 lea ecx, [r9+rcx*4] ; +0x12d, 0x180042b2d add ecx, r8d ; +0x131, 0x180042b31 mov eax, ecx ; +0x134, 0x180042b34 shr eax, 2 ; +0x136, 0x180042b36 and ecx, 3 ; +0x139, 0x180042b39 mov [rbx+0Ch], eax ; +0x13c, 0x180042b3c mov [rbx+10h], ecx ; +0x13f, 0x180042b3f mov eax, 1 ; +0x142, 0x180042b42 mov rbx, [rsp+28h+arg_0] ; +0x147, 0x180042b47 mov rsi, [rsp+28h+arg_10] ; +0x14c, 0x180042b4c add rsp, 20h ; +0x151, 0x180042b51 pop rdi ; +0x155, 0x180042b55 retn ; +0x156, 0x180042b56 mov rbx, [rsp+28h+arg_0] ; +0x157, 0x180042b57 xor eax, eax ; +0x15c, 0x180042b5c mov rsi, [rsp+28h+arg_10] ; +0x15e, 0x180042b5e add rsp, 20h ; +0x163, 0x180042b63 pop rdi ; +0x167, 0x180042b67 retn ; +0x168, 0x180042b68