Function at 0x140016040
Capabilities:
Accept command line arguments

Disassembly:
mov dword [rsp + 0x10], edx
mov byte [rsp + 8], cl
sub rsp, 0x118
mov dword [rsp + 0x34], 0x374
mov dword [rsp + 0x44], 0x121
mov dword [rsp + 0x54], 0x10a
mov byte [rsp + 0x23], 0x7b
mov byte [rsp + 0x22], 0x40
mov dword [rsp + 0x58], 0x34f
mov dword [rsp + 0x4c], 0xc
mov dword [rsp + 0x38], 0x2a5
mov byte [rsp + 0x20], 0x35
mov byte [rsp + 0x25], 0x61
mov dword [rsp + 0x48], 0xe9
mov byte [rsp + 0x24], 0x66
mov dword [rsp + 0x28], 0x258
mov dword [rsp + 0x30], 0xac
mov dword [rsp + 0x3c], 0x1e0
mov byte [rsp + 0x21], 0x5a
movsx eax, byte [0x140074c6e]
mov dword [rsp + 0xe4], eax
movsx ecx, byte [rsp + 0x20]
mov eax, ecx
cdq
mov ecx, 5
idiv ecx
mov eax, edx
mov ecx, dword [rsp + 0xe4]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x23], al
mov eax, 0x70
mov word [rsp + 0x50], ax
movsx eax, word [rsp + 0x50]
mov dword [rsp + 0xe8], eax
movzx eax, word [rsp + 0x50]
dec ax
mov word [rsp + 0x50], ax
cmp dword [rsp + 0xe8], 0
je 0x140016294
cmp dword [0x140074c8c], 0
jne 0x140016140
movsx eax, byte [rsp + 0x21]
mov ecx, dword [rsp + 0x30]
or ecx, eax
mov eax, ecx
test eax, eax
jne 0x140016140
mov dword [rsp + 0x74], 0
jmp 0x140016148
mov dword [rsp + 0x74], 1
mov eax, dword [rsp + 0x74]
mov ecx, dword [0x140074c54]
and ecx, eax
mov eax, ecx
mov dword [0x140074c54], eax
movzx eax, byte [0x140074b8f]
movsx ecx, byte [rsp + 0x22]
xor eax, ecx
test eax, eax
jne 0x140016193
mov eax, dword [0x140074c70]
movzx ecx, al
mov eax, dword [rsp + 0x28]
shr eax, cl
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
test eax, eax
jne 0x140016193
mov dword [rsp + 0x78], 0
jmp 0x14001619b
mov dword [rsp + 0x78], 1
movsx eax, byte [0x140074a63]
and eax, dword [rsp + 0x78]
mov byte [0x140074a63], al
movzx eax, byte [rsp + 0x23]
movsx ecx, byte [rsp + 0x25]
sub eax, ecx
mov ecx, dword [0x140074c48]
or ecx, eax
mov eax, ecx
movzx ecx, byte [0x140074c6d]
xor ecx, eax
mov eax, ecx
mov byte [0x140074c6d], al
mov eax, dword [rsp + 0x28]
mov ecx, dword [0x140074c84]
xor ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c38]
or ecx, eax
mov eax, ecx
mov dword [0x140074c38], eax
movsx eax, byte [0x140074c5e]
movsx ecx, byte [rsp + 0x20]
cmp eax, ecx
jge 0x140016262
cmp dword [rsp + 0x34], 0
jne 0x14001621b
cmp dword [0x140074c60], 0
jne 0x14001621b
mov dword [rsp + 0x7c], 0
jmp 0x140016223
mov dword [rsp + 0x7c], 1
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x7c], eax
jle 0x140016262
movsx eax, byte [0x140074a63]
movsx ecx, byte [rsp + 0x25]
sub eax, ecx
movsx ecx, byte [rsp + 0x21]
add eax, ecx
movsx ecx, byte [rsp + 0x21]
add eax, ecx
mov ecx, dword [0x140074a64]
sar eax, cl
movzx ecx, byte [0x140074c89]
add ecx, eax
mov eax, ecx
mov byte [0x140074c89], al
movzx eax, byte [0x140074c5f]
movzx ecx, byte [rsp + 0x24]
mov edx, dword [rsp + 0x44]
add edx, ecx
mov ecx, edx
movzx edx, byte [rsp + 0x24]
add ecx, edx
shl eax, cl
mov ecx, dword [0x140074a64]
or ecx, eax
mov eax, ecx
mov dword [0x140074a64], eax
jmp 0x1400160f5
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
movzx eax, byte [0x140074c89]
movzx ecx, byte [rsp + 0x24]
sub eax, ecx
movsx ecx, byte [rsp + 0x22]
mov dword [rsp + 0xec], ecx
movsx edx, byte [rsp + 0x20]
movzx ecx, dl
mov edx, dword [rsp + 0xec]
shl edx, cl
mov ecx, edx
xor eax, ecx
xor eax, dword [0x140074c80]
movsx ecx, byte [0x140074c6e]
xor ecx, eax
mov eax, ecx
mov byte [0x140074c6e], al
movzx eax, byte [0x140074c8b]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
cmp dword [rsp + 0x28], eax
jne 0x140016302
mov dword [rsp + 0x80], 1
jmp 0x14001630d
mov dword [rsp + 0x80], 0
movzx eax, byte [0x140074c5c]
xor eax, dword [rsp + 0x4c]
xor eax, dword [rsp + 0x80]
mov ecx, dword [0x140074c8c]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c8c], eax
movsx eax, byte [rsp + 0x22]
mov ecx, dword [0x140074c70]
imul ecx, eax
mov eax, ecx
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov dword [rsp + 0x28], eax
cmp dword [0x140074c60], 0
je 0x140016376
movzx eax, byte [rsp + 0x24]
movzx ecx, al
mov eax, dword [rsp + 0x44]
shr eax, cl
test eax, eax
je 0x140016376
mov dword [rsp + 0x84], 1
jmp 0x140016381
mov dword [rsp + 0x84], 0
movzx eax, byte [0x140074c5c]
sub eax, dword [rsp + 0x84]
mov byte [0x140074c5c], al
movzx eax, byte [0x140074c89]
imul eax, dword [rsp + 0x38]
xor edx, edx
mov ecx, 5
div ecx
mov eax, edx
mov dword [rsp + 0x58], eax
movzx eax, byte [0x140074b8e]
imul eax, eax, 7
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
cdq
mov ecx, 9
idiv ecx
mov eax, edx
mov dword [rsp + 0xf0], eax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x14001640b
cmp dword [rsp + 0x5c], 1
je 0x140016489
cmp dword [rsp + 0x5c], 2
je 0x1400164e9
cmp dword [rsp + 0x5c], 3
je 0x14001653d
jmp 0x140016592
movsx eax, byte [rsp + 0x25]
xor eax, dword [rsp + 0x58]
xor eax, dword [rsp + 0x30]
movzx ecx, al
mov eax, dword [0x140074c34]
shl eax, cl
mov ecx, dword [0x140074c4c]
add ecx, eax
mov eax, ecx
mov dword [0x140074c4c], eax
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x140016458
movsx eax, byte [rsp + 0x22]
mov ecx, dword [rsp + 0x34]
sar eax, cl
test eax, eax
je 0x140016458
mov dword [rsp + 0x88], 1
jmp 0x140016463
mov dword [rsp + 0x88], 0
mov eax, dword [rsp + 0x88]
mov ecx, dword [0x140074a68]
xor ecx, eax
mov eax, ecx
mov ecx, dword [0x140074a64]
xor ecx, eax
mov eax, ecx
mov dword [0x140074a64], eax
jmp 0x140016592
cmp dword [0x140074c48], 0
jne 0x1400164ba
movsx eax, byte [rsp + 0x25]
movzx ecx, al
mov eax, dword [rsp + 0x3c]
shl eax, cl
and eax, dword [rsp + 0x38]
test eax, eax
jne 0x1400164ba
movzx eax, byte [0x140074c5c]
test eax, eax
jne 0x1400164ba
mov byte [rsp + 0x2c], 0
jmp 0x1400164bf
mov byte [rsp + 0x2c], 1
movzx eax, byte [rsp + 0x2c]
mov byte [0x140074b8f], al
mov eax, dword [rsp + 0x3c]
cdq
mov ecx, 5
idiv ecx
mov ecx, dword [0x140074c3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
jmp 0x140016592
movsx eax, byte [rsp + 0x21]
mov ecx, dword [0x140074c4c]
imul ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 5
div ecx
mov dword [rsp + 0x30], eax
movsx eax, byte [0x140074c6f]
mov ecx, dword [rsp + 0x54]
mov edx, dword [rsp + 0x48]
shr edx, cl
mov ecx, edx
or eax, ecx
mov ecx, dword [0x140074a68]
mov edx, dword [rsp + 0x28]
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, dword [0x140074c48]
add ecx, eax
mov eax, ecx
mov dword [0x140074c48], eax
jmp 0x140016592
movsx eax, byte [0x140074a63]
cmp eax, dword [rsp + 0x30]
jne 0x140016557
mov dword [rsp + 0x8c], 1
jmp 0x140016562
mov dword [rsp + 0x8c], 0
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x8c]
xor ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c70]
mov edx, dword [rsp + 0x30]
and edx, ecx
mov ecx, edx
xor eax, ecx
movzx ecx, byte [0x140074c88]
or ecx, eax
mov eax, ecx
mov byte [0x140074c88], al
movzx eax, byte [rsp + 0x24]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ecx, dword [0x140074c48]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x22], al
mov dword [rsp + 0x60], 0x179
mov dword [rsp + 0x60], 0xf
jmp 0x1400165ca
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0x4d
jae 0x14001661a
movzx eax, byte [0x140074c5c]
movsx ecx, byte [rsp + 0x20]
add ecx, dword [rsp + 0x38]
sub ecx, dword [rsp + 0x3c]
cmp eax, ecx
jne 0x1400165f6
mov dword [rsp + 0x90], 1
jmp 0x140016601
mov dword [rsp + 0x90], 0
mov eax, dword [rsp + 0x90]
mov ecx, dword [0x140074c2c]
sub ecx, eax
mov eax, ecx
mov dword [0x140074c2c], eax
jmp 0x1400165c0
movzx eax, byte [0x140074c8a]
movzx ecx, byte [rsp + 0x24]
add ecx, dword [rsp + 0x48]
mov edx, dword [rsp + 0x28]
shr edx, cl
mov ecx, edx
cmp eax, ecx
jne 0x140016643
mov dword [rsp + 0x94], 1
jmp 0x14001664e
mov dword [rsp + 0x94], 0
mov eax, dword [rsp + 0x94]
mov dword [0x140074c8c], eax
movzx eax, byte [0x140074c89]
movsx ecx, byte [rsp + 0x20]
sub eax, ecx
movsx ecx, byte [rsp + 0x20]
or eax, ecx
movsx ecx, byte [0x140074a62]
or ecx, eax
mov eax, ecx
mov byte [0x140074a62], al
cmp dword [0x140074a64], 0
jne 0x1400166a2
movzx eax, byte [rsp + 0x24]
cmp eax, dword [rsp + 0x3c]
je 0x1400166a2
mov dword [rsp + 0x98], 0
jmp 0x1400166ad
mov dword [rsp + 0x98], 1
mov eax, dword [rsp + 0x98]
mov dword [0x140074a6c], eax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
movsx eax, byte [0x140074c6e]
test eax, eax
je 0x1400166e7
movsx eax, byte [rsp + 0x21]
mov ecx, dword [rsp + 0x34]
shl eax, cl
test eax, eax
je 0x1400166e7
mov dword [rsp + 0x9c], 1
jmp 0x1400166f2
mov dword [rsp + 0x9c], 0
movsx eax, byte [0x140074c6c]
xor eax, dword [rsp + 0x9c]
mov byte [0x140074c6c], al
movzx eax, byte [0x140074b8f]
movsx ecx, byte [rsp + 0x20]
mov edx, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
add r8d, edx
mov edx, r8d
xor ecx, edx
or eax, ecx
mov ecx, dword [0x140074c50]
or ecx, eax
mov eax, ecx
mov dword [0x140074c50], eax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [0x140074c84]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x140074c89]
or ecx, eax
mov eax, ecx
mov byte [0x140074c89], al
mov dword [rsp + 0x6c], 0xfd
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0xf4], eax
mov eax, dword [rsp + 0x6c]
dec eax
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0xf4], 0
je 0x14001679c
movsx eax, byte [rsp + 0x25]
mov ecx, dword [0x140074c30]
imul ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 4
div ecx
mov eax, edx
mov dword [rsp + 0x28], eax
jmp 0x14001675c
cmp dword [0x140074c70], 0
jne 0x1400167b9
cmp dword [rsp + 0x34], 0
jne 0x1400167b9
mov dword [rsp + 0xa0], 0
jmp 0x1400167c4
mov dword [rsp + 0xa0], 1
mov eax, dword [rsp + 0xa0]
mov ecx, dword [0x140074c8c]
or ecx, eax
mov eax, ecx
mov dword [0x140074c8c], eax
movsx eax, byte [rsp + 0x20]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x28]
shr edx, cl
mov ecx, edx
xor eax, ecx
mov ecx, dword [0x140074c60]
sub ecx, eax
mov eax, ecx
mov byte [0x140074c8a], al
mov dword [rsp + 0x64], 0x120
mov dword [rsp + 0x64], 0x107
jmp 0x14001681a
mov eax, dword [rsp + 0x64]
dec eax
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0x24
jbe 0x140016a26
movsx eax, byte [rsp + 0x21]
cmp eax, dword [0x140074c80]
jbe 0x14001683f
mov dword [rsp + 0xa4], 1
jmp 0x14001684a
mov dword [rsp + 0xa4], 0
mov eax, dword [rsp + 0xa4]
cmp dword [rsp + 0x58], eax
jne 0x14001689f
movsx eax, byte [rsp + 0x21]
test eax, eax
je 0x14001687d
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x48]
or ecx, eax
mov eax, ecx
test eax, eax
je 0x14001687d
mov dword [rsp + 0xa8], 1
jmp 0x140016888
mov dword [rsp + 0xa8], 0
mov eax, dword [rsp + 0xa8]
mov ecx, dword [0x140074c30]
xor ecx, eax
mov eax, ecx
mov byte [0x140074c8b], al
movzx eax, byte [rsp + 0x23]
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x34]
xor ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c64]
add ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c60]
and ecx, eax
mov eax, ecx
mov dword [0x140074c60], eax
movsx eax, byte [0x140074a63]
movsx ecx, byte [rsp + 0x22]
sar eax, cl
mov ecx, dword [rsp + 0x30]
mov edx, dword [rsp + 0x3c]
sar edx, cl
mov ecx, edx
mov dword [rsp + 0xf8], ecx
mov edx, dword [0x140074c54]
movzx ecx, dl
mov edx, dword [rsp + 0xf8]
sar edx, cl
mov ecx, edx
xor eax, ecx
mov dword [0x140074c2c], eax
movsx eax, byte [rsp + 0x20]
mov ecx, dword [0x140074c30]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x140074c6d]
xor ecx, eax
mov eax, ecx
mov byte [0x140074c6d], al
mov eax, dword [0x140074c4c]
imul eax, dword [rsp + 0x44]
xor edx, edx
mov ecx, 3
div ecx
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x23]
mov ecx, dword [0x140074c34]
sub ecx, eax
mov eax, ecx
movsx ecx, byte [rsp + 0x21]
cmp eax, ecx
jne 0x140016968
mov dword [rsp + 0xac], 1
jmp 0x140016973
mov dword [rsp + 0xac], 0
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0xac]
and ecx, eax
mov eax, ecx
movsx ecx, byte [0x140074c5d]
xor eax, ecx
mov ecx, dword [0x140074c70]
or ecx, eax
mov eax, ecx
mov dword [0x140074c70], eax
movzx eax, byte [0x140074c89]
imul eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 4
div ecx
mov eax, edx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x34]
shl eax, cl
mov ecx, dword [0x140074c3c]
xor ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c4c]
and ecx, eax
mov eax, ecx
mov dword [0x140074c4c], eax
movsx eax, byte [0x140074a62]
movsx ecx, byte [rsp + 0x21]
sar eax, cl
mov ecx, dword [rsp + 0x34]
sar eax, cl
mov ecx, dword [rsp + 0x38]
sar eax, cl
or eax, dword [0x140074c54]
mov byte [0x140074a62], al
movzx eax, byte [0x140074c89]
imul eax, dword [rsp + 0x28]
xor edx, edx
mov ecx, 4
div ecx
mov dword [rsp + 0x28], eax
jmp 0x140016810
movsx eax, byte [rsp + 0x20]
movsx ecx, byte [rsp + 0x25]
shl eax, cl
cmp dword [0x140074c84], eax
jne 0x140016a47
mov dword [rsp + 0xb0], 1
jmp 0x140016a52
mov dword [rsp + 0xb0], 0
mov eax, dword [rsp + 0xb0]
mov ecx, dword [0x140074c50]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c50], eax
movzx eax, byte [0x140074c89]
movzx ecx, byte [rsp + 0x23]
and eax, ecx
and eax, dword [rsp + 0x3c]
mov dword [0x140074c70], eax
movsx eax, byte [rsp + 0x20]
movsx ecx, byte [rsp + 0x20]
shl eax, cl
test eax, eax
jne 0x140016aa7
movsx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140016aa7
mov dword [rsp + 0xb4], 0
jmp 0x140016ab2
mov dword [rsp + 0xb4], 1
movsx eax, byte [0x140074a63]
and eax, dword [rsp + 0xb4]
mov ecx, dword [0x140074c30]
sub ecx, eax
mov eax, ecx
mov dword [0x140074c30], eax
movzx eax, byte [0x140074b8e]
movzx ecx, byte [rsp + 0x24]
or eax, ecx
movzx ecx, byte [0x140074c6d]
or ecx, eax
mov eax, ecx
mov byte [0x140074c6d], al
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov eax, dword [rsp + 0x58]
movzx ecx, al
mov eax, dword [rsp + 0x54]
shl eax, cl
movsx ecx, byte [rsp + 0x20]
xor eax, ecx
mov ecx, dword [0x140074a68]
xor ecx, eax
mov eax, ecx
movzx ecx, byte [0x140074c5c]
add ecx, eax
mov eax, ecx
mov byte [0x140074c5c], al
mov eax, dword [rsp + 0x28]
mov ecx, dword [0x140074a68]
sub ecx, eax
mov eax, ecx
and eax, dword [rsp + 0x30]
movsx ecx, byte [rsp + 0x22]
or eax, ecx
test eax, eax
je 0x140016b5d
cmp dword [0x140074a68], 0
je 0x140016b5d
mov dword [rsp + 0xb8], 1
jmp 0x140016b68
mov dword [rsp + 0xb8], 0
mov eax, dword [rsp + 0xb8]
mov ecx, dword [0x140074c4c]
sub ecx, eax
mov eax, ecx
mov dword [0x140074c4c], eax
movzx eax, byte [0x140074c88]
movzx ecx, byte [rsp + 0x24]
movsx edx, byte [rsp + 0x22]
add ecx, edx
cmp eax, ecx
jne 0x140016ba3
mov dword [rsp + 0xbc], 1
jmp 0x140016bae
mov dword [rsp + 0xbc], 0
movsx eax, byte [rsp + 0x20]
cmp dword [rsp + 0xbc], eax
jne 0x140016bc9
mov dword [rsp + 0xc0], 1
jmp 0x140016bd4
mov dword [rsp + 0xc0], 0
mov eax, dword [0x140074c4c]
mov ecx, dword [rsp + 0xc0]
xor ecx, eax
mov eax, ecx
movsx ecx, byte [0x140074c6e]
add ecx, eax
mov eax, ecx
mov byte [0x140074c6e], al
movsx eax, byte [rsp + 0x21]
mov ecx, dword [0x140074c38]
add ecx, eax
mov eax, ecx
add eax, dword [rsp + 0x3c]
movzx ecx, byte [0x140074c8a]
and ecx, eax
mov eax, ecx
mov byte [0x140074c8a], al
mov eax, 0x52
mov word [rsp + 0x40], ax
mov eax, 0xf
mov word [rsp + 0x40], ax
jmp 0x140016c3d
movzx eax, word [rsp + 0x40]
inc ax
mov word [rsp + 0x40], ax
movsx eax, word [rsp + 0x40]
cmp eax, 0x325
jge 0x140016cbc
mov eax, dword [rsp + 0x4c]
mov ecx, dword [0x140074c2c]
sub ecx, eax
mov eax, ecx
sub eax, dword [rsp + 0x38]
or eax, dword [rsp + 0x3c]
movsx ecx, byte [0x140074c6c]
or eax, ecx
mov dword [0x140074c4c], eax
movzx eax, byte [0x140074b8f]
movzx ecx, byte [rsp + 0x23]
add eax, ecx
movsx ecx, byte [rsp + 0x20]
and eax, ecx
mov ecx, dword [0x140074c54]
or ecx, eax
mov eax, ecx
mov dword [0x140074c54], eax
movzx eax, byte [rsp + 0x23]
cmp dword [0x140074c28], eax
jne 0x140016ca7
mov byte [rsp + 0x2d], 1
jmp 0x140016cac
mov byte [rsp + 0x2d], 0
movzx eax, byte [rsp + 0x2d]
mov byte [0x140074c89], al
jmp 0x140016c30
movzx eax, byte [0x140074c6d]
imul eax, eax, 5
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 0xa
div ecx
mov eax, edx
mov dword [rsp + 0xfc], eax
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x140016d18
cmp dword [rsp + 0x68], 1
je 0x140016dc1
cmp dword [rsp + 0x68], 2
je 0x140016df2
cmp dword [rsp + 0x68], 3
je 0x140016e2c
jmp 0x140016e4a
movsx eax, byte [rsp + 0x22]
mov ecx, dword [rsp + 0x58]
xor ecx, eax
mov eax, ecx
test eax, eax
jne 0x140016d3d
cmp dword [rsp + 0x38], 0
jne 0x140016d3d
mov dword [rsp + 0xc4], 0
jmp 0x140016d48
mov dword [rsp + 0xc4], 1
mov eax, dword [rsp + 0xc4]
mov ecx, dword [0x140074c2c]
or ecx, eax
mov eax, ecx
movzx ecx, byte [0x140074c5c]
and ecx, eax
mov eax, ecx
mov byte [0x140074c5c], al
movsx eax, byte [rsp + 0x22]
movzx ecx, al
mov eax, dword [rsp + 0x4c]
sar eax, cl
test eax, eax
jne 0x140016d92
movsx eax, byte [rsp + 0x22]
test eax, eax
jne 0x140016d92
mov dword [rsp + 0xc8], 0
jmp 0x140016d9d
mov dword [rsp + 0xc8], 1
movzx eax, byte [0x140074c6d]
xor eax, dword [rsp + 0xc8]
movzx ecx, byte [0x140074c89]
or ecx, eax
mov eax, ecx
mov byte [0x140074c89], al
jmp 0x140016e4a
mov eax, dword [0x140074c4c]
imul eax, dword [rsp + 0x4c]
xor edx, edx
mov ecx, 3
div ecx
mov eax, edx
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x23]
mov ecx, dword [0x140074c50]
add ecx, eax
mov eax, ecx
mov byte [0x140074a62], al
jmp 0x140016e4a
movzx eax, byte [0x140074b8e]
movsx ecx, byte [rsp + 0x20]
xor eax, ecx
mov ecx, dword [0x140074c70]
add ecx, eax
mov eax, ecx
mov dword [0x140074c70], eax
mov eax, dword [0x140074c34]
imul eax, dword [rsp + 0x44]
xor edx, edx
mov ecx, 3
div ecx
mov eax, edx
mov byte [rsp + 0x23], al
jmp 0x140016e4a
movsx eax, byte [rsp + 0x21]
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov ecx, dword [0x140074c2c]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x25], al
mov dword [rsp + 0x70], 0xffffff88
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x100], eax
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x100], 0
je 0x140016ebc
movsx eax, byte [0x140074a63]
sub eax, dword [rsp + 0x4c]
cmp eax, dword [rsp + 0x48]
jne 0x140016e8f
mov dword [rsp + 0xcc], 1
jmp 0x140016e9a
mov dword [rsp + 0xcc], 0
mov eax, dword [0x140074a6c]
movzx ecx, al
mov eax, dword [rsp + 0x34]
shl eax, cl
mov ecx, dword [rsp + 0xcc]
or ecx, eax
mov eax, ecx
mov byte [0x140074c8b], al
jmp 0x140016e52
movzx eax, byte [rsp + 0x23]
movzx ecx, al
mov eax, dword [0x140074c30]
shl eax, cl
test eax, eax
jne 0x140016ee4
cmp dword [rsp + 0x28], 0
jne 0x140016ee4
mov dword [rsp + 0xd0], 0
jmp 0x140016eef
mov dword [rsp + 0xd0], 1
mov eax, dword [rsp + 0xd0]
mov ecx, dword [0x140074c50]
add ecx, eax
mov eax, ecx
mov dword [0x140074c50], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x34], eax
jne 0x140016f1d
mov dword [rsp + 0xd4], 1
jmp 0x140016f28
mov dword [rsp + 0xd4], 0
mov eax, dword [0x140074a6c]
cmp dword [rsp + 0xd4], eax
je 0x140017072
cmp dword [0x140074c54], 0
jne 0x140016f68
cmp dword [rsp + 0x28], 0
jne 0x140016f68
movsx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140016f68
cmp dword [rsp + 0x28], 0
jne 0x140016f68
mov dword [rsp + 0xd8], 0
jmp 0x140016f73
mov dword [rsp + 0xd8], 1
mov eax, dword [rsp + 0xd8]
mov ecx, dword [0x140074c2c]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c2c], eax
xor edx, edx
mov eax, dword [rsp + 0x38]
mov ecx, 5
div ecx
mov ecx, dword [0x140074a64]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x22], al
movsx eax, byte [0x140074c6f]
mov ecx, dword [rsp + 0x44]
mov edx, dword [rsp + 0x38]
sub edx, ecx
mov ecx, edx
shl eax, cl
movsx ecx, byte [0x140074c90]
or ecx, eax
mov eax, ecx
mov byte [0x140074c90], al
movsx eax, byte [rsp + 0x20]
cmp dword [0x140074c70], eax
jne 0x140016fe5
mov dword [rsp + 0xdc], 1
jmp 0x140016ff0
mov dword [rsp + 0xdc], 0
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0xdc]
or ecx, eax
mov eax, ecx
movsx ecx, byte [0x140074c6e]
sub ecx, eax
mov eax, ecx
mov byte [0x140074c6e], al
movsx eax, byte [rsp + 0x25]
movzx ecx, al
mov eax, dword [0x140074c50]
shr eax, cl
and eax, dword [rsp + 0x54]
test eax, eax
je 0x140017040
movsx eax, byte [rsp + 0x25]
mov ecx, dword [0x140074c50]
sar eax, cl
test eax, eax
je 0x140017040
mov byte [rsp + 0x2e], 1
jmp 0x140017045
mov byte [rsp + 0x2e], 0
movzx eax, byte [rsp + 0x2e]
mov byte [0x140074c6f], al
movsx eax, byte [rsp + 0x21]
add eax, dword [rsp + 0x38]
movzx ecx, al
mov eax, dword [rsp + 0x48]
shl eax, cl
mov ecx, dword [0x140074c50]
sub ecx, eax
mov eax, ecx
mov dword [0x140074c8c], eax
mov eax, dword [rsp + 0x48]
cmp dword [0x140074c8c], eax
je 0x14001708b
movsx eax, byte [0x140074c6f]
cmp dword [rsp + 0x58], eax
je 0x140017096
cmp dword [rsp + 0x4c], 0
je 0x14001711a
movzx eax, byte [0x140074b8e]
movzx ecx, byte [rsp + 0x23]
mov dword [rsp + 0x104], ecx
mov edx, dword [rsp + 0x38]
movzx ecx, dl
mov edx, dword [rsp + 0x104]
shl edx, cl
mov ecx, edx
or eax, ecx
mov ecx, dword [0x140074c3c]
or ecx, eax
mov eax, ecx
mov dword [0x140074c3c], eax
cmp dword [0x140074c70], 0
jne 0x1400170f8
movsx eax, byte [rsp + 0x21]
mov ecx, dword [rsp + 0x28]
and ecx, eax
mov eax, ecx
or eax, dword [rsp + 0x54]
test eax, eax
jne 0x1400170f8
mov dword [rsp + 0xe0], 0
jmp 0x140017103
mov dword [rsp + 0xe0], 1
mov eax, dword [rsp + 0xe0]
mov ecx, dword [0x140074c30]
add ecx, eax
mov eax, ecx
mov dword [0x140074c30], eax
mov ecx, dword [0x140074c2c]
call fcn.140014f10
movsx ax, byte [rsp + 0x22]
add rsp, 0x118
ret