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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dcd68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
test eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
je 0x4b7f1d
mov esi, dword [ecx]
mov eax, dword [esi + 0x1c]
fld dword [eax + 0x10]
fadd dword [eax + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
fmul dword [0x4e6bc8]
fidiv dword [esp + 0xc]
fstp qword [esp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x80], 0
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
test edi, edi
je 0x4b7d1d
mov ecx, dword [eax + 4]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 0x14
jae 0x4b7f1d
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edi
lea ecx, [esp + 0x30]
push ebx
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.00405230
lea edx, [esp + 0x3c]
push eax
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x88], 1
call fcn.004051b0
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
mov eax, dword [esi + 0x1c]
mov byte [esp + 0x80], 0
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [eax + 0x10]
fmul dword [eax + 0x10]
fld dword [eax + 0xc]
fmul dword [eax + 0xc]
faddp st(1)
fld dword [eax + 0x14]
fmul dword [eax + 0x14]
faddp st(1)
fxch st(1)
fsqrt
fxch st(1)
fsqrt
fadd qword [esp + 0xc]
fcompp
fnstsw ax
test ah, 1
jne 0x4b7e24
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x4b7e2f
mov esi, dword [esi + 0x10]
lea eax, [esp + 0x48]
push ebx
push eax
mov ecx, dword [esi + 0x1c]
call fcn.00405230
lea ecx, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x88], 2
call fcn.004051b0
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul dword [esp + 0x1c]
mov eax, dword [esi + 0x1c]
mov byte [esp + 0x80], 0
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [eax + 0x10]
fmul dword [eax + 0x10]
fld dword [eax + 0xc]
fmul dword [eax + 0xc]
faddp st(1)
fld dword [eax + 0x14]
fmul dword [eax + 0x14]
faddp st(1)
fxch st(1)
fsqrt
fxch st(1)
fsqrt
fadd qword [esp + 0xc]
fcompp
fnstsw ax
test ah, 1
je 0x4b7d9b
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x4b7eef
mov edi, dword [esi]
mov eax, dword [esi + 4]
cmp edi, eax
je 0x4b7eef
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov ecx, dword [edi]
lea edx, [esp + 0x60]
push ebx
push edx
mov byte [esp + 0x88], 3
call fcn.00405230
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x88], 4
call fcn.004051b0
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
mov byte [esp + 0x80], 3
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
faddp st(1)
fld st(0)
fsqrt
fcomp qword [esp + 0xc]
fnstsw ax
test ah, 0x41
je 0x4b7ed7
fsqrt
fabs
fcomp qword [0x4e00d0]
fnstsw ax
test ah, 0x41
jne 0x4b7ed9
mov edx, dword [ebp + 0xc]
mov eax, dword [edi]
push eax
mov ecx, dword [edx + 4]
push ecx
mov ecx, edx
call fcn.004728d0
jmp 0x4b7ed9
fstp st(0)
mov eax, dword [esi + 4]
add edi, 4
cmp edi, eax
mov byte [esp + 0x80], 0
jne 0x4b7e3c
cmp byte [esi + 0x18], 2
jne 0x4b7efe
mov esi, dword [esi + 0x14]
cmp byte [esi + 0x18], 2
je 0x4b7ef5
mov ecx, dword [esp + 0x14]
cmp esi, dword [ecx]
je 0x4b7f0e
add esi, 0x38
jmp 0x4b7d20
fld qword [esp + 0xc]
fadd st(0), st(0)
fstp qword [esp + 0xc]
jmp 0x4b7cf3
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8