; ; sub_180050E70 from 0x180050e70 to 0x180051061 (497 bytes) ; ; 4 xrefs: ; > sub_180051070 @ 0x1800510bd ; > @ 0x180181f44 ; > @ 0x180181f54 ; > @ 0x1801f89dc ; ; 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 ; push rbx ; +0x0, 0x180050e70 push rsi ; +0x2, 0x180050e72 sub rsp, 68h ; +0x3, 0x180050e73 cmp dword ptr [rdx+80h], 1 ; +0x7, 0x180050e77 mov rbx, rdx ; +0xe, 0x180050e7e mov rsi, rcx ; +0x11, 0x180050e81 jz short loc_180050E92 ; +0x14, 0x180050e84 mov eax, 0FFFFFF7Dh ; +0x16, 0x180050e86 add rsp, 68h ; +0x1b, 0x180050e8b pop rsi ; +0x1f, 0x180050e8f pop rbx ; +0x20, 0x180050e90 retn ; +0x21, 0x180050e91 cmp dword ptr [rdx+8], 0 ; +0x22, 0x180050e92 mov dword ptr [rdx+80h], 2 ; +0x26, 0x180050e96 jz loc_18005104E ; +0x30, 0x180050ea0 mov rax, [rdx+50h] ; +0x36, 0x180050ea6 mov r8, [rdx+68h] ; +0x3a, 0x180050eaa mov [rsp+78h+arg_0], rbp ; +0x3e, 0x180050eae mov [rsp+78h+var_18], rdi ; +0x46, 0x180050eb6 mov rbp, [rax] ; +0x4b, 0x180050ebb mov [rsp+78h+var_20], r14 ; +0x4e, 0x180050ebe mov r14d, [rdx+1F8h] ; +0x53, 0x180050ec3 mov [rsp+78h+var_28], r15 ; +0x5a, 0x180050eca mov [rsp+78h+arg_10], 0FFFFFFFFFFFFFFFFh ; +0x5f, 0x180050ecf mov [rsp+78h+arg_8], r14d ; +0x6b, 0x180050edb call sub_180053530 ; +0x73, 0x180050ee3 mov r9, [rbx+318h] ; +0x78, 0x180050ee8 mov r15, rax ; +0x7f, 0x180050eef test r9, r9 ; +0x82, 0x180050ef2 jz loc_180051007 ; +0x85, 0x180050ef5 cmp qword ptr [rbx+328h], 0 ; +0x8b, 0x180050efb jz loc_180051007 ; +0x93, 0x180050f03 mov rcx, [rbx] ; +0x99, 0x180050f09 xor edx, edx ; +0x9c, 0x180050f0c lea r8d, [rdx+2] ; +0x9e, 0x180050f0e call r9 ; +0xa2, 0x180050f12 mov rcx, [rbx] ; +0xa5, 0x180050f15 call qword ptr [rbx+328h] ; +0xa8, 0x180050f18 movsxd rcx, eax ; +0xae, 0x180050f1e mov [rbx+18h], rcx ; +0xb1, 0x180050f21 mov [rbx+10h], rcx ; +0xb5, 0x180050f25 cmp rcx, 0FFFFFFFFFFFFFFFFh ; +0xb9, 0x180050f29 jz loc_180051017 ; +0xbd, 0x180050f2d mov rax, [rbx+58h] ; +0xc3, 0x180050f33 lea rcx, [rsp+78h+arg_10] ; +0xc7, 0x180050f37 mov [rsp+78h+var_50], rcx ; +0xcf, 0x180050f3f mov rdx, rbx ; +0xd4, 0x180050f44 lea rcx, [rsp+78h+arg_8] ; +0xd7, 0x180050f47 mov [rsp+78h+var_58], rcx ; +0xdf, 0x180050f4f mov rcx, rsi ; +0xe4, 0x180050f54 mov r9d, [rax+4] ; +0xe7, 0x180050f57 lea r8, [rax+8] ; +0xeb, 0x180050f5b call sub_180053360 ; +0xef, 0x180050f5f mov rdi, rax ; +0xf4, 0x180050f64 test rax, rax ; +0xf7, 0x180050f67 js loc_180051001 ; +0xfa, 0x180050f6a mov rax, [rbx+58h] ; +0x100, 0x180050f70 mov r9, rbp ; +0x104, 0x180050f74 mov [rsp+78h+var_30], 0 ; +0x107, 0x180050f77 xor r8d, r8d ; +0x10f, 0x180050f7f mov rdx, rbx ; +0x112, 0x180050f82 lea rcx, [rax+8] ; +0x115, 0x180050f85 mov eax, [rax+4] ; +0x119, 0x180050f89 mov [rsp+78h+var_38], eax ; +0x11c, 0x180050f8c mov eax, [rsp+78h+arg_8] ; +0x120, 0x180050f90 mov [rsp+78h+var_40], rcx ; +0x127, 0x180050f97 mov rcx, rsi ; +0x12c, 0x180050f9c mov [rsp+78h+var_48], eax ; +0x12f, 0x180050f9f mov rax, [rsp+78h+arg_10] ; +0x133, 0x180050fa3 mov [rsp+78h+var_50], rax ; +0x13b, 0x180050fab mov rax, [rbx+10h] ; +0x140, 0x180050fb0 mov [rsp+78h+var_58], rax ; +0x144, 0x180050fb4 call sub_1800523F0 ; +0x149, 0x180050fb9 test eax, eax ; +0x14e, 0x180050fbe jns short loc_180050FC9 ; +0x150, 0x180050fc0 mov edi, 0FFFFFF80h ; +0x152, 0x180050fc2 jmp short loc_18005101C ; +0x157, 0x180050fc7 mov rax, [rbx+48h] ; +0x159, 0x180050fc9 mov r8, rbp ; +0x15d, 0x180050fcd mov rdx, rbx ; +0x160, 0x180050fd0 mov rcx, rsi ; +0x163, 0x180050fd3 mov qword ptr [rax], 0 ; +0x166, 0x180050fd6 mov rax, [rbx+58h] ; +0x16d, 0x180050fdd mov [rax], r14d ; +0x171, 0x180050fe1 mov rax, [rbx+50h] ; +0x174, 0x180050fe4 mov [rax], rbp ; +0x178, 0x180050fe8 mov rax, [rbx+60h] ; +0x17b, 0x180050feb mov [rax], r15 ; +0x17f, 0x180050fef mov rax, [rbx+60h] ; +0x182, 0x180050ff2 sub [rax+8], r15 ; +0x186, 0x180050ff6 call sub_180051B90 ; +0x18a, 0x180050ffa mov edi, eax ; +0x18f, 0x180050fff test edi, edi ; +0x191, 0x180051001 jz short loc_18005102E ; +0x193, 0x180051003 jmp short loc_18005101C ; +0x195, 0x180051005 mov qword ptr [rbx+18h], 0FFFFFFFFFFFFFFFFh ; +0x197, 0x180051007 mov qword ptr [rbx+10h], 0FFFFFFFFFFFFFFFFh ; +0x19f, 0x18005100f mov edi, 0FFFFFF7Dh ; +0x1a7, 0x180051017 mov rdx, rbx ; +0x1ac, 0x18005101c mov qword ptr [rbx], 0 ; +0x1af, 0x18005101f mov rcx, rsi ; +0x1b6, 0x180051026 call sub_180050A30 ; +0x1b9, 0x180051029 mov r15, [rsp+78h+var_28] ; +0x1be, 0x18005102e mov eax, edi ; +0x1c3, 0x180051033 mov rdi, [rsp+78h+var_18] ; +0x1c5, 0x180051035 mov r14, [rsp+78h+var_20] ; +0x1ca, 0x18005103a mov rbp, [rsp+78h+arg_0] ; +0x1cf, 0x18005103f add rsp, 68h ; +0x1d7, 0x180051047 pop rsi ; +0x1db, 0x18005104b pop rbx ; +0x1dc, 0x18005104c retn ; +0x1dd, 0x18005104d mov dword ptr [rdx+80h], 3 ; +0x1de, 0x18005104e xor eax, eax ; +0x1e8, 0x180051058 add rsp, 68h ; +0x1ea, 0x18005105a pop rsi ; +0x1ee, 0x18005105e pop rbx ; +0x1ef, 0x18005105f retn ; +0x1f0, 0x180051060