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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x48], 0
je 0x4949a5
mov eax, dword [esi + 0x38]
xor ecx, ecx
mov edx, dword [esi + 0x4c]
mov edi, dword [esi + 0x44]
test eax, eax
je 0x494967
mov eax, dword [eax]
test eax, eax
je 0x494967
mov ecx, dword [eax]
add edx, edi
xor eax, eax
test ecx, ecx
je 0x494977
mov ecx, dword [ecx]
test ecx, ecx
je 0x494977
mov eax, dword [ecx]
test eax, eax
jne 0x49497f
xor edi, edi
jmp 0x494981
mov edi, dword [eax]
mov eax, dword [edi + 8]
mov ecx, edx
dec eax
shr ecx, 2
and ecx, eax
and edx, 3
mov eax, dword [edi + 4]
push 0
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x584e48]
push dword [eax + edx*4]
call fcn.0043bd10
push dword [0x5821b4]
mov ecx, dword [0x584e48]
call fcn.0043c200
cmp byte [esi + 0x6e], 0
je 0x494b68
mov ecx, esi
call fcn.0041df90
cmp dword [esi + 0x60], 0
je 0x494b68
mov ecx, dword [0x584e48]
push 1
call fcn.0043d780
movss xmm0, dword [esi + 0x5c]
mov ecx, dword [0x584e48]
movss dword [ebp - 8], xmm0
call fcn.0043b520
fmul dword [0x54159c]
xorps xmm0, xmm0
movss xmm2, dword [esi + 0x68]
xorps xmm4, xmm4
mulss xmm2, dword [0x54159c]
mov ecx, dword [0x584e48]
movss xmm3, dword [ebp - 8]
fstp dword [ebp - 4]
movss xmm1, dword [ebp - 4]
subss xmm0, xmm1
addss xmm1, xmm4
movss dword [ebp - 0x18], xmm0
movaps xmm0, xmm2
addss xmm0, xmm3
movss dword [ebp - 0x10], xmm1
subss xmm3, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [esi + 0x58]
movss dword [ebp - 0xc], xmm3
movss dword [ebp - 4], xmm0
call fcn.0043b520
fdiv dword [esi + 0x64]
mov eax, dword [esi + 0x60]
mov ecx, dword [0x584e48]
push 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x3f800000
movss xmm0, dword [esi + 0x58]
movss xmm1, dword [ebp - 4]
fstp dword [ebp - 8]
addss xmm0, dword [ebp - 8]
movss dword [ebp - 0x28], xmm1
movss dword [ebp - 0x20], xmm0
push dword [eax + 0x30]
call fcn.0043bd10
push dword [0x5821b4]
mov ecx, dword [0x584e48]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043c940
movss xmm0, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
movss xmm1, dword [esi + 0x5c]
xorps xmm2, xmm2
mulss xmm1, dword [0x5473d0]
addss xmm0, xmm2
mov ecx, dword [0x584e48]
push dword [0x5821b4]
push eax
movss dword [ebp - 0x18], xmm0
lea eax, [ebp - 0x18]
movss xmm0, dword [ebp - 0x10]
addss xmm0, xmm2
push eax
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [ebp - 0x14]
addss xmm0, xmm1
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [ebp - 0xc]
addss xmm0, xmm1
movss xmm1, dword [ebp - 0x24]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [ebp - 0x1c]
movss dword [ebp - 0x24], xmm0
movss dword [ebp - 0x1c], xmm1
call fcn.0043c940
cmp byte [esi + 0x6c], 0
je 0x494b5b
mov eax, dword [0x584e60]
movss xmm1, dword [0x5415a0]
movss xmm0, dword [eax + 0x20]
mulss xmm0, dword [0x5420d8]
addss xmm0, dword [esi + 0x58]
comiss xmm0, xmm1
movss dword [esi + 0x58], xmm0
jbe 0x494b5b
subss xmm0, xmm1
movss dword [esi + 0x58], xmm0
mov ecx, dword [0x584e48]
push 1
call fcn.0043d7b0
cmp byte [esi + 0x6c], 0
je 0x494c45
mov edi, dword [esi + 0x74]
test edi, edi
jne 0x494b82
mov byte [esi + 0x6d], 1
jmp 0x494c45
cmp byte [0x5910f0], 0
je 0x494bd1
cmp byte [0x5910f1], 0
je 0x494c45
cmp byte [0x5910f2], 0
je 0x494bae
mov ecx, dword [0x584e74]
call fcn.0043fd40
jmp 0x494bb9
mov ecx, dword [0x584e4c]
call fcn.0044aad0
mov byte [0x5910f0], 0
inc dword [esi + 0x70]
mov eax, dword [esi + 0x70]
cmp eax, dword [esi + 0x74]
setge al
mov byte [esi + 0x6d], al
jmp 0x494c45
mov ecx, dword [esi + 0x70]
cmp ecx, edi
jge 0x494c45
push ebx
mov ebx, ecx
lea edx, [ebx + ebx*2]
shl edx, 3
mov eax, dword [esi + 0x78]
cmp dword [edx + eax + 0x10], 0
jne 0x494c02
lea ecx, [ebx + 1]
cmp ecx, edi
mov dword [esi + 0x70], ecx
mov ebx, ecx
setge al
add edx, 0x18
mov byte [esi + 0x6d], al
cmp ecx, edi
jl 0x494be1
pop ebx
cmp ecx, edi
jge 0x494c45
mov eax, dword [esi + 0x78]
lea ecx, [ecx + ecx*2]
cmp dword [eax + ecx*8 + 0x10], 0
je 0x494c45
mov byte [0x5910f1], 0
mov byte [0x5910f0], 1
mov eax, dword [esi + 0x70]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x78]
cmp dword [eax + ecx*8 + 0x14], 0x10
lea eax, [eax + ecx*8]
jb 0x494c37
mov eax, dword [eax]
push eax
push 0x495790
call fcn.004504b0
add esp, 8
cmp byte [esi + 0x6d], 0
je 0x494c62
mov eax, dword [0x584e60]
cmp dword [eax + 0x3c], 0
jne 0x494c62
push 0x590fa8
mov ecx, esi
call fcn.0041e330
pop edi
pop esi
mov esp, ebp
pop ebp
ret