Function at 0x140041f20
Capabilities:
Allocate thread local storage
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x168
mov byte [rsp + 0x25], 0x85
mov dword [rsp + 0x44], 0x78
mov byte [rsp + 0x27], 0x44
mov byte [rsp + 0x20], 0x15
mov byte [rsp + 0x24], 0x34
mov byte [rsp + 0x23], 0x7e
mov dword [rsp + 0x28], 0x5e
mov dword [rsp + 0x38], 0xa
mov dword [rsp + 0x2c], 0x33
mov dword [rsp + 0x30], 0x31
mov byte [rsp + 0x26], 0x7a
mov dword [rsp + 0x34], 0x5d
mov byte [rsp + 0x22], 0x48
mov byte [rsp + 0x21], 0xb
movzx eax, byte [0x140074c8a]
movzx ecx, byte [rsp + 0x22]
cmp eax, ecx
jle 0x1400420f0
movzx eax, byte [rsp + 0x23]
movsx ecx, byte [0x140074c6e]
cmp eax, ecx
jge 0x1400420f0
movzx eax, byte [0x140074c8b]
test eax, eax
jne 0x140041fd9
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x34]
xor ecx, eax
mov eax, ecx
test eax, eax
jne 0x140041fd9
mov dword [rsp + 0x6c], 0
jmp 0x140041fe1
mov dword [rsp + 0x6c], 1
mov eax, dword [rsp + 0x6c]
mov ecx, dword [0x140074c60]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c60], eax
movzx eax, byte [rsp + 0x24]
mov ecx, dword [0x140074a68]
sub ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c28]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c28], eax
movzx eax, byte [0x140074c6d]
movzx ecx, byte [rsp + 0x21]
movzx edx, byte [rsp + 0x22]
sub ecx, edx
sar eax, cl
movsx ecx, byte [0x140074a62]
add ecx, eax
mov eax, ecx
mov byte [0x140074a62], al
movzx eax, byte [rsp + 0x23]
cdq
mov ecx, 5
idiv ecx
mov eax, edx
mov ecx, dword [0x140074c80]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14004207a
movzx eax, byte [rsp + 0x22]
movzx ecx, byte [rsp + 0x24]
xor eax, ecx
test eax, eax
je 0x14004207a
mov dword [rsp + 0x70], 1
jmp 0x140042082
mov dword [rsp + 0x70], 0
movsx eax, byte [0x140074c5d]
and eax, dword [rsp + 0x70]
movzx ecx, byte [0x140074c8a]
sub ecx, eax
mov eax, ecx
mov byte [0x140074c8a], al
mov eax, dword [rsp + 0x28]
mov ecx, dword [0x140074c48]
add ecx, eax
mov eax, ecx
movzx ecx, byte [rsp + 0x20]
mov edx, dword [rsp + 0x44]
sub edx, ecx
mov ecx, edx
or eax, ecx
test eax, eax
je 0x1400420d4
movsx eax, byte [0x140074c6c]
test eax, eax
je 0x1400420d4
mov dword [rsp + 0x74], 1
jmp 0x1400420dc
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x74]
mov ecx, dword [0x140074c30]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c30], eax
movzx eax, byte [0x140074c6d]
imul eax, eax, 3
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
cdq
mov ecx, 0xa
idiv ecx
mov eax, edx
mov word [rsp + 0x64], ax
movsx eax, word [rsp + 0x64]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14004213f
cmp dword [rsp + 0x48], 1
je 0x14004215f
cmp dword [rsp + 0x48], 2
je 0x1400421a4
cmp dword [rsp + 0x48], 3
je 0x14004220d
jmp 0x14004228c
movzx eax, byte [0x140074c88]
movzx ecx, byte [rsp + 0x27]
imul eax, ecx
cdq
mov ecx, 3
idiv ecx
mov byte [rsp + 0x25], al
jmp 0x140042352
movzx eax, byte [rsp + 0x21]
movzx ecx, byte [rsp + 0x24]
or eax, ecx
test eax, eax
je 0x140042182
movzx eax, byte [rsp + 0x25]
test eax, eax
je 0x140042182
mov dword [rsp + 0x78], 1
jmp 0x14004218a
mov dword [rsp + 0x78], 0
mov eax, dword [rsp + 0x78]
movzx ecx, al
mov eax, dword [0x140074c3c]
shl eax, cl
mov dword [0x140074a68], eax
jmp 0x140042352
movzx eax, byte [rsp + 0x25]
cmp eax, dword [rsp + 0x28]
jne 0x1400421b9
mov dword [rsp + 0x7c], 1
jmp 0x1400421c1
mov dword [rsp + 0x7c], 0
movzx eax, byte [0x140074c88]
movzx ecx, byte [rsp + 0x24]
mov edx, dword [rsp + 0x7c]
or edx, ecx
mov ecx, edx
cmp eax, ecx
jne 0x1400421e6
mov dword [rsp + 0x80], 1
jmp 0x1400421f1
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x80]
mov ecx, dword [0x140074c50]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c50], eax
jmp 0x140042352
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140042233
movzx eax, byte [rsp + 0x25]
movzx ecx, byte [rsp + 0x24]
xor eax, ecx
test eax, eax
je 0x140042233
mov dword [rsp + 0x84], 1
jmp 0x14004223e
mov dword [rsp + 0x84], 0
mov eax, dword [rsp + 0x84]
mov ecx, dword [0x140074c74]
sub ecx, eax
mov eax, ecx
mov byte [0x140074c5c], al
cmp dword [0x140074a68], 0
je 0x140042267
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140042277
movzx eax, byte [rsp + 0x25]
test eax, eax
jne 0x140042277
mov byte [rsp + 0x3c], 0
jmp 0x14004227c
mov byte [rsp + 0x3c], 1
movzx eax, byte [rsp + 0x3c]
mov byte [0x140074c90], al
jmp 0x140042352
movzx eax, byte [rsp + 0x26]
movzx ecx, byte [rsp + 0x22]
cmp eax, ecx
jne 0x1400422a7
mov dword [rsp + 0x88], 1
jmp 0x1400422b2
mov dword [rsp + 0x88], 0
movzx eax, byte [0x140074c89]
mov ecx, dword [rsp + 0x28]
sar eax, cl
and eax, dword [rsp + 0x88]
test eax, eax
je 0x1400422e0
cmp dword [0x140074c54], 0
je 0x1400422e0
mov dword [rsp + 0x8c], 1
jmp 0x1400422eb
mov dword [rsp + 0x8c], 0
mov eax, dword [rsp + 0x8c]
mov ecx, dword [0x140074c30]
sub ecx, eax
mov eax, ecx
mov dword [0x140074c30], eax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x30]
xor ecx, eax
mov eax, ecx
test eax, eax
je 0x140042326
cmp dword [rsp + 0x2c], 0
je 0x140042326
mov dword [rsp + 0x90], 1
jmp 0x140042331
mov dword [rsp + 0x90], 0
mov eax, dword [rsp + 0x90]
mov ecx, dword [0x140074c4c]
or ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c80]
sub ecx, eax
mov eax, ecx
mov dword [0x140074c80], eax
movzx eax, byte [rsp + 0x20]
movzx ecx, byte [0x140074b8f]
lea eax, [rax + rcx*2]
cdq
and eax, 1
xor eax, edx
sub eax, edx
mov dword [rsp + 0x124], eax
mov eax, dword [rsp + 0x124]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1400423a4
cmp dword [rsp + 0x4c], 1
je 0x1400423fb
cmp dword [rsp + 0x4c], 2
je 0x140042463
cmp dword [rsp + 0x4c], 3
je 0x1400424ad
jmp 0x140042532
movzx eax, byte [rsp + 0x20]
movzx ecx, byte [rsp + 0x22]
and ecx, dword [rsp + 0x38]
xor eax, ecx
mov ecx, dword [0x140074c30]
and ecx, eax
mov eax, ecx
mov byte [0x140074a63], al
movzx eax, byte [rsp + 0x20]
add eax, dword [rsp + 0x38]
movzx ecx, al
mov eax, dword [0x140074c38]
sar eax, cl
movzx ecx, byte [rsp + 0x25]
and eax, ecx
or eax, dword [0x140074c3c]
movsx ecx, byte [0x140074c90]
xor ecx, eax
mov eax, ecx
mov byte [0x140074c90], al
jmp 0x1400425ca
movzx eax, byte [rsp + 0x26]
movzx ecx, byte [rsp + 0x21]
cmp eax, ecx
jne 0x140042416
mov dword [rsp + 0x94], 1
jmp 0x140042421
mov dword [rsp + 0x94], 0
mov eax, dword [rsp + 0x94]
mov ecx, dword [0x140074c4c]
xor ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c50]
or ecx, eax
mov eax, ecx
mov dword [0x140074c50], eax
movzx eax, byte [0x140074b8e]
sub eax, dword [rsp + 0x30]
movsx ecx, byte [0x140074a63]
xor ecx, eax
mov eax, ecx
mov byte [0x140074a63], al
jmp 0x1400425ca
mov eax, dword [rsp + 0x44]
cmp dword [0x140074c74], eax
jne 0x14004247c
mov dword [rsp + 0x98], 1
jmp 0x140042487
mov dword [rsp + 0x98], 0
movzx eax, byte [rsp + 0x22]
mov ecx, dword [rsp + 0x98]
xor ecx, eax
mov eax, ecx
movzx ecx, byte [0x140074c5c]
and ecx, eax
mov eax, ecx
mov byte [0x140074c5c], al
jmp 0x1400425ca
movsx eax, byte [0x140074c5e]
mov dword [rsp + 0x128], eax
xor edx, edx
mov eax, dword [rsp + 0x38]
mov ecx, 4
div ecx
mov ecx, dword [rsp + 0x128]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
mov ecx, dword [0x140074c60]
sub ecx, eax
mov eax, ecx
movzx ecx, byte [rsp + 0x22]
mov edx, dword [rsp + 0x38]
shr edx, cl
mov ecx, edx
and eax, ecx
test eax, eax
jne 0x14004250e
cmp dword [0x140074c70], 0
jne 0x14004250e
mov dword [rsp + 0x9c], 0
jmp 0x140042519
mov dword [rsp + 0x9c], 1
movzx eax, byte [0x140074c88]
or eax, dword [rsp + 0x9c]
mov byte [0x140074c88], al
jmp 0x1400425ca
movzx eax, byte [rsp + 0x21]
mov ecx, dword [0x140074c54]
xor ecx, eax
mov eax, ecx
movzx ecx, byte [rsp + 0x23]
or eax, ecx
mov dword [0x140074c54], eax
movzx eax, byte [rsp + 0x24]
movzx ecx, byte [rsp + 0x22]
movzx edx, byte [rsp + 0x21]
add ecx, edx
sub ecx, dword [0x140074c74]
cmp eax, ecx
jne 0x140042576
mov dword [rsp + 0xa0], 1
jmp 0x140042581
mov dword [rsp + 0xa0], 0
mov eax, dword [rsp + 0xa0]
mov ecx, dword [0x140074c80]
xor ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c50]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c50], eax
mov eax, dword [rsp + 0x44]
movzx ecx, al
mov eax, dword [0x140074c8c]
shl eax, cl
mov ecx, dword [rsp + 0x2c]
shr eax, cl
movzx ecx, byte [rsp + 0x20]
shl eax, cl
or eax, dword [0x140074c2c]
mov dword [0x140074c50], eax
mov dword [rsp + 0x50], 0x1bb
mov dword [rsp + 0x50], 0x279
jmp 0x1400425e6
mov eax, dword [rsp + 0x50]
dec eax
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jle 0x14004261b
movsx eax, byte [0x140074c6c]
mov dword [rsp + 0x12c], eax
xor edx, edx
mov eax, dword [rsp + 0x34]
mov ecx, 4
div ecx
mov eax, edx
mov ecx, dword [rsp + 0x12c]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x26], al
jmp 0x1400425dc
movsx eax, byte [0x140074a63]
mov dword [rsp + 0x130], eax
mov eax, dword [rsp + 0x28]
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov ecx, dword [rsp + 0x130]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x27], al
mov eax, dword [rsp + 0x30]
movzx ecx, al
mov eax, dword [0x140074c3c]
shr eax, cl
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x38]
shr edx, cl
mov ecx, edx
mov dword [rsp + 0x134], ecx
movsx edx, byte [0x140074c90]
movzx ecx, dl
mov edx, dword [rsp + 0x134]
shl edx, cl
mov ecx, edx
or eax, ecx
mov byte [0x140074c5d], al
cmp dword [0x140074c74], 0
je 0x1400426ce
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x30], eax
jne 0x1400426a6
mov dword [rsp + 0xa4], 1
jmp 0x1400426b1
mov dword [rsp + 0xa4], 0
movzx eax, byte [rsp + 0x22]
and eax, dword [rsp + 0xa4]
and eax, dword [0x140074a68]
test eax, eax
je 0x1400426ce
mov byte [rsp + 0x3d], 1
jmp 0x1400426d3
mov byte [rsp + 0x3d], 0
movzx eax, byte [rsp + 0x3d]
mov byte [0x140074c6e], al
movzx eax, byte [rsp + 0x27]
cmp dword [rsp + 0x30], eax
jne 0x1400426f6
mov dword [rsp + 0xa8], 1
jmp 0x140042701
mov dword [rsp + 0xa8], 0
movsx eax, byte [0x140074c6e]
xor eax, dword [rsp + 0xa8]
movzx ecx, byte [0x140074c5f]
add ecx, eax
mov eax, ecx
mov byte [0x140074c5f], al
movzx eax, byte [0x140074c5c]
movzx ecx, byte [rsp + 0x20]
and eax, ecx
mov ecx, dword [0x140074c80]
or ecx, eax
mov eax, ecx
mov dword [0x140074c80], eax
movzx eax, byte [rsp + 0x26]
movzx ecx, byte [rsp + 0x23]
cmp eax, ecx
jne 0x140042766
mov eax, dword [0x140074c4c]
imul eax, dword [rsp + 0x44]
xor edx, edx
mov ecx, 5
div ecx
mov eax, edx
mov byte [rsp + 0x20], al
movzx eax, byte [0x140074c6d]
movzx ecx, byte [rsp + 0x22]
add eax, ecx
movzx ecx, byte [rsp + 0x20]
add eax, ecx
or eax, dword [rsp + 0x2c]
movsx ecx, byte [0x140074a63]
or eax, ecx
movzx ecx, byte [0x140074b8f]
or ecx, eax
mov eax, ecx
mov byte [0x140074b8f], al
movzx eax, byte [rsp + 0x20]
mov ecx, dword [0x140074c38]
add ecx, eax
mov eax, ecx
test eax, eax
jne 0x1400427c2
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x1400427c2
mov dword [rsp + 0xac], 0
jmp 0x1400427cd
mov dword [rsp + 0xac], 1
movzx eax, byte [0x140074b8e]
xor eax, dword [rsp + 0xac]
mov byte [0x140074b8e], al
mov dword [rsp + 0x54], 0x60
mov dword [rsp + 0x54], 0xd
jmp 0x1400427fd
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x12a
jae 0x140042826
movsx eax, byte [0x140074a63]
movzx ecx, byte [rsp + 0x27]
imul eax, ecx
cdq
mov ecx, 3
idiv ecx
mov eax, edx
mov byte [rsp + 0x27], al
jmp 0x1400427f3
movzx eax, byte [0x140074b8f]
and eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140042856
movzx eax, byte [rsp + 0x24]
movsx ecx, byte [0x140074c6c]
mov edx, dword [rsp + 0x34]
shl edx, cl
mov ecx, edx
xor eax, ecx
test eax, eax
jne 0x140042856
mov byte [rsp + 0x3e], 0
jmp 0x14004285b
mov byte [rsp + 0x3e], 1
movzx eax, byte [rsp + 0x3e]
mov byte [0x140074c5f], al
movsx eax, byte [0x140074c6e]
movzx ecx, byte [rsp + 0x25]
sub eax, ecx
movzx ecx, byte [rsp + 0x20]
sar eax, cl
mov dword [0x140074a6c], eax
movzx eax, byte [0x140074c8a]
movzx ecx, byte [rsp + 0x23]
mov edx, dword [rsp + 0x34]
add edx, ecx
mov ecx, edx
mov edx, dword [rsp + 0x30]
xor edx, ecx
mov ecx, edx
sub eax, ecx
mov ecx, dword [0x140074a6c]
and ecx, eax
mov eax, ecx
mov dword [0x140074a6c], eax
movzx eax, byte [rsp + 0x23]
cmp dword [rsp + 0x2c], eax
jne 0x1400428c7
mov dword [rsp + 0xb0], 1
jmp 0x1400428d2
mov dword [rsp + 0xb0], 0
mov eax, dword [rsp + 0x34]
mov ecx, dword [0x140074c3c]
xor ecx, eax
mov eax, ecx
or eax, dword [rsp + 0xb0]
movzx ecx, byte [0x140074b8e]
or eax, ecx
mov ecx, dword [0x140074a64]
or ecx, eax
mov eax, ecx
mov dword [0x140074a64], eax
movzx eax, byte [rsp + 0x26]
mov ecx, dword [0x140074c80]
sub ecx, eax
mov eax, ecx
movzx ecx, byte [rsp + 0x27]
shl eax, cl
movzx ecx, byte [rsp + 0x23]
add ecx, dword [0x140074c2c]
xor eax, ecx
movzx ecx, byte [0x140074b8e]
add ecx, eax
mov eax, ecx
mov byte [0x140074b8e], al
cmp dword [0x140074c30], 0
jne 0x140042959
movzx eax, byte [rsp + 0x24]
mov ecx, dword [rsp + 0x2c]
sar eax, cl
test eax, eax
jne 0x140042959
mov dword [rsp + 0xb4], 0
jmp 0x140042964
mov dword [rsp + 0xb4], 1
movsx eax, byte [0x140074c6f]
xor eax, dword [rsp + 0xb4]
mov byte [0x140074c6f], al
cmp dword [0x140074c34], 0
je 0x140042995
cmp dword [rsp + 0x28], 0
je 0x140042995
mov dword [rsp + 0xb8], 1
jmp 0x1400429a0
mov dword [rsp + 0xb8], 0
mov eax, dword [rsp + 0xb8]
mov ecx, dword [0x140074c84]
sub ecx, eax
mov eax, ecx
mov dword [0x140074c84], eax
movsx eax, byte [0x140074c5e]
movzx ecx, byte [rsp + 0x23]
mov dword [rsp + 0x138], ecx
movzx edx, byte [rsp + 0x22]
movzx ecx, dl
mov edx, dword [rsp + 0x38]
shr edx, cl
mov ecx, edx
mov edx, dword [rsp + 0x138]
and edx, ecx
mov ecx, edx
and eax, ecx
movsx ecx, byte [0x140074c5e]
sub ecx, eax
mov eax, ecx
mov byte [0x140074c5e], al
movzx eax, byte [rsp + 0x26]
test eax, eax
je 0x140042a1b
movzx eax, byte [rsp + 0x23]
sub eax, dword [rsp + 0x38]
test eax, eax
je 0x140042a1b
mov dword [rsp + 0xbc], 1
jmp 0x140042a26
mov dword [rsp + 0xbc], 0
mov eax, dword [rsp + 0xbc]
mov ecx, dword [0x140074c2c]
or ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c74]
or ecx, eax
mov eax, ecx
mov dword [0x140074c74], eax
cmp dword [0x140074c70], 0
jne 0x140042a6f
movzx eax, byte [rsp + 0x21]
movzx ecx, al
mov eax, dword [rsp + 0x38]
shr eax, cl
test eax, eax
jne 0x140042a6f
mov dword [rsp + 0xc0], 0
jmp 0x140042a7a
mov dword [rsp + 0xc0], 1
movzx eax, byte [0x140074b8f]
sub eax, dword [rsp + 0xc0]
mov byte [0x140074b8f], al
movzx eax, byte [rsp + 0x25]
mov ecx, dword [0x140074c84]
or ecx, eax
mov eax, ecx
mov dword [0x140074c70], eax
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140042ac9
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x140042abc
cmp dword [rsp + 0x30], 0
jne 0x140042ac9
mov dword [rsp + 0xc4], 0
jmp 0x140042ad4
mov dword [rsp + 0xc4], 1
mov eax, dword [rsp + 0xc4]
mov ecx, dword [0x140074c48]
xor ecx, eax
mov eax, ecx
mov ecx, dword [0x140074a68]
add ecx, eax
mov eax, ecx
mov dword [0x140074a68], eax
movzx eax, byte [rsp + 0x27]
cmp dword [0x140074c84], eax
jne 0x140042b0f
mov dword [rsp + 0xc8], 1
jmp 0x140042b1a
mov dword [rsp + 0xc8], 0
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
movzx ecx, byte [0x140074c8b]
shr eax, cl
mov ecx, dword [rsp + 0xc8]
or ecx, eax
mov eax, ecx
mov byte [0x140074c6e], al
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
test eax, eax
je 0x140042b64
cmp dword [rsp + 0x34], 0
je 0x140042b64
mov dword [rsp + 0xcc], 1
jmp 0x140042b6f
mov dword [rsp + 0xcc], 0
mov eax, dword [rsp + 0xcc]
cmp dword [0x140074c4c], eax
jne 0x140042b8b
mov dword [rsp + 0xd0], 1
jmp 0x140042b96
mov dword [rsp + 0xd0], 0
movzx eax, byte [0x140074c5f]
sub eax, dword [rsp + 0xd0]
mov byte [0x140074c5f], al
mov dword [rsp + 0x58], 0x98
mov dword [rsp + 0x58], 0x12c
jmp 0x140042bc6
mov eax, dword [rsp + 0x58]
dec eax
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x2a
jbe 0x140042cc9
movzx eax, byte [rsp + 0x26]
mov ecx, dword [0x140074c8c]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140042bf2
cmp dword [rsp + 0x34], 0
je 0x140042bf2
mov byte [rsp + 0x3f], 1
jmp 0x140042bf7
mov byte [rsp + 0x3f], 0
movzx eax, byte [rsp + 0x3f]
mov byte [0x140074c90], al
mov eax, dword [rsp + 0x28]
cmp dword [0x140074c60], eax
jne 0x140042c1b
mov dword [rsp + 0xd4], 1
jmp 0x140042c26
mov dword [rsp + 0xd4], 0
movzx eax, byte [rsp + 0x23]
movzx ecx, byte [rsp + 0x24]
movzx edx, byte [0x140074c5c]
add ecx, edx
shl eax, cl
mov ecx, dword [rsp + 0xd4]
or ecx, eax
mov eax, ecx
mov byte [0x140074c90], al
mov eax, dword [rsp + 0x28]
mov ecx, dword [0x140074a68]
or ecx, eax
mov eax, ecx
test eax, eax
jne 0x140042c85
movzx eax, byte [rsp + 0x24]
mov ecx, dword [rsp + 0x34]
sar eax, cl
test eax, eax
je 0x140042c78
movzx eax, byte [0x140074c6d]
test eax, eax
jne 0x140042c85
mov dword [rsp + 0xd8], 0
jmp 0x140042c90
mov dword [rsp + 0xd8], 1
mov eax, dword [rsp + 0xd8]
mov ecx, dword [0x140074c30]
add ecx, eax
mov eax, ecx
mov dword [0x140074c30], eax
movsx eax, byte [0x140074c5d]
mov ecx, dword [rsp + 0x2c]
sar eax, cl
mov ecx, dword [0x140074c38]
sub ecx, eax
mov eax, ecx
mov dword [0x140074c38], eax
jmp 0x140042bbc
movzx eax, byte [rsp + 0x21]
mov ecx, dword [0x140074c64]
xor ecx, eax
mov eax, ecx
test eax, eax
jne 0x140042d05
movzx eax, byte [rsp + 0x24]
movzx ecx, byte [rsp + 0x26]
mov edx, dword [0x140074a64]
add edx, eax
mov eax, edx
add ecx, eax
mov eax, ecx
test eax, eax
jne 0x140042d05
mov dword [rsp + 0xdc], 0
jmp 0x140042d10
mov dword [rsp + 0xdc], 1
mov eax, dword [rsp + 0xdc]
mov ecx, dword [0x140074a6c]
sub ecx, eax
mov eax, ecx
mov dword [0x140074a6c], eax
movsx eax, byte [0x140074a63]
movzx ecx, byte [rsp + 0x25]
sub eax, ecx
test eax, eax
jne 0x140042d5c
movzx eax, byte [rsp + 0x21]
movzx ecx, byte [rsp + 0x22]
sub ecx, dword [0x140074c8c]
xor eax, ecx
test eax, eax
jne 0x140042d5c
mov dword [rsp + 0xe0], 0
jmp 0x140042d67
mov dword [rsp + 0xe0], 1
movzx eax, byte [0x140074c5c]
or eax, dword [rsp + 0xe0]
mov byte [0x140074c5c], al
movzx eax, byte [rsp + 0x22]
xor eax, dword [rsp + 0x30]
test eax, eax
je 0x140042d9e
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140042d9e
mov dword [rsp + 0xe4], 1
jmp 0x140042da9
mov dword [rsp + 0xe4], 0
mov eax, dword [rsp + 0xe4]
mov ecx, dword [0x140074c28]
xor ecx, eax
mov eax, ecx
movzx ecx, byte [0x140074b8e]
sub ecx, eax
mov eax, ecx
mov byte [0x140074b8e], al
movsx eax, byte [0x140074c5e]
imul eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 5
div ecx
mov eax, edx
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x23]
mov ecx, dword [0x140074c60]
sub ecx, eax
mov eax, ecx
movzx ecx, byte [rsp + 0x25]
shr eax, cl
test eax, eax
jne 0x140042e20
movzx eax, byte [0x140074b8f]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
test eax, eax
jne 0x140042e20
mov dword [rsp + 0xe8], 0
jmp 0x140042e2b
mov dword [rsp + 0xe8], 1
mov eax, dword [rsp + 0xe8]
mov ecx, dword [0x140074c60]
and ecx, eax
mov eax, ecx
mov dword [0x140074c60], eax
movzx eax, byte [rsp + 0x20]
movsx ecx, byte [0x140074c5e]
add eax, ecx
cdq
mov ecx, 6
idiv ecx
mov eax, edx
mov dword [rsp + 0x13c], eax
mov eax, dword [rsp + 0x13c]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x140042e95
cmp dword [rsp + 0x5c], 1
je 0x140042edd
cmp dword [rsp + 0x5c], 2
je 0x140042f35
cmp dword [rsp + 0x5c], 3
je 0x140042f7e
jmp 0x140042fb1
movsx eax, byte [0x140074c5d]
mov ecx, dword [rsp + 0x30]
shl eax, cl
test eax, eax
jne 0x140042ec8
movzx eax, byte [rsp + 0x25]
movsx ecx, byte [0x140074a62]
sub eax, ecx
movzx ecx, al
mov eax, dword [rsp + 0x28]
sar eax, cl
test eax, eax
jne 0x140042ec8
mov byte [rsp + 0x40], 0
jmp 0x140042ecd
mov byte [rsp + 0x40], 1
movzx eax, byte [rsp + 0x40]
mov byte [0x140074c8b], al
jmp 0x140042fb1
movsx eax, byte [0x140074c5e]
mov ecx, dword [rsp + 0x2c]
shl eax, cl
movzx ecx, byte [rsp + 0x27]
xor eax, ecx
test eax, eax
jne 0x140042f14
movzx eax, byte [rsp + 0x26]
movsx ecx, byte [0x140074c6f]
shl eax, cl
test eax, eax
jne 0x140042f14
mov dword [rsp + 0xec], 0
jmp 0x140042f1f
mov dword [rsp + 0xec], 1
movzx eax, byte [0x140074b8f]
sub eax, dword [rsp + 0xec]
mov byte [0x140074b8f], al
jmp 0x140042fb1
movzx eax, byte [0x140074c6d]
add eax, dword [rsp + 0x34]
mov ecx, dword [0x140074c68]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c68], eax
movzx eax, byte [0x140074c89]
mov dword [rsp + 0x140], eax
xor edx, edx
mov eax, dword [rsp + 0x2c]
mov ecx, 3
div ecx
mov eax, edx
mov ecx, dword [rsp + 0x140]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x20], al
jmp 0x140042fb1
movzx eax, byte [rsp + 0x22]
mov ecx, dword [rsp + 0x44]
sar eax, cl
mov ecx, dword [0x140074c4c]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c74], eax
mov eax, dword [0x140074c8c]
imul eax, dword [rsp + 0x38]
xor edx, edx
mov ecx, 4
div ecx
mov byte [rsp + 0x23], al
cmp dword [rsp + 0x2c], 0
je 0x140042fe3
mov eax, dword [0x140074c84]
cmp dword [rsp + 0x28], eax
jne 0x140042fe3
movzx eax, byte [rsp + 0x25]
mov ecx, dword [0x140074c60]
imul ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 3
div ecx
mov eax, edx
mov byte [rsp + 0x21], al
cmp dword [0x140074c60], 0
jne 0x140043026
movzx eax, byte [rsp + 0x23]
movzx ecx, byte [rsp + 0x26]
sub ecx, dword [rsp + 0x44]
mov dword [rsp + 0x144], ecx
mov edx, dword [0x140074c80]
movzx ecx, dl
mov edx, dword [rsp + 0x144]
shr edx, cl
mov ecx, edx
cmp eax, ecx
je 0x140043026
mov dword [rsp + 0xf0], 0
jmp 0x140043031
mov dword [rsp + 0xf0], 1
mov eax, dword [rsp + 0xf0]
mov dword [0x140074c80], eax
movsx eax, byte [0x140074a63]
mov ecx, dword [rsp + 0x44]
shl eax, cl
or eax, dword [rsp + 0x30]
movzx ecx, byte [0x140074c89]
and ecx, eax
mov eax, ecx
mov byte [0x140074c89], al
mov dword [rsp + 0x68], 0xf3
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x148], eax
mov eax, dword [rsp + 0x68]
dec eax
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x148], 0
je 0x1400430c2
movsx eax, byte [0x140074a62]
movzx ecx, byte [rsp + 0x20]
add eax, ecx
cmp eax, dword [rsp + 0x28]
jne 0x1400430a8
mov dword [rsp + 0xf4], 1
jmp 0x1400430b3
mov dword [rsp + 0xf4], 0
mov eax, dword [rsp + 0xf4]
mov dword [0x140074c70], eax
jmp 0x140043068
mov eax, dword [rsp + 0x28]
mov ecx, dword [0x140074c48]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x30]
jne 0x1400430e3
mov dword [rsp + 0xf8], 1
jmp 0x1400430ee
mov dword [rsp + 0xf8], 0
movzx eax, byte [rsp + 0x24]
cmp dword [rsp + 0xf8], eax
jne 0x140043109
mov dword [rsp + 0xfc], 1
jmp 0x140043114
mov dword [rsp + 0xfc], 0
mov eax, dword [0x140074c80]
cmp dword [rsp + 0xfc], eax
jne 0x140043130
mov dword [rsp + 0x100], 1
jmp 0x14004313b
mov dword [rsp + 0x100], 0
movsx eax, byte [0x140074c6e]
sub eax, dword [rsp + 0x100]
mov byte [0x140074c6e], al
movsx eax, byte [0x140074c5d]
movzx ecx, byte [rsp + 0x25]
imul eax, ecx
cdq
mov ecx, 3
idiv ecx
mov eax, edx
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x20]
movzx ecx, byte [rsp + 0x23]
sub eax, ecx
test eax, eax
je 0x140043190
cmp dword [rsp + 0x38], 0
je 0x140043190
mov dword [rsp + 0x104], 1
jmp 0x14004319b
mov dword [rsp + 0x104], 0
movzx eax, byte [0x140074b8f]
and eax, dword [rsp + 0x104]
mov ecx, dword [0x140074c60]
xor ecx, eax
mov eax, ecx
mov dword [0x140074c60], eax
movzx eax, byte [rsp + 0x21]
mov ecx, dword [0x140074a68]
lea eax, [rax + rcx*2]
xor edx, edx
mov ecx, 8
div ecx
mov eax, edx
mov dword [rsp + 0x14c], eax
mov eax, dword [rsp + 0x14c]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14004320d
cmp dword [rsp + 0x60], 1
je 0x14004325b
cmp dword [rsp + 0x60], 2
je 0x1400432d3
cmp dword [rsp + 0x60], 3
je 0x1400432ed
jmp 0x14004339f
movzx eax, byte [rsp + 0x23]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
cmp dword [0x140074c38], eax
jne 0x14004322f
mov dword [rsp + 0x108], 1
jmp 0x14004323a
mov dword [rsp + 0x108], 0
movzx eax, byte [rsp + 0x21]
add eax, dword [0x140074c34]
mov ecx, dword [rsp + 0x108]
or ecx, eax
mov eax, ecx
mov dword [0x140074c38], eax
jmp 0x1400433b4
movzx eax, byte [0x140074c5f]
add eax, dword [rsp + 0x44]
movzx ecx, byte [rsp + 0x20]
cmp eax, ecx
jne 0x14004327c
mov dword [rsp + 0x110], 1
jmp 0x140043287
mov dword [rsp + 0x110], 0
movsx eax, byte [0x140074c6c]
cmp dword [rsp + 0x44], eax
jne 0x1400432a1
mov dword [rsp + 0x10c], 1
jmp 0x1400432ac
mov dword [rsp + 0x10c], 0
mov eax, dword [rsp + 0x10c]
mov ecx, dword [rsp + 0x110]
or ecx, eax
mov eax, ecx
mov ecx, dword [0x140074c30]
add ecx, eax
mov eax, ecx
mov dword [0x140074c30], eax
jmp 0x1400433b4
mov eax, dword [rsp + 0x2c]
movzx ecx, al
mov eax, dword [0x140074c34]
shl eax, cl
mov dword [0x140074c38], eax
jmp 0x1400433b4
mov eax, dword [rsp + 0x30]
movzx ecx, al
mov eax, dword [0x140074c64]
sar eax, cl
test eax, eax
je 0x140043316
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x140043316
mov dword [rsp + 0x114], 1
jmp 0x140043321
mov dword [rsp + 0x114], 0
movzx eax, byte [0x140074c8b]
add eax, dword [rsp + 0x114]
mov byte [0x140074c8b], al
movzx eax, byte [rsp + 0x24]
mov ecx, dword [rsp + 0x2c]
shl eax, cl
cmp dword [rsp + 0x28], eax
jne 0x140043353
mov dword [rsp + 0x118], 1
jmp 0x14004335e
mov dword [rsp + 0x118], 0
movzx eax, byte [0x140074c5c]
cmp eax, dword [rsp + 0x118]
jne 0x14004337b
mov dword [rsp + 0x11c], 1
jmp 0x140043386
mov dword [rsp + 0x11c], 0
mov eax, dword [rsp + 0x11c]
mov ecx, dword [0x140074a64]
sub ecx, eax
mov eax, ecx
mov dword [0x140074a64], eax
jmp 0x1400433b4
movzx eax, byte [rsp + 0x22]
mov ecx, dword [0x140074c64]
sub ecx, eax
mov eax, ecx
mov byte [0x140074c6e], al
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp dword [0x140074c80], 0
je 0x1400433d7
cmp dword [rsp + 0x38], 0
je 0x1400433d7
mov dword [rsp + 0x120], 1
jmp 0x1400433e2
mov dword [rsp + 0x120], 0
mov eax, dword [rsp + 0x120]
mov ecx, dword [0x140074c70]
or ecx, eax
mov eax, ecx
mov dword [0x140074c70], eax
movzx eax, byte [0x140074c5f]
mov dword [rsp + 0x150], eax
movzx ecx, byte [rsp + 0x20]
mov eax, ecx
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov ecx, dword [rsp + 0x150]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x26], al
movzx eax, byte [0x140074c89]
movzx ecx, byte [0x140074c89]
mov r8d, eax
movzx edx, byte [0x140074c6c]
call fcn.140040c10
xor eax, eax
add rsp, 0x168
ret