; ; sub_1800418B0 from 0x1800418b0 to 0x180041987 (215 bytes) ; ; 6 xrefs: ; > sub_18003FD60 @ 0x180040047 ; > sub_18003FD60 @ 0x1800403a9 ; > sub_18003FD60 @ 0x180040497 ; > sub_180040CB0 @ 0x1800410da ; > sub_180040CB0 @ 0x1800410f6 ; > @ 0x1801f7f8c ; ; 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 ; movzx r8d, byte ptr [rcx+106h] ; +0x0, 0x1800418b0 mov r10, rcx ; +0x8, 0x1800418b8 movzx edx, byte ptr [rcx+126h] ; +0xb, 0x1800418bb movzx r9d, r8b ; +0x12, 0x1800418c2 mov r11, [rcx+8] ; +0x16, 0x1800418c6 and r9b, 1Fh ; +0x1a, 0x1800418ca and edx, 3 ; +0x1e, 0x1800418ce jz short loc_180041951 ; +0x21, 0x1800418d1 sub edx, 1 ; +0x23, 0x1800418d3 jz short loc_180041936 ; +0x26, 0x1800418d6 sub edx, 1 ; +0x28, 0x1800418d8 jz short loc_18004192F ; +0x2b, 0x1800418db cmp edx, 1 ; +0x2d, 0x1800418dd jz short loc_1800418E6 ; +0x30, 0x1800418e0 xor eax, eax ; +0x32, 0x1800418e2 jmp short loc_180041960 ; +0x34, 0x1800418e4 mov r8, [rcx] ; +0x36, 0x1800418e6 add r8, 0C10h ; +0x39, 0x1800418e9 mov eax, [r8+4] ; +0x40, 0x1800418f0 mov edx, [r8] ; +0x44, 0x1800418f4 shl edx, 0Bh ; +0x47, 0x1800418f7 xor edx, [r8] ; +0x4a, 0x1800418fa mov [r8], eax ; +0x4d, 0x1800418fd mov eax, [r8+8] ; +0x50, 0x180041900 mov [r8+4], eax ; +0x54, 0x180041904 mov eax, [r8+0Ch] ; +0x58, 0x180041908 mov ecx, eax ; +0x5c, 0x18004190c shr ecx, 0Bh ; +0x5e, 0x18004190e xor ecx, edx ; +0x61, 0x180041911 mov [r8+8], eax ; +0x63, 0x180041913 shr ecx, 8 ; +0x67, 0x180041917 xor ecx, eax ; +0x6a, 0x18004191a xor ecx, edx ; +0x6c, 0x18004191c mov [r8+0Ch], ecx ; +0x6e, 0x18004191e movzx r8d, byte ptr [r10+106h] ; +0x72, 0x180041922 movzx eax, cl ; +0x7a, 0x18004192a jmp short loc_180041960 ; +0x7d, 0x18004192d mov eax, 0FFh ; +0x7f, 0x18004192f jmp short loc_180041960 ; +0x84, 0x180041934 shl r9b, 3 ; +0x86, 0x180041936 movzx edx, r9b ; +0x8a, 0x18004193a test r8b, r8b ; +0x8e, 0x18004193e movzx eax, dl ; +0x91, 0x180041941 not al ; +0x94, 0x180041944 movzx ecx, al ; +0x96, 0x180041946 cmovns ecx, edx ; +0x99, 0x180041949 movzx eax, cl ; +0x9c, 0x18004194c jmp short loc_180041960 ; +0x9f, 0x18004194f movzx eax, r9b ; +0xa1, 0x180041951 lea rcx, byte_1801AEEE0 ; +0xa5, 0x180041955 movzx eax, byte ptr [rax+rcx] ; +0xac, 0x18004195c movzx ecx, byte ptr [r10+108h] ; +0xb0, 0x180041960 imul ecx, eax ; +0xb8, 0x180041968 shr ecx, 5 ; +0xbb, 0x18004196b and ecx, 0FFFFFFFCh ; +0xbe, 0x18004196e mov eax, ecx ; +0xc1, 0x180041971 neg eax ; +0xc3, 0x180041973 test r8b, r8b ; +0xc5, 0x180041975 cmovs eax, ecx ; +0xc8, 0x180041978 mov [r11+50h], eax ; +0xcb, 0x18004197b xor eax, eax ; +0xcf, 0x18004197f or byte ptr [r11+3Ch], 1 ; +0xd1, 0x180041981 retn ; +0xd6, 0x180041986