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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [0x430b24]
push edi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x1928]
mov byte [eax + 0x78], 1
mov ebx, dword [esi + 0x1928]
mov edi, dword [ebx + 0x1c4]
mov byte [ebx + 0x78], 1
mov ecx, dword [esi + 0x1928]
mov edx, dword [ecx + 0x17c]
sub edx, 1
mov dword [ecx + 0x17c], edx
jne 0x494881
movss xmm0, dword [ecx + 0x228]
jmp 0x49488d
mov eax, dword [ecx + 0x184]
movss xmm0, dword [eax + edx*4 - 4]
movss dword [ecx + 0x168], xmm0
mov eax, dword [esi + 0x1928]
mov byte [eax + 0x78], 1
mov esi, dword [esi + 0x1928]
mov ecx, dword [esi + 0x27c]
dec dword [ecx + 0x3c]
call fcn.0049d414
mov eax, dword [esi + 0x27c]
mov ecx, dword [eax + 0x3c]
mov eax, dword [eax + 0x44]
add ecx, ecx
movss xmm0, dword [eax + ecx*8 - 0xc]
movss xmm1, dword [eax + ecx*8 - 8]
movss xmm2, dword [eax + ecx*8 - 4]
mov eax, dword [eax + ecx*8 - 0x10]
mov dword [esi + 0x1d4], eax
movss dword [esi + 0x1d8], xmm0
movss dword [esi + 0x1dc], xmm1
movss dword [esi + 0x1e0], xmm2
mov ecx, dword [ebx + 0x27c]
call fcn.0049d7f4
movss xmm3, dword [edi + 0x20]
maxss xmm3, dword [ebx + 0xcc]
movss dword [edi + 0x20], xmm3
movss dword [ebx + 0xcc], xmm3
mov eax, dword [edi + 4]
movss dword [ebp - 0x18], xmm3
test al, 0x10
jne 0x494932
mov eax, dword [edi + 0x28]
mov dword [ebx + 0xe0], eax
mov eax, dword [edi + 4]
mov byte [ebp - 3], 0
test al, 1
jne 0x494ca8
cmp byte [ebx + 0x7b], 0
jne 0x494ca8
movss xmm4, dword [edi + 0x24]
mov ecx, 1
or edx, 0xffffffff
movss dword [ebp - 0x10], xmm4
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
cmp dword [edi + 0x10], ecx
jle 0x494ca8
movss xmm5, dword [0x42ccbc]
movss xmm7, dword [0x42cca0]
mov dword [ebp - 0x14], 0x1c
nop dword [eax]
mov esi, dword [0x430b24]
mov dword [ebp - 0x20], edx
shl ecx, 3
sub ecx, dword [ebp - 8]
mov eax, dword [esi + 0x1928]
movss dword [ebp - 0x44], xmm4
movss dword [ebp - 0x3c], xmm3
mov edx, dword [eax + 0x1c4]
movss xmm1, dword [edx + 0x18]
subss xmm1, dword [edx + 0x14]
mov eax, dword [edx + 0x34]
mulss xmm1, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
addss xmm1, dword [edx + 0x14]
mov edx, dword [edi]
add edx, ecx
addss xmm1, dword [ebx + 0xc]
movaps xmm2, xmm1
movss dword [ebp - 0x24], xmm1
addss xmm2, xmm5
subss xmm1, xmm5
movss dword [ebp - 0x40], xmm2
movss dword [ebp - 0x48], xmm1
cmp dword [esi + 0x1944], edx
jne 0x4949f5
mov byte [esi + 0x1950], 1
cmp dword [esi + 0x1948], edx
jne 0x494a04
mov byte [esi + 0x1954], 1
mov eax, dword [esi + 0x1928]
add eax, 0x1d4
comiss xmm3, dword [eax + 4]
jbe 0x494a2e
movss xmm0, dword [eax + 0xc]
comiss xmm0, xmm4
jbe 0x494a2e
comiss xmm2, dword [eax]
jbe 0x494a2e
movss xmm0, dword [eax + 8]
comiss xmm0, xmm1
ja 0x494a47
test edx, edx
je 0x494a3a
cmp edx, dword [esi + 0x1944]
je 0x494a47
cmp byte [esi + 0x2b90], 0
je 0x494ba1
xor al, al
test byte [edi + 4], 2
mov byte [ebp - 1], al
mov byte [ebp - 2], al
jne 0x494ab5
push 0
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x48]
call fcn.004931f4
mov al, byte [ebp - 1]
add esp, 0xc
mov cl, byte [ebp - 2]
test al, al
jne 0x494a78
test cl, cl
je 0x494aad
mov edx, dword [ebp - 0x1c]
movss xmm7, dword [0x42cca0]
mov dword [edx + 0x1bd4], 4
test cl, cl
je 0x494ab5
mov eax, dword [edi + 0x34]
mov ecx, 0x1d
mov edx, dword [ebp - 0x14]
test byte [eax + edx + 8], 2
mov eax, dword [ebp - 8]
cmovne eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
jmp 0x494abf
movss xmm7, dword [0x42cca0]
xor ecx, ecx
test al, al
setne cl
add ecx, 0x1b
movaps xmm1, xmm7
call fcn.00485434
cvttss2si ecx, dword [ebp - 0x24]
mov edx, eax
mov eax, dword [ebx + 0x27c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], eax
movss xmm3, dword [ebp - 0x18]
movaps xmm0, xmm3
minss xmm0, dword [ebx + 0x1e0]
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movss dword [ebp - 0x24], xmm0
test edx, 0xff000000
je 0x494b91
movss xmm0, dword [ebp - 0x10]
lea esi, [eax + 0x54]
addss xmm1, dword [0x42cc78]
addss xmm0, xmm7
mov ecx, esi
lea eax, [ebp - 0x30]
push eax
movss dword [ebp - 0x30], xmm1
maxss xmm0, dword [ebx + 0x1d8]
addss xmm0, dword [0x42cc78]
movss dword [ebp - 0x2c], xmm0
call fcn.00495634
movss xmm0, dword [ebp - 0x30]
lea eax, [ebp - 0x38]
movss dword [ebp - 0x38], xmm0
mov ecx, esi
movss xmm0, dword [ebp - 0x24]
addss xmm0, dword [0x42cc78]
push eax
movss dword [ebp - 0x34], xmm0
call fcn.00495634
push ecx
mov ecx, dword [ebp - 0x28]
mov dword [esp], 0x3f800000
push 0
push dword [ebp - 0x20]
push dword [esi]
push dword [ecx + 0x5c]
call fcn.0049db04
push ecx
mov ecx, esi
call fcn.004956d4
movss xmm3, dword [ebp - 0x18]
movss xmm7, dword [0x42cca0]
mov ecx, dword [ebp - 8]
movss xmm5, dword [0x42ccbc]
movss xmm4, dword [ebp - 0x10]
add dword [ebp - 0x14], 0x1c
inc ecx
mov eax, dword [edi + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
cmp ecx, eax
jl 0x494984
mov ecx, edx
cmp ecx, 0xffffffff
je 0x494ca8
cmp byte [edi + 9], 0
jne 0x494bee
inc eax
xor esi, esi
test eax, eax
jle 0x494bee
xor edx, edx
nop dword [eax]
mov ecx, dword [edi + 0x34]
lea edx, [edx + 0x1c]
inc esi
mov eax, dword [ecx + edx - 0x1c]
mov dword [ecx + edx - 0x18], eax
mov eax, dword [edi + 0x10]
inc eax
cmp esi, eax
jl 0x494bd4
mov ecx, dword [ebp - 0xc]
mov esi, dword [0x430b24]
lea edx, [ecx - 1]
mov byte [edi + 9], 1
mov byte [ebp - 3], 1
movss xmm1, dword [esi + 0xd8]
mov eax, dword [esi + 0x1928]
subss xmm1, dword [esi + 0x195c]
addss xmm1, xmm5
subss xmm1, dword [eax + 0xc]
mov eax, dword [eax + 0x1c4]
mov dword [ebp - 0x24], eax
test edx, edx
jns 0x494c2e
mov edx, dword [eax + 0xc]
movss xmm3, dword [eax + 0x14]
mov ecx, dword [eax + 0x34]
movss xmm2, dword [eax + 0x18]
lea eax, [edx*8]
movss xmm4, dword [esi + 0x1568]
subss xmm2, xmm3
sub eax, edx
mov esi, ecx
mov ecx, dword [ebp - 0xc]
movss xmm0, dword [esi + eax*4]
mulss xmm0, xmm2
addss xmm0, xmm3
addss xmm0, xmm4
comiss xmm1, xmm0
jae 0x494c6e
movaps xmm1, xmm0
test byte [edi + 4], 4
je 0x494ca3
lea edx, [ecx + 1]
test edx, edx
jns 0x494c81
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0xc]
lea eax, [edx*8]
sub eax, edx
movss xmm0, dword [esi + eax*4]
mulss xmm0, xmm2
addss xmm0, xmm3
subss xmm0, xmm4
comiss xmm0, xmm1
ja 0x494ca3
movaps xmm1, xmm0
call fcn.00494734
mov al, byte [ebp - 3]
xorps xmm1, xmm1
mov byte [edi + 9], al
movss xmm0, dword [ebx + 0x1b8]
addss xmm0, dword [ebx + 0xc]
pop edi
pop esi
mov dword [ebx + 0x1c4], 0
mov dword [ebx + 0x1c0], 0
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebx + 0xc8], xmm0
pop ebx
mov esp, ebp
pop ebp
ret