; ; sub_180018340 from 0x180018340 to 0x18001839c (92 bytes) ; ; 6 xrefs: ; > sub_180001E90 @ 0x18000206c ; > sub_180001E90 @ 0x1800020e4 ; > sub_180001E90 @ 0x180002180 ; > sub_180001E90 @ 0x1800021c1 ; > sub_180001E90 @ 0x18000224a ; > sub_180007790 @ 0x1800077df ; ; 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:48 +0000 ; mov r10, cs:qword_1801B2810 ; +0x0, 0x180018340 test r10, r10 ; +0x7, 0x180018347 jz short loc_180018399 ; +0xa, 0x18001834a mov r11d, cs:dword_1801B2818 ; +0xc, 0x18001834c test r11d, r11d ; +0x13, 0x180018353 jle short loc_180018399 ; +0x16, 0x180018356 lea eax, [rcx-1] ; +0x18, 0x180018358 dec edx ; +0x1b, 0x18001835b not eax ; +0x1d, 0x18001835d movsxd r9, eax ; +0x1f, 0x18001835f movsxd rax, ecx ; +0x22, 0x180018362 add ecx, edx ; +0x25, 0x180018365 dec rax ; +0x27, 0x180018367 movsxd rdx, ecx ; +0x2a, 0x18001836a add rax, r10 ; +0x2d, 0x18001836d and rdx, r9 ; +0x30, 0x180018370 and rax, r9 ; +0x33, 0x180018373 mov r8, rax ; +0x36, 0x180018376 sub r8, r10 ; +0x39, 0x180018379 lea rcx, [rdx+r8] ; +0x3c, 0x18001837c add r10, rcx ; +0x40, 0x180018380 lea ecx, [r8+rdx] ; +0x43, 0x180018383 sub r11d, ecx ; +0x47, 0x180018387 mov cs:qword_1801B2810, r10 ; +0x4a, 0x18001838a mov cs:dword_1801B2818, r11d ; +0x51, 0x180018391 retn ; +0x58, 0x180018398 xor eax, eax ; +0x59, 0x180018399 retn ; +0x5b, 0x18001839b