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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, 1
xor esi, esi
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], esi
call fcn.00489500
mov edi, eax
mov eax, dword [ebp + 0x24]
add esp, 4
inc edi
cmp eax, esi
mov dword [esp + 0x2c], edi
je 0x4f949d
dec edi
mov dword [esp + 0x2c], edi
fld qword [ebp + 0x14]
fsub qword [ebp + 0x1c]
mov dword [esp + 0xc], ebx
fabs
fcomp qword [0x550fd0]
fnstsw ax
test ah, 0x41
je 0x4f94ba
mov dword [esp + 0xc], esi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
call fcn.00448940
mov ebx, eax
add esp, 8
cmp ebx, esi
mov dword [esp + 0x10], ebx
jne 0x4f94e0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], 0
fild dword [ebp + 0x28]
cmp eax, esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
jne 0x4f9511
fsub qword [0x550f30]
fld qword [0x550f30]
fdiv st(1)
test edi, edi
mov dword [esp + 0x28], esi
fstp qword [esp + 0x90]
fstp st(0)
jle 0x4f9795
push 0xc0
push 1
call fcn.00547150
add esp, 8
mov dword [esp + 0x64], eax
test eax, eax
je 0x4f97c8
mov ecx, dword [eax]
mov dword [eax + 0x38], 1
or ch, 2
push eax
mov dword [eax], ecx
lea eax, [esp + 0x18]
push eax
call fcn.004894b0
mov edx, dword [ebp + 8]
lea ecx, [esp + 0xa0]
push ecx
push edx
push esi
call fcn.004f8e50
add esp, 0x14
test eax, eax
jne 0x4f97c8
lea eax, [esp + 0x98]
add ebx, 0x60
push eax
lea ecx, [esp + 0x9c]
push ebx
push ecx
call fcn.004464c0
mov eax, dword [ebp + 0x28]
add esp, 0xc
xor ebx, ebx
test eax, eax
mov dword [esp + 0x30], ebx
jle 0x4f9784
fild dword [esp + 0x30]
lea edx, [esp + 0x68]
mov ecx, 6
push edx
lea esi, [esp + 0x9c]
fmul qword [esp + 0x94]
fld qword [0x550f30]
sub esp, 8
lea edi, [esp + 0x84]
fsub st(1)
lea eax, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
fmul qword [ebp + 0x14]
fxch st(1)
fmul qword [ebp + 0x1c]
faddp st(1)
fstp qword [esp]
push eax
call fcn.00418c70
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
jne 0x4f96c7
test ebx, ebx
je 0x4f9615
mov ecx, dword [ebp + 0x28]
dec ecx
cmp ebx, ecx
jne 0x4f96c7
fld qword [ebp + 0x1c]
fcomp qword [ebp + 0x14]
mov ecx, 6
lea esi, [esp + 0x78]
lea edi, [esp + 0x34]
mov dword [esp + 0x18], 0
rep movsd dword es:[edi], dword [esi]
fnstsw ax
test ah, 0x41
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x1c], 0x40568000
je 0x4f9659
mov dword [esp + 0x1c], 0xc0568000
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x68]
push edx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.00418c70
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.00446540
lea eax, [esp + 0x50]
push eax
call fcn.00418ee0
fstp st(0)
fld qword [esp + 0x54]
add esp, 0x20
test ebx, ebx
jne 0x4f96b3
fstp dword [esp + 0x4c]
fld qword [esp + 0x3c]
fstp dword [esp + 0x50]
fld qword [esp + 0x44]
fstp dword [esp + 0x54]
jmp 0x4f96c7
fstp dword [esp + 0x58]
fld qword [esp + 0x3c]
fstp dword [esp + 0x5c]
fld qword [esp + 0x44]
fstp dword [esp + 0x60]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x78]
push ecx
lea eax, [esp + 0x7c]
push edx
push eax
call fcn.004464c0
add esp, 0xc
test ebx, ebx
jle 0x4f975a
mov esi, dword [esp + 0x64]
lea ecx, [esp + 0x78]
push esi
lea edx, [esp + 0xb4]
push ecx
push edx
call fcn.00440210
add esp, 0xc
test eax, eax
je 0x4f97c8
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4f975a
cmp ebx, 1
je 0x4f9719
mov eax, dword [ebp + 0x28]
dec eax
cmp ebx, eax
jne 0x4f975a
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 4]
or edx, 8
cmp ebx, 1
mov dword [eax + 4], edx
jne 0x4f9743
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
add eax, 0x48
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
jmp 0x4f975a
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add eax, 0x48
mov dword [eax], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [ebp + 0x28]
inc ebx
mov ecx, 6
lea esi, [esp + 0x78]
lea edi, [esp + 0xb0]
cmp ebx, eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x30], ebx
jl 0x4f95ac
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
inc esi
cmp esi, edi
mov dword [esp + 0x28], esi
jl 0x4f952e
push 0x218
push 1
push ebx
call fcn.0054714a
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push 0
push 0
push ecx
push edx
push 0
push 0
push eax
call fcn.00504aa0
add esp, 0x2c
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004888e0
mov eax, dword [esp + 0x28]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret