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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
movss dword [ebp - 0xc], xmm2
push esi
push edi
movss dword [ebp - 0x14], xmm1
cmp dword [ebx + 0x5c], 0
jne 0x408e81
cmp dword [ebx + 0x60], 0
je 0x408e8b
call fcn.00408980
movss xmm1, dword [ebp - 0x14]
cmp dword [ebx + 0x58], 3
jne 0x408ebb
movss xmm0, dword [ebx + 0x18]
ucomiss xmm0, dword [0x577570]
lahf
test ah, 0x44
jnp 0x408ea7
mulss xmm1, xmm0
movss xmm0, dword [ebx + 0x84]
addss xmm0, xmm1
movss dword [ebx + 0x84], xmm0
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x408edc
cmp eax, 2
jne 0x408ece
mov ecx, ebx
call fcn.004072d0
mov ecx, ebx
mov dword [ebx + 0x7c], 0
call fcn.00407940
movss xmm1, dword [ebx + 0x1c]
xorps xmm2, xmm2
ucomiss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x4093af
cmp dword [ebx + 0x5c], 0
jne 0x408f05
movss xmm0, dword [ebp - 0xc]
comiss xmm0, xmm2
mov byte [ebp - 1], 1
ja 0x408f09
mov byte [ebp - 1], 0
movss xmm0, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x78]
movss xmm2, dword [ebx + 0x84]
mulss xmm0, xmm1
movss dword [ebp - 8], xmm2
movss dword [ebx + 0x70], xmm0
cmp dword [ecx + 0xc], 0
jg 0x408f38
mov eax, dword [ecx]
push ecx
movss dword [esp], xmm2
call dword [eax + 0x1c]
cmp byte [ebp - 1], 0
je 0x408f83
movss xmm1, dword [ebp - 0xc]
mulss xmm1, dword [0x577620]
mov esi, dword [ebx + 0x78]
movss dword [ebp - 0x14], xmm1
movss xmm0, dword [esi + 0x14]
mulss xmm0, xmm1
call fcn.00552a50
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x577e70]
cvtpd2ps xmm0, xmm0
divss xmm0, dword [ebp - 0x14]
movss dword [esi + 0x14], xmm0
mov ecx, dword [ebx + 0xd0]
test ecx, ecx
je 0x408fa3
cmp dword [ecx + 0xc], 0
jg 0x408fa3
mov eax, dword [ecx]
movss xmm0, dword [ebp - 8]
push ecx
movss dword [esp], xmm0
call dword [eax + 0x1c]
cmp byte [ebp - 1], 0
je 0x408ff2
mov eax, dword [ebx + 0x78]
movss xmm0, dword [eax + 0x14]
mulss xmm0, dword [ebp - 0xc]
call fcn.00552a50
mov edx, eax
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0x18], edx
je 0x409154
mov dword [eax + 0x18], edx
mov esi, 1
mov ecx, dword [ebx + 0x74]
mov eax, edx
and edx, 0x1f
shr eax, 5
mov edi, dword [ecx + 0x48]
mov ecx, edx
shl esi, cl
test dword [edi + eax*4], esi
jne 0x409079
or dword [edi + eax*4], esi
mov eax, dword [ebx + 0x98]
xor esi, esi
sub eax, dword [ebx + 0x94]
sar eax, 2
mov dword [ebp - 0xc], eax
test eax, eax
je 0x409079
dec eax
mov dword [ebp - 0x14], eax
mov edi, edi
mov eax, dword [ebx + 0x94]
mov edi, dword [eax + esi*4]
cmp dword [edi + 0xc], 0
jg 0x409031
mov eax, dword [edi]
movss xmm0, dword [ebp - 8]
push ecx
mov ecx, edi
movss dword [esp], xmm0
call dword [eax + 0x1c]
cmp esi, dword [ebp - 0x14]
je 0x40904e
mov eax, dword [ebx + 0x94]
mov ecx, dword [eax + esi*4 + 4]
mov eax, dword [edi + 0x88]
cmp eax, dword [ecx + 0x88]
je 0x409073
mov ecx, dword [edi + 0x88]
push dword [ebx + 0x14]
movss xmm1, dword [ebx + 0x70]
add ecx, 0x84
call fcn.00409570
test eax, eax
je 0x409073
push eax
mov ecx, edi
call fcn.0040b550
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x409010
cmp byte [ebx + 0xe], 0
je 0x409118
mov eax, dword [ebx + 0xa4]
xor edi, edi
sub eax, dword [ebx + 0xa0]
sar eax, 2
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409118
jmp 0x4090a0
mov eax, dword [ebx + 0xa0]
mov ecx, dword [eax + edi*4]
mov dword [ebp - 0xc], ecx
mov esi, dword [ecx + 0x88]
mov edx, dword [esi + 0x74]
test edx, edx
je 0x4090fc
cmp dword [ebx + 0x3c], 0x10
lea eax, [ebx + 0x28]
mov ecx, dword [eax + 0x10]
jb 0x4090c7
mov eax, dword [eax]
push ecx
push eax
push edx
push 0
lea ecx, [esi + 0x64]
call fcn.00405ba0
test eax, eax
je 0x4090f9
cmp dword [ebx + 0x54], 0x10
lea eax, [ebx + 0x40]
mov ecx, dword [eax + 0x10]
jb 0x4090e6
mov eax, dword [eax]
push ecx
push eax
push dword [esi + 0x74]
lea ecx, [esi + 0x64]
push 0
call fcn.00405ba0
test eax, eax
jne 0x409112
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0xc], 0
jg 0x409112
mov eax, dword [ecx]
movss xmm0, dword [ebp - 8]
push ecx
movss dword [esp], xmm0
call dword [eax + 0x1c]
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x4090a0
mov edi, dword [ebx + 0xb0]
xor esi, esi
sub edi, dword [ebx + 0xac]
sar edi, 2
test edi, edi
je 0x409154
lea ecx, [ecx]
mov eax, dword [ebx + 0xac]
mov ecx, dword [eax + esi*4]
cmp dword [ecx + 0xc], 0
jg 0x40914f
mov eax, dword [ecx]
movss xmm0, dword [ebp - 8]
push ecx
movss dword [esp], xmm0
call dword [eax + 0x1c]
inc esi
cmp esi, edi
jb 0x409130
cmp dword [ebx + 0x5c], 0
jne 0x4093af
cmp dword [ebx + 0x60], 0
jle 0x409390
mov dword [ebx + 0x60], 0
mov eax, dword [ebx + 0xb8]
cmp eax, dword [ebx + 0xbc]
je 0x409390
mov edi, dword [ebx + 0xbc]
mov esi, eax
cmp esi, edi
je 0x409384
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 8], ecx
test eax, eax
jne 0x4091d8
mov eax, dword [ebx + 0x98]
mov edx, dword [ebx + 0x94]
cmp edx, eax
je 0x4091bb
lea ecx, [ecx]
cmp dword [edx], ecx
je 0x4091bb
add edx, 4
cmp edx, eax
jne 0x4091b0
lea ecx, [edx + 4]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push edx
call dword [sym.imp.msvcr120.dll_memmove]
add esp, 0xc
add dword [ebx + 0x98], 0xfffffffc
jmp 0x409256
cmp eax, 1
jne 0x409218
mov eax, dword [ebx + 0xa4]
mov edx, dword [ebx + 0xa0]
cmp edx, eax
je 0x4091fb
lea ecx, [ecx]
cmp dword [edx], ecx
je 0x4091fb
add edx, 4
cmp edx, eax
jne 0x4091f0
lea ecx, [edx + 4]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push edx
call dword [sym.imp.msvcr120.dll_memmove]
add esp, 0xc
add dword [ebx + 0xa4], 0xfffffffc
jmp 0x409256
cmp eax, 2
jne 0x409259
mov eax, dword [ebx + 0xb0]
mov edx, dword [ebx + 0xac]
cmp edx, eax
je 0x40923b
lea ecx, [ecx]
cmp dword [edx], ecx
je 0x40923b
add edx, 4
cmp edx, eax
jne 0x409230
lea ecx, [edx + 4]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
push edx
call dword [sym.imp.msvcr120.dll_memmove]
add esp, 0xc
add dword [ebx + 0xb0], 0xfffffffc
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov edx, dword [0x58d484]
mov dword [ebp - 0x20], eax
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x4092ab
jmp 0x409280
cmp dword [ecx + 0x10], eax
jae 0x40928a
mov ecx, dword [ecx + 8]
jmp 0x40928e
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x409280
mov ecx, dword [0x58d484]
cmp edx, ecx
je 0x4092b1
cmp eax, dword [edx + 0x10]
jb 0x4092b1
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x18]
jmp 0x4092b7
mov ecx, dword [0x58d484]
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, ecx
je 0x4092c5
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4092cc
mov dword [ebp - 0xc], 0xbb8
lea eax, [ebp - 0x20]
push eax
call fcn.004126b0
mov edx, eax
mov dword [ebp - 0x14], edx
mov ecx, dword [edx + 4]
sub ecx, dword [edx]
sar ecx, 2
cmp ecx, dword [ebp - 0xc]
jae 0x409370
mov eax, dword [ebp - 8]
cmp byte [eax + 8], 0
jne 0x409379
mov byte [eax + 8], 1
lea eax, [ebp - 0x10]
mov ecx, dword [edx + 4]
cmp eax, ecx
mov eax, dword [ebp - 8]
jae 0x40934e
lea eax, [ebp - 0x10]
cmp dword [edx], eax
mov eax, dword [ebp - 8]
ja 0x40934e
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x10]
sub ecx, dword [edx]
sar ecx, 2
mov dword [ebp - 0xc], ecx
cmp eax, dword [edx + 8]
jne 0x409334
push ecx
mov ecx, edx
call fcn.00409af0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409348
mov eax, dword [edx]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
add dword [edx + 4], 4
jmp 0x409379
cmp ecx, dword [edx + 8]
jne 0x409361
push ecx
mov ecx, edx
call fcn.00409af0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x40936a
mov dword [ecx], eax
add dword [edx + 4], 4
jmp 0x409379
mov ecx, dword [ebp - 8]
push 1
mov eax, dword [ecx]
call dword [eax]
add esi, 8
cmp esi, edi
jne 0x409191
mov eax, dword [ebx + 0xb8]
mov dword [ebx + 0xbc], eax
mov eax, dword [ebx + 0x78]
cmp dword [eax + 0xc], 0
jle 0x4093af
movss xmm1, dword [ebx + 0x20]
xorps xmm0, xmm0
comiss xmm1, xmm0
jb 0x4093af
push 1
mov ecx, ebx
call fcn.004093c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret