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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
mov eax, dword [0x100a1040]
xor eax, esp
mov dword [esp + 0x180], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x30]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x28]
push edi
mov edi, dword [ebp + 0x2c]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x98]
push 0xf0
push eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x24], ebx
call fcn.10005890
push 0xf0
push esi
call fcn.10005890
lea eax, [esp + 0x98]
push 0x10
push eax
call fcn.10005890
push 0xf0
push edi
call fcn.10005890
mov ecx, dword [ebp + 0x38]
xor eax, eax
add esp, 0x20
mov dword [esp + 0x3c], eax
lea esi, [ecx*4]
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x68], esi
test ecx, ecx
jle 0x10021c79
mov ecx, dword [ebp + 0x14]
lea ebx, [esp + 0x88]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
nop dword [eax]
nop dword [eax + eax]
mov dword [ebx], 0
test edx, edx
jle 0x10021c53
mov ebx, dword [ebp + 0x14]
mov esi, ecx
mov eax, dword [esp + 0x74]
sub edi, ebx
mov edx, dword [ebp + 0x10]
sub eax, ebx
mov ecx, dword [esp + 0x58]
sub edx, ebx
mov dword [esp + 0x50], edi
sub ecx, ebx
mov edi, dword [esp + 0x54]
mov dword [esp + 0x24], eax
sub edi, ebx
mov eax, dword [esp + 0x78]
sub eax, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], eax
mov eax, dword [esi + edx]
mov edx, 0xc4000000
sub eax, dword [esi]
cmp eax, 0xc4000000
mov dword [esp + 0x70], 0
cmovl eax, edx
mov edx, 0x3c000000
cmp eax, 0x3c000000
cmovg eax, edx
mov edx, dword [esp + 0x50]
mov dword [esi + edx], eax
mov ebx, dword [ecx + esi]
bsr edx, ebx
setne al
test al, al
je 0x10021b15
mov ecx, 0x1e
sub ecx, edx
jmp 0x10021b1a
mov ecx, 0x1f
mov edx, dword [edi + esi]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x70], eax
cmovs ecx, eax
bsr eax, edx
mov dword [esp + 0x28], eax
setne al
test al, al
je 0x10021b41
mov edi, 0x1e
sub edi, dword [esp + 0x28]
jmp 0x10021b46
mov edi, 0x1f
xor eax, eax
xorps xmm1, xmm1
test edi, edi
cmovs edi, eax
cmp ecx, edi
cmovl edi, ecx
and edi, 0xfffffffc
mov ecx, edi
shl edx, cl
shl ebx, cl
sar edx, 1
sar ebx, 1
add edx, ebx
movd xmm0, edx
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x10021b7a
sqrtsd xmm0, xmm0
jmp 0x10021b7f
call fcn.10041620
mulsd xmm0, qword [0x1007c6d0]
xorps xmm1, xmm1
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x10021ba4
sqrtsd xmm0, xmm0
jmp 0x10021ba9
call fcn.10041620
mulsd xmm0, qword [0x1007c6d0]
mov ebx, dword [esp + 0xc]
sar edi, 2
mov ecx, edi
mov edi, dword [esp + 0x2c]
cvttsd2si eax, xmm0
sar eax, cl
mov ecx, dword [esp + 0x24]
mov dword [ecx + esi], eax
sar eax, 6
add dword [ebx], eax
mov eax, dword [edi + esi]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
imul dword [esp + 0x28]
shl edx, 1
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + esi]
cmp eax, dword [esp + 0x14]
jl 0x10021c2e
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
imul dword [esp + 0x28]
shl edx, 1
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
cmp eax, dword [edi + esi]
jg 0x10021c2e
mov eax, dword [esp + 0x20]
mov dword [eax + esi], 0x10000000
mov edx, dword [esp + 0x18]
add esi, 4
sub dword [esp + 0x40], 1
jne 0x10021ad1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x68]
mov edx, dword [ebp + 0x3c]
add eax, dword [ebp + 0x38]
add ecx, esi
add ebx, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ebx
cmp eax, dword [ebp + 0x34]
jl 0x10021a80
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x34]
jmp 0x10021c7d
mov dword [esp + 0x68], esi
mov dword [esp + 0x50], 0
test ecx, ecx
jle 0x1002219c
lea edx, [esp + 0x98]
add ebx, 4
lea eax, [esp + 0x88]
mov dword [esp + 0x40], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], ebx
nop word [eax + eax]
mov eax, dword [eax]
test eax, eax
jne 0x10021cbc
mov dword [esp + 0x4c], eax
jmp 0x10021cde
lea ecx, [esp + 0x48]
push ecx
push eax
push 0x7fffffff
call fcn.1000e1e0
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffffb
mov ecx, 0xffffffe1
cmp eax, ecx
cmovg ecx, eax
mov eax, 0x1f
cmp ecx, eax
cmovl eax, ecx
cmp dword [ebp + 0x3c], 0
mov dword [esp + 0x48], eax
jle 0x10022171
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x98]
sub eax, ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x7c], eax
mov edi, edx
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x98]
sub eax, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x80], eax
mov eax, ecx
lea ecx, [esp + 0x98]
sub eax, ecx
mov ecx, dword [esp + 0x84]
sub ecx, edx
mov dword [esp + 0x38], eax
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x28], edx
mov eax, dword [edi + eax]
and eax, 0xffffffc0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
imul dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
test ecx, ecx
jle 0x10021d78
shl eax, cl
jmp 0x10021d7c
neg ecx
sar eax, cl
mov ecx, dword [esp + 0x38]
mov dword [edi], 0
mov dword [edi + ecx], eax
xor ecx, ecx
mov edx, dword [ebx]
mov eax, edx
mov esi, dword [ebx - 4]
sub eax, esi
sar eax, 1
test eax, eax
cmovg ecx, eax
mov eax, 0x4f
cmp ecx, eax
cmovl eax, ecx
mov eax, dword [eax*4 + 0x10070bc0]
mov dword [esp + 0x34], eax
test eax, eax
jle 0x100220ea
push edx
push esi
push dword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x2c], 0
xor edi, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], edi
call fcn.100221c0
push dword [ebx]
mov esi, eax
push dword [ebx - 4]
push dword [esp + 0x70]
call fcn.100221c0
mov edi, eax
add esp, 0x18
mov eax, dword [ebx - 4]
cmp esi, edi
mov dword [esp + 0x2c], eax
cmovl edi, esi
cmp eax, dword [ebx]
jge 0x10021e77
mov ecx, dword [esp + 0x5c]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x60]
sub eax, ecx
mov dword [esp + 0x24], eax
nop dword [eax]
mov eax, dword [esi + eax]
mov ecx, edi
shl eax, cl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
imul dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
shl eax, cl
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
imul dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0xc]
lea esi, [esi + 4]
add eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [ebx]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
jl 0x10021e20
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
imul dword [esp + 0x34]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
imul dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov eax, dword [ebx - 4]
mov dword [esp + 0x24], eax
cmp eax, dword [ebx]
jge 0x10021f79
mov ecx, dword [esp + 0x5c]
lea ebx, [ecx + eax*4]
mov eax, dword [esp + 0x60]
sub eax, ecx
mov dword [esp + 0x30], eax
nop
mov eax, dword [ebx + eax]
mov ecx, edi
shl eax, cl
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
imul dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov esi, dword [esp + 0xc]
mov eax, dword [ebx]
sub esi, dword [esp + 0x20]
shl eax, cl
mov dword [esp + 0x6c], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
imul dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0xc]
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
imul dword [esp + 0x2c]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
imul dword [esp + 0x6c]
mov dword [esp + 0xc], edx
mov esi, dword [esp + 0x1c]
add esi, dword [esp + 0xc]
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
imul dword [esp + 0x2c]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x3c]
lea ebx, [ebx + 4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
inc ecx
add edx, dword [esp + 0xc]
cmp ecx, dword [eax]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], ecx
jl 0x10021ec0
mov ebx, dword [esp + 0x3c]
jmp 0x10021f7f
mov edx, dword [esp + 0x44]
mov esi, edx
mov eax, dword [esp + 0x10]
add esi, esi
add eax, eax
mov dword [esp + 0x1c], esi
add edx, edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x44], edx
test esi, esi
jle 0x100220e6
test edx, edx
jle 0x100220e6
bsr eax, esi
mov edi, dword [esp + 0x44]
mov ecx, 0x1e
mov esi, 0x1f
mov dword [esp + 0x30], 0
setne dl
mov dword [esp + 0xc], 0
sub ecx, eax
test dl, dl
cmovne esi, ecx
xor eax, eax
mov dword [esp + 0x30], eax
test esi, esi
mov ecx, 0x1e
cmovs esi, eax
bsr eax, edi
setne dl
sub ecx, eax
test dl, dl
mov eax, 0x1f
cmovne eax, ecx
xor ecx, ecx
test eax, eax
cmovs eax, ecx
add eax, esi
and eax, 0xfffffffe
mov ecx, eax
mov dword [esp + 0x24], eax
cmp esi, ecx
cmovl eax, esi
sub ecx, eax
shl edi, cl
mov ecx, eax
mov eax, dword [esp + 0x1c]
shl eax, cl
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
imul dword [esp + 0x30]
shl edx, 1
mov dword [esp + 0x10], edx
movd xmm0, dword [esp + 0x10]
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x10022046
sqrtsd xmm0, xmm0
jmp 0x1002204b
call fcn.10041620
mulsd xmm0, qword [0x1007c6d0]
lea edx, [esp + 0xc]
mov eax, dword [esp + 0x6c]
push edx
cvttsd2si ecx, xmm0
push ecx
test eax, eax
jns 0x10022076
neg eax
push eax
call fcn.1000e1e0
mov esi, eax
add esp, 0xc
neg esi
jmp 0x10022081
push eax
call fcn.1000e1e0
add esp, 0xc
mov esi, eax
mov edi, dword [esp + 0x14]
mov edx, 0xffffffe1
mov eax, edi
mov ecx, 0x1f
mov dword [eax], esi
mov eax, dword [esp + 0x24]
sar eax, 1
add eax, dword [esp + 0xc]
cmp eax, edx
cmovg edx, eax
cmp edx, ecx
cmovl ecx, edx
test ecx, ecx
jns 0x100220b3
neg ecx
sar esi, cl
mov dword [edi], esi
jmp 0x100220ea
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov edx, 0x7fffffff
sar edx, cl
cmp eax, edx
jle 0x100220d5
sar esi, 0x1f
and esi, 2
add esi, 0x7fffffff
mov dword [edi], esi
jmp 0x100220ea
mov eax, dword [esp + 0x7c]
shl esi, cl
add eax, edi
mov ecx, dword [esp + 0x38]
mov dword [eax + ecx], esi
jmp 0x100220ea
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x80]
mov eax, dword [esp + 0x38]
add esi, edi
cmp dword [esi + eax], 0x10000000
je 0x1002214c
mov eax, dword [edi + eax]
mov ecx, dword [edi]
mov dword [esp + 0x30], eax
mov eax, 0x20000000
sar ecx, 2
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
imul dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov dword [esi + ecx], eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x64]
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ecx]
jl 0x10022148
mov eax, dword [esp + 0x70]
mov dword [eax + edi], 1
mov eax, dword [esp + 0x38]
add ebx, 4
add edi, 4
sub dword [esp + 0x28], 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], edi
jne 0x10021d52
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
add edx, esi
mov eax, dword [esp + 0x58]
add ebx, esi
add ecx, dword [ebp + 0x38]
add eax, 4
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], eax
cmp ecx, dword [ebp + 0x34]
jl 0x10021cb0
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003b025
mov esp, ebp
pop ebp
ret