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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
mov eax, dword [0x102a000c]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x102a0b70]
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 0x10059ad3
mov ecx, dword [eax + 0x1a4]
xor edx, edx
mov eax, dword [eax + 0x1ac]
push dword [eax + ecx*4 - 4]
mov ecx, ebx
call fcn.1006ce40
add esp, 4
mov dword [esp + 0x44], eax
cmp dword [edi + 0x181c], eax
jne 0x100598cf
mov byte [edi + 0x1828], 1
mov esi, dword [edi + 0x17fc]
xorps xmm3, xmm3
movss xmm2, dword [esi + 0x144]
comiss xmm3, xmm2
jbe 0x10059951
movss xmm3, dword [esi + 0xd8]
mov ecx, dword [esi + 0x1a0]
movss xmm1, dword [esi + 0x4c]
subss xmm3, dword [esi + 0x14]
test ecx, ecx
je 0x1005993a
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 [0x10293df0]
maxss xmm2, xmm1
mov eax, ebx
cvttss2si esi, xmm2
cmp ebx, 0xffffffff
jae 0x10059976
nop dword [eax]
mov cl, byte [eax]
test cl, cl
je 0x10059976
cmp cl, 0x23
jne 0x10059970
cmp byte [eax + 1], cl
je 0x10059976
inc eax
cmp eax, 0xffffffff
jb 0x10059960
movss xmm0, dword [edi + 0x172c]
mov ecx, dword [edi + 0x1728]
mov dword [esp + 0x24], ecx
movss dword [esp + 0x28], xmm0
cmp ebx, eax
jne 0x10059997
movaps xmm2, xmm3
jmp 0x100599f0
movss xmm3, dword [0x10293f48]
movaps xmm2, xmm0
push ecx
push eax
push ebx
push ecx
lea eax, [esp + 0x5c]
mov dword [esp], 0xbf800000
push eax
call fcn.100873e0
movss xmm0, dword [esp + 0x4c]
xorps xmm3, xmm3
comiss xmm0, xmm3
jbe 0x100599d7
mov eax, dword [esp + 0x24]
movss xmm1, dword [esp + 0x28]
divss xmm1, dword [eax]
subss xmm0, xmm1
addss xmm0, dword [0x10293de4]
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 0x10059a62
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x1430]
jmp 0x10059a65
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.1006a3d0
test al, al
jne 0x10059aea
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.1006a550
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.1001ed23
mov esp, ebp
pop ebp
ret
mov edx, esi
lea ecx, [esp + 0x68]
call fcn.1006a1c0
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.1005a530
mov ecx, dword [esp + 0x2c]
mov edx, esi
push 1
mov dword [esp + 0x2c], eax
call fcn.1006a000
add esp, 4
mov byte [esp + 0x1a], al
test al, al
jne 0x10059b3c
cmp byte [esp + 0x1b], al
je 0x10059b66
cmp byte [edi + 0x36c], al
je 0x10059b66
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.1006a770
mov ecx, edx
call fcn.1005fa60
cmp byte [esp + 0x1a], 0
jne 0x10059cae
cmp byte [edi + 0xe1], 0
jne 0x10059cae
cmp dword [edi + 0x181c], esi
jne 0x10059b7a
cmp dword [edi + 0x287c], esi
je 0x10059cb8
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.1006a550
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.10059cf0
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.1006cf90
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.10066830
movss xmm0, dword [esp + 0x38]
add esp, 0x14
comiss xmm0, dword [0x10293d48]
jbe 0x10059c95
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.10066ce0
add esp, 0xc
mov al, byte [esp + 0x1a]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.1001ed23
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.1005a5c0
mov ecx, dword [esp + 0xcc]
add esp, 0x10
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001ed23
mov esp, ebp
pop ebp
ret