Function at 0x40fd50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x580020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x160]
push ebp
mov ebp, dword [ebx + 0x15c]
lea ecx, [eax + 8]
mov eax, dword [ecx]
push esi
mov esi, edx
mov edx, dword [eax + 0xc]
call edx
fld dword [eax + 4]
fstp dword [esp + 0x3c]
mov ecx, 0x5cf904
fld dword [eax + 8]
mov dword [esp + 0x38], ecx
fstp dword [esp + 0x40]
mov dword [esp + 0x70], 0
fld dword [ebx + 0x168]
fstp dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
fld dword [ebx + 0x16c]
fstp dword [esp + 0x34]
mov byte [esp + 0x70], 1
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
lea edx, [esp + 0x3c]
call fcn.0040a100
mov byte [esp + 0x70], 2
call fcn.0047fad0
fstp dword [esp + 0x10]
fld dword [esp + 0x4c]
push ecx
fdiv dword [esp + 0x4c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [esp]
call fcn.0040b1f0
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
add esp, 4
fld qword [0x5ec6c0]
fmul st(1), st(0)
fxch st(1)
fdiv qword [0x5ec6c8]
fstp dword [esp + 0xc]
fld dword [esp + 0x30]
fld dword [esp + 0x3c]
fcompp
fnstsw ax
test ah, 5
jp 0x40fe34
fadd dword [esp + 0xc]
fstp dword [esp + 0xc]
jmp 0x40fe36
fstp st(0)
mov ecx, dword [ebx + 0x160]
fld dword [esp + 0xc]
mov ecx, dword [ecx + 0x174]
fsub qword [0x5ec980]
mov edx, dword [ecx + 0x20]
lea eax, [ecx + 0x24]
add ecx, 0x20
fstp dword [esp + 0xc]
cmp edx, dword [eax]
jl 0x40fe5f
mov eax, ecx
mov eax, dword [eax]
mov edx, dword [ebp]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov eax, dword [edx + 0x18]
mov ecx, ebp
fstp dword [esp + 0x18]
call eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
push ecx
fdivr dword [esp + 0x1c]
fmul dword [esp + 0x14]
fstp dword [esp + 0x18]
fld dword [esp + 0x4c]
fld dword [esp + 0x50]
fld st(1)
fmulp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.00401df0
mov edx, dword [ebp]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
mov eax, dword [edx + 0x1c]
add esp, 4
fstp qword [esp + 0x1c]
mov ecx, ebp
call eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
fdivr qword [esp + 0x20]
lea edx, [esp + 0x3c]
fmul dword [esp + 0x14]
fstp dword [esp + 0x1c]
call fcn.0040a090
mov byte [esp + 0x70], 3
fld dword [0x5ec818]
push ecx
lea edx, [esp + 0x60]
fstp dword [esp]
push edx
mov ecx, eax
call fcn.0040a1e0
mov byte [esp + 0x70], 5
fldz
push ecx
fstp dword [esp]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ebx, 0x5cf904
mov ecx, esi
mov dword [esp + 0x28], ebx
call fcn.0047fbd0
mov byte [esp + 0x70], 6
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
mov ecx, edi
call eax
fld dword [esp + 0x18]
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
sub esp, 8
fstp dword [esp + 4]
mov ecx, edi
fld dword [esp + 0x1c]
fstp dword [esp]
call eax
mov edx, dword [edi]
fld dword [esp + 0xc]
mov eax, dword [edx + 0x20]
push ecx
mov ecx, edi
fstp dword [esp]
call eax
fld dword [esp + 0x58]
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
sub esp, 8
fstp dword [esp + 4]
mov ecx, edi
fld dword [esp + 0x5c]
fstp dword [esp]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
push ebp
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
mov ecx, edi
call eax
mov byte [esp + 0x70], 5
mov dword [esp + 0x50], ebx
mov byte [esp + 0x70], 2
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x70], 1
mov dword [esp + 0x44], ebx
mov byte [esp + 0x70], 0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x70], 0xffffffff
mov ecx, dword [esp + 0x68]
pop esi
mov dword [esp + 0x34], ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret