; ; sub_180068BC0 from 0x180068bc0 to 0x180068d1b (347 bytes) ; ; 2 xrefs: ; > sub_180068430 @ 0x180068438 ; > @ 0x1801f9504 ; ; 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:27 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x180068bc0 mov [rsp+arg_8], rbp ; +0x5, 0x180068bc5 mov [rsp+arg_10], rsi ; +0xa, 0x180068bca push rdi ; +0xf, 0x180068bcf sub rsp, 20h ; +0x10, 0x180068bd0 mov rdi, [rcx+0A8h] ; +0x14, 0x180068bd4 xor bpl, bpl ; +0x1b, 0x180068bdb mov rbx, rcx ; +0x1e, 0x180068bde test rdi, rdi ; +0x21, 0x180068be1 jz short loc_180068BF6 ; +0x24, 0x180068be4 mov edx, 5 ; +0x26, 0x180068be6 mov rcx, rdi ; +0x2b, 0x180068beb call sub_1801021C0 ; +0x2e, 0x180068bee mov bpl, 1 ; +0x33, 0x180068bf3 cmp byte ptr [rbx+2B0h], 0 ; +0x36, 0x180068bf6 jz short loc_180068C12 ; +0x3d, 0x180068bfd mov rcx, [rbx+220h] ; +0x3f, 0x180068bff call sub_18005A2F0 ; +0x46, 0x180068c06 mov byte ptr [rbx+2B0h], 0 ; +0x4b, 0x180068c0b mov eax, [rbx+64h] ; +0x52, 0x180068c12 nop ; +0x55, 0x180068c15 shr eax, 11h ; +0x56, 0x180068c16 test al, 1 ; +0x59, 0x180068c19 jz short loc_180068C31 ; +0x5b, 0x180068c1b mov rcx, [rbx+220h] ; +0x5d, 0x180068c1d call sub_18005A480 ; +0x64, 0x180068c24 lock and dword ptr [rbx+64h], 0FFFDFFFFh ; +0x69, 0x180068c29 mov rcx, [rbx+228h] ; +0x71, 0x180068c31 test rcx, rcx ; +0x78, 0x180068c38 jnz short loc_180068C48 ; +0x7b, 0x180068c3b lea rcx, [rbx+8] ; +0x7d, 0x180068c3d mov [rbx+228h], rcx ; +0x81, 0x180068c41 mov rcx, [rcx+30h] ; +0x88, 0x180068c48 mov [rbx+230h], rcx ; +0x8c, 0x180068c4c test rcx, rcx ; +0x93, 0x180068c53 jnz short loc_180068C63 ; +0x96, 0x180068c56 mov rcx, [rbx+38h] ; +0x98, 0x180068c58 mov [rbx+230h], rcx ; +0x9c, 0x180068c5c cmp dword ptr [rbx+2A0h], 0 ; +0xa3, 0x180068c63 mov esi, 1 ; +0xaa, 0x180068c6a jnz short loc_180068CCB ; +0xaf, 0x180068c6f mov edx, [rbx+2A4h] ; +0xb1, 0x180068c71 test edx, edx ; +0xb7, 0x180068c77 jle short loc_180068CD3 ; +0xb9, 0x180068c79 cmp edx, esi ; +0xbb, 0x180068c7b mov r8d, 270h ; +0xbd, 0x180068c7d mov edx, [rcx+24h] ; +0xc3, 0x180068c83 mov eax, 260h ; +0xc6, 0x180068c86 mov rcx, [rcx] ; +0xcb, 0x180068c8b cmovg eax, r8d ; +0xce, 0x180068c8e cmp edx, esi ; +0xd2, 0x180068c92 cmovb edx, esi ; +0xd4, 0x180068c94 mov r8, [rax+rbx] ; +0xd7, 0x180068c97 mov rax, [rbx+18h] ; +0xdb, 0x180068c9b cmp rax, rcx ; +0xdf, 0x180068c9f cmovbe rax, rcx ; +0xe2, 0x180068ca2 mov ecx, edx ; +0xe6, 0x180068ca6 xor edx, edx ; +0xe8, 0x180068ca8 cmp r8, rax ; +0xea, 0x180068caa jb short loc_180068CBA ; +0xed, 0x180068cad sub r8, rax ; +0xef, 0x180068caf mov rax, r8 ; +0xf2, 0x180068cb2 div rcx ; +0xf5, 0x180068cb5 jmp short loc_180068CC3 ; +0xf8, 0x180068cb8 sub rax, r8 ; +0xfa, 0x180068cba div rcx ; +0xfd, 0x180068cbd neg rax ; +0x100, 0x180068cc0 shr rax, 3Fh ; +0x103, 0x180068cc3 test al, al ; +0x107, 0x180068cc7 jz short loc_180068CD3 ; +0x109, 0x180068cc9 mov rcx, rbx ; +0x10b, 0x180068ccb call sub_180069AC0 ; +0x10e, 0x180068cce lea rax, [rbx+240h] ; +0x113, 0x180068cd3 cmp [rax], rax ; +0x11a, 0x180068cda jnz short loc_180068CE5 ; +0x11d, 0x180068cdd cmp [rax+8], rax ; +0x11f, 0x180068cdf jz short loc_180068CE7 ; +0x123, 0x180068ce3 xor esi, esi ; +0x125, 0x180068ce5 mov [rbx+2ACh], esi ; +0x127, 0x180068ce7 test bpl, bpl ; +0x12d, 0x180068ced jz short loc_180068D04 ; +0x130, 0x180068cf0 test rdi, rdi ; +0x132, 0x180068cf2 jz short loc_180068D04 ; +0x135, 0x180068cf5 mov edx, 5 ; +0x137, 0x180068cf7 mov rcx, rdi ; +0x13c, 0x180068cfc call sub_180102300 ; +0x13f, 0x180068cff mov rbx, [rsp+28h+arg_0] ; +0x144, 0x180068d04 xor eax, eax ; +0x149, 0x180068d09 mov rbp, [rsp+28h+arg_8] ; +0x14b, 0x180068d0b mov rsi, [rsp+28h+arg_10] ; +0x150, 0x180068d10 add rsp, 20h ; +0x155, 0x180068d15 pop rdi ; +0x159, 0x180068d19 retn ; +0x15a, 0x180068d1a