; ; sub_180015E10 from 0x180015e10 to 0x180015f4c (316 bytes) ; ; 4 xrefs: ; > sub_180015AB0 @ 0x180015ae4 ; > @ 0x18017efa4 ; > @ 0x18017efdc ; > @ 0x1801f70f8 ; ; 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:52:47 +0000 ; mov [rsp+arg_18], rbx ; +0x0, 0x180015e10 push rbp ; +0x5, 0x180015e15 push r14 ; +0x6, 0x180015e16 push r15 ; +0x8, 0x180015e18 sub rsp, 20h ; +0xa, 0x180015e1a cmp qword ptr [rcx+178h], 0 ; +0xe, 0x180015e1e mov r14, r9 ; +0x16, 0x180015e26 mov ebp, r8d ; +0x19, 0x180015e29 mov r15, rdx ; +0x1c, 0x180015e2c mov rbx, rcx ; +0x1f, 0x180015e2f jnz short loc_180015E48 ; +0x22, 0x180015e32 mov eax, 1Fh ; +0x24, 0x180015e34 mov rbx, [rsp+38h+arg_18] ; +0x29, 0x180015e39 add rsp, 20h ; +0x2e, 0x180015e3e pop r15 ; +0x32, 0x180015e42 pop r14 ; +0x34, 0x180015e44 pop rbp ; +0x36, 0x180015e46 retn ; +0x37, 0x180015e47 mov rcx, [rcx+8] ; +0x38, 0x180015e48 mov [rsp+38h+arg_0], rsi ; +0x3c, 0x180015e4c mov [rsp+38h+arg_10], r12 ; +0x41, 0x180015e51 mov edx, [rcx+8] ; +0x46, 0x180015e56 sub edx, 1 ; +0x49, 0x180015e59 jz short loc_180015E87 ; +0x4c, 0x180015e5c sub edx, 1 ; +0x4e, 0x180015e5e jz short loc_180015E80 ; +0x51, 0x180015e61 sub edx, 1 ; +0x53, 0x180015e63 jz short loc_180015E79 ; +0x56, 0x180015e66 sub edx, 1 ; +0x58, 0x180015e68 jz short loc_180015E72 ; +0x5b, 0x180015e6b cmp edx, 1 ; +0x5d, 0x180015e6d jnz short loc_180015E87 ; +0x60, 0x180015e70 mov esi, 4 ; +0x62, 0x180015e72 jmp short loc_180015E8C ; +0x67, 0x180015e77 mov esi, 3 ; +0x69, 0x180015e79 jmp short loc_180015E8C ; +0x6e, 0x180015e7e mov esi, 2 ; +0x70, 0x180015e80 jmp short loc_180015E8C ; +0x75, 0x180015e85 mov esi, 1 ; +0x77, 0x180015e87 imul esi, [rcx+0Ch] ; +0x7c, 0x180015e8c xor r12d, r12d ; +0x80, 0x180015e90 test r8d, r8d ; +0x83, 0x180015e93 jz short loc_180015F15 ; +0x86, 0x180015e96 mov [rsp+38h+arg_8], rdi ; +0x88, 0x180015e98 nop dword ptr [rax] ; +0x8d, 0x180015e9d mov ecx, [rbx+1D0h] ; +0x90, 0x180015ea0 mov edi, ebp ; +0x96, 0x180015ea6 test ecx, ecx ; +0x98, 0x180015ea8 jnz short loc_180015ECC ; +0x9a, 0x180015eaa mov rdx, [rbx+178h] ; +0x9c, 0x180015eac mov rcx, rbx ; +0xa3, 0x180015eb3 mov [rbx+1CCh], r12d ; +0xa6, 0x180015eb6 call sub_1800445F0 ; +0xad, 0x180015ebd mov ecx, [rbx+1D0h] ; +0xb2, 0x180015ec2 test ecx, ecx ; +0xb8, 0x180015ec8 jz short loc_180015F10 ; +0xba, 0x180015eca mov edx, [rbx+1CCh] ; +0xbc, 0x180015ecc lea eax, [rdx+rbp] ; +0xc2, 0x180015ed2 cmp eax, ecx ; +0xc5, 0x180015ed5 jb short loc_180015EE4 ; +0xc7, 0x180015ed7 mov edi, ecx ; +0xc9, 0x180015ed9 mov [rbx+1D0h], r12d ; +0xcb, 0x180015edb sub edi, edx ; +0xd2, 0x180015ee2 mov ecx, esi ; +0xd4, 0x180015ee4 imul edx, esi ; +0xd6, 0x180015ee6 imul ecx, [r14] ; +0xd9, 0x180015ee9 mov r8d, edi ; +0xdd, 0x180015eed imul r8d, esi; Size ; +0xe0, 0x180015ef0 add rdx, [rbx+1B8h]; Src ; +0xe4, 0x180015ef4 add rcx, r15; void * ; +0xeb, 0x180015efb call memmove ; +0xee, 0x180015efe add [rbx+1CCh], edi ; +0xf3, 0x180015f03 add [r14], edi ; +0xf9, 0x180015f09 sub ebp, edi ; +0xfc, 0x180015f0c jnz short loc_180015EA0 ; +0xfe, 0x180015f0e mov rdi, [rsp+38h+arg_8] ; +0x100, 0x180015f10 mov rcx, [rbx+178h] ; +0x105, 0x180015f15 call sub_180043FA0 ; +0x10c, 0x180015f1c mov rsi, [rsp+38h+arg_0] ; +0x111, 0x180015f21 cmp eax, 4 ; +0x116, 0x180015f26 jnz short loc_180015F35 ; +0x119, 0x180015f29 mov [r14], r12d ; +0x11b, 0x180015f2b mov eax, 10h ; +0x11e, 0x180015f2e jmp short loc_180015F38 ; +0x123, 0x180015f33 mov eax, r12d ; +0x125, 0x180015f35 mov r12, [rsp+38h+arg_10] ; +0x128, 0x180015f38 mov rbx, [rsp+38h+arg_18] ; +0x12d, 0x180015f3d add rsp, 20h ; +0x132, 0x180015f42 pop r15 ; +0x136, 0x180015f46 pop r14 ; +0x138, 0x180015f48 pop rbp ; +0x13a, 0x180015f4a retn ; +0x13b, 0x180015f4b