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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x494
mov eax, dword [0x100a1040]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x50]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0xb8], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x58]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 0x3c]
mov edi, dword [ebp + 0x14]
lea esi, [eax*4]
mov dword [esp + 0x24], ebx
push esi
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x9c], ecx
call fcn.10005890
lea eax, [esp + 0xe0]
push esi
push eax
call fcn.10005890
lea eax, [esp + 0x1d8]
push esi
push eax
call fcn.10005890
push esi
push dword [esp + 0x70]
call fcn.10005890
lea eax, [esp + 0x2d8]
push esi
push eax
call fcn.10005890
add esp, 0x28
cmp dword [ebp + 0x4c], 0
je 0x1002173d
push dword [esp + 0x28]
mov esi, dword [ebp + 0x44]
lea eax, [esp + 0x3ac]
push esi
push dword [ebp + 0x40]
movaps xmm0, xmmword [0x1007c6e0]
push dword [ebp + 0x3c]
movups xmmword [esp + 0xcc], xmm0
push eax
lea eax, [esp + 0x1dc]
mov dword [esp + 0xe0], 0xcccccd0
push eax
lea eax, [esp + 0xf0]
mov dword [esp + 0xe8], 6
push eax
lea eax, [esp + 0x2d4]
mov dword [esp + 0xf0], 0x59999980
push eax
lea eax, [esp + 0xdc]
push eax
push edi
push ebx
push dword [esp + 0x78]
push dword [ebp + 0x2c]
push dword [esp + 0xa8]
push dword [esp + 0xa8]
call fcn.100219a0
mov ebx, dword [ebp + 0x3c]
lea eax, [esp + 0xf8]
push esi
mov esi, dword [ebp + 0x40]
push esi
push ebx
push eax
lea eax, [esp + 0x3f4]
push eax
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x12c]
push eax
lea eax, [esp + 0x310]
push eax
call fcn.10021760
xor edx, edx
add esp, 0x5c
mov dword [esp + 0x64], edx
test ebx, ebx
jle 0x1002173d
mov ecx, dword [esp + 0x60]
lea eax, [esi*4]
mov dword [esp + 0x6c], eax
mov ebx, ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], ebx
lea esi, [eax + 4]
mov dword [esp + 0x48], esi
cmp dword [ebp + 0x44], 0
jle 0x1002171d
mov edx, 0x164
mov esi, ebx
sub edx, eax
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x8c], edx
mov edx, 0xfffffffc
sub edx, eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x50], edx
lea eax, [esp + 0xd8]
mov edx, dword [ebp + 0x18]
sub eax, edx
mov dword [esp + 0x84], eax
sub edx, ecx
mov eax, dword [esp + 0x70]
sub eax, ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x94]
sub eax, ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0xa4], eax
sub edx, ecx
lea eax, [esp + 0x1c8]
mov dword [esp + 0x5c], edx
sub eax, ecx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x4c]
sub eax, ecx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x98]
sub eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
sub eax, ecx
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x7c]
sub eax, ecx
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
add eax, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
add ecx, esi
mov dword [esi], 0
cmp dword [edi + ecx], 0
mov edi, dword [esp + 0x20]
je 0x100216dc
mov eax, dword [esp + 0x3c]
mov eax, dword [esi + eax]
cmp eax, dword [ecx]
jge 0x1002113d
mov eax, dword [edx + esi]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0x55555580
mov eax, dword [esp + 0x1c]
imul dword [esp + 0x10]
shl edx, 1
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ecx + esi]
jg 0x100216d4
mov edx, dword [esp + 0x88]
mov ecx, dword [edx]
test ecx, ecx
je 0x10021170
mov eax, dword [esp + 0x8c]
add eax, ebx
cmp dword [eax + ecx], 0
je 0x10021160
mov dword [eax + ecx], 0
mov ecx, dword [edx + 4]
cmp dword [ecx + eax], 0
je 0x10021170
mov dword [ecx + eax], 0
mov esi, dword [ebx]
xor ecx, ecx
mov edx, dword [ebx - 4]
mov eax, esi
sub eax, edx
cmp eax, 0x40
push esi
setg cl
sar eax, 1
add ecx, 6
mov dword [esp + 0x20], ecx
xor ecx, ecx
test eax, eax
push edx
push dword [esp + 0x2c]
cmovg ecx, eax
mov eax, 0x4f
cmp ecx, eax
cmovl eax, ecx
mov eax, dword [eax*4 + 0x10070bc0]
mov dword [esp + 0x38], eax
call fcn.100221c0
push dword [ebx]
mov dword [esp + 0x1c], eax
push dword [ebx - 4]
push edi
call fcn.100221c0
mov ecx, dword [ebx]
mov edi, eax
mov eax, dword [ebx - 4]
xor edx, edx
add esp, 0x18
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
cmp eax, ecx
jge 0x1002124f
mov ecx, dword [esp + 0x24]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x20]
sub eax, ecx
mov dword [esp + 0x30], eax
nop dword [eax]
mov eax, dword [eax + esi]
mov ecx, edi
shl eax, cl
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x90], eax
mov eax, dword [esi]
shl eax, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
imul dword [esp + 0x90]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
imul dword [esp + 0x2c]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
lea esi, [esi + 4]
mov edx, dword [esp + 0x18]
inc eax
add edx, dword [esp + 0x14]
mov ecx, dword [ebx]
cmp eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], edx
jl 0x100211f0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
mov esi, dword [eax + esi]
lea eax, [edx + edx]
xor edx, edx
mov dword [esp + 0x10], edx
test eax, eax
jns 0x10021461
cmp dword [esp + 0xc], edi
cmovl edi, dword [esp + 0xc]
cmp esi, ecx
jge 0x100212e0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub ecx, edx
mov dword [esp + 0x2c], ecx
lea eax, [edx + esi*4]
mov dword [esp + 0xc], eax
nop dword [eax]
mov edx, dword [eax + ecx]
mov ecx, edi
mov eax, dword [eax]
shl eax, cl
shl edx, cl
sar edx, 1
sar eax, 1
sub eax, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
imul dword [esp + 0x30]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x1c]
inc esi
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [ecx - 1]
sar eax, cl
mov ecx, dword [esp + 0x2c]
add edx, eax
mov eax, dword [esp + 0xc]
add eax, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
cmp esi, dword [ebx]
jl 0x10021290
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov dword [eax], 1
push dword [eax + ecx]
call fcn.1000e1e0
mov ecx, dword [esp + 0xa8]
lea edx, [edi + edi]
sub edx, dword [esp + 0x28]
mov esi, eax
add ecx, edx
add esp, 0xc
mov edx, ecx
mov eax, 0xffffffe1
add ecx, 0xfffffffe
and edx, 1
add ecx, edx
xorps xmm1, xmm1
sar ecx, 1
inc ecx
cmp ecx, eax
cmovg eax, ecx
mov ecx, 0x1f
cmp eax, ecx
cmovl ecx, eax
mov eax, esi
sar eax, 1
test edx, edx
mov dword [esp + 0x1c], ecx
cmove eax, esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1002135b
sqrtsd xmm0, xmm0
jmp 0x10021360
call fcn.10041620
mulsd xmm0, qword [0x1007c6d0]
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
cvttsd2si eax, xmm0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov esi, dword [eax + esi]
mov eax, dword [ebx]
test ecx, ecx
jns 0x100213f5
neg ecx
mov dword [esp + 0x1c], ecx
cmp esi, eax
jge 0x1002163f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub eax, edx
mov dword [esp + 0x10], eax
lea edi, [edx + esi*4]
mov eax, dword [eax + edi]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
imul dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov eax, dword [edi]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
imul dword [esp + 0x14]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x18]
lea edi, [edi + 4]
sub eax, dword [esp + 0xc]
inc esi
sar eax, cl
mov ecx, dword [esp + 0x10]
mov dword [ecx + edi - 4], eax
mov eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi - 4], 0
cmp esi, dword [ebx]
jl 0x100213a4
jmp 0x1002163f
cmp esi, eax
jge 0x1002163f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub eax, edx
mov dword [esp + 0x10], eax
lea edi, [edx + esi*4]
nop
mov eax, dword [edi + eax]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
imul dword [esp + 0x14]
mov dword [esp + 0xc], edx
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
imul dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0xc]
lea edi, [edi + 4]
sub eax, dword [esp + 0x18]
inc esi
shl eax, cl
mov ecx, dword [esp + 0x10]
mov dword [edi + ecx - 4], eax
mov eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi - 4], 0
cmp esi, dword [ebx]
jl 0x10021410
jmp 0x1002163f
cmp dword [esp + 0xc], edi
cmovl edi, dword [esp + 0xc]
cmp esi, ecx
jge 0x100214d3
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub ecx, edx
mov dword [esp + 0x2c], ecx
lea eax, [edx + esi*4]
mov dword [esp + 0x18], eax
mov edx, dword [eax + ecx]
mov ecx, edi
mov eax, dword [eax]
shl edx, cl
shl eax, cl
sar edx, 1
sar eax, 1
add edx, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
imul dword [esp + 0x30]
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x1c]
inc esi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea ecx, [ecx - 1]
sar eax, cl
mov ecx, dword [esp + 0x2c]
add edx, eax
mov eax, dword [esp + 0x18]
add eax, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
cmp esi, dword [ebx]
jl 0x10021483
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov dword [eax], 0
push dword [eax + ecx]
call fcn.1000e1e0
mov ecx, dword [esp + 0xac]
lea edx, [edi + edi]
sub edx, dword [esp + 0x28]
mov esi, eax
add ecx, edx
add esp, 0xc
mov edx, ecx
mov eax, 0xffffffe1
add ecx, 0xfffffffe
and edx, 1
add ecx, edx
mov edi, 0x1f
sar ecx, 1
xorps xmm1, xmm1
inc ecx
cmp ecx, eax
cmovg eax, ecx
cmp eax, edi
cmovl edi, eax
mov eax, esi
sar eax, 1
test edx, edx
mov dword [esp + 0x1c], edi
cmove eax, esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1002154e
sqrtsd xmm0, xmm0
jmp 0x10021553
call fcn.10041620
mulsd xmm0, qword [0x1007c6d0]
mov esi, dword [ebx - 4]
cvttsd2si eax, xmm0
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
test edi, edi
jns 0x100215de
neg edi
mov dword [esp + 0x1c], edi
cmp esi, eax
jge 0x1002163f
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub eax, ecx
mov dword [esp + 0x10], eax
lea edi, [ecx + esi*4]
nop dword [eax + eax]
mov eax, dword [edi + eax]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
imul dword [esp + 0x14]
mov dword [esp + 0xc], edx
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
imul dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
lea edi, [edi + 4]
add eax, dword [esp + 0xc]
inc esi
mov ecx, dword [esp + 0x1c]
sar eax, cl
mov ecx, dword [esp + 0x10]
mov dword [edi + ecx - 4], eax
mov eax, ecx
mov dword [edi - 4], 0
cmp esi, dword [ebx]
jl 0x10021590
jmp 0x1002163f
cmp esi, eax
jge 0x1002163f
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub eax, ecx
mov dword [esp + 0x10], eax
lea edi, [ecx + esi*4]
mov eax, dword [eax + edi]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
imul dword [esp + 0x14]
mov dword [esp + 0xc], edx
mov eax, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
imul dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
lea edi, [edi + 4]
add eax, dword [esp + 0xc]
inc esi
mov ecx, dword [esp + 0x1c]
shl eax, cl
mov ecx, dword [esp + 0x10]
mov dword [ecx + edi - 4], eax
mov eax, ecx
mov dword [edi - 4], 0
cmp esi, dword [ebx]
jl 0x100215f3
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x50]
add edx, ebx
mov dword [eax + esi], 0xf
mov eax, dword [esp + 0xa8]
mov eax, dword [eax + esi]
mov ecx, eax
sar ecx, 1
test eax, eax
jns 0x10021675
lea eax, [ecx - 0x400000]
sar eax, 0x17
inc eax
jmp 0x1002167e
lea eax, [ecx + 0x400000]
sar eax, 0x17
mov ecx, dword [esp + 0x54]
mov dword [edx + ecx], eax
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0xac]
mov dword [esi + edx], 0
mov dword [eax + esi], 0x80000000
mov eax, dword [esp + 0x58]
mov dword [esi + eax], 0
mov eax, dword [esp + 0xb0]
mov dword [eax + esi], 0xbe000000
mov eax, dword [esp + 0xb4]
mov dword [eax + esi], 0
mov eax, dword [esp + 0xb8]
mov dword [eax], 1
jmp 0x100216d8
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
add esi, 4
add ebx, 4
mov dword [esp + 0x34], esi
sub eax, 1
mov dword [esp + 0x38], eax
lea ecx, [ecx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x44]
lea ecx, [ecx + 4]
mov dword [esp + 0x44], ecx
jne 0x100210e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x48]
add edx, dword [ebp + 0x40]
add ebx, dword [esp + 0x6c]
add esi, dword [esp + 0x6c]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x48], esi
cmp edx, dword [ebp + 0x3c]
jl 0x10021016
mov ecx, dword [esp + 0x49c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003b025
mov esp, ebp
pop ebp
ret