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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x1006e05c]
xor eax, esp
mov dword [esp + 0x74], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
cmp eax, dword [ebp + 0x1c]
jl 0x1002b61c
push dword [ebp + 0x14]
lea ecx, [esp + 0x7c]
push dword [ebp + 0x18]
call fcn.10016fc0
mov eax, dword [edi + 0x68]
movzx edx, word [esp + 0x78]
movzx ecx, word [esp + 0x7a]
mov edx, dword [eax + edx*4]
mov eax, ecx
shl eax, 5
mov dword [esp + 0x28], edx
mov edx, dword [eax + edx]
test edx, edx
jle 0x1002b628
movzx eax, word [esp + 0x78]
sub esp, 8
sub eax, edx
mov dword [esp + 0x38], ecx
shl ecx, 5
mov dword [esp + 0x1c], ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movaps xmm0, xmm1
movaps xmmword [esp + 0x68], xmm1
addsd xmm0, qword [0x100688b8]
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.10058610
fstp qword [esp + 0x20]
cvttsd2si eax, qword [esp + 0x20]
mov dword [esp + 0x3c], eax
movzx eax, word [esp + 0x80]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x100688b8]
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.10055cc0
mov ecx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x28]
fstp qword [esp + 0x18]
cvttsd2si eax, qword [esp + 0x18]
push dword [ebp + 0xc]
movaps xmm1, xmmword [esp + 0x64]
mov dword [esp + 0x3c], eax
sub esp, 0x28
movzx eax, byte [ecx + edx + 8]
movups xmm0, xmmword [esp + 0x5c]
mov byte [esp + 0x7c], al
movzx eax, byte [ecx + edx + 0xa]
movzx ecx, word [esp + 0xa4]
mov byte [esp + 0x7d], al
mov eax, esp
push dword [ebp + 8]
movups xmmword [eax], xmm0
movd xmm0, ecx
mov ecx, edi
cvtdq2pd xmm0, xmm0
unpcklpd xmm1, xmm0
movq xmm0, qword [esp + 0x80]
movups xmmword [eax + 0x10], xmm1
movq qword [eax + 0x20], xmm0
call fcn.1002ac10
mov ecx, dword [esi + 4]
mov edi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edx
cmp ecx, dword [esi + 8]
je 0x1002b4c6
push ecx
push 8
call fcn.10001ec0
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [eax], edi
mov dword [eax + 4], ecx
add dword [esi + 4], 8
jmp 0x1002b4d3
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, esi
call fcn.1002d590
cmp byte [ebp + 0x34], 0
mov esi, dword [esp + 0x78]
je 0x1002b579
movzx eax, word [esp + 0x7a]
sub esp, 8
movzx edi, si
dec eax
mov dword [esp + 0x1c], eax
movd xmm0, edi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [0x100688b8]
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.10058610
mov eax, dword [esp + 0x28]
xorps xmm1, xmm1
mov ecx, dword [esp + 0x1c]
add esp, 8
fstp qword [esp + 0x18]
cvttsd2si edx, qword [esp + 0x18]
mov eax, dword [eax + 0x68]
shl ecx, 5
mov eax, dword [eax + edx*4]
sub edx, dword [eax + ecx + 0x14]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
maxsd xmm1, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
comisd xmm0, xmm1
jbe 0x1002b579
mov ecx, dword [esp + 0x20]
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm1
push dword [esp + 0x34]
push dword [ebp + 0xc]
push esi
push dword [esp + 0x30]
call fcn.1002b030
mov esi, dword [esp + 0x78]
cmp byte [ebp + 0x35], 0
je 0x1002b622
movzx eax, word [esp + 0x7a]
sub esp, 8
movzx edi, si
inc eax
mov dword [esp + 0x1c], eax
movd xmm0, edi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [0x100688b8]
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.10058610
mov eax, dword [esp + 0x28]
xorps xmm1, xmm1
mov ecx, dword [esp + 0x1c]
add esp, 8
fstp qword [esp + 0x18]
cvttsd2si edx, qword [esp + 0x18]
mov eax, dword [eax + 0x68]
shl ecx, 5
mov eax, dword [eax + edx*4]
sub edx, dword [eax + ecx + 0xc]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
maxsd xmm1, xmm0
movd xmm0, edi
mov edi, dword [esp + 0x24]
cvtdq2pd xmm0, xmm0
comisd xmm0, xmm1
jbe 0x1002b62a
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm1
push edi
push dword [ebp + 0xc]
push esi
push dword [esp + 0x30]
mov esi, dword [esp + 0x40]
mov ecx, esi
call fcn.1002b030
jmp 0x1002b62e
mov edi, esi
mov esi, ecx
jmp 0x1002b62e
mov edi, dword [esp + 0x24]
jmp 0x1002b62a
mov edi, esi
mov esi, dword [esp + 0x20]
movzx eax, word [ebp + 8]
cmp eax, dword [ebp + 0x18]
jg 0x1002b8d4
push dword [ebp + 0x14]
lea ecx, [esp + 0x7c]
push dword [ebp + 0x1c]
call fcn.10016fc0
mov eax, dword [esi + 0x68]
movzx edx, word [esp + 0x78]
movzx ecx, word [esp + 0x7a]
mov edx, dword [eax + edx*4]
mov eax, ecx
shl eax, 5
mov dword [esp + 0x14], edx
mov edx, dword [eax + edx + 4]
test edx, edx
jle 0x1002b8d4
movzx eax, word [esp + 0x78]
sub esp, 8
mov dword [esp + 0x38], ecx
shl ecx, 5
mov dword [esp + 0x30], ecx
movd xmm1, eax
lea esi, [edx + eax]
cvtdq2pd xmm1, xmm1
movaps xmm0, xmm1
movaps xmmword [esp + 0x68], xmm1
addsd xmm0, qword [0x100688b8]
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.10058610
movd xmm0, esi
cvtdq2pd xmm0, xmm0
fstp qword [esp + 0x20]
cvttsd2si eax, qword [esp + 0x20]
subsd xmm0, qword [0x100688b8]
mov dword [esp + 0x3c], eax
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.10055cc0
mov ecx, dword [esp + 0x30]
add esp, 8
mov edx, dword [esp + 0x14]
fstp qword [esp + 0x18]
cvttsd2si eax, qword [esp + 0x18]
push dword [ebp + 0xc]
movaps xmm1, xmmword [esp + 0x64]
mov dword [esp + 0x3c], eax
sub esp, 0x28
movzx eax, byte [ecx + edx + 9]
movups xmm0, xmmword [esp + 0x5c]
mov byte [esp + 0x7c], al
movzx eax, byte [ecx + edx + 0xb]
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x7d], al
mov eax, esp
push dword [ebp + 8]
movups xmmword [eax], xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
unpcklpd xmm1, xmm0
movq xmm0, qword [esp + 0x80]
movups xmmword [eax + 0x10], xmm1
movq qword [eax + 0x20], xmm0
call fcn.1002ac10
mov ecx, dword [edi + 4]
mov esi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edx
cmp ecx, dword [edi + 8]
je 0x1002b775
push ecx
push 8
call fcn.10001ec0
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [eax], esi
mov dword [eax + 4], ecx
add dword [edi + 4], 8
jmp 0x1002b782
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.1002d590
cmp byte [ebp + 0x34], 0
mov esi, dword [esp + 0x78]
je 0x1002b82f
movzx eax, word [esp + 0x7a]
sub esp, 8
movzx edi, si
dec eax
mov dword [esp + 0x1c], eax
movd xmm0, edi
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x100688b8]
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.10055cc0
mov eax, dword [esp + 0x28]
add esp, 8
mov ecx, dword [esp + 0x14]
fstp qword [esp + 0x18]
cvttsd2si edx, qword [esp + 0x18]
mov eax, dword [eax + 0x68]
shl ecx, 5
movsd xmm1, qword [0x100688f0]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + ecx + 0x18]
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
minsd xmm1, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x1002b82f
mov ecx, dword [esp + 0x20]
sub esp, 0x10
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push dword [esp + 0x34]
push dword [ebp + 0xc]
push esi
push dword [esp + 0x30]
call fcn.1002b030
mov esi, dword [esp + 0x78]
cmp byte [ebp + 0x35], 0
je 0x1002b8d4
movzx eax, word [esp + 0x7a]
sub esp, 8
movzx edi, si
inc eax
mov dword [esp + 0x1c], eax
movd xmm0, edi
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x100688b8]
movsd qword [esp + 0x20], xmm0
fld qword [esp + 0x20]
fstp qword [esp]
call fcn.10055cc0
mov eax, dword [esp + 0x28]
add esp, 8
mov ecx, dword [esp + 0x14]
fstp qword [esp + 0x18]
cvttsd2si edx, qword [esp + 0x18]
mov eax, dword [eax + 0x68]
shl ecx, 5
movsd xmm1, qword [0x100688f0]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + ecx + 0x10]
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
minsd xmm1, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jbe 0x1002b8d4
mov ecx, dword [esp + 0x20]
sub esp, 0x10
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push dword [esp + 0x34]
push dword [ebp + 0xc]
push esi
push dword [esp + 0x30]
call fcn.1002b030
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.10032619
mov esp, ebp
pop ebp
ret 0x34