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

Disassembly:
sub esp, 0x28
cmp dword [esp + 0x2c], 0
push esi
mov esi, ecx
mov dword [esp + 0x28], esi
je 0x100216f6
cmp dword [esp + 0x34], 0
je 0x100216f6
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], 0x7c
mov dword [esp + 0x20], eax
push edi
cmp eax, 0x80
jg 0x100213b8
jge 0x100212f2
cmp dword [esi + 0x1c], 0x80
jge 0x100212f2
push 0x10
push 0x400
call fcn.1005c880
mov edi, eax
add esp, 8
mov eax, dword [esi + 0x18]
xor edx, edx
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x100212b8
nop dword [eax + eax]
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 4]
mov dword [edi + edx*8], ecx
mov dword [edi + edx*8 + 4], eax
inc edx
cmp edx, dword [esp + 0x1c]
jl 0x100212a0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100212d5
cmp byte [esi + 0x24], 0
je 0x100212ce
push eax
call fcn.1005c890
add esp, 4
mov dword [esi + 0x20], 0
mov ecx, dword [esp + 0x24]
mov edx, 0x80
mov dword [esi + 0x20], edi
mov edi, edx
mov byte [esi + 0x24], 1
sub edi, ecx
mov dword [esi + 0x1c], 0x80
jmp 0x10021305
mov edx, 0x80
mov ecx, eax
mov edi, edx
sub edi, eax
cmp eax, edx
jge 0x100213b8
cmp edi, 2
jb 0x10021398
lea eax, [esi + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
lea esi, [eax + esi*8]
add eax, 0x3f8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
cmp esi, eax
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x2c]
ja 0x1002133d
cmp dword [esp + 0x20], eax
jae 0x10021398
and edi, 0x80000001
jns 0x1002134a
dec edi
or edi, 0xfffffffe
inc edi
sub edx, edi
nop dword [eax]
add ecx, 2
cmp ecx, edx
jl 0x10021350
mov edi, dword [esp + 0x28]
mov esi, edi
sub edx, dword [esp + 0x24]
mov eax, dword [esp + 8]
mov dword [esp + 0x1c], ecx
mov dword [edi], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 4], eax
lea eax, [edx + 1]
cdq
add edi, 8
sub eax, edx
sar eax, 1
shl eax, 4
lea ecx, [eax - 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
cmp ecx, 0x80
jge 0x100213b8
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
shl ecx, 3
mov eax, dword [esi + 0x20]
mov dword [ecx + eax], edi
mov dword [ecx + eax + 4], edx
add ecx, 8
cmp ecx, 0x400
jl 0x100213a3
mov ecx, dword [esp + 0x34]
lea edi, [esi + 0x20]
mov dword [esi + 0x18], 0x80
mov esi, 1
mov eax, dword [edi]
mov dword [esp + 0x28], edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
nop word [eax + eax]
mov ecx, dword [edi]
mov dword [esp + 0x34], esi
dec esi
mov dword [esp + 0xc], esi
lea eax, [esi*8]
mov edx, dword [eax + ecx]
mov dword [esp + 0x24], eax
mov eax, dword [eax + ecx + 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], eax
cmp esi, dword [esp + 0x18]
jle 0x10021564
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x18], eax
lea esi, [eax + eax]
mov dword [esp + 0x10], esi
cmp esi, eax
jl 0x1002154a
jle 0x100214a8
cmp dword [edx + 0x1c], esi
jge 0x100214a8
test esi, esi
je 0x10021448
lea eax, [esi*8]
push 0x10
push eax
call fcn.1005c880
add esp, 8
jmp 0x1002144a
xor eax, eax
mov dword [esp + 0x20], eax
xor edx, edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x10021482
mov esi, dword [esp + 0x20]
mov eax, dword [edi]
mov ecx, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 4]
mov dword [esi + edx*8], ecx
mov dword [esi + edx*8 + 4], eax
inc edx
cmp edx, dword [esp + 0x14]
jl 0x10021463
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi]
test ecx, ecx
je 0x1002149b
cmp byte [eax + 0x24], 0
je 0x1002149b
push ecx
call fcn.1005c890
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, dword [esp + 0x20]
mov byte [eax + 0x24], 1
mov dword [edi], ecx
mov dword [eax + 0x1c], esi
mov edx, dword [esp + 0x18]
mov eax, edx
cmp edx, esi
jge 0x1002154a
cmp edx, 2
jb 0x10021530
lea edi, [ecx + edx*8]
mov dword [esp + 0x20], edi
lea ecx, [ecx + esi*8]
mov edi, dword [esp + 0x28]
add ecx, 0xfffffff8
cmp dword [esp + 0x20], edi
ja 0x100214d6
cmp ecx, edi
jae 0x10021530
mov ecx, edx
and ecx, 0x80000001
jns 0x100214e5
dec ecx
or ecx, 0xfffffffe
inc ecx
sub esi, ecx
add eax, 2
cmp eax, esi
jl 0x100214e7
mov edi, dword [esp + 0x20]
sub esi, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
mov dword [edi + 4], eax
lea eax, [esi + 1]
cdq
mov esi, edi
sub eax, edx
add edi, 8
sar eax, 1
shl eax, 4
lea ecx, [eax - 8]
mov eax, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
lea esi, [ecx + ecx]
cmp eax, esi
jge 0x1002154a
mov edx, dword [esp + 0xc]
mov ecx, dword [edi]
mov edi, dword [esp + 8]
mov dword [ecx + eax*8], edi
mov edi, dword [esp + 0x28]
mov dword [ecx + eax*8 + 4], edx
inc eax
cmp eax, esi
jl 0x10021534
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x18], esi
lea eax, [esi - 4]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
cmp edx, eax
jne 0x100215aa
cmp dword [edx + 0x28], 0
je 0x100216ed
mov eax, dword [edi]
mov ecx, dword [edx + 0x24]
mov esi, dword [esp + 0x24]
mov dword [esi + eax], ecx
mov dword [esi + eax + 4], ecx
mov esi, dword [esp + 0x34]
mov eax, dword [edi]
mov ecx, dword [edx + 0x28]
mov dword [eax + esi*8], ecx
mov dword [eax + esi*8 + 4], ecx
mov eax, dword [edi]
mov ecx, dword [edx + 0x24]
mov edx, dword [edx + 0x28]
mov dword [eax + esi*8 + 8], ecx
mov dword [eax + esi*8 + 0xc], edx
add esi, 2
jmp 0x100216ed
movups xmm2, xmmword [eax + 0x10]
movups xmm1, xmmword [edx + 0x10]
cmpltps xmm1, xmmword [eax]
cmpltps xmm2, xmmword [edx]
orps xmm2, xmm1
movaps xmm0, xmm2
movd ecx, xmm2
psrldq xmm0, 4
movd eax, xmm0
psrldq xmm2, 8
or ecx, eax
movd eax, xmm2
or ecx, eax
jne 0x100216ed
cmp dword [edx + 0x28], ecx
je 0x10021697
mov esi, dword [esp + 0x38]
mov eax, dword [edi]
cmp dword [esi + 0x28], ecx
je 0x1002166c
mov ecx, dword [esi + 0x24]
mov edx, dword [edx + 0x24]
mov esi, dword [esp + 0x24]
mov dword [esi + eax + 4], ecx
mov dword [esi + eax], edx
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x28]
mov edx, dword [eax + 0x24]
mov eax, dword [edi]
mov esi, dword [esp + 0x34]
mov dword [eax + esi*8], ecx
mov ecx, esi
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*8 + 4], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x24]
mov edx, dword [eax + 0x28]
mov eax, dword [edi]
mov edi, dword [esp + 0x34]
mov dword [eax + edi*8 + 8], ecx
mov ecx, edi
mov edi, dword [esp + 0x28]
mov dword [eax + ecx*8 + 0xc], edx
add ecx, 2
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x28]
mov esi, dword [esp + 0x34]
mov edx, dword [eax + 0x28]
mov eax, dword [edi]
mov dword [eax + esi*8], ecx
mov dword [eax + esi*8 + 4], edx
mov edx, esi
lea esi, [edx + 1]
jmp 0x100216ed
mov ecx, dword [edx + 0x24]
mov esi, dword [esp + 0x24]
mov dword [esi + eax], ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov dword [ecx + eax + 4], esi
mov ecx, dword [edx + 0x28]
mov edx, dword [esp + 0x34]
mov eax, dword [edi]
mov dword [eax + edx*8], ecx
mov dword [eax + edx*8 + 4], esi
lea esi, [edx + 1]
jmp 0x100216ed
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x28], 0
je 0x100216c8
mov ecx, dword [eax + 0x24]
mov eax, dword [edi]
mov esi, dword [esp + 0x24]
mov dword [esi + eax], edx
mov dword [esi + eax + 4], ecx
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ecx, dword [eax + 0x28]
mov eax, dword [edi]
mov dword [eax + esi*8], edx
mov dword [eax + esi*8 + 4], ecx
inc esi
jmp 0x100216ed
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov eax, dword [eax]
push dword [edi + 0x24]
push dword [edx + 0x24]
mov ecx, dword [eax + 0x60]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
mov eax, dword [ecx]
inc dword [eax + 0x78]
test esi, esi
jne 0x100213e0
pop edi
pop esi
add esp, 0x28
ret 0xc