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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51bc76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x30], 2
je 0x4d4a6b
xor edx, edx
mov dword [esp + 0xa8], 0x522e6c
mov dword [esp + 0x170], 0x47ae147b
mov dword [esp + 0x174], 0x3f847ae1
mov dword [esp + 0x178], 0xd2f1a9fc
mov dword [esp + 0x17c], 0x3f50624d
mov dword [esp + 0x140], edx
mov dword [esp + 0x150], 0xd2f1a9fc
mov dword [esp + 0x154], 0xbf50624d
mov dword [esp + 0x158], 0x9374bc6a
mov dword [esp + 0x15c], 0x3ff00418
mov dword [esp + 0x160], 0xd2f1a9fc
mov dword [esp + 0x164], 0x3f50624d
mov dword [esp + 0x168], 0xd916872b
mov dword [esp + 0x16c], 0x3feff7ce
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x58]
cmp eax, edx
mov dword [esp + 0x188], edx
mov dword [esp + 0x3c], ecx
je 0x4d4a54
cmp eax, ecx
jae 0x4d4a54
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0047e010
fstp st(0)
mov ecx, esi
call fcn.0047e030
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x70]
cmp ecx, eax
mov dword [esp + 0x10], ecx
fstp st(0)
mov dword [esp + 0x34], eax
jae 0x4d4a54
jmp 0x4d47ea
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x40]
fld qword [ebx]
fsub qword [eax]
fstp qword [esp + 0x88]
fld qword [ebx + 8]
fsub qword [eax + 8]
fstp qword [esp + 0x90]
fld qword [eax + 0x18]
fchs
fstp qword [esp + 0x98]
fld qword [eax + 0x20]
lea eax, [esp + 0x88]
fchs
fstp qword [esp + 0xa0]
push eax
call fcn.0047ea90
mov esi, dword [edi + 0x4c]
mov byte [esp + 0x188], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov eax, dword [esi]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
je 0x4d486e
cmp dword [eax + 0x3c], ecx
jne 0x4d4882
mov ecx, dword [esi + 4]
cmp ebx, ecx
je 0x4d4a1f
cmp dword [ebx + 0x3c], ecx
je 0x4d4a1f
fld qword [eax + 8]
fsub qword [esp + 0x1c]
fstp qword [esp + 0x24]
fld qword [eax]
fsub qword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
push edx
fstp qword [esp + 0x34]
fld qword [esp + 0x48]
fadd qword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x78]
fstp qword [esp + 0x50]
fld qword [esp + 0x58]
fadd qword [esp + 0x34]
fstp qword [esp + 0x58]
call fcn.0047df90
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 8]
fld qword [ecx]
fcomp qword [esp + 0x68]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
fnstsw ax
test ah, 1
je 0x4d4909
fld qword [ecx + 0x18]
fadd qword [ecx]
fcomp qword [esp + 0x68]
fnstsw ax
test ah, 1
jne 0x4d496a
fld qword [ecx]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x4d4926
fld qword [ecx + 0x18]
fadd qword [ecx]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 0x41
je 0x4d496a
fld qword [ecx + 8]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
je 0x4d4945
fld qword [ecx + 0x20]
fadd qword [ecx + 8]
fcomp qword [esp + 0x70]
fnstsw ax
test ah, 1
jne 0x4d496a
fld qword [ecx + 8]
fcomp qword [esp + 0x80]
fnstsw ax
test ah, 0x41
jne 0x4d497a
fld qword [ecx + 0x20]
fadd qword [ecx + 8]
fcomp qword [esp + 0x80]
fnstsw ax
test ah, 0x41
jne 0x4d497a
mov dword [esp + 0x140], 0
jmp 0x4d4a1f
push ecx
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0xb0]
call fcn.0049b860
mov eax, dword [esp + 0x140]
test eax, eax
je 0x4d4a1f
mov eax, dword [esi + 4]
sub esp, 8
fld qword [esp + 0x100]
fmul qword [eax + 0x18]
sub esp, 8
mov ecx, edi
fadd qword [eax]
fstp qword [edi + 0x38]
fld qword [esp + 0x108]
fmul qword [eax + 0x20]
fadd qword [eax + 8]
fstp qword [edi + 0x40]
fld qword [esp + 0x2c]
fsub qword [edi + 0x40]
fstp qword [esp + 8]
fld qword [esp + 0x24]
fsub qword [edi + 0x38]
fstp qword [esp]
call fcn.004d4bb0
test eax, eax
je 0x4d4a1f
mov ecx, dword [esp + 0x10]
mov dword [eax], 2
mov edx, dword [esi]
mov dword [eax + 4], edx
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov edx, dword [esi + 4]
mov dword [eax + 0xc], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 0x10], ecx
fld qword [ebx]
fsub qword [edi + 0x38]
fld qword [ebx + 8]
fsub qword [edi + 0x40]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp qword [eax + 0x28]
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x3c]
add esi, 0x30
cmp esi, eax
jb 0x4d485f
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x40]
add esi, 0x30
mov byte [esp + 0x188], 0
mov dword [esp + 0x10], esi
call fcn.0047eaf0
cmp esi, dword [esp + 0x34]
jb 0x4d47e6
lea ecx, [esp + 0xa8]
mov dword [esp + 0x188], 0xffffffff
call fcn.0047ee20
mov ecx, dword [esp + 0x180]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4