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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x1008a8e8]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [eax], 0
push edi
mov dword [esp + 0x18], esi
mov ecx, dword [esi + 0x54]
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x10021f4c
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jne 0x10021e78
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x10], edx
cmp dword [ecx + 0x90], edx
jbe 0x10021dd7
mov eax, dword [ecx + 0x94]
mov edi, dword [eax + ebx*4]
cmp dword [edi + 0x3c], 0
je 0x10021dbc
mov eax, dword [edi + 0x2c]
cmp dword [eax + 0x64], 1
je 0x10021da6
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1008c268]
mov ecx, edi
call esi
test eax, eax
je 0x10021db4
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1008c268]
mov ecx, edi
call esi
mov ecx, dword [esp + 0xc]
cmp byte [eax], 0
jne 0x10021db8
mov edx, 1
mov dword [esp + 0x10], edx
lea eax, [edx + 1]
jmp 0x10021dbe
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
xor eax, eax
inc ebx
mov dword [edi + 0x84], eax
cmp ebx, dword [ecx + 0x90]
jb 0x10021d53
mov esi, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edx
test edx, edx
je 0x10021f4c
lea ebx, [esi + 0x78]
mov dword [esp + 0xc], ebx
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push eax
push edi
call fcn.10021850
test eax, eax
js 0x10021f50
mov esi, dword [esi + 0x54]
xor edi, edi
mov edx, dword [ebx]
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x64], edi
jne 0x10021e37
xor ecx, ecx
cmp dword [esi + 0x50], ecx
jbe 0x10021e37
lea ecx, [ecx]
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x10021e31
mov dword [eax + 0x2c], 1
inc ecx
cmp ecx, dword [esi + 0x50]
jb 0x10021e20
push edx
mov ecx, esi
call fcn.100254b0
mov dword [esp + 0x14], eax
test eax, eax
jns 0x10021e95
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x64], edi
jne 0x10021f2b
xor ecx, ecx
cmp dword [esi + 0x50], ecx
jbe 0x10021f2b
mov edi, edi
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x10021e6d
mov dword [eax + 0x2c], edi
inc ecx
cmp ecx, dword [esi + 0x50]
jb 0x10021e60
jmp 0x10021f2b
mov ecx, dword [esi + 0x78]
lea ebx, [esi + 0x78]
mov dword [esp + 0xc], ebx
test ecx, ecx
je 0x10021deb
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x58], eax
jmp 0x10021e03
xor ebx, ebx
cmp dword [esi + 0x90], ebx
jbe 0x10021eeb
nop
mov eax, dword [esi + 0x94]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x18], eax
cmp dword [eax + 0x84], 0
je 0x10021ee2
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov edi, dword [eax + 0x3c]
mov ecx, edi
call dword [0x1008c268]
mov ecx, dword [esp + 0x20]
call edi
test eax, eax
jns 0x10021ede
mov edi, 1
mov dword [esp + 0x10], edi
jmp 0x10021ee2
mov edi, dword [esp + 0x10]
inc ebx
cmp ebx, dword [esi + 0x90]
jb 0x10021ea0
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x64], 0
jne 0x10021f17
xor ecx, ecx
cmp dword [esi + 0x50], ecx
jbe 0x10021f17
jmp 0x10021f00
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x10021f11
mov dword [eax + 0x2c], 0
inc ecx
cmp ecx, dword [esi + 0x50]
jb 0x10021f00
mov ebx, dword [esp + 0xc]
mov ecx, edi
neg ecx
sbb ecx, ecx
and ecx, 0x80004005
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x14], 0
jne 0x10021f4c
mov ecx, dword [ebx]
add dword [ecx], 0xffffffff
jne 0x10021f46
mov edx, dword [ecx + 8]
push 1
add edx, 4
push edx
call fcn.1001ab70
mov dword [ebx], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret 0x14