; ; sub_180053530 from 0x180053530 to 0x1800536f6 (454 bytes) ; ; 3 xrefs: ; > sub_180050E70 @ 0x180050ee3 ; > sub_1800523F0 @ 0x18005292d ; > @ 0x1801f8b50 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x180053530 mov [rsp+arg_10], rbp ; +0x5, 0x180053535 mov [rsp+arg_18], rsi ; +0xa, 0x18005353a push rdi ; +0xf, 0x18005353f push r12 ; +0x10, 0x180053540 push r13 ; +0x12, 0x180053542 push r14 ; +0x14, 0x180053544 push r15 ; +0x16, 0x180053546 sub rsp, 70h ; +0x18, 0x180053548 mov edi, [rdx+1F8h] ; +0x1c, 0x18005354c xor r15d, r15d ; +0x22, 0x180053552 mov r13, r8 ; +0x25, 0x180053555 mov [rsp+98h+arg_8], edi ; +0x28, 0x180053558 mov rbx, rdx ; +0x2f, 0x18005355f mov r12, rcx ; +0x32, 0x180053562 mov r14d, r15d ; +0x35, 0x180053565 lea esi, [r15-1] ; +0x38, 0x180053568 nop dword ptr [rax+00h] ; +0x3c, 0x18005356c lea rdx, [rsp+98h+var_78] ; +0x40, 0x180053570 lea rcx, [rbx+20h] ; +0x45, 0x180053575 call sub_18004C1A0 ; +0x49, 0x180053579 test eax, eax ; +0x4e, 0x18005357e jns short loc_18005358A ; +0x50, 0x180053580 cdqe ; +0x52, 0x180053582 sub [rbx+10h], rax ; +0x54, 0x180053584 jmp short loc_180053570 ; +0x58, 0x180053588 jnz short loc_180053600 ; +0x5a, 0x18005358a call _errno ; +0x5c, 0x18005358c mov [rax], r15d ; +0x61, 0x180053591 cmp [rbx+310h], r15 ; +0x64, 0x180053594 jz loc_1800536CE ; +0x6b, 0x18005359b cmp [rbx], r15 ; +0x71, 0x1800535a1 jz loc_1800536CE ; +0x74, 0x1800535a4 mov r8d, 2134h ; +0x7a, 0x1800535aa lea rdx, [rbx+20h] ; +0x80, 0x1800535b0 mov rcx, r12 ; +0x84, 0x1800535b4 call sub_18004C090 ; +0x87, 0x1800535b7 test rax, rax ; +0x8c, 0x1800535bc jz loc_1800536CE ; +0x8f, 0x1800535bf mov r9, [rbx] ; +0x95, 0x1800535c5 mov edx, 1 ; +0x98, 0x1800535c8 mov r8d, 2134h ; +0x9d, 0x1800535cd mov rcx, rax ; +0xa3, 0x1800535d3 call qword ptr [rbx+310h] ; +0xa6, 0x1800535d6 test eax, eax ; +0xac, 0x1800535dc jle short loc_1800535ED ; +0xae, 0x1800535de mov edx, eax ; +0xb0, 0x1800535e0 lea rcx, [rbx+20h] ; +0xb2, 0x1800535e2 call sub_18004C3B0 ; +0xb6, 0x1800535e6 jmp short loc_180053570 ; +0xbb, 0x1800535eb jz loc_1800536B7 ; +0xbd, 0x1800535ed test eax, eax ; +0xc3, 0x1800535f3 jns loc_180053570 ; +0xc5, 0x1800535f5 jmp loc_1800536CE ; +0xcb, 0x1800535fb mov rcx, [rbx+10h] ; +0xd0, 0x180053600 cdqe ; +0xd4, 0x180053604 add rax, rcx ; +0xd6, 0x180053606 mov [rbx+10h], rax ; +0xd9, 0x180053609 test rcx, rcx ; +0xdd, 0x18005360d js loc_1800536CE ; +0xe0, 0x180053610 lea rcx, [rsp+98h+var_78] ; +0xe6, 0x180053616 call sub_18004B880 ; +0xeb, 0x18005361b test eax, eax ; +0xf0, 0x180053620 jnz loc_1800536CE ; +0xf2, 0x180053622 lea rcx, [rsp+98h+var_78] ; +0xf8, 0x180053628 call sub_18004B910 ; +0xfd, 0x18005362d cmp eax, edi ; +0x102, 0x180053632 jnz loc_180053570 ; +0x104, 0x180053634 lea r8, [rsp+98h+var_78] ; +0x10a, 0x18005363a mov rcx, r12 ; +0x10f, 0x18005363f lea rdx, [rbx+98h] ; +0x112, 0x180053642 call sub_18004BBC0 ; +0x119, 0x180053649 lea rdx, [rsp+98h+var_58] ; +0x11e, 0x18005364e lea rcx, [rbx+98h] ; +0x123, 0x180053653 call sub_18004BAA0 ; +0x12a, 0x18005365a test eax, eax ; +0x12f, 0x18005365f jz short loc_18005369B ; +0x131, 0x180053661 jle short loc_180053686 ; +0x133, 0x180053663 lea rdx, [rsp+98h+var_58] ; +0x135, 0x180053665 mov rcx, r13 ; +0x13a, 0x18005366a call sub_180050710 ; +0x13d, 0x18005366d cmp esi, 0FFFFFFFFh ; +0x142, 0x180053672 jz short loc_180053684 ; +0x145, 0x180053675 lea ecx, [rax+rsi] ; +0x147, 0x180053677 movsxd rdx, ecx ; +0x14a, 0x18005367a sar rdx, 2 ; +0x14d, 0x18005367d add r14, rdx ; +0x151, 0x180053681 mov esi, eax ; +0x154, 0x180053684 lea rdx, [rsp+98h+var_58] ; +0x156, 0x180053686 lea rcx, [rbx+98h] ; +0x15b, 0x18005368b call sub_18004BAA0 ; +0x162, 0x180053692 test eax, eax ; +0x167, 0x180053697 jnz short loc_180053663 ; +0x169, 0x180053699 lea rcx, [rsp+98h+var_78] ; +0x16b, 0x18005369b call sub_18004B8B0 ; +0x170, 0x1800536a0 cmp rax, 0FFFFFFFFFFFFFFFFh ; +0x175, 0x1800536a5 jnz short loc_1800536BE ; +0x179, 0x1800536a9 mov edi, [rsp+98h+arg_8] ; +0x17b, 0x1800536ab jmp loc_180053570 ; +0x182, 0x1800536b2 call _errno ; +0x187, 0x1800536b7 jmp short loc_1800536CE ; +0x18c, 0x1800536bc lea rcx, [rsp+98h+var_78] ; +0x18e, 0x1800536be call sub_18004B8B0 ; +0x193, 0x1800536c3 sub rax, r14 ; +0x198, 0x1800536c8 mov r14, rax ; +0x19b, 0x1800536cb lea r11, [rsp+98h+var_28] ; +0x19e, 0x1800536ce test r14, r14 ; +0x1a3, 0x1800536d3 mov rbx, [r11+30h] ; +0x1a6, 0x1800536d6 mov rbp, [r11+40h] ; +0x1aa, 0x1800536da cmovns r15, r14 ; +0x1ae, 0x1800536de mov rsi, [r11+48h] ; +0x1b2, 0x1800536e2 mov rax, r15 ; +0x1b6, 0x1800536e6 mov rsp, r11 ; +0x1b9, 0x1800536e9 pop r15 ; +0x1bc, 0x1800536ec pop r14 ; +0x1be, 0x1800536ee pop r13 ; +0x1c0, 0x1800536f0 pop r12 ; +0x1c2, 0x1800536f2 pop rdi ; +0x1c4, 0x1800536f4 retn ; +0x1c5, 0x1800536f5