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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
push esi
push edi
mov edi, edx
mov esi, ecx
mov edx, dword [0x102a1b70]
mov eax, dword [edx + 0x17fc]
mov byte [eax + 0x8e], 1
mov ecx, dword [edx + 0x17fc]
cmp byte [ecx + 0x90], 0
jne 0x1005d7aa
test edi, edi
jne 0x1005d192
mov ecx, esi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005d180
sub ecx, edi
lea edi, [esi + ecx]
mov ecx, dword [edx + 0x17fc]
movss xmm1, dword [ecx + 0x148]
xorps xmm7, xmm7
movss xmm3, dword [ecx + 0xfc]
mov eax, edi
addss xmm3, dword [ecx + 0xdc]
movss xmm5, dword [ecx + 0xd8]
comiss xmm1, xmm7
movss dword [esp + 0x2c], xmm5
movss dword [esp + 0x1c], xmm3
setae byte [esp + 0x17]
sub eax, esi
cmp eax, 0x7d0
jle 0x1005d4d5
cmp byte [esp + 0x17], 0
jne 0x1005d4e0
movups xmm0, xmmword [ecx + 0x1b0]
movss xmm4, dword [edx + 0x172c]
xorps xmm2, xmm2
movaps xmmword [esp + 0x40], xmm0
xorps xmm1, xmm1
shufps xmm0, xmm0, 0xff
comiss xmm0, xmm3
movss dword [esp + 0x20], xmm4
movss dword [esp + 0x18], xmm2
jb 0x1005d484
cmp byte [edx + 0x28f0], 0
movaps xmm1, xmm3
movss dword [esp + 0x50], xmm5
movss dword [esp + 0x54], xmm1
jne 0x1005d2a4
movss xmm0, dword [esp + 0x44]
subss xmm0, xmm3
divss xmm0, xmm4
cvttss2si ecx, xmm0
mov dword [esp + 0x24], ecx
test ecx, ecx
jle 0x1005d2a4
xor eax, eax
mov dword [esp + 0x10], eax
cmp esi, edi
jae 0x1005d28f
cmp eax, ecx
jge 0x1005d27a
push 0xa
push esi
call fcn.10021790
mov ecx, dword [esp + 0x2c]
add esp, 8
test eax, eax
cmove eax, edi
lea esi, [eax + 1]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp esi, edi
jb 0x1005d252
movss xmm3, dword [esp + 0x1c]
xorps xmm7, xmm7
movss xmm4, dword [esp + 0x20]
movss xmm5, dword [esp + 0x2c]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm4
addss xmm1, xmm3
movss dword [esp + 0x54], xmm1
cmp esi, edi
jae 0x1005d470
movaps xmm0, xmm5
movss dword [esp + 0x24], xmm1
addss xmm0, dword [0x10294548]
movss dword [esp + 0x3c], xmm0
movaps xmm0, xmm1
addss xmm0, xmm4
movss dword [esp + 0x10], xmm0
push 0xa
push esi
call fcn.10021790
mov edx, dword [0x102a1b70]
add esp, 8
movss xmm0, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov ecx, dword [edx + 0x17fc]
comiss xmm0, dword [ecx + 0x1b4]
jbe 0x1005d327
movss xmm0, dword [ecx + 0x1bc]
comiss xmm0, dword [esp + 0x24]
jbe 0x1005d327
movss xmm0, dword [esp + 0x3c]
comiss xmm0, dword [ecx + 0x1b0]
jbe 0x1005d327
movss xmm0, dword [ecx + 0x1b8]
comiss xmm0, dword [esp + 0x2c]
ja 0x1005d334
cmp byte [edx + 0x28f0], 0
je 0x1005d42a
movss xmm0, dword [edx + 0x172c]
mov ecx, dword [esp + 0x38]
mov eax, dword [edx + 0x1728]
mov dword [esp + 0x30], eax
movss dword [esp + 0x28], xmm0
cmp esi, ecx
jne 0x1005d359
xorps xmm1, xmm1
jmp 0x1005d3b9
movss xmm3, dword [0x10294548]
movaps xmm2, xmm0
push ecx
push ecx
push esi
push ecx
lea ecx, [esp + 0x78]
mov dword [esp], 0xbf800000
push ecx
mov ecx, eax
call fcn.10086f00
movss xmm0, dword [esp + 0x68]
comiss xmm0, dword [0x10294348]
jbe 0x1005d39c
mov eax, dword [esp + 0x30]
movss xmm1, dword [esp + 0x28]
divss xmm1, dword [eax]
subss xmm0, xmm1
addss xmm0, dword [0x102943e4]
mov ecx, dword [esp + 0x38]
cvttss2si eax, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x68], xmm1
movss xmm0, dword [esp + 0x18]
comiss xmm0, xmm1
jae 0x1005d3ca
movss dword [esp + 0x18], xmm1
push dword [esp + 0x54]
mov edx, ecx
mov ecx, esi
push dword [esp + 0x54]
push 0
call fcn.10066800
movss xmm0, dword [esp + 0x30]
add esp, 0xc
movss xmm1, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
addss xmm0, xmm1
test eax, eax
cmove eax, edi
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x10]
addss xmm0, xmm1
lea esi, [eax + 1]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x54]
addss xmm0, xmm1
movss dword [esp + 0x54], xmm0
cmp esi, edi
jb 0x1005d2d0
xor eax, eax
mov dword [esp + 0x10], eax
cmp esi, edi
jae 0x1005d454
push 0xa
push esi
call fcn.10021790
add esp, 8
test eax, eax
cmove eax, edi
lea esi, [eax + 1]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp esi, edi
jb 0x1005d434
movss xmm3, dword [esp + 0x1c]
xorps xmm7, xmm7
movd xmm0, eax
cvtdq2ps xmm1, xmm0
mulss xmm1, dword [esp + 0x20]
addss xmm1, dword [esp + 0x54]
movss xmm2, dword [esp + 0x18]
subss xmm1, xmm3
movss xmm5, dword [esp + 0x2c]
addss xmm1, xmm7
addss xmm1, xmm3
movss dword [esp + 0x40], xmm5
addss xmm2, xmm5
movss dword [esp + 0x44], xmm3
lea ecx, [esp + 0x68]
movss dword [esp + 0x4c], xmm1
subss xmm1, xmm3
movss dword [esp + 0x48], xmm2
subss xmm2, xmm5
movss dword [esp + 0x6c], xmm1
xorps xmm1, xmm1
movss dword [esp + 0x68], xmm2
call fcn.1006a070
xor edx, edx
lea ecx, [esp + 0x40]
call fcn.10069ef0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x17], 0
je 0x1005d586
comiss xmm7, xmm1
ja 0x1005d586
mov ecx, dword [edx + 0x17fc]
ucomiss xmm1, xmm7
lahf
test ah, 0x44
jp 0x1005d565
mov eax, dword [ecx + 0x1a0]
movss xmm1, dword [ecx + 0x4c]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1005d552
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x18]
lea eax, [edx + 1]
movss xmm0, dword [ecx + 0x14]
test eax, eax
cmovns edx, eax
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [esp + 0x18]
movss xmm1, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm1, xmm0
mov edx, dword [0x102a1b70]
mulss xmm1, dword [eax + ecx*4]
mov ecx, dword [edx + 0x17fc]
addss xmm1, xmm0
subss xmm1, dword [ecx + 0x54]
addss xmm1, dword [ecx + 0x14]
subss xmm1, xmm5
maxss xmm1, dword [0x102943f0]
jmp 0x1005d589
comiss xmm1, xmm7
jbe 0x1005d578
movss xmm0, dword [ecx + 0x14]
subss xmm0, dword [ecx + 0x68]
addss xmm1, xmm0
subss xmm1, xmm5
maxss xmm1, dword [0x102943f0]
jmp 0x1005d589
xorps xmm1, xmm1
movss xmm0, dword [edx + 0x172c]
mov eax, dword [edx + 0x1728]
movss dword [esp + 0x18], xmm1
mov dword [esp + 0x28], eax
movss dword [esp + 0x30], xmm0
cmp esi, edi
jne 0x1005d5b0
xorps xmm1, xmm1
jmp 0x1005d615
movss xmm3, dword [0x10294548]
movaps xmm2, xmm0
push ecx
push edi
push esi
push ecx
lea ecx, [esp + 0x78]
movss dword [esp], xmm1
push ecx
mov ecx, eax
call fcn.10086f00
movss xmm1, dword [esp + 0x68]
xorps xmm7, xmm7
comiss xmm1, xmm7
jbe 0x1005d5f0
mov eax, dword [esp + 0x28]
movss xmm0, dword [esp + 0x30]
divss xmm0, dword [eax]
subss xmm1, xmm0
addss xmm1, dword [0x102943e4]
movss xmm0, dword [esp + 0x6c]
movss xmm3, dword [esp + 0x1c]
movss xmm5, dword [esp + 0x2c]
cvttss2si eax, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [esp + 0x50], xmm1
lea ecx, [esp + 0x50]
addss xmm1, xmm5
movss dword [esp + 0x54], xmm0
addss xmm0, xmm3
movss dword [esp + 0x40], xmm5
movss dword [esp + 0x44], xmm3
movss dword [esp + 0x48], xmm1
xorps xmm1, xmm1
movss dword [esp + 0x4c], xmm0
call fcn.1006a070
xor edx, edx
lea ecx, [esp + 0x40]
call fcn.10069ef0
test al, al
je 0x1005d7aa
mov edx, dword [0x102a1b70]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [edx + 0x17fc]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x3c], edx
test edi, edi
jne 0x1005d6a2
mov ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005d690
sub ecx, edi
lea edi, [ecx + esi]
mov ecx, dword [edx + 0x17fc]
mov eax, edi
sub eax, esi
test eax, eax
jle 0x1005d7aa
mov eax, dword [ecx + 0x254]
xor ecx, ecx
movss xmm1, dword [0x102943f0]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x1728]
mov dword [esp + 0x10], eax
call fcn.1006be70
mov ecx, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ecx
mov eax, edi
test ecx, 0xff000000
je 0x1005d792
test edi, edi
jne 0x1005d708
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x30], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005d6f6
sub ecx, dword [esp + 0x30]
lea eax, [ecx + esi]
mov dword [esp + 0x20], eax
cmp esi, eax
je 0x1005d792
cmp dword [edx + 0x1728], 0
mov ecx, dword [esp + 0x1c]
jne 0x1005d727
mov eax, dword [ecx + 0x28]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
movss xmm2, dword [edx + 0x172c]
ucomiss xmm2, xmm7
lahf
test ah, 0x44
jp 0x1005d749
mov eax, dword [ecx + 0x28]
movss xmm0, dword [eax + 0xc]
movss dword [esp + 0x30], xmm0
movaps xmm2, xmm0
mov edx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x3c]
shl ecx, 4
push 0
mov eax, dword [edx + 0x44]
push ecx
movups xmm0, xmmword [ecx + eax - 0x10]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x58]
movups xmmword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0x20]
movss dword [esp], xmm0
push dword [esp + 0x28]
push esi
push eax
push dword [esp + 0x3c]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push edx
call fcn.10079b50
mov edx, dword [esp + 0x3c]
cmp byte [edx + 0x28f0], 0
je 0x1005d7aa
push edi
mov edx, esi
lea ecx, [esp + 0x6c]
call fcn.10066930
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret