Function at 0x1001683e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ead6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
and dword [ebp - 0x78], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x34], 0
jmp 0x10016877
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 4
jle 0x10016893
mov byte [ebp - 0x1e], 0
movzx eax, byte [ebp - 0x1e]
test eax, eax
je 0x10016891
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x10016870
push 0
push 0x1fbc
lea eax, [ebp - 0x34]
push eax
push 0x5e4b
call fcn.1001721b
add esp, 0x10
lea ecx, [ebp - 0x148]
call fcn.10018cab
and dword [ebp - 4], 0
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
call fcn.10016663
add esp, 0xc
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp + 0xc]
jae 0x10016f53
mov dword [ebp - 0x14], 0
jmp 0x100168ef
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x10016905
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x118], 0xffffffff
jmp 0x100168e8
mov dword [ebp - 0x14], 0
jmp 0x10016915
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jge 0x1001692b
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0xcc], 9
jmp 0x1001690e
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0xcc], 2
jmp 0x10016959
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xcc]
dec eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0xcc], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0xcc], 0
jl 0x10016a52
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x18], 2
jmp 0x10016984
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x1001699a
mov dword [ebp - 0x68], 0x1c5534bf
mov eax, dword [ebp - 0x68]
dec eax
mov dword [ebp - 0x68], eax
jmp 0x1001697d
mov dword [ebp - 0x18], 0
jmp 0x100169aa
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jg 0x10016a4d
mov dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0x90], 0xffffffff
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x9c], 0
jmp 0x10016a07
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x9c]
inc eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x9c], eax
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x9c], 3
jge 0x10016a2f
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x9c]
mov dword [ebp + eax*4 - 0x118], 0xb844a754
jmp 0x100169ee
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0xcc]
cmp dword [ebp + eax*4 - 0x118], 0
je 0x10016a48
jmp 0x10016a4d
jmp 0x100169a3
jmp 0x1001693e
mov byte [ebp - 0x1f], 0
movzx eax, byte [ebp - 0x1f]
test eax, eax
je 0x10016a6c
push 0x24c
push 0
call fcn.10017403
pop ecx
pop ecx
push 3
lea ecx, [ebp - 0xd8]
call fcn.10018ece
mov byte [ebp - 4], 1
mov dword [ebp - 0xa0], 0xb2bc40ed
mov dword [ebp - 0xa4], 3
mov dword [ebp - 0xa8], 0xffffffff
push 0x7b30
lea eax, [ebp - 0x2c]
push eax
push 1
push 0x72a1
lea eax, [ebp - 0xd8]
push eax
call fcn.100163a2
add esp, 0x14
mov dword [ebp - 0x2c], 0
jmp 0x10016aca
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x10016ae0
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0xfc], 0xffffffff
jmp 0x10016ac3
lea eax, [ebp - 0xa8]
push eax
push 0x2d9
push 1
push 0x288d
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.1001644c
add esp, 0x1c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.10018f36
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xec], 0xfffffffd
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xf8], 0xfffffffd
mov dword [ebp - 0x100], 9
mov dword [ebp - 0x108], 0x696a485b
mov dword [ebp - 0x12c], 0x543beb71
mov dword [ebp - 0x130], 0xfffffffd
mov dword [ebp - 0x128], 0x3f1a0734
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xb0], 9
lea eax, [ebp - 0xb0]
push eax
push 1
push 0x3347
push 0x3387
call fcn.100165ed
add esp, 0x10
and dword [ebp - 0x4c], 0
jmp 0x10016bbb
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x4c], 2
jae 0x10016e05
mov dword [ebp - 0x48], 0xd925b0e4
mov dword [ebp - 0x3c], 0
jmp 0x10016bdc
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 1
jge 0x10016bef
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x1c], 0xfffffffa
jmp 0x10016bd5
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x1c], 0x1c
jmp 0x10016c14
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x1c]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x1c], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x1c], 4
jl 0x10016c57
mov byte [ebp - 0x20], 0
movzx eax, byte [ebp - 0x20]
test eax, eax
je 0x10016c41
push 0x415c
push 0x72a7
push 1
call fcn.10016663
add esp, 0xc
push 0x352d
push 0
push 0x3192
call fcn.100184e1
add esp, 0xc
jmp 0x10016bff
mov dword [ebp - 0x48], 0xfffffff0
jmp 0x10016c67
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jg 0x10016dc5
push 3
lea ecx, [ebp - 0x8c]
call fcn.10018ece
mov byte [ebp - 4], 2
lea eax, [ebp - 0x11c]
push eax
push 1
lea eax, [ebp - 0x8c]
push eax
push 0x58a0
call fcn.100166a7
add esp, 0x10
push 0
lea ecx, [ebp - 0x8c]
call fcn.10018f3b
and dword [eax], 0
jmp 0x10016ccc
push 0
lea ecx, [ebp - 0x8c]
call fcn.10018f3b
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x8c]
call fcn.10018f3b
cmp dword [eax], 0
jg 0x10016db1
mov dword [ebp - 0x44], 0xfffffff6
mov dword [ebp - 0x40], 0
jmp 0x10016cf9
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 2
jge 0x10016d0c
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x74], 0xf5872d9e
jmp 0x10016cf2
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x74], 0
jmp 0x10016d31
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x74]
inc eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x74], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x74], 1
jge 0x10016d52
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x74]
mov dword [ebp + eax*4 - 0x1c], 0x2df3d37a
jmp 0x10016d1c
mov dword [ebp - 0x44], 0
jmp 0x10016d62
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 1
jg 0x10016dac
mov dword [ebp - 0x30], 0x10c13fe6
push 0
lea ecx, [ebp - 0x8c]
call fcn.10018f3b
mov eax, dword [eax]
cmp dword [ebp + eax*4 - 0x1c], 0
je 0x10016d87
jmp 0x10016dac
mov dword [ebp - 0x30], 0
jmp 0x10016d97
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jge 0x10016daa
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x1c], 0
jmp 0x10016d90
jmp 0x10016d5b
jmp 0x10016cb1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.10018f36
jmp 0x10016c60
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x38]
xor edx, edx
div dword [0x100965cc]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
movzx eax, byte [eax + edx]
push eax
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
movzx eax, byte [ecx + eax]
push eax
call fcn.10008c93
pop ecx
pop ecx
mov ecx, dword [ebp - 0xbc]
add ecx, dword [ebp - 0x4c]
mov byte [ecx], al
jmp 0x10016bad
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x60], 0xe4c20f74
mov dword [ebp - 0x28], 0xfffffff7
mov dword [ebp - 0x10], 0
jmp 0x10016e2a
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10016e40
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x154], 0x42ca8cda
jmp 0x10016e23
mov dword [ebp - 0x10], 0
jmp 0x10016e50
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x10016e63
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x80], 0x8b1647c2
jmp 0x10016e49
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x120], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x80]
mov dword [ebp - 0x104], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x80]
mov dword [ebp - 0x64], eax
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x64]
mov dword [ebp + eax - 0x154], ecx
cmp dword [ebp - 0x64], 0
je 0x10016ec0
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x80], 0
je 0x10016ec0
mov dword [ebp - 0xb4], 1
jmp 0x10016ec7
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x124], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x80], 0
mov eax, 0x570e81de
cmp eax, 0xcbc21b07
je 0x10016efa
mov dword [ebp - 0xac], 1
jmp 0x10016f01
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x28], 0x5761ac7e
mov dword [ebp - 0x28], 0
jmp 0x10016f21
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jge 0x10016f34
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x80], 0
jmp 0x10016f1a
lea eax, [ebp - 0x5c]
push eax
push 0x1c6f
lea eax, [ebp - 0x148]
push eax
push 1
call fcn.1001671c
add esp, 0x10
jmp 0x100168d3
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x54], 0
jmp 0x10016f6a
mov eax, dword [ebp - 0x54]
dec eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffe2
je 0x1001700a
mov dword [ebp - 0xb8], 0xfffffff6
push 2
lea ecx, [ebp - 0xe4]
call fcn.10018ece
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], 0
jmp 0x10016f9f
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 2
jge 0x10016fbb
push dword [ebp - 0x50]
lea ecx, [ebp - 0xe4]
call fcn.10018f3b
mov dword [eax], 0x304b25b3
jmp 0x10016f98
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x10016fcf
push 1
call fcn.10016775
pop ecx
push 1
push 0x5f7a
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xe4]
push eax
push 0x4dc9
push 0x24d9
call fcn.100167a3
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xe4]
call fcn.10018f36
jmp 0x10016f63
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x21]
push eax
push 0x7016
push 0
call fcn.100188e4
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call fcn.10018cbe
mov eax, dword [ebp - 0x78]
or eax, 1
mov dword [ebp - 0x78], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x148]
call fcn.10018d08
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret