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

Disassembly:
sub esp, 0x8c
fld dword [0x612220]
mov edx, dword [esp + 0x98]
push ebp
push esi
mov esi, dword [0x6e219c]
fld dword [esi + 0x2c]
add esi, 0x2c
fucompp
push edi
mov byte [esp + 0xf], 0
mov edi, edx
mov ecx, 0x1d
fnstsw ax
test ah, 0x44
jnp 0x4f6041
rep movsd dword es:[edi], dword [esi]
mov word [edx + 0xc], 2
jmp 0x4f6048
mov esi, 0x5fc348
rep movsd dword es:[edi], dword [esi]
mov cl, byte [esp + 0x9c]
mov eax, 1
test al, cl
je 0x4f606a
mov dword [esp + 0x48], 0x5fc3c8
mov dword [esp + 0x18], 4
jmp 0x4f6076
mov dword [esp + 0x48], 0x5fc3bc
mov dword [esp + 0x18], eax
xor ebp, ebp
cmp word [esp + 0x18], bp
jle 0x4f645e
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x54]
movsx eax, bp
lea edx, [esp + 0x28]
lea eax, [eax + eax*2]
push edx
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0xb0]
push edx
lea ebx, [esp + 0x24]
lea edi, [esp + 0x34]
lea esi, [esp + 0xa0]
call fcn.00558a80
add esp, 0x10
test al, al
jne 0x4f60da
inc ebp
cmp bp, word [esp + 0x1c]
jl 0x4f6084
mov al, byte [esp + 0x13]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x8c
ret
movsx ecx, word [esp + 0x24]
mov eax, dword [0x6e219c]
mov edx, dword [eax + 0x108]
movsx edi, word [esp + 0x20]
mov eax, dword [0x816d04]
shl ecx, 5
mov ebp, dword [ecx + edx + 0x18]
add ecx, edx
shl edi, 8
mov edx, dword [edi + ebp + 0xc]
add edi, ebp
and edx, 0xffff
shl edx, 5
mov ebp, dword [edx + eax + 0x14]
cmp word [ebp + 0x24], 3
jne 0x4f645d
mov esi, dword [0x6e219c]
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x4f645d
mov dx, word [ecx]
cmp dx, 0xffff
je 0x4f645d
cmp dword [ebp + 0x94], 0xffffffff
je 0x4f645d
mov ecx, dword [esp + 0x5c]
mov esi, dword [esi + 0xfc]
lea ecx, [ecx + ecx*2]
lea ebx, [esi + ecx*2]
call fcn.0043f260
mov ecx, dword [ebp + 0x94]
mov esi, eax
mov eax, dword [0x816d04]
mov edx, ecx
and edx, 0xffff
shl edx, 5
mov ebp, dword [edx + eax + 0x14]
movsx eax, word [edi + 0x10]
cdq
idiv dword [ebp + 0x60]
mov eax, ecx
call fcn.0043f260
test esi, esi
mov ebp, eax
je 0x4f645d
test ebp, ebp
je 0x4f645d
push 1
push 1
mov eax, esi
call fcn.00445080
add esp, 8
test eax, eax
je 0x4f645d
push 1
push 1
mov eax, ebp
call fcn.00445080
add esp, 8
test eax, eax
je 0x4f645d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x78]
push ecx
push edx
push eax
push ebp
mov ecx, ebx
mov eax, edi
call fcn.004f43b0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x94]
push ecx
push edx
push eax
push esi
mov edx, ebx
mov ecx, edi
call fcn.004f41e0
mov bp, word [edi + 0xb0]
add esp, 0x20
cmp bp, 1
jne 0x4f6256
movzx eax, word [ebx]
mov ecx, dword [edi + 0xf8]
shl eax, 5
add eax, ecx
lea esi, [esp + 0x28]
call fcn.00516ec0
movzx eax, word [ebx + 2]
mov esi, dword [edi + 0xf8]
shl eax, 5
add eax, esi
lea esi, [esp + 0x34]
call fcn.00516ec0
movzx eax, word [ebx + 4]
mov ecx, dword [edi + 0xf8]
shl eax, 5
add eax, ecx
lea esi, [esp + 0x40]
call fcn.00516ec0
jmp 0x4f62c6
test bp, bp
je 0x4f6261
cmp bp, 0xc
jne 0x4f62c6
movzx eax, word [ebx]
mov ecx, dword [edi + 0xe4]
imul eax, eax, 0x38
add eax, ecx
add eax, 0xc
mov edx, dword [eax]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], eax
movzx eax, word [ebx + 2]
imul eax, eax, 0x38
add eax, ecx
add eax, 0xc
mov dword [esp + 0x2c], edx
mov edx, dword [eax]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
movzx eax, word [ebx + 4]
imul eax, eax, 0x38
add eax, ecx
add eax, 0xc
mov ecx, dword [eax]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x68]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x3c]
lea esi, [esp + 0x30]
call fcn.004f4180
add esp, 8
mov ecx, eax
call fcn.00401990
fstp st(0)
cmp bp, 1
jne 0x4f633d
mov ebp, dword [edi + 0xb4]
movzx eax, word [ebx]
mov edi, dword [edi + 0xf8]
shl ebp, 2
add eax, ebp
lea eax, [edi + eax*8]
lea esi, [esp + 0x28]
call fcn.00516ef0
movzx ecx, word [ebx + 2]
add ecx, ebp
lea eax, [edi + ecx*8]
lea esi, [esp + 0x34]
call fcn.00516ef0
movzx edx, word [ebx + 4]
add edx, ebp
lea eax, [edi + edx*8]
lea esi, [esp + 0x40]
call fcn.00516ef0
jmp 0x4f63ba
test bp, bp
je 0x4f6348
cmp bp, 0xc
jne 0x4f63ba
mov eax, dword [edi + 0xb4]
movzx ecx, word [ebx]
imul eax, eax, 0x38
mov edi, dword [edi + 0xe4]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov edx, dword [ecx + edi]
add ecx, edi
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x30], ecx
movzx ecx, word [ebx + 2]
mov dword [esp + 0x2c], edx
lea edx, [ecx + ecx*4]
lea ecx, [eax + edx*4]
mov edx, dword [ecx + edi]
add ecx, edi
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x3c], ecx
movzx ecx, word [ebx + 4]
mov dword [esp + 0x38], edx
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
mov ecx, dword [eax + edi]
mov edx, dword [eax + edi + 4]
add eax, edi
mov eax, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x28]
call fcn.00401990
fstp dword [esp + 0x50]
lea ecx, [esp + 0x34]
call fcn.00401990
fstp dword [esp + 0x54]
lea ecx, [esp + 0x40]
call fcn.00401990
fstp dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x74]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x3c]
lea esi, [esp + 0x30]
call fcn.004f4180
mov ecx, eax
call fcn.00401990
fstp st(0)
fld dword [esp + 0x5c]
mov ecx, dword [esp + 0xa8]
fsub dword [esp + 0x58]
mov esi, dword [esp + 0xb0]
add esp, 4
lea eax, [esp + 0x64]
fmul dword [esp + 0x1c]
fld dword [esp + 0x5c]
lea edx, [esp + 0x7c]
fsub dword [esp + 0x54]
fmul dword [esp + 0x18]
faddp st(1)
fadd dword [esp + 0x54]
fstp dword [esp]
push eax
push ecx
lea ecx, [esp + 0x90]
lea eax, [esp + 0x78]
call fcn.004f6aa0
add esp, 0xc
mov byte [esp + 0x13], 1
pop ebx
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
add esp, 0x8c
ret