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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8066
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x503298]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
je 0x493ce5
call fcn.00493932
mov ebx, dword [esi + 0x24]
mov dword [esp + 0x14], eax
test ebx, ebx
jns 0x4939c2
mov ebx, dword [ebp + 0xc]
sub ebx, eax
mov edi, dword [ebp + 8]
push edi
lea ecx, [esp + 0x1c]
call fcn.00427226
and dword [esp + 0x70], 0
push 0
push dword [esp + 0x18]
mov ecx, edi
call fcn.0042649f
mov dl, byte [esi + 0x30]
mov eax, dword [esp + 0x14]
push dword [esi + 0x1c]
shr dl, 3
lea eax, [ebx + eax]
and dl, 1
mov ecx, ebx
cmovne ecx, eax
push ecx
mov ecx, dword [esp + 0x1c]
neg ecx
xor eax, eax
test dl, dl
cmovne eax, ecx
push 0
push eax
mov ecx, edi
call fcn.0042641a
test al, al
je 0x493a21
push dword [esi + 0x1c]
mov eax, dword [esi]
push ebx
push edi
mov ecx, esi
call dword [eax + 0x20]
or dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0042723d
movd xmm2, dword [esi + 0x1c]
mov eax, dword [esi + 4]
movss xmm0, dword [0x4ee3a8]
mov dh, byte [eax + 0xa4]
mov ecx, dword [eax + 0xa0]
cvtdq2ps xmm2, xmm2
mov dl, dh
movaps xmm3, xmm2
mulss xmm3, xmm0
mov dword [esp + 0x14], ecx
shr dl, 2
and dl, 1
mov ecx, esi
movss dword [esp + 0x1c], xmm3
call fcn.00493962
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
js 0x493c31
test dh, 0x10
je 0x493c31
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 8]
movd xmm1, ebx
cvtdq2ps xmm1, xmm1
movd xmm4, ecx
cvtdq2ps xmm4, xmm4
addss xmm1, xmm0
mulss xmm1, xmm4
movss dword [esp + 0x18], xmm1
test eax, eax
je 0x493af4
test byte [eax + 0x30], 4
je 0x493af4
mov ecx, esi
call fcn.00493cfa
test al, al
je 0x493ac0
movaps xmm2, xmm3
mov eax, dword [esi]
and dword [esp + 0x28], 0
lea ecx, [esp + 0x24]
push ecx
push edi
mov ecx, esi
movss dword [esp + 0x2c], xmm1
movss dword [esp + 0x34], xmm1
movss dword [esp + 0x38], xmm2
call dword [eax + 0x2c]
movss xmm1, dword [esp + 0x18]
movss xmm3, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 8]
test eax, eax
je 0x493b05
test byte [eax + 0x30], 4
jne 0x493b0b
test eax, eax
jne 0x493b42
test byte [esi + 0x30], 4
je 0x493b42
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
movd xmm0, eax
mov eax, dword [esi]
cvtdq2ps xmm0, xmm0
lea ecx, [esp + 0x34]
addss xmm0, xmm1
push ecx
push edi
mov ecx, esi
movss dword [esp + 0x3c], xmm1
movss dword [esp + 0x40], xmm3
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x48], xmm3
call dword [eax + 0x28]
mov ecx, dword [esi + 8]
jmp 0x493bb1
dec ebx
js 0x493bb5
mov eax, dword [esp + 0x14]
movss xmm1, dword [esp + 0x18]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
lea eax, [ecx + 8]
subss xmm1, xmm0
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
movss dword [esp + 0x18], xmm1
test eax, eax
je 0x493b78
test byte [eax + 0x30], 4
je 0x493bab
call fcn.00493cfa
test al, al
jne 0x493bab
movd xmm0, dword [esi + 0x1c]
mov eax, dword [ecx]
and dword [esp + 0x48], 0
cvtdq2ps xmm0, xmm0
lea edx, [esp + 0x44]
push edx
push edi
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x54], xmm1
movss dword [esp + 0x58], xmm0
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x493b47
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test al, al
je 0x493c31
push edi
lea ecx, [esp + 0x20]
call fcn.00427226
mov eax, dword [esp + 0x20]
mov dword [esp + 0x70], 1
mov ebx, dword [esp + 0x14]
imul eax, ebx
push 0
push eax
mov ecx, edi
call fcn.0042649f
push dword [esi + 0x1c]
mov ecx, edi
push ebx
push 0
push 0
call fcn.0042641a
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x70]
test eax, eax
je 0x493c08
mov eax, dword [eax + 8]
jmp 0x493c0a
xor eax, eax
cmp esi, dword [eax + 0x84]
mov edx, dword [esi]
sete al
movzx eax, al
push eax
push dword [esi + 0x1c]
mov ecx, esi
push ebx
push edi
call dword [edx + 0x24]
or dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.0042723d
mov ecx, esi
call fcn.00493646
test al, al
je 0x493ce5
lea eax, [esp + 0x54]
push eax
mov ecx, edi
call fcn.00426459
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ecx
jle 0x493ce5
mov eax, dword [esi + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x60]
mov ebx, dword [edx + 0x18]
sub ebx, dword [esi + 0x18]
add eax, dword [esp + 0x58]
mov dword [esp + 0x20], edx
cmp ebx, eax
jge 0x493ce5
mov eax, dword [edx + 0x20]
add eax, ebx
cmp eax, dword [esp + 0x58]
jl 0x493cd7
push edi
lea ecx, [esp + 0x18]
call fcn.00427226
push ebx
push 0
mov ecx, edi
mov dword [esp + 0x78], 2
call fcn.0042649f
mov ebx, dword [esp + 0x20]
mov ecx, edi
push dword [ebx + 0x20]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0042641a
test al, al
je 0x493cc5
push dword [ebp + 0xc]
mov ecx, ebx
push edi
call fcn.00493975
or dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0042723d
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esi + 0x14]
jl 0x493c5b
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8