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

Disassembly:
sub esp, 0x90
mov edx, dword [0x69647c]
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
mov ecx, dword [ebp + 0x28]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*4]
shl eax, 4
cmp word [eax + edx + 0x40], 0x96
lea ebx, [eax + edx]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
jl 0x4cf6b4
mov eax, dword [ebx + 0x60]
test byte [eax + 6], 2
je 0x4cf347
test byte [ebx + 0x1b1], 0x40
jne 0x4cf33a
call fcn.004cd830
test eax, eax
je 0x4cf347
movsx ecx, byte [ebx + 0x218]
mov dword [esp + 0x28], ecx
jmp 0x4cf34f
mov dword [esp + 0x28], 0
push esi
xor edx, edx
push edi
xor edi, edi
mov esi, 0x2038
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
lea ebx, [ebx]
mov eax, dword [ebx + 0x60]
movzx eax, byte [eax + 0xa]
mov cl, dl
shr eax, cl
and eax, 0xf
je 0x4cf67d
cmp eax, 1
jne 0x4cf399
mov eax, dword [ebp + 0x34]
movsx esi, word [esi + eax]
mov eax, dword [edx + eax + 0x2020]
jmp 0x4cf3ad
movsx esi, byte [eax + 0x69649e]
lea eax, [eax + eax*2 - 6]
add esi, edi
lea eax, [eax*8 + 0x69bc88]
test eax, eax
je 0x4cf67d
movss xmm0, dword [eax + 0xc]
mulss xmm0, dword [0x649534]
addss xmm0, dword [eax]
mov edx, dword [0x705898]
movss dword [esp + 0x34], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [0x649444]
movss dword [esp + 0x40], xmm0
mov eax, dword [edx + 0x3c4]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + esi*4]
lea ecx, [eax + ecx*8]
mov eax, dword [edx + ecx*4 + 0x90]
push eax
lea ecx, [esp + 0x38]
push ecx
mov edx, ecx
push edx
call fcn.005932e0
mov eax, dword [ebx + 0x60]
mov ecx, dword [eax + 4]
test cl, 1
je 0x4cf5b2
cvttss2si eax, dword [ebx + 0x44]
test eax, eax
jne 0x4cf430
mov byte [edi + ebp + 0x3e], 0xff
cvttss2si eax, dword [ebx + 0x44]
test eax, eax
jl 0x4cf5f6
mov edi, dword [ebx + 0x60]
movzx ecx, byte [edi + 0xc]
cmp eax, ecx
jge 0x4cf4c5
mov edx, dword [esp + 0x10]
mov bl, byte [edx + ebp + 0x3e]
mov edx, dword [esp + 0x28]
mov ecx, esi
lea esi, [esp + 0x90]
call fcn.004d6630
test eax, eax
je 0x4cf596
cmp bl, 0xff
je 0x4cf47f
movsx esi, bl
push esi
call fcn.004978d0
add esp, 4
test eax, eax
je 0x4cf4a3
call fcn.00497810
mov bl, al
cmp bl, 0xff
je 0x4cf596
lea eax, [esp + 0x90]
movsx esi, bl
push eax
push esi
call fcn.00482770
add esp, 8
lea ecx, [esp + 0x90]
push ecx
push esi
call fcn.00497890
mov edx, dword [esp + 0x18]
mov byte [edx + ebp + 0x3e], bl
mov ebx, dword [esp + 0x34]
add esp, 8
jmp 0x4cf5f6
movzx eax, byte [edi + 0xd]
cvtsi2ss xmm0, eax
comiss xmm0, dword [ebx + 0x44]
jb 0x4cf5f6
mov edx, dword [esp + 0x28]
mov ecx, esi
lea esi, [esp + 0x80]
mov dword [esp + 0x64], 0x490c00
mov dword [esp + 0x68], 0x490c30
mov dword [esp + 0x6c], fcn.00560d50
mov dword [esp + 0x70], fcn.00560d50
mov dword [esp + 0x74], 0x490cb0
mov dword [esp + 0x78], 0x490d10
mov dword [esp + 0x7c], 0x490d50
call fcn.004d6630
test eax, eax
je 0x4cf5f6
mov eax, dword [esp + 0x30]
cmp eax, 3
jne 0x4cf5a4
movzx ecx, byte [edi + 0xc]
movss xmm1, dword [ebx + 0x44]
cvtsi2ss xmm0, ecx
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x4cf565
mov edx, dword [esp + 0x10]
mov bl, byte [edx + ebp + 0x3e]
cmp bl, 0xff
je 0x4cf565
movsx esi, bl
push esi
call fcn.004978d0
add esp, 4
test eax, eax
je 0x4cf585
call fcn.00497810
mov bl, al
cmp bl, 0xff
je 0x4cf596
lea eax, [esp + 0x80]
movsx esi, bl
push eax
push esi
call fcn.00490c70
add esp, 8
lea ecx, [esp + 0x80]
push ecx
push esi
call fcn.00497890
add esp, 8
mov edx, dword [esp + 0x10]
mov byte [edx + ebp + 0x3e], bl
mov ebx, dword [esp + 0x2c]
jmp 0x4cf5f6
lea ecx, [esp + 0x80]
push ecx
call dword [esp + eax*4 + 0x68]
jmp 0x4cf5f3
test ecx, 0x40000c
je 0x4cf5f6
cmp byte [eax + 0xb], 0
je 0x4cf5f6
movzx edx, byte [eax + 0xd]
fld dword [ebx + 0x44]
fnstcw word [esp + 0x16]
movzx eax, word [esp + 0x16]
or ah, 0xc
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp dword [esp + 0x1c]
cmp dword [esp + 0x1c], edx
fldcw word [esp + 0x16]
ja 0x4cf5f6
lea eax, [esp + 0x34]
push eax
call fcn.00560d50
add esp, 4
mov ecx, dword [ebx + 0x60]
movzx edx, byte [ecx + 0xc]
cvttss2si eax, dword [ebx + 0x44]
cmp eax, edx
jne 0x4cf67d
mov eax, dword [ebp + 0x34]
add eax, dword [esp + 0x18]
cmp dword [eax + 0x1000], 2
jl 0x4cf67d
movss xmm0, dword [eax]
movss xmm1, dword [eax + 0x20]
movss xmm2, dword [eax + 0x40]
movss xmm3, dword [0x649444]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x48]
movss dword [esp + 0x48], xmm0
subss xmm0, dword [eax + 4]
movss dword [esp + 0x4c], xmm1
subss xmm1, dword [eax + 0x24]
movss dword [esp + 0x50], xmm2
subss xmm2, dword [eax + 0x44]
push edx
movss dword [esp + 0x58], xmm3
movss dword [esp + 0x5c], xmm0
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x64], xmm2
movss dword [esp + 0x68], xmm3
call fcn.004f3b60
add esp, 8
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
add dword [esp + 0x18], 0x1010
add esi, 2
add edi, 1
add edx, 4
cmp esi, 0x203c
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edx
jl 0x4cf370
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret