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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dcda8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
mov eax, dword [edi + 4]
test eax, eax
mov dword [esp + 0xc], eax
je 0x4b81cb
mov esi, dword [edi]
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 ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x4b7fcf
mov edx, dword [ecx + 4]
sub edx, eax
sar edx, 2
cmp edx, 0x14
jae 0x4b81cb
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.00405230
lea ecx, [esp + 0x3c]
push eax
push ecx
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 0x4b80d6
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x4b80e1
mov esi, dword [esi + 0x10]
lea edx, [esp + 0x48]
push ebx
push edx
mov ecx, dword [esi + 0x1c]
call fcn.00405230
push eax
lea eax, [esp + 0x58]
push eax
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 0x4b804d
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x4b81a1
mov edi, dword [esi]
mov eax, dword [esi + 4]
cmp edi, eax
je 0x4b819d
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x60]
push ebx
push ecx
mov ecx, dword [edi]
mov byte [esp + 0x88], 3
call fcn.00405230
lea edx, [esp + 0x6c]
push eax
push edx
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 0x4b8185
fsqrt
fabs
fcomp qword [0x4e00d0]
fnstsw ax
test ah, 0x41
jne 0x4b8187
mov ecx, dword [ebp + 0xc]
push edi
mov eax, dword [ecx + 4]
push eax
call fcn.00497c20
jmp 0x4b8187
fstp st(0)
mov eax, dword [esi + 4]
add edi, 4
cmp edi, eax
mov byte [esp + 0x80], 0
jne 0x4b80ee
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x18], 2
jne 0x4b81b0
mov esi, dword [esi + 0x14]
cmp byte [esi + 0x18], 2
je 0x4b81a7
cmp esi, dword [edi]
je 0x4b81bc
add esi, 0x38
jmp 0x4b7fd2
fld qword [esp + 0xc]
fadd st(0), st(0)
fstp qword [esp + 0xc]
jmp 0x4b7fb5
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8