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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [0x100bd040]
xor eax, esp
mov dword [esp + 0x7c], eax
mov eax, dword [0x100c353c]
push esi
mov esi, dword [ebp + 0x20]
push edi
mov dword [esp + 0x14], ecx
mov edi, edx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
xor eax, eax
push ecx
inc eax
mov dword [esp], 0xbf800000
push eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x38]
push 0
mov dword [esp + 0x38], edx
call fcn.100085b1
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
je 0x1005f33c
mov byte [eax], 0
test esi, esi
je 0x1005f343
mov byte [esi], 0
movss xmm2, dword [edi + 8]
movss xmm1, dword [edi]
movaps xmm0, xmm2
movss xmm5, dword [0x100b1aa4]
subss xmm0, xmm1
comiss xmm5, xmm0
jae 0x1005f618
movss xmm0, dword [ebp + 0x28]
movss xmm3, dword [ebp + 0x24]
subss xmm2, xmm3
addss xmm1, xmm3
addss xmm0, dword [edi + 4]
movss dword [esp + 0x20], xmm2
movss dword [esp + 0x74], xmm1
movss dword [esp + 0x78], xmm0
movss xmm0, dword [edi + 0xc]
movss dword [esp + 0x7c], xmm2
movss dword [esp + 0x80], xmm0
test esi, esi
je 0x1005f3b3
addss xmm1, dword [esp + 0x30]
comiss xmm1, xmm2
seta al
mov byte [esi], al
mulss xmm3, dword [0x100b1b20]
xor ah, ah
mov ecx, dword [esp + 0x18]
movss xmm6, dword [edi + 8]
movss xmm7, dword [edi]
movaps xmm0, xmm6
mov edx, dword [ebp + 0x14]
subss xmm0, xmm3
movss xmm4, dword [ecx + 0x3bb4]
movss dword [esp + 0x24], xmm4
mov byte [esp + 0xb], ah
subss xmm0, xmm4
maxss xmm7, xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x10], xmm0
movss dword [esp + 0xc], xmm7
test edx, edx
je 0x1005f448
cmp byte [ebp + 0x18], ah
jne 0x1005f41f
movaps xmm1, xmm6
movaps xmm0, xmm4
subss xmm1, dword [edi]
maxss xmm0, dword [ecx + 0x3828]
comiss xmm1, xmm0
jb 0x1005f448
mov eax, dword [ecx + 0x3e60]
cmp eax, dword [ebp + 0x10]
je 0x1005f43d
cmp eax, edx
je 0x1005f43d
mov eax, dword [ecx + 0x3e74]
cmp eax, dword [ebp + 0x10]
je 0x1005f43d
cmp eax, edx
jne 0x1005f444
xor edx, edx
inc edx
mov ah, dl
jmp 0x1005f44b
mov ah, byte [esp + 0xb]
xor edx, edx
inc edx
test byte [ebp + 8], 1
je 0x1005f461
movaps xmm0, xmm7
addss xmm0, xmm4
comiss xmm6, xmm0
jb 0x1005f461
mov al, dl
jmp 0x1005f463
xor al, al
mov byte [esp + 0xb], al
test ah, ah
je 0x1005f4fe
lea esi, [ecx + 0x469c]
push 0xf
pop ecx
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
push 0xb
lea edx, [ebp + 0x24]
pop ecx
call fcn.100049ac
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0xc]
call fcn.1004bdc1
xor ecx, ecx
mov byte [esp + 0xc], al
inc ecx
call fcn.10004a1a
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x38]
push 0xf
add edi, 0x469c
test byte [ebp + 8], 4
pop ecx
rep movsd dword es:[edi], dword [esi]
jne 0x1005f4da
push 0
push 2
xor edx, edx
pop ecx
call fcn.1000e102
pop ecx
mov ecx, dword [esp + 0xc]
test al, al
push 1
movzx ecx, cl
pop eax
cmovne ecx, eax
mov dword [esp + 0xc], ecx
movss xmm0, dword [esp + 0x24]
movss xmm2, dword [esp + 0x20]
movaps xmm1, xmm0
mulss xmm1, dword [0x100b1a84]
mov al, byte [esp + 0xb]
mov esi, dword [esp + 0x14]
jmp 0x1005f5bf
test al, al
je 0x1005f596
movss xmm2, dword [ecx + 0x37d4]
movaps xmm0, xmm7
movss xmm3, dword [ecx + 0x37d8]
addss xmm2, xmm2
addss xmm0, xmm4
movaps xmm1, xmm5
addss xmm3, xmm3
xor ecx, ecx
addss xmm2, xmm0
movss xmm0, dword [edi + 4]
addss xmm0, xmm4
addss xmm2, xmm7
addss xmm3, xmm0
mulss xmm2, dword [0x100b1a5c]
addss xmm3, dword [edi + 4]
movss dword [esp + 0x18], xmm2
mulss xmm3, dword [0x100b1a5c]
movss dword [esp + 0x1c], xmm3
call fcn.1000471a
push dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edx, eax
push dword [esp + 0x1c]
mov ecx, esi
call fcn.1003ffa1
movss xmm2, dword [esp + 0x28]
movss xmm4, dword [esp + 0x2c]
movss xmm5, dword [0x100b1aa4]
mov al, byte [esp + 0x13]
pop ecx
pop ecx
jmp 0x1005f59a
mov esi, dword [esp + 0x14]
movss xmm3, dword [edi + 8]
mov byte [esp + 0xc], 0
subss xmm3, xmm5
test al, al
je 0x1005f5dd
movaps xmm1, xmm4
mov byte [esp + 0xc], 0
mulss xmm1, dword [0x100b1a84]
movaps xmm0, xmm1
subss xmm2, xmm0
movaps xmm3, xmm2
test al, al
jne 0x1005f5cd
xorps xmm1, xmm1
movss xmm0, dword [esp + 0x7c]
subss xmm0, xmm1
movss dword [esp + 0x7c], xmm0
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x34]
lea eax, [esp + 0x88]
push ecx
movss dword [esp], xmm3
lea edx, [esp + 0x84]
push eax
movaps xmm3, xmm2
mov ecx, esi
call fcn.10004fef
mov ecx, dword [esp + 0x3c]
add esp, 0x14
test ecx, ecx
je 0x1005f618
mov eax, dword [esp + 0xc]
mov byte [ecx], al
mov ecx, dword [esp + 0x84]
pop edi
pop esi
xor ecx, esp
call fcn.10069b82
mov esp, ebp
pop ebp
ret