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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
mov eax, dword [0x102a100c]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x102a1b70]
mov ebx, ecx
mov dword [esp + 0x34], eax
movss dword [esp + 0x54], xmm3
movss dword [esp + 0x1c], xmm2
mov eax, dword [edi + 0x17fc]
mov dword [esp + 0x30], edx
mov byte [eax + 0x8e], 1
mov eax, dword [edi + 0x17fc]
mov dword [esp + 0x2c], eax
cmp byte [eax + 0x90], 0
jne 0x100595f3
mov ecx, dword [eax + 0x1a4]
xor edx, edx
mov eax, dword [eax + 0x1ac]
push dword [eax + ecx*4 - 4]
mov ecx, ebx
call fcn.1006c960
add esp, 4
mov dword [esp + 0x44], eax
cmp dword [edi + 0x181c], eax
jne 0x100593ef
mov byte [edi + 0x1828], 1
mov esi, dword [edi + 0x17fc]
xorps xmm3, xmm3
movss xmm2, dword [esi + 0x144]
comiss xmm3, xmm2
jbe 0x10059471
movss xmm3, dword [esi + 0xd8]
mov ecx, dword [esi + 0x1a0]
movss xmm1, dword [esi + 0x4c]
subss xmm3, dword [esi + 0x14]
test ecx, ecx
je 0x1005945a
mov edx, dword [ecx + 0xc]
movss xmm0, dword [ecx + 0x14]
lea eax, [edx + 1]
test eax, eax
cmovns edx, eax
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [esi + 0x1a0]
movss xmm1, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm1, xmm0
mulss xmm1, dword [eax + ecx*4]
addss xmm1, xmm0
subss xmm1, dword [esi + 0x54]
subss xmm1, xmm3
xorps xmm3, xmm3
addss xmm1, xmm2
movss xmm2, dword [0x102943f0]
maxss xmm2, xmm1
mov eax, ebx
cvttss2si esi, xmm2
cmp ebx, 0xffffffff
jae 0x10059496
nop dword [eax]
mov cl, byte [eax]
test cl, cl
je 0x10059496
cmp cl, 0x23
jne 0x10059490
cmp byte [eax + 1], cl
je 0x10059496
inc eax
cmp eax, 0xffffffff
jb 0x10059480
movss xmm0, dword [edi + 0x172c]
mov ecx, dword [edi + 0x1728]
mov dword [esp + 0x24], ecx
movss dword [esp + 0x28], xmm0
cmp ebx, eax
jne 0x100594b7
movaps xmm2, xmm3
jmp 0x10059510
movss xmm3, dword [0x10294548]
movaps xmm2, xmm0
push ecx
push eax
push ebx
push ecx
lea eax, [esp + 0x5c]
mov dword [esp], 0xbf800000
push eax
call fcn.10086f00
movss xmm0, dword [esp + 0x4c]
xorps xmm3, xmm3
comiss xmm0, xmm3
jbe 0x100594f7
mov eax, dword [esp + 0x24]
movss xmm1, dword [esp + 0x28]
divss xmm1, dword [eax]
subss xmm0, xmm1
addss xmm0, dword [0x102943e4]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x50]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm2, xmm3
mov eax, dword [esp + 0x2c]
movss xmm7, dword [edi + 0x141c]
movss xmm4, dword [eax + 0xd8]
addss xmm7, xmm7
movd xmm5, esi
movaps xmm1, xmm4
cvtdq2ps xmm5, xmm5
addss xmm7, xmm0
movss dword [esp + 0x24], xmm2
addss xmm1, xmm5
movss dword [esp + 0x3c], xmm4
movss xmm5, dword [eax + 0xdc]
movss dword [esp + 0x40], xmm5
movss dword [esp + 0x68], xmm4
addss xmm7, xmm5
movss dword [esp + 0x6c], xmm5
movss dword [esp + 0x70], xmm1
movss dword [esp + 0x74], xmm7
jbe 0x10059582
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x1430]
jmp 0x10059585
movaps xmm0, xmm3
mov esi, dword [esp + 0x44]
addss xmm1, xmm0
addss xmm7, xmm3
movss dword [esp + 0x58], xmm4
mov edx, esi
movss dword [esp + 0x5c], xmm5
lea ecx, [esp + 0x58]
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x4c], xmm7
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x64], xmm7
call fcn.10069ef0
test al, al
jne 0x1005960a
movss xmm0, dword [esp + 0x38]
lea ecx, [esp + 0x1c]
subss xmm0, dword [esp + 0x3c]
subss xmm7, dword [esp + 0x40]
movss xmm1, dword [edi + 0x141c]
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x20], xmm7
call fcn.1006a070
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.1001e823
mov esp, ebp
pop ebp
ret
mov edx, esi
lea ecx, [esp + 0x68]
call fcn.10069ce0
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov byte [esp + 0x1b], al
mov eax, str._.3f
cmovne eax, ecx
mov ecx, eax
mov dword [esp + 0x34], eax
call fcn.1005a050
mov ecx, dword [esp + 0x2c]
mov edx, esi
push 1
mov dword [esp + 0x2c], eax
call fcn.10069b20
add esp, 4
mov byte [esp + 0x1a], al
test al, al
jne 0x1005965c
cmp byte [esp + 0x1b], al
je 0x10059686
cmp byte [edi + 0x36c], al
je 0x10059686
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.1006a290
mov ecx, edx
call fcn.1005f580
cmp byte [esp + 0x1a], 0
jne 0x100597ce
cmp byte [edi + 0xe1], 0
jne 0x100597ce
cmp dword [edi + 0x181c], esi
jne 0x1005969a
cmp dword [edi + 0x287c], esi
je 0x100597d8
movss xmm0, dword [esp + 0x38]
lea ecx, [esp + 0x44]
subss xmm0, dword [esp + 0x3c]
movss xmm1, dword [edi + 0x141c]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0x4c]
subss xmm0, dword [esp + 0x40]
movss dword [esp + 0x48], xmm0
call fcn.1006a070
movss xmm0, dword [ebp + 0xc]
lea ecx, [esp + 0x68]
movss xmm3, dword [esp + 0x1c]
mov edx, esi
push 0
push dword [esp + 0x2c]
sub esp, 8
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [esp], xmm0
push dword [esp + 0x40]
call fcn.10059810
mov byte [esp + 0x2e], al
add esp, 0xc
mov eax, dword [esp + 0x38]
movss xmm0, dword [eax]
lea eax, [esp + 0x80]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push dword [esp + 0x3c]
push 0x40
push eax
call fcn.1006cab0
add esp, 0x14
mov dword [esp + 0x1c], 0x3f000000
lea ecx, [esp + 0x78]
mov dword [esp + 0x20], 0x3f000000
add eax, ecx
lea edx, [esp + 0x70]
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0
push eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x7c]
call fcn.10066350
movss xmm0, dword [esp + 0x38]
add esp, 0x14
comiss xmm0, dword [0x10294348]
jbe 0x100597b5
movss xmm0, dword [esp + 0x70]
xor edx, edx
addss xmm0, dword [edi + 0x1430]
mov ecx, ebx
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x6c]
addss xmm0, dword [edi + 0x141c]
movss dword [esp + 0x20], xmm0
push dword [esp + 0x20]
push dword [esp + 0x20]
push 1
call fcn.10066800
add esp, 0xc
mov al, byte [esp + 0x1a]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.1001e823
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x287c], 0
push dword [esp + 0x28]
mov edx, ebx
push esi
push dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x78]
call fcn.1005a0e0
mov ecx, dword [esp + 0xcc]
add esp, 0x10
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001e823
mov esp, ebp
pop ebp
ret