Function at 0x10021fe2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax*8 + 0x10082240], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax*8 + 0x10082244], ecx
mov eax, dword [0x10082238]
dec eax
cmp dword [ebp + 8], eax
jne 0x10022067
and dword [ebp - 4], 0
jmp 0x10022017
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [0x10082238]
jge 0x10022051
cmp dword [ebp - 4], 0
je 0x10022034
mov dl, 0x20
mov ecx, 0x10080d38
call fcn.10029f6a
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x10082244]
push dword [eax*8 + 0x10082240]
mov ecx, 0x10080d38
call fcn.1000b7ed
jmp 0x10022010
push 0x10029f38
mov ecx, 0x10080d38
call fcn.10027401
push 0
call fcn.1004ce2f
push 0
push 3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100642b0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
or eax, dword [ebp - 0x18]
jne 0x1002215f
push 0
push 3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10064200
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x10083f84
call fcn.1002783c
test eax, eax
je 0x1002215f
push 0
push 3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10064200
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x10083f84
call fcn.100277e4
cmp dword [eax], 0
jle 0x1002215f
push 0
push 3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10064200
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x10083f84
call fcn.100277e4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
push 0
push 3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10064200
push edx
push eax
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.10021fe2
add esp, 0xc
push 0
push 3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10064200
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x10083f84
call fcn.100277e4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
cmp dword [ebp + 0x10], 0x29a2241a
jg 0x10022252
jl 0x1002217b
cmp dword [ebp + 0xc], 0xf62c0000
jae 0x10022252
push 0
push 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10050470
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x10083f84
call fcn.1002783c
test eax, eax
je 0x10022252
push 0
push 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10050470
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x10083f84
call fcn.100277e4
cmp dword [eax], 0
jle 0x10022252
push 0
push 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10050470
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x10083f84
call fcn.100277e4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
push 0
push 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10050470
push edx
push eax
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.10021fe2
add esp, 0xc
push 0
push 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10050470
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x10083f84
call fcn.100277e4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret