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

Disassembly:
sub esp, 0x58
lea eax, [esp + 8]
push ebp
push esi
push edi
mov edi, dword [0x10093708]
push ecx
mov dword [esp], 0xbf800000
push 1
push 0
push dword [esp + 0x88]
push eax
call fcn.1000d760
mov ebp, dword [esp + 0xa0]
add esp, 0x14
test ebp, ebp
je 0x10058f6b
mov byte [ebp], 0
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x10058f79
mov byte [ecx], 0
mov esi, dword [esp + 0x6c]
movss xmm3, dword [0x10079280]
movss xmm2, dword [esi + 8]
movss xmm1, dword [esi]
movaps xmm0, xmm2
subss xmm0, xmm1
comiss xmm3, xmm0
jae 0x10059297
movss xmm7, dword [esp + 0x78]
movss xmm3, dword [esp + 0x74]
movaps xmm0, xmm7
subss xmm2, xmm3
addss xmm1, xmm3
addss xmm0, dword [esi + 4]
movss dword [esp + 0x90], xmm2
movss dword [esp + 0x24], xmm1
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esi + 0xc]
movss dword [esp + 0x2c], xmm2
movss dword [esp + 0x30], xmm0
test ecx, ecx
je 0x10058ff2
addss xmm1, dword [esp + 0x14]
comiss xmm1, xmm2
seta al
mov byte [ecx], al
movss xmm5, dword [esi + 8]
xor cl, cl
movss xmm4, dword [edi + 0x3bcc]
movaps xmm0, xmm5
movss xmm6, dword [esi]
subss xmm0, xmm3
addss xmm7, dword [esi + 4]
mov edx, dword [esp + 0x84]
movaps xmm3, xmm6
push ebx
xor bl, bl
movss dword [esp + 0x70], xmm4
subss xmm0, xmm4
movss dword [esp + 0x14], xmm7
maxss xmm3, xmm0
movss dword [esp + 0x10], xmm3
test edx, edx
je 0x10059085
cmp byte [esp + 0x8c], bl
jne 0x1005905c
movaps xmm1, xmm5
movaps xmm0, xmm4
maxss xmm0, dword [edi + 0x3818]
subss xmm1, xmm6
comiss xmm1, xmm0
jb 0x10059085
mov eax, dword [edi + 0x3e98]
mov ecx, dword [esp + 0x84]
cmp eax, ecx
je 0x1005907f
cmp eax, edx
je 0x1005907f
mov eax, dword [edi + 0x3eac]
cmp eax, ecx
je 0x1005907f
cmp eax, edx
jne 0x10059083
mov cl, 1
jmp 0x10059085
mov cl, bl
test byte [esp + 0x74], 1
je 0x1005909c
movaps xmm0, xmm3
addss xmm0, xmm4
comiss xmm5, xmm0
jb 0x1005909c
mov al, 1
jmp 0x1005909e
xor al, al
mov byte [esp + 0x90], al
test cl, cl
je 0x10059192
movups xmm0, xmmword [edi + 0x46e0]
mov esi, dword [edi + 0x4718]
lea eax, [esp + 0x10]
push eax
movups xmmword [esp + 0x3c], xmm0
push edx
movups xmm0, xmmword [edi + 0x46f0]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [edi + 0x4700]
movups xmmword [esp + 0x60], xmm0
movq xmm0, qword [edi + 0x4710]
movq qword [esp + 0x28], xmm0
call fcn.100491d0
movups xmm0, xmmword [esp + 0x40]
add esp, 8
movzx ebx, bl
test al, al
mov ecx, 1
movups xmmword [edi + 0x46e0], xmm0
cmovne ebx, ecx
test byte [esp + 0x74], 4
movups xmm0, xmmword [esp + 0x48]
movups xmmword [edi + 0x46f0], xmm0
movups xmm0, xmmword [esp + 0x58]
movups xmmword [edi + 0x4700], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [edi + 0x4710], xmm0
mov dword [edi + 0x4718], esi
jne 0x10059158
push 0
push 2
call fcn.10016b00
add esp, 8
movzx ebx, bl
test al, al
mov eax, 1
cmovne ebx, eax
cmp byte [esp + 0x90], 0
movss xmm2, dword [esp + 0x94]
subss xmm2, dword [esp + 0x70]
movss xmm1, dword [esp + 0x70]
mulss xmm1, dword [0x10080428]
mov edi, dword [esp + 0x6c]
movaps xmm3, xmm2
jne 0x10059250
xorps xmm1, xmm1
jmp 0x10059250
test al, al
je 0x10059229
movss xmm1, dword [edi + 0x37c4]
movaps xmm0, xmm3
movss xmm2, dword [edi + 0x37c8]
addss xmm1, xmm1
addss xmm0, xmm4
addss xmm2, xmm2
push ecx
mov dword [esp], 0x3f800000
push 0
addss xmm1, xmm0
movaps xmm0, xmm7
addss xmm0, xmm4
addss xmm1, xmm3
addss xmm2, xmm0
mulss xmm1, dword [0x10079278]
addss xmm2, xmm7
movss dword [esp + 0x18], xmm1
mulss xmm2, dword [0x10079278]
movss dword [esp + 0x1c], xmm2
call fcn.10012b50
mov edi, dword [esp + 0x74]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push edi
call fcn.100308e0
movss xmm2, dword [esp + 0xac]
add esp, 0x18
movss xmm4, dword [esp + 0x70]
mov al, byte [esp + 0x90]
jmp 0x1005922d
mov edi, dword [esp + 0x6c]
movss xmm3, dword [esi + 8]
subss xmm3, dword [0x10079280]
test al, al
je 0x10059260
movaps xmm1, xmm4
mulss xmm1, dword [0x10080428]
subss xmm2, xmm1
movaps xmm3, xmm2
movss xmm0, dword [esp + 0x30]
subss xmm0, xmm1
movss dword [esp + 0x30], xmm0
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x88]
lea eax, [esp + 0x3c]
sub esp, 8
movss dword [esp + 4], xmm3
movss dword [esp], xmm2
push eax
lea eax, [esp + 0x40]
push eax
push edi
call fcn.1001fdc0
add esp, 0x20
test ebp, ebp
je 0x10059296
mov byte [ebp], bl
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x58
ret