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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ebx, dword [esi + 0xc0]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0xc], eax
lea eax, [ebx - 1]
cmp eax, 4
mov dword [esp + 0x14], edx
push edi
mov dword [esp + 0x14], ecx
mov edx, 1
jl 0x4f4540
lea ecx, [ebx - 5]
shr ecx, 2
add ecx, edx
lea eax, [esi + 0x20]
lea edx, [ecx*4 + 1]
nop
fld dword [eax - 0x14]
add eax, 0x30
sub ecx, 1
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [eax - 0x40]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [eax - 0x3c]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [eax - 0x38]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [eax - 0x34]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fadd dword [eax - 0x30]
fstp dword [esp + 0x18]
fld dword [eax - 0x2c]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [eax - 0x28]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [eax - 0x24]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [eax - 0x20]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [eax - 0x1c]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [eax - 0x18]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
jne 0x4f44b0
cmp edx, ebx
jae 0x4f4579
lea ecx, [edx + edx*2]
lea eax, [esi + ecx*4 + 8]
mov ecx, ebx
sub ecx, edx
nop
fld dword [eax - 8]
add eax, 0xc
sub ecx, 1
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [eax - 0x10]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [eax - 0xc]
fadd dword [esp + 0x18]
fstp dword [esp + 0x18]
jne 0x4f4550
mov edx, ebx
test edx, edx
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
jge 0x4f458d
fadd dword [0x6f9a18]
fld1
lea eax, [esi + 8]
fdivrp st(1)
mov dword [esp + 0x34], eax
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fmul st(1)
fstp dword [esp + 0x14]
fmul dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esi]
fsub dword [esp + 0x10]
fstp dword [esp + 0x20]
fld dword [esi + 4]
fsub dword [esp + 0x14]
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
fld dword [eax]
mov eax, dword [esp + 0x20]
fsub dword [esp + 0x18]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
fld dword [esp + 0x24]
mov dword [esp + 0x60], edx
fld dword [esp + 0x20]
fld dword [esp + 0x28]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld dword [0x6b57ac]
fcompi st(1)
fstp st(0)
jbe 0x4f4630
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x58]
push eax
mov ecx, eax
push ecx
call fcn.00402020
movss xmm0, dword [0x6e5b04]
mov edi, 1
add esp, 8
cmp ebx, edi
movss dword [esp + 0x68], xmm0
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0xffffffff
movss dword [esp + 0x54], xmm0
movss dword [esp + 0x50], xmm0
movss dword [esp + 0x4c], xmm0
jbe 0x4f4743
fld dword [esi + 0xc]
fsub dword [esp + 0x10]
fstp dword [esp + 0x38]
fld dword [esi + 0x10]
fsub dword [esp + 0x14]
fstp dword [esp + 0x3c]
fld dword [esi + 0x14]
fsub dword [esp + 0x18]
fstp dword [esp + 0x40]
lea esp, [esp]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
push edx
mov eax, edx
push eax
mov dword [esp + 0x30], ecx
call fcn.00402020
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.00407df0
fld dword [esp + 0x84]
fld dword [esp + 0x80]
add esp, 0x14
fld dword [esp + 0x74]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x68]
fld dword [esp + 0x64]
fcompi st(1)
fstp st(0)
jbe 0x4f4738
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
movss xmm0, dword [esp + 0x64]
movss dword [esp + 0x68], xmm0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
add edi, 1
cmp edi, ebx
jb 0x4f46a0
cmp dword [esp + 0x1c], ebx
ja 0x4f4627
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00407df0
lea ecx, [esp + 0x2c]
add esp, 0xc
push ecx
mov edx, ecx
push edx
call fcn.00402020
mov eax, dword [ebp + 0xc]
fld dword [eax + 0x4e0]
add esp, 8
fsub dword [esp + 0x10]
fstp dword [esp + 0x38]
fld dword [eax + 0x4e4]
fsub dword [esp + 0x14]
fstp dword [esp + 0x3c]
fld dword [eax + 0x4e8]
fsub dword [esp + 0x18]
fstp dword [esp + 0x40]
fld dword [esp + 0x24]
fld st(0)
fmul dword [esp + 0x3c]
fld dword [esp + 0x20]
fld st(0)
fmul dword [esp + 0x38]
faddp st(2)
fld dword [esp + 0x28]
fld st(0)
fmul dword [esp + 0x40]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fldz
fcompi st(1)
fstp st(0)
jbe 0x4f480b
fldz
fld st(0)
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
fld st(0)
fsubrp st(3)
fxch st(2)
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
fsubp st(1)
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x28], edx
jmp 0x4f4811
fstp st(0)
fstp st(1)
fstp st(0)
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00407df0
xor edi, edi
add esp, 0xc
cmp ebx, edi
mov dword [esp + 0x178], edi
jbe 0x4f48f9
mov esi, dword [esp + 0x34]
fld dword [esi - 8]
mov edx, dword [esp + 0x178]
fsub dword [esp + 0x10]
mov eax, edx
add edx, 1
lea eax, [esp + eax*8 + 0x78]
fstp dword [esp + 0x38]
xor ecx, ecx
test eax, eax
fld dword [esi - 4]
fsub dword [esp + 0x14]
mov dword [esp + 0x178], edx
fstp dword [esp + 0x3c]
fld dword [esi]
fsub dword [esp + 0x18]
fstp dword [esp + 0x40]
fld dword [esp + 0x3c]
fld st(0)
fmul dword [esp + 0x50]
fld dword [esp + 0x38]
fld st(0)
fmul dword [esp + 0x4c]
faddp st(2)
fld dword [esp + 0x40]
fld st(0)
fmul dword [esp + 0x54]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x34]
fld dword [esp + 0x5c]
fmulp st(3)
fmul dword [esp + 0x58]
faddp st(2)
fmul dword [esp + 0x60]
faddp st(1)
fstp dword [esp + 0x1c]
je 0x4f48bd
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x178]
fld dword [esp + 0x34]
fld dword [esp + 0x1c]
mov dword [esp + eax*8 + 0x70], edi
call fcn.00676c2a
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
mov ecx, dword [esp + 0x178]
add edi, 1
fstp dword [esp + ecx*8 + 0x74]
add esi, 0xc
cmp edi, ebx
jb 0x4f483d
mov esi, dword [ebp + 8]
mov byte [esp + 0x34], 0
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + ebx*8 + 0x7c]
mov ecx, eax
lea edx, [esp + 0x7c]
sub ecx, edx
sar ecx, 3
push ecx
push eax
mov eax, edx
push eax
call fcn.00427ca0
xor ecx, ecx
add esp, 0x10
xor edi, edi
test ebx, ebx
mov dword [esp + 0x240], ecx
jbe 0x4f4977
mov edi, edi
cmp ecx, 0x10
mov eax, dword [esp + edi*8 + 0x78]
lea edx, [eax + eax*2]
lea edx, [esi + edx*4]
jae 0x4f4970
mov eax, ecx
lea eax, [eax + eax*2]
add ecx, 1
lea eax, [esp + eax*4 + 0x180]
test eax, eax
mov dword [esp + 0x240], ecx
je 0x4f4970
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x240]
add edi, 1
cmp edi, ebx
jb 0x4f4930
mov edi, dword [ebp + 8]
mov ecx, 0x31
lea esi, [esp + 0x180]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret