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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
movzx eax, word [ebx + 6]
prefetcht2 byte [ebx]
prefetcht2 byte [ebx + 0x80]
prefetcht2 byte [ebx + 0x100]
prefetcht2 byte [ebx + 0x180]
prefetcht2 byte [ebx + 0x200]
and eax, 0x3ff
lea eax, [eax + eax*2]
push esi
lea esi, [ecx + eax*8 + 0x1c]
mov eax, dword [edx]
test al, 0x20
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], eax
jne 0x4fb008
test eax, 0x200
je 0x4faf86
movzx eax, byte [esi]
shl eax, 4
mov ecx, dword [eax + ebx + 0xc]
push ecx
xor edi, edi
call fcn.00402260
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, 0x400
je 0x4fafe7
movzx edx, byte [esi + 2]
shl edx, 4
mov eax, dword [edx + ebx + 0xc]
push eax
mov edi, 1
call fcn.00402260
movzx ecx, byte [esi + 0xa]
mov edi, dword [ebp + 0xc]
shl ecx, 4
mov edx, dword [ecx + ebx + 0xc]
movss xmm0, dword [edx]
movss dword [esp + 0x74], xmm0
xorps xmm0, xmm0
add esp, 4
add edi, 0x10
lea esi, [esp + 0x70]
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x7c], xmm0
call fcn.004022b0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
test eax, 0x1000
je 0x4fb0f8
movzx eax, byte [esi + 6]
shl eax, 4
mov ecx, dword [eax + ebx + 0xc]
push ecx
mov edi, 2
jmp 0x4fb0ec
test eax, 0x200
je 0x4fb041
movzx edx, byte [esi]
shl edx, 4
mov eax, dword [edx + ebx + 0xc]
push eax
xor edi, edi
call fcn.00402260
movzx ecx, byte [esi + 1]
shl ecx, 4
mov edx, dword [ecx + ebx + 0xc]
add esp, 4
push edx
mov edi, 6
call fcn.00402260
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, 0x400
je 0x4fb0bb
movzx eax, byte [esi + 2]
shl eax, 4
mov ecx, dword [eax + ebx + 0xc]
push ecx
mov edi, 1
call fcn.00402260
movzx edx, byte [esi + 3]
shl edx, 4
mov eax, dword [edx + ebx + 0xc]
add esp, 4
push eax
mov edi, 7
call fcn.00402260
movzx ecx, byte [esi + 0xa]
mov edi, dword [ebp + 0xc]
shl ecx, 4
mov edx, dword [ecx + ebx + 0xc]
movss xmm0, dword [edx]
movss dword [esp + 0x74], xmm0
xorps xmm0, xmm0
add esp, 4
add edi, 0x10
lea esi, [esp + 0x70]
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x7c], xmm0
call fcn.004022b0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
test eax, 0x1000
je 0x4fb0f8
movzx eax, byte [esi + 6]
shl eax, 4
mov ecx, dword [eax + ebx + 0xc]
push ecx
mov edi, 2
call fcn.00402260
movzx edx, byte [esi + 7]
add esp, 4
shl edx, 4
mov eax, dword [edx + ebx + 0xc]
push eax
mov edi, 8
call fcn.00402260
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, 0x800
je 0x4fb11c
movzx ecx, byte [esi + 4]
shl ecx, 4
mov edx, dword [ecx + ebx + 0xc]
push edx
mov edi, 3
call fcn.00402260
mov eax, dword [esp + 0x2c]
add esp, 4
mov edx, dword [0x93a0e8]
mov ecx, eax
and ecx, 0x80
je 0x4fb160
test edx, edx
jne 0x4fb160
cmp byte [esi + 0xb], 0xff
je 0x4fb18a
mov al, byte [esi + 5]
cmp al, 0xff
je 0x4fb153
movzx eax, al
shl eax, 4
mov ecx, dword [eax + ebx + 0xc]
push ecx
lea edi, [edx + 5]
call fcn.00402260
add esp, 4
movzx edx, byte [esi + 0xb]
shl edx, 4
mov esi, dword [edx + ebx + 0xc]
jmp 0x4fb177
test ecx, ecx
je 0x4fb172
push edx
mov edi, 5
call fcn.00402260
add esp, 4
mov esi, 0x93a0d4
mov edi, dword [ebp + 0xc]
add edi, 4
call fcn.004022b0
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
test al, 0x40
je 0x4fb1a5
mov eax, dword [0x93d8dc]
push eax
mov edi, 4
call fcn.00402260
mov eax, dword [esp + 0x2c]
add esp, 4
test al, 8
je 0x4fb1fc
movzx ecx, byte [esi + 9]
movzx edx, byte [esi + 8]
mov edi, dword [ebp + 0xc]
shl ecx, 4
mov eax, dword [ecx + ebx + 0xc]
movss xmm0, dword [eax]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [eax + 8]
shl edx, 4
mov eax, dword [edx + ebx + 0xc]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [eax]
add edi, 0xc
lea esi, [esp + 0x70]
movss dword [esp + 0x7c], xmm0
call fcn.004022b0
mov esi, dword [esp + 0x2c]
mov edi, dword [ebp + 0xc]
fld1
mov cx, word [edi + 0x16]
and cx, word [edi + 0x14]
mov al, byte [esi + 0xc]
add edi, 0x14
xor edx, edx
cmp cx, 0xffff
setne dl
xor ecx, ecx
cmp al, 0xff
setne cl
mov dword [esp + 0x3c], edi
test ecx, edx
je 0x4fb41b
movzx edx, al
shl edx, 4
mov eax, dword [edx + ebx + 0xc]
cmp dword [eax], 0
je 0x4fb3f7
mov eax, dword [esp + 0x2c]
movzx ecx, byte [eax + 0xd]
movss xmm0, dword [0x6f9ed0]
xorps xmm1, xmm1
shl ecx, 4
mov edx, dword [ecx + ebx + 0xc]
movzx ecx, byte [eax + 0xe]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [0x6f9d98]
shl ecx, 4
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [edx]
mov edx, dword [ecx + ebx + 0xc]
movzx ecx, byte [eax + 0xf]
movzx eax, byte [eax + 0x10]
shl ecx, 4
movss dword [esp + 0x38], xmm0
movss xmm0, dword [edx]
mov edx, dword [ecx + ebx + 0xc]
shl eax, 4
mov ecx, dword [eax + ebx + 0xc]
mov edi, dword [ecx]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [edx]
movss dword [esp + 0x70], xmm1
movss dword [esp + 0x74], xmm1
movss dword [esp + 0x44], xmm0
xor esi, esi
jmp 0x4fb2c5
xorps xmm1, xmm1
fld1
movss xmm0, dword [esp + esi + 0x40]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
movss dword [esp + 0x30], xmm0
jnp 0x4fb3d0
fld dword [esp + 0x38]
fmul qword [0x6f9c10]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld st(0)
fld dword [esp + 0x30]
fabs
fstp dword [esp + 0x34]
fdiv dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld st(0)
call fcn.004aecd6
fdivp st(2)
movss xmm0, dword [esp + 0x30]
comiss xmm0, dword [0x6e5b14]
fxch st(1)
jae 0x4fb324
fchs
push edx
fstp dword [esp + 0x38]
mov edx, dword [0x93d8e4]
push eax
mov eax, dword [0x93d8e0]
push edx
push eax
call fcn.00676920
test edi, edi
jne 0x4fb377
mov dword [esp + 0x48], eax
fstp st(0)
mov eax, edx
mov ecx, edx
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x4c], eax
fild qword [esp + 0x48]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edi
fild qword [esp + 0x50]
fchs
faddp st(1)
fmul dword [esp + 0x34]
fstp dword [esp + esi + 0x70]
jmp 0x4fb3d2
mov dword [esp + 0x58], eax
mov eax, edx
mov ecx, edx
and eax, 0x7fffffff
mov dword [esp + 0x5c], eax
fild qword [esp + 0x58]
and ecx, 0x80000000
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], 0
fild qword [esp + 0x60]
sub esp, 8
fchs
faddp st(1)
fdivrp st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fstp qword [esp]
call fcn.006769a0
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
add esp, 8
fmul dword [esp + 0x30]
fstp dword [esp + esi + 0x70]
jmp 0x4fb3d2
fstp st(0)
add esi, 4
cmp esi, 8
jb 0x4fb2c0
mov edi, dword [esp + 0x3c]
lea esi, [esp + 0x70]
call fcn.004022b0
mov eax, dword [ebp + 8]
and dword [eax + 0xde20], 0xfffffffe
jmp 0x4fb41d
mov ecx, dword [ebp + 8]
fstp st(0)
test byte [ecx + 0xde20], 1
jne 0x4fb41d
mov esi, 0x6f9320
call fcn.004022b0
mov eax, dword [ebp + 8]
or dword [eax + 0xde20], 1
jmp 0x4fb41d
fstp st(0)
test dword [esp + 0x28], 0x2000
je 0x4fb45a
mov esi, dword [esp + 0x2c]
movzx edx, byte [esi + 0x12]
shl edx, 4
mov eax, dword [edx + ebx + 0xc]
push eax
mov edi, 0xa
call fcn.00402260
movzx ecx, byte [esi + 0x13]
mov edi, dword [ebp + 0xc]
shl ecx, 4
mov esi, dword [ecx + ebx + 0xc]
add esp, 4
add edi, 0x18
call fcn.004022b0
test dword [esp + 0x28], 0x4000
je 0x4fb48e
mov eax, 1
push 3
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [0x7e43a0]
mov edx, dword [eax]
mov edx, dword [edx + 0x188]
lea ecx, [esp + 0x64]
push ecx
push 0xc
push eax
call edx
cmp dword [0x82234c], 0
je 0x4fb54e
mov eax, dword [esp + 0x2c]
mov cl, byte [eax + 0x14]
cmp cl, 0xff
je 0x4fb54e
movzx ecx, cl
shl ecx, 4
mov edx, dword [ecx + ebx + 0xc]
movzx ecx, byte [eax + 0x16]
fld dword [edx]
fstp dword [esp + 0x3c]
shl ecx, 4
mov edx, dword [ecx + ebx + 0xc]
movzx ecx, byte [eax + 0x15]
fld dword [edx]
fstp dword [esp + 0x38]
movzx eax, byte [eax + 0x17]
shl ecx, 4
mov edx, dword [ecx + ebx + 0xc]
shl eax, 4
mov ecx, dword [eax + ebx + 0xc]
fld dword [edx]
mov edi, dword [ebp + 8]
fld dword [esp + 0x3c]
add edi, 0xde10
fld st(0)
lea esi, [esp + 0x70]
fsubp st(2)
fld qword [0x6f9a30]
fadd st(2), st(0)
fxch st(2)
fstp dword [esp + 0x3c]
fld dword [ecx]
fld dword [esp + 0x38]
fld st(0)
fsubp st(2)
fxch st(1)
faddp st(3)
fxch st(2)
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fld st(0)
fld1
fdivrp st(1)
fstp dword [esp + 0x70]
fxch st(1)
fchs
fdivrp st(1)
fstp dword [esp + 0x74]
fld dword [esp + 0x38]
fld st(0)
fdivr qword [0x6f9a28]
fstp dword [esp + 0x78]
fdivp st(1)
fstp dword [esp + 0x7c]
call fcn.004022b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc