; ; sub_180038CE0 from 0x180038ce0 to 0x180039770 (2704 bytes) ; ; 6 xrefs: ; > sub_180037DA0 @ 0x180037e42 ; > sub_180037DA0 @ 0x180037fa5 ; > sub_1800380A0 @ 0x180038106 ; > @ 0x18018056c ; > @ 0x18018057c ; > @ 0x1801f7c98 ; ; 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-8+arg_8], dl ; +0x0, 0x180038ce0 push rbp ; +0x4, 0x180038ce4 push rbx ; +0x5, 0x180038ce5 push rsi ; +0x6, 0x180038ce6 lea rbp, [rsp-47h] ; +0x7, 0x180038ce7 sub rsp, 0A0h ; +0xc, 0x180038cec mov rbx, rcx ; +0x13, 0x180038cf3 xor r11b, r11b ; +0x16, 0x180038cf6 movsxd rcx, dword ptr [rcx+0BFCh] ; +0x19, 0x180038cf9 mov [rbp+57h+arg_0], r11b ; +0x20, 0x180038d00 mov r9d, [rbx+3C8h] ; +0x24, 0x180038d04 mov eax, r9d ; +0x2b, 0x180038d0b mov r10d, [rbx+0BF8h] ; +0x2e, 0x180038d0e movzx r8d, byte ptr [rcx+rbx+290h] ; +0x35, 0x180038d15 mov rdx, [rbx+278h] ; +0x3e, 0x180038d1e imul eax, r10d ; +0x45, 0x180038d25 shl r8, 4 ; +0x49, 0x180038d29 cdqe ; +0x4d, 0x180038d2d lea rsi, [rax+rax*4] ; +0x4f, 0x180038d2f add rsi, [r8+rdx+8] ; +0x53, 0x180038d33 jz loc_1800396CE ; +0x58, 0x180038d38 mov rax, [rbx+288h] ; +0x5e, 0x180038d3e test rax, rax ; +0x65, 0x180038d45 jz short loc_180038D78 ; +0x68, 0x180038d48 shl ecx, 8 ; +0x6a, 0x180038d4a add ecx, r10d ; +0x6d, 0x180038d4d movsxd rdx, ecx ; +0x70, 0x180038d50 cmp [rdx+rax], r11b ; +0x73, 0x180038d53 jz short loc_180038D6D ; +0x77, 0x180038d57 mov byte ptr [rbx+0BE9h], 1 ; +0x79, 0x180038d59 xor eax, eax ; +0x80, 0x180038d60 add rsp, 0A0h ; +0x82, 0x180038d62 pop rsi ; +0x89, 0x180038d69 pop rbx ; +0x8a, 0x180038d6a pop rbp ; +0x8b, 0x180038d6b retn ; +0x8c, 0x180038d6c mov byte ptr [rdx+rax], 1 ; +0x8d, 0x180038d6d mov r9d, [rbx+3C8h] ; +0x91, 0x180038d71 xor r8d, r8d ; +0x98, 0x180038d78 mov [rbp+57h+arg_10], r8d ; +0x9b, 0x180038d7b test r9d, r9d ; +0x9f, 0x180038d7f jle loc_1800396CE ; +0xa2, 0x180038d82 mov [rsp+0B0h+var_18], rdi ; +0xa8, 0x180038d88 lea r10, qword_1801AF460 ; +0xb0, 0x180038d90 mov [rsp+0B0h+var_20], r12 ; +0xb7, 0x180038d97 lea rcx, off_1801AF4A0 ; +0xbf, 0x180038d9f mov [rsp+0B0h+var_28], r13 ; +0xc6, 0x180038da6 mov r9d, r8d ; +0xce, 0x180038dae mov [rsp+0B0h+var_30], r14 ; +0xd1, 0x180038db1 mov [rsp+0B0h+var_38], r15 ; +0xd9, 0x180038db9 movaps [rsp+0B0h+var_50], xmm6 ; +0xde, 0x180038dbe movss xmm6, cs:dword_180164A34 ; +0xe3, 0x180038dc3 movaps [rsp+0B0h+var_60], xmm7 ; +0xeb, 0x180038dcb movss xmm7, cs:dword_180164A10 ; +0xf0, 0x180038dd0 movaps [rsp+0B0h+var_70], xmm8 ; +0xf8, 0x180038dd8 movss xmm8, cs:dword_1801651C0 ; +0xfe, 0x180038dde mov [rbp+57h+var_80], r8 ; +0x107, 0x180038de7 nop dword ptr [rax+rax+00h] ; +0x10b, 0x180038deb movzx r14d, byte ptr [rsi+4] ; +0x110, 0x180038df0 mov rdi, [rbx+r9*8+3D0h] ; +0x115, 0x180038df5 movzx r15d, r14b ; +0x11d, 0x180038dfd lea rax, [rdi+8] ; +0x121, 0x180038e01 mov [rbp+57h+arg_18], r8 ; +0x125, 0x180038e05 mov rdx, [rax] ; +0x129, 0x180038e09 and r14b, 0Fh ; +0x12c, 0x180038e0c shr r15b, 4 ; +0x130, 0x180038e10 cmp rdx, rax ; +0x134, 0x180038e14 jnz short loc_180038E29 ; +0x137, 0x180038e17 cmp [rax+8], rax ; +0x139, 0x180038e19 jnz short loc_180038E29 ; +0x13d, 0x180038e1d mov cs:qword_1801AF4C8, r10 ; +0x13f, 0x180038e1f mov rdx, rcx ; +0x146, 0x180038e26 movzx eax, byte ptr [rsi+1] ; +0x149, 0x180038e29 mov [rbp+57h+arg_18], rdx ; +0x14d, 0x180038e2d test al, al ; +0x151, 0x180038e31 jz short loc_180038E41 ; +0x153, 0x180038e33 dec al ; +0x155, 0x180038e35 mov [rdi+0D0h], al ; +0x157, 0x180038e37 mov rdx, [rbp+57h+arg_18] ; +0x15d, 0x180038e3d movzx ecx, byte ptr [rsi] ; +0x161, 0x180038e41 lea eax, [rcx-1] ; +0x164, 0x180038e44 cmp al, 0FDh ; +0x167, 0x180038e47 ja short loc_180038E57 ; +0x169, 0x180038e49 dec cl ; +0x16b, 0x180038e4b mov [rdi+0D1h], cl ; +0x16d, 0x180038e4d mov rdx, [rbp+57h+arg_18] ; +0x173, 0x180038e53 movzx eax, byte ptr [rdi+0D0h] ; +0x177, 0x180038e57 cmp eax, [rbx+8FCh] ; +0x17e, 0x180038e5e jge short loc_180038E73 ; +0x184, 0x180038e64 mov ecx, eax ; +0x186, 0x180038e66 mov rax, [rbx+848h] ; +0x188, 0x180038e68 mov r10, [rax+rcx*8] ; +0x18f, 0x180038e6f cmp byte ptr [rdi+0D8h], 12h ; +0x193, 0x180038e73 mov r12d, [rdx+44h] ; +0x19a, 0x180038e7a mov r13d, [rdx+40h] ; +0x19e, 0x180038e7e mov [rbp+57h+var_78], r10 ; +0x1a2, 0x180038e82 jnz short loc_180038E97 ; +0x1a6, 0x180038e86 cmp byte ptr [rsi+3], 12h ; +0x1a8, 0x180038e88 jz short loc_180038E97 ; +0x1ac, 0x180038e8c mov ecx, [rdx+4Ch] ; +0x1ae, 0x180038e8e add ecx, r12d ; +0x1b1, 0x180038e91 mov [rdx+44h], ecx ; +0x1b4, 0x180038e94 movzx eax, byte ptr [rsi+3] ; +0x1b7, 0x180038e97 mov [rdi+0D8h], al ; +0x1bb, 0x180038e9b mov rax, [rbp+57h+arg_18] ; +0x1c1, 0x180038ea1 mov [rax+4Ch], r8d ; +0x1c5, 0x180038ea5 mov rax, [rbp+57h+arg_18] ; +0x1c9, 0x180038ea9 mov byte ptr [rax+3Ch], 0 ; +0x1cd, 0x180038ead movzx eax, byte ptr [rsi] ; +0x1d1, 0x180038eb1 dec al ; +0x1d4, 0x180038eb4 cmp al, 0FDh ; +0x1d6, 0x180038eb6 ja loc_180038F78 ; +0x1d8, 0x180038eb8 lea rax, off_1801AF4A0 ; +0x1de, 0x180038ebe cmp [rbp+57h+arg_18], rax ; +0x1e5, 0x180038ec5 jnz short loc_180038F07 ; +0x1e9, 0x180038ec9 lea r9, [rbp+57h+arg_18] ; +0x1eb, 0x180038ecb mov r8, r10 ; +0x1ef, 0x180038ecf mov rdx, rdi ; +0x1f2, 0x180038ed2 mov rcx, rbx ; +0x1f5, 0x180038ed5 call sub_1800D5A30 ; +0x1f8, 0x180038ed8 mov r10, [rbp+57h+var_78] ; +0x1fd, 0x180038edd mov r9, [rbp+57h+var_80] ; +0x201, 0x180038ee1 movzx r11d, [rbp+57h+arg_0] ; +0x205, 0x180038ee5 test eax, eax ; +0x20a, 0x180038eea jz short loc_180038F07 ; +0x20c, 0x180038eec lea rax, off_1801AF4A0 ; +0x20e, 0x180038eee mov [rbp+57h+arg_18], rax ; +0x215, 0x180038ef5 lea rax, qword_1801AF460 ; +0x219, 0x180038ef9 mov cs:qword_1801AF4C8, rax ; +0x220, 0x180038f00 movzx eax, byte ptr [rsi] ; +0x227, 0x180038f07 dec al ; +0x22a, 0x180038f0a movzx ecx, al ; +0x22c, 0x180038f0c lea rax, cs:180000000h ; +0x22f, 0x180038f0f mov [rdi+0D1h], cl ; +0x236, 0x180038f16 mov r8d, [r10+8] ; +0x23c, 0x180038f1c test r8d, r8d ; +0x240, 0x180038f20 jz short loc_180038F37 ; +0x243, 0x180038f23 imul eax, rva dword_1801AF000[rax+rcx*4], 20ABh ; +0x245, 0x180038f25 xor edx, edx ; +0x250, 0x180038f30 div r8d ; +0x252, 0x180038f32 jmp short loc_180038F3E ; +0x255, 0x180038f35 mov eax, rva dword_1801AF000[rax+rcx*4] ; +0x257, 0x180038f37 mov [rdi+0D4h], eax ; +0x25e, 0x180038f3e mov rax, [rbp+57h+arg_18] ; +0x264, 0x180038f44 movzx ecx, byte ptr [r9+rbx+868h] ; +0x268, 0x180038f48 mov [rax+48h], ecx ; +0x271, 0x180038f51 movzx eax, byte ptr [rsi+3] ; +0x274, 0x180038f54 cmp al, 7 ; +0x278, 0x180038f58 jz short loc_180038F6D ; +0x27a, 0x180038f5a cmp al, 0Ch ; +0x27c, 0x180038f5c jz short loc_180038F6D ; +0x27e, 0x180038f5e mov rax, [rbp+57h+arg_18] ; +0x280, 0x180038f60 mov ecx, [rdi+0D4h] ; +0x284, 0x180038f64 mov [rax+40h], ecx ; +0x28a, 0x180038f6a mov rax, [rbp+57h+arg_18] ; +0x28d, 0x180038f6d xor r8d, r8d ; +0x291, 0x180038f71 mov byte ptr [rax+3Ch], 8 ; +0x294, 0x180038f74 cmp byte ptr [rsi+1], 0 ; +0x298, 0x180038f78 jz short loc_180038FB7 ; +0x29c, 0x180038f7c mov rax, [rbp+57h+arg_18] ; +0x29e, 0x180038f7e movzx ecx, byte ptr [r10+0Ch] ; +0x2a2, 0x180038f82 mov [rax+44h], ecx ; +0x2a7, 0x180038f87 movzx ecx, byte ptr [rdi+126h] ; +0x2aa, 0x180038f8a movzx eax, cl ; +0x2b1, 0x180038f91 mov byte ptr [rdi+116h], 0 ; +0x2b4, 0x180038f94 and al, 0Fh ; +0x2bb, 0x180038f9b cmp al, 4 ; +0x2bd, 0x180038f9d jnb short loc_180038FA8 ; +0x2bf, 0x180038f9f mov byte ptr [rdi+106h], 0 ; +0x2c1, 0x180038fa1 and cl, 0F0h ; +0x2c8, 0x180038fa8 cmp cl, 40h ; '@' ; +0x2cb, 0x180038fab jnb short loc_180038FB7 ; +0x2ce, 0x180038fae mov byte ptr [rdi+10Ah], 0 ; +0x2d0, 0x180038fb0 mov rax, [rbp+57h+arg_18] ; +0x2d7, 0x180038fb7 mov [rax+50h], r8d ; +0x2db, 0x180038fbb mov rax, [rbp+57h+arg_18] ; +0x2df, 0x180038fbf or byte ptr [rax+3Ch], 7 ; +0x2e3, 0x180038fc3 movzx eax, byte ptr [rsi+2] ; +0x2e7, 0x180038fc7 test al, al ; +0x2eb, 0x180038fcb jz short loc_180038FD9 ; +0x2ed, 0x180038fcd lea ecx, [rax-1] ; +0x2ef, 0x180038fcf mov rax, [rbp+57h+arg_18] ; +0x2f2, 0x180038fd2 mov [rax+44h], ecx ; +0x2f6, 0x180038fd6 cmp byte ptr [rsi], 0FFh ; +0x2f9, 0x180038fd9 jnz short loc_180038FE6 ; +0x2fc, 0x180038fdc mov rax, [rbp+57h+arg_18] ; +0x2fe, 0x180038fde mov [rax+44h], r8d ; +0x302, 0x180038fe2 movzx eax, byte ptr [rsi+3] ; +0x306, 0x180038fe6 dec eax; switch 24 cases ; +0x30a, 0x180038fea cmp eax, 17h ; +0x30c, 0x180038fec ja def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x30f, 0x180038fef lea rdx, cs:180000000h ; +0x315, 0x180038ff5 cdqe ; +0x31c, 0x180038ffc mov ecx, ds:(jpt_180039008 - 180000000h)[rdx+rax*4] ; +0x31e, 0x180038ffe add rcx, rdx ; +0x325, 0x180039005 jmp rcx; switch jump ; +0x328, 0x180039008 movzx eax, byte ptr [rsi+4]; jumptable 0000000180039008 case 1 ; +0x32a, 0x18003900a test al, al ; +0x32e, 0x18003900e jz def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x330, 0x180039010 mov [rbx+0BF0h], eax ; +0x336, 0x180039016 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x33c, 0x18003901c movzx eax, byte ptr [rsi+4]; jumptable 0000000180039008 case 2 ; +0x341, 0x180039021 cmp eax, [rbx+8ECh] ; +0x345, 0x180039025 mov [rbx+0C08h], r8d ; +0x34b, 0x18003902b cmovge eax, r8d ; +0x352, 0x180039032 mov [rbp+57h+arg_0], 1 ; +0x356, 0x180039036 mov [rbx+0C0Ch], eax ; +0x35a, 0x18003903a jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x360, 0x180039040 movzx eax, r15b; jumptable 0000000180039008 case 3 ; +0x365, 0x180039045 movzx edx, r14b ; +0x369, 0x180039049 lea ecx, [rax+rax*4] ; +0x36d, 0x18003904d lea eax, [rdx+rcx*2] ; +0x370, 0x180039050 cmp eax, 3Fh ; '?' ; +0x373, 0x180039053 cmova eax, r8d ; +0x376, 0x180039056 mov [rbx+0C08h], eax ; +0x37a, 0x18003905a test r11b, r11b ; +0x380, 0x180039060 jnz short loc_180039075 ; +0x383, 0x180039063 mov eax, [rbx+0BFCh] ; +0x385, 0x180039065 inc eax ; +0x38b, 0x18003906b mov [rbx+0C0Ch], eax ; +0x38d, 0x18003906d jmp short loc_18003907B ; +0x393, 0x180039073 mov eax, [rbx+0C0Ch] ; +0x395, 0x180039075 cmp eax, [rbx+8ECh] ; +0x39b, 0x18003907b jl def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x3a1, 0x180039081 mov [rbx+0C0Ch], r8d ; +0x3a7, 0x180039087 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x3ae, 0x18003908e movzx edx, byte ptr [rsi+4]; jumptable 0000000180039008 case 4 ; +0x3b3, 0x180039093 test dl, dl ; +0x3b7, 0x180039097 jz short loc_1800390A3 ; +0x3b9, 0x180039099 mov [rdi+0F9h], dl ; +0x3bb, 0x18003909b jmp short loc_1800390AA ; +0x3c1, 0x1800390a1 movzx edx, byte ptr [rdi+0F9h] ; +0x3c3, 0x1800390a3 movzx eax, dl ; +0x3ca, 0x1800390aa and al, 0Fh ; +0x3cd, 0x1800390ad cmp al, 0Fh ; +0x3cf, 0x1800390af jnz short loc_1800390C2 ; +0x3d1, 0x1800390b1 mov rcx, [rbp+57h+arg_18] ; +0x3d3, 0x1800390b3 movzx eax, dl ; +0x3d7, 0x1800390b7 shr eax, 4 ; +0x3da, 0x1800390ba add [rcx+44h], eax ; +0x3dd, 0x1800390bd jmp short loc_1800390D8 ; +0x3e0, 0x1800390c0 movzx eax, dl ; +0x3e2, 0x1800390c2 and al, 0F0h ; +0x3e5, 0x1800390c5 cmp al, 0F0h ; +0x3e7, 0x1800390c7 jnz short loc_1800390D8 ; +0x3e9, 0x1800390c9 mov rcx, [rbp+57h+arg_18] ; +0x3eb, 0x1800390cb movzx eax, dl ; +0x3ef, 0x1800390cf and eax, 0Fh ; +0x3f2, 0x1800390d2 sub [rcx+44h], eax ; +0x3f5, 0x1800390d5 cmp word ptr [rbx+0BE6h], 1 ; +0x3f8, 0x1800390d8 jnz short loc_18003910F ; +0x400, 0x1800390e0 movzx eax, byte ptr [rdi+0F9h] ; +0x402, 0x1800390e2 test al, 0Fh ; +0x409, 0x1800390e9 jnz short loc_1800390FE ; +0x40b, 0x1800390eb mov rcx, [rbp+57h+arg_18] ; +0x40d, 0x1800390ed shr eax, 4 ; +0x411, 0x1800390f1 add [rcx+44h], eax ; +0x414, 0x1800390f4 movzx eax, byte ptr [rdi+0F9h] ; +0x417, 0x1800390f7 test al, 0F0h ; +0x41e, 0x1800390fe jnz short loc_18003910F ; +0x420, 0x180039100 mov rcx, [rbp+57h+arg_18] ; +0x422, 0x180039102 movzx eax, al ; +0x426, 0x180039106 and eax, 0Fh ; +0x429, 0x180039109 sub [rcx+44h], eax ; +0x42c, 0x18003910c mov rax, [rbp+57h+arg_18] ; +0x42f, 0x18003910f cmp dword ptr [rax+44h], 40h ; '@' ; +0x433, 0x180039113 jle short loc_180039124 ; +0x437, 0x180039117 mov dword ptr [rax+44h], 40h ; '@' ; +0x439, 0x180039119 mov rax, [rbp+57h+arg_18] ; +0x440, 0x180039120 cmp dword ptr [rax+44h], 0 ; +0x444, 0x180039124 jge def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x448, 0x180039128 mov [rax+44h], r8d ; +0x44e, 0x18003912e jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x452, 0x180039132 movzx edx, byte ptr [rsi+4]; jumptable 0000000180039008 case 5 ; +0x457, 0x180039137 test dl, dl ; +0x45b, 0x18003913b jz short loc_180039147 ; +0x45d, 0x18003913d mov [rdi+0F4h], dl ; +0x45f, 0x18003913f jmp short loc_18003914E ; +0x465, 0x180039145 movzx edx, byte ptr [rdi+0F4h] ; +0x467, 0x180039147 movzx eax, dl ; +0x46e, 0x18003914e and al, 0F0h ; +0x471, 0x180039151 cmp al, 0F0h ; +0x473, 0x180039153 jnz short loc_18003916E ; +0x475, 0x180039155 mov rcx, [rbp+57h+arg_18] ; +0x477, 0x180039157 movzx eax, dl ; +0x47b, 0x18003915b and eax, 0Fh ; +0x47e, 0x18003915e shl eax, 2 ; +0x481, 0x180039161 add [rcx+40h], eax ; +0x484, 0x180039164 movzx edx, byte ptr [rdi+0F4h] ; +0x487, 0x180039167 movzx eax, dl ; +0x48e, 0x18003916e and al, 0F0h ; +0x491, 0x180039171 cmp al, 0E0h ; +0x493, 0x180039173 jnz def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x495, 0x180039175 mov rcx, [rbp+57h+arg_18] ; +0x49b, 0x18003917b movzx eax, dl ; +0x49f, 0x18003917f and eax, 0Fh ; +0x4a2, 0x180039182 add [rcx+40h], eax ; +0x4a5, 0x180039185 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x4a8, 0x180039188 movzx edx, byte ptr [rsi+4]; jumptable 0000000180039008 case 6 ; +0x4ad, 0x18003918d test dl, dl ; +0x4b1, 0x180039191 jz short loc_18003919D ; +0x4b3, 0x180039193 mov [rdi+0F4h], dl ; +0x4b5, 0x180039195 jmp short loc_1800391A4 ; +0x4bb, 0x18003919b movzx edx, byte ptr [rdi+0F4h] ; +0x4bd, 0x18003919d movzx eax, dl ; +0x4c4, 0x1800391a4 and al, 0F0h ; +0x4c7, 0x1800391a7 cmp al, 0F0h ; +0x4c9, 0x1800391a9 jnz short loc_1800391C4 ; +0x4cb, 0x1800391ab mov rcx, [rbp+57h+arg_18] ; +0x4cd, 0x1800391ad movzx eax, dl ; +0x4d1, 0x1800391b1 and eax, 0Fh ; +0x4d4, 0x1800391b4 shl eax, 2 ; +0x4d7, 0x1800391b7 sub [rcx+40h], eax ; +0x4da, 0x1800391ba movzx edx, byte ptr [rdi+0F4h] ; +0x4dd, 0x1800391bd movzx eax, dl ; +0x4e4, 0x1800391c4 and al, 0F0h ; +0x4e7, 0x1800391c7 cmp al, 0E0h ; +0x4e9, 0x1800391c9 jnz def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x4eb, 0x1800391cb mov rcx, [rbp+57h+arg_18] ; +0x4f1, 0x1800391d1 movzx eax, dl ; +0x4f5, 0x1800391d5 and eax, 0Fh ; +0x4f8, 0x1800391d8 sub [rcx+40h], eax ; +0x4fb, 0x1800391db jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x4fe, 0x1800391de movzx eax, byte ptr [rsi+4]; jumptable 0000000180039008 case 7 ; +0x503, 0x1800391e3 test al, al ; +0x507, 0x1800391e7 jz short loc_1800391F1 ; +0x509, 0x1800391e9 mov [rdi+104h], al ; +0x50b, 0x1800391eb mov eax, [rdi+0D4h] ; +0x511, 0x1800391f1 mov [rdi+100h], eax ; +0x517, 0x1800391f7 mov rax, [rbp+57h+arg_18] ; +0x51d, 0x1800391fd and byte ptr [rax+3Ch], 0F7h ; +0x521, 0x180039201 mov rax, [rbp+57h+arg_18] ; +0x525, 0x180039205 and byte ptr [rax+3Ch], 0FEh ; +0x529, 0x180039209 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x52d, 0x18003920d test r15b, r15b; jumptable 0000000180039008 cases 8,21 ; +0x532, 0x180039212 jz short loc_18003921E ; +0x535, 0x180039215 mov [rdi+107h], r15b ; +0x537, 0x180039217 test r14b, r14b ; +0x53e, 0x18003921e jz def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x541, 0x180039221 mov [rdi+108h], r14b ; +0x547, 0x180039227 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x54e, 0x18003922e cmp byte ptr [rsi+4], 0; jumptable 0000000180039008 case 9 ; +0x553, 0x180039233 jz short loc_18003924F ; +0x557, 0x180039237 inc r15b ; +0x559, 0x180039239 inc r14b ; +0x55c, 0x18003923c mov [rdi+117h], r15b ; +0x55f, 0x18003923f mov [rdi+118h], r14b ; +0x566, 0x180039246 jmp short loc_180039257 ; +0x56d, 0x18003924d movzx r15d, byte ptr [rdi+117h] ; +0x56f, 0x18003924f movzx eax, byte ptr [rdi+116h] ; +0x577, 0x180039257 cmp al, r15b ; +0x57e, 0x18003925e jb short loc_18003927E ; +0x581, 0x180039261 mov rcx, [rbp+57h+arg_18] ; +0x583, 0x180039263 mov eax, [rcx+44h] ; +0x587, 0x180039267 neg eax ; +0x58a, 0x18003926a mov [rcx+4Ch], eax ; +0x58c, 0x18003926c movzx eax, byte ptr [rdi+116h] ; +0x58f, 0x18003926f movzx r15d, byte ptr [rdi+117h] ; +0x596, 0x180039276 movzx ecx, byte ptr [rdi+118h] ; +0x59e, 0x18003927e inc al ; +0x5a5, 0x180039285 movzx edx, al ; +0x5a7, 0x180039287 movzx eax, r15b ; +0x5aa, 0x18003928a add ecx, eax ; +0x5ae, 0x18003928e mov eax, edx ; +0x5b0, 0x180039290 cmp edx, ecx ; +0x5b2, 0x180039292 cmovnb eax, r8d ; +0x5b4, 0x180039294 mov [rdi+116h], al ; +0x5b8, 0x180039298 mov rax, [rbp+57h+arg_18] ; +0x5be, 0x18003929e or byte ptr [rax+3Ch], 2 ; +0x5c2, 0x1800392a2 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x5c6, 0x1800392a6 movzx eax, byte ptr [rsi+4]; jumptable 0000000180039008 case 12 ; +0x5cb, 0x1800392ab test al, al ; +0x5cf, 0x1800392af jz short loc_1800392B9 ; +0x5d1, 0x1800392b1 mov [rdi+0F9h], al ; +0x5d3, 0x1800392b3 mov eax, [rdi+0D4h] ; +0x5d9, 0x1800392b9 mov [rdi+100h], eax ; +0x5df, 0x1800392bf mov rax, [rbp+57h+arg_18] ; +0x5e5, 0x1800392c5 and byte ptr [rax+3Ch], 0F7h ; +0x5e9, 0x1800392c9 mov rax, [rbp+57h+arg_18] ; +0x5ed, 0x1800392cd and byte ptr [rax+3Ch], 0FEh ; +0x5f1, 0x1800392d1 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x5f5, 0x1800392d5 movzx eax, byte ptr [rsi+4]; jumptable 0000000180039008 case 11 ; +0x5fa, 0x1800392da test al, al ; +0x5fe, 0x1800392de jz def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x600, 0x1800392e0 mov [rdi+0F9h], al ; +0x606, 0x1800392e6 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x60c, 0x1800392ec movzx eax, byte ptr [rsi+4]; jumptable 0000000180039008 case 10 ; +0x611, 0x1800392f1 test al, al ; +0x615, 0x1800392f5 jz def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x617, 0x1800392f7 mov [rdi+119h], al ; +0x61d, 0x1800392fd jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x623, 0x180039303 mov eax, [r10+14h]; jumptable 0000000180039008 case 15 ; +0x628, 0x180039308 add eax, [r10+10h] ; +0x62c, 0x18003930c movzx ecx, byte ptr [rsi+4] ; +0x630, 0x180039310 shl ecx, 8 ; +0x634, 0x180039314 cmp ecx, eax ; +0x637, 0x180039317 mov rax, [rbp+57h+arg_18] ; +0x639, 0x180039319 jb short loc_180039330 ; +0x63d, 0x18003931d and byte ptr [rax+3Ch], 0F7h ; +0x63f, 0x18003931f mov rax, [rbp+57h+arg_18] ; +0x643, 0x180039323 or byte ptr [rax+3Ch], 20h ; +0x647, 0x180039327 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x64b, 0x18003932b mov [rax+58h], ecx ; +0x650, 0x180039330 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x653, 0x180039333 cmp byte ptr [rsi+4], 0; jumptable 0000000180039008 case 17 ; +0x658, 0x180039338 jz def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x65c, 0x18003933c mov [rdi+0FBh], r15b ; +0x662, 0x180039342 mov [rdi+0FCh], r14b ; +0x669, 0x180039349 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x670, 0x180039350 test r15b, r15b; jumptable 0000000180039008 case 18 ; +0x675, 0x180039355 jz short loc_180039361 ; +0x678, 0x180039358 mov [rdi+10Ch], r15b ; +0x67a, 0x18003935a test r14b, r14b ; +0x681, 0x180039361 jz def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x684, 0x180039364 mov [rdi+10Ch], r14b ; +0x68a, 0x18003936a jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x691, 0x180039371 movzx eax, r15b; jumptable 0000000180039008 case 19 ; +0x696, 0x180039376 add eax, 0FFFFFFFEh; switch 13 cases ; +0x69a, 0x18003937a cmp eax, 0Ch ; +0x69d, 0x18003937d ja def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x6a0, 0x180039380 cdqe ; +0x6a6, 0x180039386 mov ecx, ds:(jpt_180039392 - 180000000h)[rdx+rax*4] ; +0x6a8, 0x180039388 add rcx, rdx ; +0x6af, 0x18003938f jmp rcx; switch jump ; +0x6b2, 0x180039392 lea r8, [r10+8]; jumptable 0000000180039392 case 2 ; +0x6b4, 0x180039394 movzx edx, r14b ; +0x6b8, 0x180039398 mov rcx, rbx ; +0x6bc, 0x18003939c call sub_1800D5090 ; +0x6bf, 0x18003939f mov r10, [rbp+57h+var_78] ; +0x6c4, 0x1800393a4 xor r8d, r8d ; +0x6c8, 0x1800393a8 mov r9, [rbp+57h+var_80] ; +0x6cb, 0x1800393ab jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x6cf, 0x1800393af and byte ptr [rdi+126h], 0F0h; jumptable 0000000180039392 case 3 ; +0x6d4, 0x1800393b4 or [rdi+126h], r14b ; +0x6db, 0x1800393bb jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x6e2, 0x1800393c2 and byte ptr [rdi+126h], 0Fh; jumptable 0000000180039392 case 4 ; +0x6e7, 0x1800393c7 shl r14b, 4 ; +0x6ee, 0x1800393ce or [rdi+126h], r14b ; +0x6f2, 0x1800393d2 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x6f9, 0x1800393d9 movzx ecx, r14b; jumptable 0000000180039392 case 8 ; +0x6fe, 0x1800393de shl ecx, 4 ; +0x702, 0x1800393e2 jmp loc_18003951D ; +0x705, 0x1800393e5 lea eax, [r14-8]; jumptable 0000000180039392 case 10 ; +0x70a, 0x1800393ea cmp r14b, 7 ; +0x70e, 0x1800393ee movzx ecx, al ; +0x712, 0x1800393f2 lea edx, [r14+8] ; +0x715, 0x1800393f5 movzx eax, dl ; +0x719, 0x1800393f9 cmovbe ecx, eax ; +0x71c, 0x1800393fc movzx ecx, cl ; +0x71f, 0x1800393ff shl ecx, 4 ; +0x722, 0x180039402 jmp loc_18003951D ; +0x725, 0x180039405 test r14b, r14b; jumptable 0000000180039392 case 11 ; +0x72a, 0x18003940a jnz short loc_180039420 ; +0x72d, 0x18003940d mov eax, [rbx+0BF8h] ; +0x72f, 0x18003940f mov [rdi+11Ch], eax ; +0x735, 0x180039415 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x73b, 0x18003941b mov ecx, [rdi+120h] ; +0x740, 0x180039420 test ecx, ecx ; +0x746, 0x180039426 movzx edx, r14b ; +0x748, 0x180039428 lea eax, [rcx-1] ; +0x74c, 0x18003942c cmovnz edx, eax ; +0x74f, 0x18003942f mov [rdi+120h], edx ; +0x752, 0x180039432 test edx, edx ; +0x758, 0x180039438 jz def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x75a, 0x18003943a cmp qword ptr [rbx+288h], 0 ; +0x760, 0x180039440 mov eax, [rdi+11Ch] ; +0x768, 0x180039448 mov [rbx+0C08h], eax ; +0x76e, 0x18003944e jz def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x774, 0x180039454 mov edx, [rdi+11Ch] ; +0x77a, 0x18003945a cmp edx, [rbx+0BF8h] ; +0x780, 0x180039460 jg def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x786, 0x180039466 nop dword ptr [rax+00h] ; +0x78c, 0x18003946c mov eax, [rbx+0BFCh] ; +0x790, 0x180039470 shl eax, 8 ; +0x796, 0x180039476 add eax, edx ; +0x799, 0x180039479 inc edx ; +0x79b, 0x18003947b movsxd rcx, eax ; +0x79d, 0x18003947d mov rax, [rbx+288h] ; +0x7a0, 0x180039480 mov byte ptr [rcx+rax], 0 ; +0x7a7, 0x180039487 cmp edx, [rbx+0BF8h] ; +0x7ab, 0x18003948b jle short loc_180039470 ; +0x7b1, 0x180039491 jmp def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x7b3, 0x180039493 mov rax, [rbp+57h+arg_18]; jumptable 0000000180039392 case 13 ; +0x7b8, 0x180039498 mov [rax+44h], r12d ; +0x7bc, 0x18003949c mov rax, [rbp+57h+arg_18] ; +0x7c0, 0x1800394a0 mov [rax+40h], r13d ; +0x7c4, 0x1800394a4 mov rax, [rbp+57h+arg_18] ; +0x7c8, 0x1800394a8 and byte ptr [rax+3Ch], 0FEh ; +0x7cc, 0x1800394ac mov rax, [rbp+57h+arg_18] ; +0x7d0, 0x1800394b0 and byte ptr [rax+3Ch], 0FBh ; +0x7d4, 0x1800394b4 mov rax, [rbp+57h+arg_18] ; +0x7d8, 0x1800394b8 and byte ptr [rax+3Ch], 0FDh ; +0x7dc, 0x1800394bc mov rax, [rbp+57h+arg_18] ; +0x7e0, 0x1800394c0 and byte ptr [rax+3Ch], 0F7h ; +0x7e4, 0x1800394c4 jmp short def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x7e8, 0x1800394c8 movzx eax, r14b; jumptable 0000000180039392 case 14 ; +0x7ea, 0x1800394ca imul eax, [rbx+0BF0h] ; +0x7ee, 0x1800394ce mov [rbx+0C00h], eax ; +0x7f5, 0x1800394d5 jmp short def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x7fb, 0x1800394db movzx eax, byte ptr [rsi+4]; jumptable 0000000180039008 case 22 ; +0x7fd, 0x1800394dd mov [rbx+0BE0h], eax ; +0x801, 0x1800394e1 cmp eax, 40h ; '@' ; +0x807, 0x1800394e7 jbe short def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x80a, 0x1800394ea mov dword ptr [rbx+0BE0h], 40h ; '@' ; +0x80c, 0x1800394ec jmp short def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x816, 0x1800394f6 movzx eax, byte ptr [rsi+4]; jumptable 0000000180039008 case 20 ; +0x818, 0x1800394f8 cmp al, 20h ; ' ' ; +0x81c, 0x1800394fc jb short def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x81e, 0x1800394fe mov edx, eax ; +0x820, 0x180039500 mov rcx, rbx ; +0x822, 0x180039502 call sub_1800D5940 ; +0x825, 0x180039505 mov r10, [rbp+57h+var_78] ; +0x82a, 0x18003950a xor r8d, r8d ; +0x82e, 0x18003950e mov r9, [rbp+57h+var_80] ; +0x831, 0x180039511 jmp short def_180039008; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x835, 0x180039515 movzx ecx, byte ptr [rsi+4]; jumptable 0000000180039008 case 24 ; +0x837, 0x180039517 add ecx, ecx ; +0x83b, 0x18003951b mov rax, [rbp+57h+arg_18] ; +0x83d, 0x18003951d mov [rax+48h], ecx ; +0x841, 0x180039521 mov rax, [rbp+57h+arg_18] ; +0x844, 0x180039524 or byte ptr [rax+3Ch], 4 ; +0x848, 0x180039528 cmp [rbp+57h+arg_8], 0; jumptable 0000000180039008 default case, cases 13,14,16,23 ; +0x84c, 0x18003952c jz loc_180039667 ; +0x850, 0x180039530 mov r8, [rdi+8] ; +0x856, 0x180039536 lea rax, [rdi+8] ; +0x85a, 0x18003953a cmp r8, rax ; +0x85e, 0x18003953e jnz short loc_18003954D ; +0x861, 0x180039541 cmp [rax+8], rax ; +0x863, 0x180039543 jz loc_180039664 ; +0x867, 0x180039547 mov [rbp+57h+arg_18], r8 ; +0x86d, 0x18003954d mov eax, [r8+50h] ; +0x871, 0x180039551 add eax, [r8+40h] ; +0x875, 0x180039555 jnz short loc_180039564 ; +0x879, 0x180039559 and byte ptr [r8+3Ch], 0FEh ; +0x87b, 0x18003955b mov r8, [rbp+57h+arg_18] ; +0x880, 0x180039560 test byte ptr [r8+3Ch], 8 ; +0x884, 0x180039564 jz short loc_180039586 ; +0x889, 0x180039569 xor r9d, r9d ; +0x88b, 0x18003956b mov [rsp+0B0h+var_90], 0 ; +0x88e, 0x18003956e mov rdx, r10 ; +0x897, 0x180039577 mov rcx, rbx ; +0x89a, 0x18003957a call sub_1800D57B0 ; +0x89d, 0x18003957d mov r8, [rbp+57h+arg_18] ; +0x8a2, 0x180039582 mov rcx, [r8+20h] ; +0x8a6, 0x180039586 test rcx, rcx ; +0x8aa, 0x18003958a jz loc_180039660 ; +0x8ad, 0x18003958d test byte ptr [r8+3Ch], 2 ; +0x8b3, 0x180039593 jz short loc_1800395CA ; +0x8b8, 0x180039598 mov eax, [r8+4Ch] ; +0x8ba, 0x18003959a add eax, [r8+44h] ; +0x8be, 0x18003959e xor r8d, r8d ; +0x8c2, 0x1800395a2 imul eax, [rbx+0BE0h] ; +0x8c5, 0x1800395a5 mov rdx, [rcx] ; +0x8cc, 0x1800395ac movd xmm1, eax ; +0x8cf, 0x1800395af cvtdq2ps xmm1, xmm1 ; +0x8d3, 0x1800395b3 mulss xmm1, xmm8 ; +0x8d6, 0x1800395b6 mulss xmm1, dword ptr [rdi+0F0h] ; +0x8db, 0x1800395bb call qword ptr [rdx+20h] ; +0x8e3, 0x1800395c3 mov r8, [rbp+57h+arg_18] ; +0x8e6, 0x1800395c6 test byte ptr [r8+3Ch], 4 ; +0x8ea, 0x1800395ca jz short loc_1800395FB ; +0x8ef, 0x1800395cf movd xmm1, dword ptr [r8+48h] ; +0x8f1, 0x1800395d1 mov rcx, [r8+20h] ; +0x8f7, 0x1800395d7 cvtdq2ps xmm1, xmm1 ; +0x8fb, 0x1800395db mov rax, [rcx] ; +0x8fe, 0x1800395de subss xmm1, xmm6 ; +0x901, 0x1800395e1 mulss xmm1, dword ptr [rbx+0BD8h] ; +0x905, 0x1800395e5 mulss xmm1, xmm7 ; +0x90d, 0x1800395ed call qword ptr [rax+0B0h] ; +0x911, 0x1800395f1 mov r8, [rbp+57h+arg_18] ; +0x917, 0x1800395f7 test byte ptr [r8+3Ch], 1 ; +0x91b, 0x1800395fb jz short loc_180039632 ; +0x920, 0x180039600 mov ecx, [r8+50h] ; +0x922, 0x180039602 mov eax, 1 ; +0x926, 0x180039606 add ecx, [r8+40h] ; +0x92b, 0x18003960b cmp ecx, 1 ; +0x92f, 0x18003960f cmovl ecx, eax ; +0x932, 0x180039612 xor edx, edx ; +0x935, 0x180039615 mov eax, 0DA7600h ; +0x937, 0x180039617 div ecx ; +0x93c, 0x18003961c mov rcx, [r8+20h] ; +0x93e, 0x18003961e movd xmm1, eax ; +0x942, 0x180039622 cvtdq2ps xmm1, xmm1 ; +0x946, 0x180039626 call sub_1800CEE10 ; +0x949, 0x180039629 mov r8, [rbp+57h+arg_18] ; +0x94e, 0x18003962e test byte ptr [r8+3Ch], 20h ; +0x952, 0x180039632 jz short loc_180039660 ; +0x957, 0x180039637 mov rcx, [r8+20h] ; +0x959, 0x180039639 mov edx, 80h ; +0x95d, 0x18003963d call sub_1800CFDB0 ; +0x962, 0x180039642 mov rax, [rbp+57h+arg_18] ; +0x967, 0x180039647 xor r8d, r8d ; +0x96b, 0x18003964b mov r9, [rbp+57h+var_80] ; +0x96e, 0x18003964e mov [rax+58h], r8d ; +0x972, 0x180039652 mov rax, [rbp+57h+arg_18] ; +0x976, 0x180039656 mov [rax+20h], r8 ; +0x97a, 0x18003965a jmp short loc_180039667 ; +0x97e, 0x18003965e mov r9, [rbp+57h+var_80] ; +0x980, 0x180039660 xor r8d, r8d ; +0x984, 0x180039664 mov ecx, [rbp+57h+arg_10] ; +0x987, 0x180039667 lea r10, qword_1801AF460 ; +0x98a, 0x18003966a movzx r11d, [rbp+57h+arg_0] ; +0x991, 0x180039671 inc ecx ; +0x996, 0x180039676 inc r9 ; +0x998, 0x180039678 mov [rbp+57h+arg_10], ecx ; +0x99b, 0x18003967b add rsi, 5 ; +0x99e, 0x18003967e mov [rbp+57h+var_80], r9 ; +0x9a2, 0x180039682 cmp ecx, [rbx+3C8h] ; +0x9a6, 0x180039686 lea rcx, off_1801AF4A0 ; +0x9ac, 0x18003968c jl loc_180038DF0 ; +0x9b3, 0x180039693 movaps xmm8, [rsp+0B0h+var_70] ; +0x9b9, 0x180039699 movaps xmm7, [rsp+0B0h+var_60] ; +0x9bf, 0x18003969f movaps xmm6, [rsp+0B0h+var_50] ; +0x9c4, 0x1800396a4 mov r15, [rsp+0B0h+var_38] ; +0x9c9, 0x1800396a9 mov r14, [rsp+0B0h+var_30] ; +0x9ce, 0x1800396ae mov r13, [rsp+0B0h+var_28] ; +0x9d6, 0x1800396b6 mov r12, [rsp+0B0h+var_20] ; +0x9de, 0x1800396be mov rdi, [rsp+0B0h+var_18] ; +0x9e6, 0x1800396c6 xor eax, eax ; +0x9ee, 0x1800396ce add rsp, 0A0h ; +0x9f0, 0x1800396d0 pop rsi ; +0x9f7, 0x1800396d7 pop rbx ; +0x9f8, 0x1800396d8 pop rbp ; +0x9f9, 0x1800396d9 retn ; +0x9fa, 0x1800396da align 4 ; +0x9fb, 0x1800396db dd offset loc_18003900A - 180000000h; jump table for switch statement ; +0x9fc, 0x1800396dc dd offset loc_180039394 - 180000000h; jump table for switch statement ; +0xa5c, 0x18003973c