Function at 0x140040c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x118
mov byte [rsp + 0x20], 0x16
mov dword [rsp + 0x3c], 8
mov dword [rsp + 0x2c], 4
mov dword [rsp + 0x28], 0xc
mov dword [rsp + 0x38], 0x14
mov byte [rsp + 0x22], 8
mov dword [rsp + 0x40], 0x10
mov byte [rsp + 0x23], 0xd
mov byte [rsp + 0x24], 0x1b
mov dword [rsp + 0x34], 0x1c
mov byte [rsp + 0x21], 0x16
mov dword [rsp + 0x30], 0x16
imul eax, dword [0x140074c74], 5
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 9
div ecx
mov eax, edx
mov dword [rsp + 0xe0], eax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x140040cca
cmp dword [rsp + 0x4c], 1
je 0x140040d16
cmp dword [rsp + 0x4c], 2
je 0x140040d4e
cmp dword [rsp + 0x4c], 3
je 0x140040d6b
jmp 0x140040d86
movzx eax, byte [rsp + 0x20]
mov ecx, dword [0x140074c64]
and ecx, eax
mov eax, ecx
and eax, dword [rsp + 0x34]
test eax, eax
je 0x140040cf8
movzx eax, byte [0x140074b8f]
cmp dword [rsp + 0x28], eax
jne 0x140040cf8
mov dword [rsp + 0x6c], 1
jmp 0x140040d00
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
mov ecx, dword [0x140074c4c]
and ecx, eax
mov eax, ecx
mov dword [0x140074c4c], eax
jmp 0x140040d86
movsx eax, byte [rsp + 0x21]
cdq
mov ecx, 5
idiv ecx
mov eax, edx
mov ecx, dword [0x140074c68]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
movsx eax, byte [0x140074c6c]
imul eax, dword [rsp + 0x40]
xor edx, edx
mov ecx, 5
div ecx
mov dword [rsp + 0x30], eax
jmp 0x140040d86
movsx eax, byte [0x140074c90]
imul eax, dword [rsp + 0x3c]
xor edx, edx
mov ecx, 5
div ecx
mov eax, edx
mov byte [rsp + 0x23], al
jmp 0x140040d86
xor edx, edx
mov eax, dword [rsp + 0x38]
mov ecx, 4
div ecx
mov ecx, dword [0x140074c68]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
cmp dword [0x140074c50], 0
jne 0x140040dae
movsx eax, byte [rsp + 0x22]
movzx ecx, byte [rsp + 0x20]
cmp eax, ecx
jne 0x140040da4
cmp dword [rsp + 0x28], 0
jne 0x140040dae
mov dword [rsp + 0x70], 0
jmp 0x140040db6
mov dword [rsp + 0x70], 1
movzx eax, byte [0x140074b8f]
add eax, dword [rsp + 0x70]
mov byte [0x140074b8f], al
movsx eax, byte [0x140074c6c]
test eax, eax
jne 0x140040dec
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
xor ecx, eax
mov eax, ecx
test eax, eax
jne 0x140040dec
mov dword [rsp + 0x74], 0
jmp 0x140040df4
mov dword [rsp + 0x74], 1
mov eax, dword [rsp + 0x74]
mov dword [0x140074c3c], eax
cmp dword [0x140074c3c], 0
jne 0x140040e18
cmp dword [rsp + 0x3c], 0
jne 0x140040e18
mov dword [rsp + 0x78], 0
jmp 0x140040e20
mov dword [rsp + 0x78], 1
mov eax, dword [rsp + 0x78]
mov ecx, dword [0x140074c80]
and ecx, eax
mov eax, ecx
mov dword [0x140074c80], eax
mov eax, dword [0x140074c50]
imul eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 5
div ecx
mov eax, edx
mov byte [rsp + 0x21], al
mov eax, dword [rsp + 0x2c]
cdq
mov ecx, 5
idiv ecx
mov eax, edx
mov ecx, dword [0x140074c38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
movsx eax, byte [rsp + 0x24]
mov ecx, dword [0x140074a6c]
add ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c50]
or ecx, eax
mov eax, ecx
mov dword [0x140074c50], eax
movzx eax, byte [rsp + 0x20]
movzx ecx, byte [rsp + 0x20]
cmp eax, ecx
jle 0x140040f58
mov eax, dword [rsp + 0x2c]
mov ecx, dword [0x140074a64]
add ecx, eax
mov eax, ecx
test eax, eax
je 0x140040ed4
movsx eax, byte [rsp + 0x23]
test eax, eax
je 0x140040ed4
movzx eax, byte [0x140074c88]
movzx ecx, al
mov eax, dword [rsp + 0x2c]
shl eax, cl
test eax, eax
je 0x140040ed4
mov dword [rsp + 0x7c], 1
jmp 0x140040edc
mov dword [rsp + 0x7c], 0
movzx eax, byte [0x140074c5f]
sub eax, dword [rsp + 0x7c]
mov byte [0x140074c5f], al
cmp dword [0x140074c54], 0
jne 0x140040f1b
movsx eax, byte [rsp + 0x21]
movsx ecx, byte [rsp + 0x23]
shl eax, cl
mov ecx, dword [rsp + 0x3c]
xor ecx, eax
mov eax, ecx
test eax, eax
jne 0x140040f1b
mov dword [rsp + 0x80], 0
jmp 0x140040f26
mov dword [rsp + 0x80], 1
mov eax, dword [rsp + 0x80]
mov ecx, dword [0x140074c68]
and ecx, eax
mov eax, ecx
mov dword [0x140074c68], eax
movzx eax, byte [0x140074c88]
or eax, dword [rsp + 0x40]
mov ecx, dword [0x140074c84]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c84], eax
mov eax, 0xffffff9f
mov word [rsp + 0x44], ax
movsx eax, word [rsp + 0x44]
mov dword [rsp + 0xe4], eax
movzx eax, word [rsp + 0x44]
inc ax
mov word [rsp + 0x44], ax
cmp dword [rsp + 0xe4], 0
je 0x1400410dd
movsx eax, byte [0x140074c90]
test eax, eax
jne 0x140040fd4
cmp dword [rsp + 0x34], 0
je 0x14004105e
mov eax, dword [0x140074c50]
cmp dword [rsp + 0x3c], eax
jae 0x140040fb8
mov dword [rsp + 0x84], 1
jmp 0x140040fc3
mov dword [rsp + 0x84], 0
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x84], eax
jne 0x14004105e
movzx eax, byte [0x140074b8f]
movzx ecx, byte [rsp + 0x20]
imul eax, ecx
cdq
mov ecx, 5
idiv ecx
mov dword [rsp + 0x28], eax
movzx eax, byte [rsp + 0x20]
movsx ecx, byte [rsp + 0x22]
sar eax, cl
mov ecx, dword [0x140074c84]
xor ecx, eax
mov eax, ecx
movzx ecx, byte [rsp + 0x20]
xor ecx, dword [0x140074c38]
or eax, ecx
mov ecx, dword [0x140074c50]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c50], eax
mov eax, dword [rsp + 0x38]
mov ecx, dword [0x140074c28]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x140074b8f]
and ecx, eax
mov eax, ecx
mov byte [0x140074b8f], al
movzx eax, byte [0x140074c8b]
movsx ecx, byte [rsp + 0x24]
imul eax, ecx
cdq
mov ecx, 5
idiv ecx
mov eax, edx
mov dword [rsp + 0x38], eax
movzx eax, byte [0x140074c8b]
movzx ecx, byte [rsp + 0x20]
imul eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x20]
cdq
mov ecx, 5
idiv ecx
mov eax, edx
mov ecx, dword [0x140074c68]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
movzx eax, byte [0x140074c88]
movsx ecx, byte [rsp + 0x23]
sub ecx, dword [rsp + 0x30]
add ecx, dword [rsp + 0x30]
shl eax, cl
or eax, dword [0x140074c50]
mov byte [0x140074c6c], al
mov eax, dword [rsp + 0x2c]
mov ecx, dword [0x140074c30]
sub ecx, eax
mov eax, ecx
movsx ecx, byte [0x140074c6c]
and ecx, eax
mov eax, ecx
mov byte [0x140074c6c], al
jmp 0x140040f62
mov dword [rsp + 0x50], 0xff
mov dword [rsp + 0x50], 0x135
jmp 0x1400410f9
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xd
jbe 0x14004115d
movsx eax, byte [0x140074c6c]
movzx ecx, byte [rsp + 0x20]
shl eax, cl
movsx ecx, byte [rsp + 0x22]
mov edx, dword [rsp + 0x30]
add edx, ecx
mov ecx, edx
sar eax, cl
test eax, eax
jne 0x140041139
movzx eax, byte [0x140074b8f]
test eax, eax
jne 0x140041139
mov dword [rsp + 0x88], 0
jmp 0x140041144
mov dword [rsp + 0x88], 1
mov eax, dword [rsp + 0x88]
mov ecx, dword [0x140074c54]
add ecx, eax
mov eax, ecx
mov dword [0x140074c54], eax
jmp 0x1400410ef
movsx eax, byte [0x140074a63]
test eax, eax
jne 0x140041195
mov eax, dword [rsp + 0x30]
movzx ecx, al
mov eax, dword [rsp + 0x34]
sar eax, cl
xor eax, dword [rsp + 0x38]
test eax, eax
je 0x140041188
movsx eax, byte [0x140074a63]
test eax, eax
jne 0x140041195
mov dword [rsp + 0x8c], 0
jmp 0x1400411a0
mov dword [rsp + 0x8c], 1
mov eax, dword [rsp + 0x8c]
mov ecx, dword [0x140074c74]
add ecx, eax
mov eax, ecx
mov dword [0x140074c74], eax
imul eax, dword [0x140074c64], 3
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
and eax, 7
sub eax, edx
mov dword [rsp + 0xe8], eax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x140041210
cmp dword [rsp + 0x54], 1
je 0x1400412ad
cmp dword [rsp + 0x54], 2
je 0x1400412f4
cmp dword [rsp + 0x54], 3
je 0x140041346
jmp 0x14004138c
mov eax, dword [rsp + 0x38]
movzx ecx, al
mov eax, dword [rsp + 0x30]
shr eax, cl
mov ecx, dword [0x140074c68]
shr eax, cl
cmp dword [rsp + 0x34], eax
jne 0x140041238
mov dword [rsp + 0x90], 1
jmp 0x140041243
mov dword [rsp + 0x90], 0
movsx eax, byte [0x140074c5d]
xor eax, dword [rsp + 0x90]
mov dword [0x140074c34], eax
cmp dword [0x140074c3c], 0
jne 0x140041289
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jne 0x14004127c
mov eax, dword [0x140074c54]
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
test eax, eax
jne 0x140041289
mov dword [rsp + 0x94], 0
jmp 0x140041294
mov dword [rsp + 0x94], 1
movzx eax, byte [0x140074c5c]
add eax, dword [rsp + 0x94]
mov byte [0x140074c5c], al
jmp 0x14004138c
mov eax, dword [rsp + 0x38]
movzx ecx, al
mov eax, dword [rsp + 0x28]
shl eax, cl
mov ecx, dword [rsp + 0x28]
or ecx, eax
mov eax, ecx
movzx ecx, al
mov eax, dword [0x140074a64]
shl eax, cl
mov dword [0x140074a6c], eax
mov eax, dword [rsp + 0x3c]
movzx ecx, al
mov eax, dword [0x140074c34]
shl eax, cl
movsx ecx, byte [rsp + 0x21]
and eax, ecx
mov dword [0x140074c48], eax
jmp 0x14004138c
movsx eax, byte [0x140074c5d]
mov dword [rsp + 0xec], eax
movzx ecx, byte [rsp + 0x20]
mov eax, ecx
cdq
mov ecx, 5
idiv ecx
mov ecx, dword [rsp + 0xec]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
movsx eax, byte [rsp + 0x21]
add eax, dword [rsp + 0x2c]
movzx ecx, al
mov eax, dword [0x140074c8c]
shr eax, cl
mov ecx, dword [0x140074c4c]
or ecx, eax
mov eax, ecx
mov dword [0x140074c4c], eax
jmp 0x14004138c
movzx eax, byte [0x140074b8e]
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x34]
sar edx, cl
mov ecx, edx
mov dword [rsp + 0xf0], ecx
movsx edx, byte [rsp + 0x21]
sub edx, dword [0x140074c48]
movzx ecx, dl
mov edx, dword [rsp + 0xf0]
sar edx, cl
mov ecx, edx
and eax, ecx
movsx ecx, byte [0x140074c90]
xor ecx, eax
mov eax, ecx
mov byte [0x140074c90], al
mov eax, 0xfb
mov word [rsp + 0x48], ax
movsx eax, word [rsp + 0x48]
mov dword [rsp + 0xf4], eax
movzx eax, word [rsp + 0x48]
dec ax
mov word [rsp + 0x48], ax
cmp dword [rsp + 0xf4], 0
je 0x140041402
movzx eax, byte [0x140074c8a]
test eax, eax
je 0x1400413e1
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x28]
xor ecx, eax
mov eax, ecx
test eax, eax
je 0x1400413e1
mov dword [rsp + 0x98], 1
jmp 0x1400413ec
mov dword [rsp + 0x98], 0
movzx eax, byte [0x140074c5c]
sub eax, dword [rsp + 0x98]
mov byte [0x140074c5c], al
jmp 0x140041396
xor edx, edx
mov eax, dword [rsp + 0x40]
mov ecx, 5
div ecx
mov ecx, dword [0x140074c84]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
movsx eax, byte [rsp + 0x22]
cdq
mov ecx, 5
idiv ecx
mov eax, edx
mov ecx, dword [0x140074c30]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x21], al
movzx eax, byte [0x140074c6d]
movsx ecx, byte [rsp + 0x21]
movsx edx, byte [rsp + 0x23]
add ecx, edx
xor eax, ecx
test eax, eax
jne 0x140041472
mov eax, dword [0x140074c54]
mov ecx, dword [rsp + 0x28]
or ecx, eax
mov eax, ecx
test eax, eax
jne 0x140041472
mov dword [rsp + 0x9c], 0
jmp 0x14004147d
mov dword [rsp + 0x9c], 1
mov eax, dword [rsp + 0x9c]
mov dword [0x140074c60], eax
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400414b8
movsx eax, byte [rsp + 0x24]
test eax, eax
je 0x1400414b8
movzx eax, byte [0x140074c8a]
or eax, dword [rsp + 0x40]
movsx ecx, byte [0x140074c6f]
and ecx, eax
mov eax, ecx
mov byte [0x140074c6f], al
mov eax, dword [0x140074c38]
imul eax, dword [rsp + 0x3c]
xor edx, edx
mov ecx, 5
div ecx
mov dword [rsp + 0x28], eax
movzx eax, byte [0x140074c89]
imul eax, dword [rsp + 0x28]
xor edx, edx
mov ecx, 4
div ecx
mov byte [rsp + 0x21], al
xor edx, edx
mov eax, dword [rsp + 0x30]
mov ecx, 4
div ecx
mov eax, edx
mov ecx, dword [0x140074a68]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x23], al
movzx eax, byte [0x140074c5f]
movsx ecx, byte [rsp + 0x24]
imul eax, ecx
cdq
mov ecx, 5
idiv ecx
mov eax, edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x58], 0xe6
mov dword [rsp + 0x58], 0xe
jmp 0x14004153f
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x8e
jge 0x14004165c
movzx eax, byte [0x140074c6d]
test eax, eax
je 0x140041585
movsx eax, byte [rsp + 0x23]
movsx ecx, byte [rsp + 0x22]
sub eax, ecx
mov ecx, dword [0x140074c48]
shl eax, cl
mov ecx, dword [rsp + 0x2c]
or ecx, eax
mov eax, ecx
test eax, eax
je 0x140041585
mov dword [rsp + 0xa0], 1
jmp 0x140041590
mov dword [rsp + 0xa0], 0
mov eax, dword [rsp + 0xa0]
mov ecx, dword [0x140074c38]
sub ecx, eax
mov eax, ecx
mov dword [0x140074c38], eax
movsx eax, byte [0x140074c6e]
test eax, eax
jne 0x1400415e0
movsx eax, byte [rsp + 0x23]
movsx ecx, byte [rsp + 0x22]
mov edx, dword [rsp + 0x2c]
sub edx, ecx
mov ecx, edx
and eax, ecx
movzx ecx, byte [0x140074c8b]
xor eax, ecx
test eax, eax
jne 0x1400415e0
mov dword [rsp + 0xa4], 0
jmp 0x1400415eb
mov dword [rsp + 0xa4], 1
movsx eax, byte [0x140074c6f]
or eax, dword [rsp + 0xa4]
mov byte [0x140074c6f], al
movsx eax, byte [rsp + 0x21]
movsx ecx, byte [rsp + 0x22]
add eax, ecx
movzx ecx, al
mov eax, dword [0x140074c50]
shr eax, cl
mov ecx, dword [0x140074c4c]
mov edx, dword [rsp + 0x34]
sar edx, cl
mov ecx, edx
and eax, ecx
mov ecx, dword [0x140074c64]
sub ecx, eax
mov eax, ecx
mov dword [0x140074c64], eax
movzx eax, byte [rsp + 0x20]
movzx ecx, al
mov eax, dword [0x140074c48]
shl eax, cl
movzx ecx, byte [0x140074c8a]
sub ecx, eax
mov eax, ecx
mov byte [0x140074c8a], al
jmp 0x140041535
movsx eax, byte [rsp + 0x21]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c50]
and ecx, eax
mov eax, ecx
movsx ecx, byte [0x140074c5e]
or ecx, eax
mov eax, ecx
mov byte [0x140074c5e], al
movsx eax, byte [0x140074a63]
mov ecx, dword [rsp + 0x30]
shl eax, cl
movsx ecx, byte [0x140074c6c]
or ecx, eax
mov eax, ecx
mov byte [0x140074c6c], al
mov dword [rsp + 0x5c], 0x175
mov dword [rsp + 0x5c], 0x11
jmp 0x1400416be
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0x629
jae 0x14004186e
movsx eax, byte [0x140074c6e]
test eax, eax
jne 0x140041712
cmp dword [rsp + 0x34], 0
je 0x1400416f6
movzx eax, byte [0x140074b8f]
test eax, eax
je 0x1400416f6
mov dword [rsp + 0xa8], 1
jmp 0x140041701
mov dword [rsp + 0xa8], 0
mov eax, dword [rsp + 0xa8]
cmp dword [rsp + 0x28], eax
jae 0x1400417c8
movzx eax, byte [0x140074c6d]
mov dword [rsp + 0xf8], eax
movsx ecx, byte [rsp + 0x24]
mov eax, ecx
cdq
mov ecx, 3
idiv ecx
mov ecx, dword [rsp + 0xf8]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
movzx eax, byte [0x140074c6d]
mov ecx, dword [rsp + 0x40]
mov edx, dword [rsp + 0x40]
shl edx, cl
mov ecx, edx
mov dword [rsp + 0xfc], ecx
mov edx, dword [rsp + 0x2c]
movzx ecx, dl
mov edx, dword [rsp + 0xfc]
shr edx, cl
mov ecx, edx
sub eax, ecx
mov dword [0x140074c4c], eax
mov eax, dword [rsp + 0x38]
mov ecx, dword [0x140074c60]
sub ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x38]
jne 0x140041793
mov dword [rsp + 0xac], 1
jmp 0x14004179e
mov dword [rsp + 0xac], 0
movsx eax, byte [rsp + 0x24]
movsx ecx, byte [0x140074c90]
shl eax, cl
mov ecx, dword [rsp + 0xac]
or ecx, eax
mov eax, ecx
movzx ecx, byte [0x140074b8f]
or ecx, eax
mov eax, ecx
mov byte [0x140074b8f], al
cmp dword [0x140074c70], 0
jne 0x1400417fa
movsx eax, byte [rsp + 0x22]
and eax, dword [rsp + 0x2c]
and eax, dword [rsp + 0x30]
test eax, eax
je 0x1400417ed
movsx eax, byte [0x140074c6f]
test eax, eax
jne 0x1400417fa
mov dword [rsp + 0xb0], 0
jmp 0x140041805
mov dword [rsp + 0xb0], 1
movzx eax, byte [0x140074b8e]
or eax, dword [rsp + 0xb0]
mov byte [0x140074b8e], al
movzx eax, byte [0x140074b8f]
and eax, dword [rsp + 0x34]
test eax, eax
je 0x140041851
movsx eax, byte [0x140074c5d]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
movzx ecx, al
mov eax, dword [rsp + 0x34]
sar eax, cl
test eax, eax
je 0x140041851
mov dword [rsp + 0xb4], 1
jmp 0x14004185c
mov dword [rsp + 0xb4], 0
mov eax, dword [rsp + 0xb4]
mov dword [0x140074a6c], eax
jmp 0x1400416b4
mov dword [rsp + 0x60], 0x144
mov dword [rsp + 0x60], 0x3b
jmp 0x14004188a
mov eax, dword [rsp + 0x60]
dec eax
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 9
jle 0x1400418ae
mov eax, dword [rsp + 0x2c]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ecx, dword [0x140074c30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x140041880
movsx eax, byte [rsp + 0x23]
mov ecx, dword [0x140074c60]
imul ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 4
div ecx
mov dword [rsp + 0x28], eax
movsx eax, byte [rsp + 0x22]
movzx ecx, byte [rsp + 0x20]
or eax, ecx
test eax, eax
je 0x1400418ef
cmp dword [rsp + 0x34], 0
je 0x1400418ef
mov dword [rsp + 0xb8], 1
jmp 0x1400418fa
mov dword [rsp + 0xb8], 0
movzx eax, byte [0x140074c8b]
mov ecx, dword [rsp + 0xb8]
shl eax, cl
movsx ecx, byte [0x140074a63]
add ecx, eax
mov eax, ecx
mov byte [0x140074a63], al
movsx eax, byte [rsp + 0x24]
mov ecx, dword [0x140074c3c]
lea eax, [rax + rcx*2]
xor edx, edx
mov ecx, 5
div ecx
mov eax, edx
mov word [rsp + 0x68], ax
movsx eax, word [rsp + 0x68]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x14004196b
cmp dword [rsp + 0x64], 1
je 0x14004198d
cmp dword [rsp + 0x64], 2
je 0x140041a03
cmp dword [rsp + 0x64], 3
je 0x140041a24
jmp 0x140041a5d
mov eax, dword [rsp + 0x34]
movzx ecx, al
mov eax, dword [rsp + 0x3c]
shl eax, cl
mov ecx, dword [0x140074c50]
or ecx, eax
mov eax, ecx
mov byte [0x140074b8f], al
jmp 0x140041abe
movsx eax, byte [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
sub eax, dword [rsp + 0x28]
movzx ecx, al
mov eax, dword [0x140074c80]
shr eax, cl
movzx ecx, byte [0x140074c88]
cmp eax, ecx
jne 0x1400419c1
mov dword [rsp + 0xbc], 1
jmp 0x1400419cc
mov dword [rsp + 0xbc], 0
movsx eax, byte [0x140074a63]
or eax, dword [rsp + 0xbc]
mov byte [0x140074a63], al
movsx eax, byte [0x140074c5e]
movsx ecx, byte [rsp + 0x23]
and eax, ecx
mov ecx, dword [0x140074c64]
or ecx, eax
mov eax, ecx
mov dword [0x140074c64], eax
jmp 0x140041abe
movzx eax, byte [0x140074c8a]
xor eax, dword [rsp + 0x40]
movzx ecx, byte [0x140074c8a]
add ecx, eax
mov eax, ecx
mov byte [0x140074c8a], al
jmp 0x140041abe
cmp dword [0x140074c50], 0
jne 0x140041a43
movsx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140041a43
mov dword [rsp + 0xc0], 0
jmp 0x140041a4e
mov dword [rsp + 0xc0], 1
mov eax, dword [rsp + 0xc0]
mov dword [0x140074c80], eax
jmp 0x140041abe
mov eax, dword [rsp + 0x28]
movzx ecx, al
mov eax, dword [0x140074c50]
shr eax, cl
mov ecx, dword [0x140074c50]
or ecx, eax
mov eax, ecx
mov dword [0x140074c50], eax
movzx eax, byte [0x140074c8a]
mov dword [rsp + 0x100], eax
movsx ecx, byte [rsp + 0x22]
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ecx, dword [rsp + 0x100]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
movsx eax, byte [rsp + 0x24]
mov ecx, dword [0x140074c64]
or ecx, eax
mov eax, ecx
mov dword [0x140074c48], eax
movsx eax, byte [0x140074c5e]
movzx ecx, byte [rsp + 0x20]
cmp eax, ecx
je 0x140041adb
mov dword [rsp + 0xc8], 1
jmp 0x140041ae6
mov dword [rsp + 0xc8], 0
movzx eax, byte [0x140074c89]
cmp dword [rsp + 0x3c], eax
jae 0x140041b00
mov dword [rsp + 0xc4], 1
jmp 0x140041b0b
mov dword [rsp + 0xc4], 0
mov eax, dword [rsp + 0xc4]
cmp dword [rsp + 0xc8], eax
jne 0x140041b8d
movzx eax, byte [0x140074c5c]
mov ecx, dword [rsp + 0x3c]
sar eax, cl
movsx ecx, byte [0x140074c90]
or ecx, eax
mov eax, ecx
mov byte [0x140074c90], al
mov eax, dword [0x140074c2c]
imul eax, dword [rsp + 0x3c]
xor edx, edx
mov ecx, 3
div ecx
mov dword [rsp + 0x40], eax
movsx eax, byte [rsp + 0x23]
mov ecx, dword [0x140074c2c]
imul ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 3
div ecx
mov byte [rsp + 0x21], al
movsx eax, byte [rsp + 0x22]
mov ecx, dword [0x140074c60]
imul ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 3
div ecx
mov eax, edx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
mov ecx, dword [0x140074c4c]
sub ecx, eax
mov eax, ecx
movsx ecx, byte [0x140074c5e]
add ecx, eax
mov eax, ecx
mov byte [0x140074c5e], al
movsx eax, byte [0x140074c5e]
sub eax, dword [rsp + 0x38]
mov dword [0x140074c2c], eax
movsx eax, byte [rsp + 0x22]
mov ecx, dword [0x140074c74]
or ecx, eax
mov eax, ecx
mov dword [0x140074c34], eax
cmp dword [rsp + 0x30], 0
je 0x140041be0
cmp dword [rsp + 0x34], 0
jne 0x140041bf6
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140041bf6
mov dword [rsp + 0xcc], 0
jmp 0x140041c01
mov dword [rsp + 0xcc], 1
mov eax, dword [rsp + 0xcc]
mov ecx, dword [0x140074c70]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c50], eax
movsx eax, byte [rsp + 0x22]
add eax, dword [rsp + 0x30]
movzx ecx, byte [0x140074c8a]
sub eax, ecx
mov ecx, dword [rsp + 0x28]
and ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c80]
xor ecx, eax
mov eax, ecx
mov ecx, dword [0x140074a6c]
sub ecx, eax
mov eax, ecx
mov dword [0x140074a6c], eax
cmp dword [0x140074c60], 0
je 0x140041c7c
movsx eax, byte [rsp + 0x22]
movsx ecx, byte [rsp + 0x21]
add eax, ecx
mov ecx, dword [0x140074c2c]
sar eax, cl
cmp dword [rsp + 0x38], eax
jne 0x140041c7c
mov dword [rsp + 0xd0], 1
jmp 0x140041c87
mov dword [rsp + 0xd0], 0
mov eax, dword [rsp + 0xd0]
mov ecx, dword [0x140074c28]
or ecx, eax
mov eax, ecx
mov dword [0x140074c28], eax
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140041ce2
cmp dword [rsp + 0x38], 0
je 0x140041ce2
movsx eax, byte [rsp + 0x24]
cdq
mov ecx, 3
idiv ecx
mov ecx, dword [0x140074c2c]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x20], al
movsx eax, byte [0x140074c6f]
imul eax, dword [rsp + 0x3c]
xor edx, edx
mov ecx, 3
div ecx
mov dword [rsp + 0x38], eax
movsx eax, byte [0x140074c6e]
movsx ecx, byte [rsp + 0x23]
mov edx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
sub r8d, edx
mov edx, r8d
xor ecx, edx
and eax, ecx
mov byte [0x140074c8a], al
movzx eax, byte [rsp + 0x20]
mov ecx, dword [0x140074c54]
sub ecx, eax
mov eax, ecx
movzx ecx, byte [0x140074c89]
xor ecx, eax
mov eax, ecx
mov byte [0x140074c89], al
movsx eax, byte [rsp + 0x23]
mov ecx, dword [rsp + 0x30]
shl eax, cl
cmp dword [0x140074c64], eax
jne 0x140041d47
mov dword [rsp + 0xd4], 1
jmp 0x140041d52
mov dword [rsp + 0xd4], 0
mov eax, dword [rsp + 0xd4]
mov dword [0x140074c8c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x2c], eax
je 0x140041d76
mov dword [rsp + 0xd8], 1
jmp 0x140041d81
mov dword [rsp + 0xd8], 0
mov eax, dword [0x140074c4c]
cmp dword [rsp + 0xd8], eax
jne 0x140041e6d
mov eax, dword [rsp + 0x28]
movzx ecx, al
mov eax, dword [0x140074c28]
shr eax, cl
or eax, dword [rsp + 0x30]
mov dword [0x140074c30], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
movsx ecx, byte [rsp + 0x24]
or eax, ecx
mov ecx, dword [0x140074c68]
add ecx, eax
mov eax, ecx
mov dword [0x140074c30], eax
movsx eax, byte [0x140074a62]
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
shl edx, cl
mov ecx, edx
mov edx, dword [rsp + 0x3c]
or edx, ecx
mov ecx, edx
sar eax, cl
movzx ecx, byte [0x140074b8f]
xor ecx, eax
mov eax, ecx
mov byte [0x140074b8f], al
movsx eax, byte [rsp + 0x23]
mov ecx, dword [0x140074c8c]
or ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c64]
sub ecx, eax
mov eax, ecx
mov dword [0x140074c64], eax
mov eax, dword [rsp + 0x40]
mov ecx, dword [0x140074c70]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x2c]
shl eax, cl
mov ecx, dword [0x140074c84]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c84], eax
movzx eax, byte [0x140074b8e]
mov dword [rsp + 0x104], eax
mov eax, dword [rsp + 0x2c]
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov ecx, dword [rsp + 0x104]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x20], al
movzx eax, byte [0x140074c5c]
and eax, dword [rsp + 0x2c]
xor eax, dword [rsp + 0x34]
mov ecx, dword [0x140074c8c]
or ecx, eax
mov eax, ecx
mov dword [0x140074c8c], eax
movzx eax, byte [0x140074b8f]
test eax, eax
jne 0x140041eb4
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
test eax, eax
jne 0x140041eb4
mov dword [rsp + 0xdc], 0
jmp 0x140041ebf
mov dword [rsp + 0xdc], 1
mov eax, dword [rsp + 0xdc]
mov dword [0x140074c34], eax
movsx eax, byte [rsp + 0x22]
movsx ecx, byte [rsp + 0x23]
add eax, ecx
mov ecx, dword [rsp + 0x38]
xor ecx, eax
mov eax, ecx
movzx ecx, al
mov eax, dword [0x140074c54]
shr eax, cl
mov dword [0x140074c50], eax
movzx eax, byte [0x140074c89]
mov edx, eax
mov ecx, dword [0x140074c60]
call fcn.14003f380
xor eax, eax
add rsp, 0x118
ret