Function at 0x10020419
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push esi
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x100208ba
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x10020566
mov byte [ebp - 5], 0
movzx eax, byte [ebp - 5]
test eax, eax
je 0x10020561
mov dword [ebp - 0x80], 0x2447
cmp dword [ebp - 0x80], 0x4a4
jge 0x10020559
and dword [ebp - 0x5c], 0
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x100082c4
call fcn.1004eb00
add esp, 0xc
and dword [ebp - 0x78], 0
and dword [ebp - 0x60], 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x100082c4
call fcn.1004eb00
add esp, 0xc
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], eax
jns 0x1002050a
mov eax, dword [ebp - 0x18]
add eax, 0x3c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x10020519
mov eax, dword [ebp - 0xc]
add eax, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xa
jge 0x1002052a
push 0x10008280
call fcn.1004ef5e
pop ecx
push dword [ebp - 0xc]
push 0x100082cc
call fcn.1004ef5e
pop ecx
pop ecx
cmp dword [ebp - 0x18], 0xa
jge 0x1002054a
push 0x10008280
call fcn.1004ef5e
pop ecx
push dword [ebp - 0x18]
push 0x1000816c
call fcn.1004ef5e
pop ecx
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x100208b8
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc8], 0x1402
cmp dword [ebp - 0xc8], 0x11dd
jge 0x100206af
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, 0x10657d50
call fcn.1002a017
mov ecx, eax
call fcn.1002a017
xor ecx, ecx
mov eax, dword [ebp - 4]
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100487e9
pop ecx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x2c], 0
jmp 0x10020618
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 4]
jge 0x10020636
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax*4]
push eax
mov ecx, 0x10657d50
call fcn.1002a017
jmp 0x10020611
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*4]
mov ecx, dword [ebp - 0x10]
call fcn.1002eb6d
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x84], eax
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jge 0x10020696
mov eax, dword [ebp - 4]
dec eax
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + eax*4], 0
jle 0x10020696
mov eax, dword [ebp - 4]
dec eax
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
cmp eax, dword [ebp - 0x84]
jl 0x10020696
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x10020660
push fcn.1002eb17
push dword [ebp - 0x14]
mov ecx, 0x10657c98
call fcn.1002a43c
mov ecx, eax
call fcn.1002a430
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x10020715
mov eax, dword [ebp - 0x20]
mov dword [eax], 0xec32
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x978d8ef0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
sub eax, 0x68727110
cmp eax, 0xfffffff8
jge 0x10020736
mov dword [ebp - 0x48], 1
jmp 0x1002073a
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp dword [ebp - 0x48], eax
jg 0x1002074d
mov dword [ebp - 0x70], 1
jmp 0x10020751
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp dword [ebp - 0x70], eax
je 0x10020764
mov dword [ebp - 0x50], 1
jmp 0x10020768
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x50]
sub ecx, dword [eax]
je 0x10020783
mov eax, dword [ebp - 0x68]
cmp dword [eax], 0
je 0x10020783
mov dword [ebp - 0x58], 1
jmp 0x10020787
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x68]
mov eax, dword [eax]
cmp dword [ebp - 0x58], eax
jg 0x1002079a
mov dword [ebp - 0x38], 1
jmp 0x1002079e
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jge 0x100207b1
mov dword [ebp - 0x3c], 1
jmp 0x100207b5
and dword [ebp - 0x3c], 0
push 0
mov ecx, dword [ebp - 0x30]
call fcn.1002a943
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax]
je 0x100207cf
mov dword [ebp - 0x44], 1
jmp 0x100207d3
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x44]
jge 0x100207e6
mov dword [ebp - 0x4c], 1
jmp 0x100207ea
and dword [ebp - 0x4c], 0
push 0
mov ecx, dword [ebp - 0x30]
call fcn.1002a943
mov esi, dword [ebp - 0x4c]
imul esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x30]
call fcn.1002a943
cmp esi, dword [eax]
jg 0x10020811
mov dword [ebp - 0x54], 1
jmp 0x10020815
and dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 0
je 0x10020827
mov dword [ebp - 0xcc], 1
jmp 0x1002082e
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0xd4], eax
mov eax, 0xfffe
test eax, eax
jne 0x1002084b
mov dword [ebp - 0x34], 1
jmp 0x1002084f
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
je 0x10020882
or eax, 0xffffffff
je 0x10020882
mov eax, dword [ebp - 0x74]
cmp dword [eax], 0
je 0x10020882
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x10020882
mov dword [ebp - 0x64], 1
jmp 0x10020886
and dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 0xfffffff9
jge 0x10020895
mov dword [ebp - 0x6c], 1
jmp 0x10020899
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x6c]
jl 0x100208ac
mov dword [ebp - 0x7c], 1
jmp 0x100208b0
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
jmp 0x100208c8
push 1
push 0x315c
call fcn.1001e1d1
pop ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret