Function at 0x405ad0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x464f61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
mov esi, ecx
lea edx, [esp + 0x64]
push edi
mov ecx, dword [esi + 0x44]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x68]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x64], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x68], eax
call fcn.004044f0
mov edx, dword [eax]
xor ebp, ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], ebp
mov ecx, dword [eax + 4]
mov dword [esp + 0x30], ecx
fld dword [esp + 0x30]
mov edx, dword [eax + 8]
fmul dword [esp + 0x30]
mov dword [esp + 0x34], edx
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
faddp st(1)
fsqrt
fld dword [esp + 0x2c]
fdiv st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x34]
fdiv st(1)
fstp dword [esp + 0x34]
fstp st(0)
call fcn.0045bccd
mov dword [esp + 0x14], eax
sub esp, 8
fild dword [esp + 0x1c]
fmul dword [0x467418]
fsub dword [0x467414]
fstp dword [esp + 0x24]
fld dword [esp + 0x34]
fstp qword [esp]
call fcn.004031f0
fstp dword [esp + 0x1c]
fld dword [esp + 0x3c]
fstp qword [esp]
call fcn.00403230
fcomp dword [0x4672a0]
fld dword [esp + 0x1c]
add esp, 8
fnstsw ax
test ah, 1
je 0x405bc2
fchs
fadd dword [esp + 0x1c]
fstp qword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
push edi
push ebx
call fcn.00403190
fstp dword [esp + 0x28]
push edi
push ebx
call fcn.00403130
fstp dword [esp + 0x34]
add esp, 0x10
call fcn.0045bccd
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fmul dword [0x467334]
fadd dword [0x467410]
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fmul dword [esp + 0x14]
fld dword [0x4672a0]
fld dword [esp + 0x24]
fmul dword [esp + 0x14]
fst dword [esp + 0x24]
fstp dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
fstp dword [esp + 0x48]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
fstp dword [esp + 0x4c]
fld dword [esp + 0x5c]
fadd dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov eax, dword [0x47dbc4]
fstp dword [esp + 0x38]
fld dword [esp + 0x60]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x64]
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [eax + 0x158]
fsub dword [esp + 0x40]
fld dword [eax + 0x154]
fsub dword [esp + 0x3c]
fld dword [eax + 0x150]
fsub dword [esp + 0x38]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcomp dword [0x46740c]
fnstsw ax
test ah, 0x41
jne 0x405b70
push ebp
lea ecx, [esp + 0x3c]
push 0x19
push ecx
mov ecx, esi
call fcn.00406ce0
test al, al
jne 0x405b70
call fcn.0045bccd
cdq
mov ecx, 7
idiv ecx
inc edx
cmp edx, ebp
jle 0x405eaa
mov ebx, edx
call fcn.0045bccd
mov edx, eax
shl edx, 5
sub edx, eax
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fmul dword [0x467334]
fsub dword [0x467408]
fstp dword [esp + 0x20]
call fcn.0045bccd
mov ecx, eax
push ebp
shl ecx, 5
sub ecx, eax
push 5
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
fmul dword [0x467334]
fsub dword [0x467408]
fstp dword [esp + 0x2c]
fld dword [esp + 0x48]
fadd dword [esp + 0x28]
fld dword [esp + 0x44]
fld dword [esp + 0x2c]
fadd dword [esp + 0x40]
fstp dword [esp + 0x70]
mov edx, dword [esp + 0x70]
fstp dword [esp + 0x74]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x58], edx
fstp dword [esp + 0x78]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x58]
mov dword [esp + 0x60], ecx
push edx
mov ecx, esi
mov dword [esp + 0x60], eax
call fcn.00406ce0
test al, al
jne 0x405ea3
call fcn.0045bccd
shl eax, 1
cdq
and edx, 0x7fff
add eax, edx
sar eax, 0xf
sub eax, ebp
je 0x405e1b
dec eax
jne 0x405ea3
push 0x2c
call fcn.00401ae0
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov dword [esp + 0x88], 1
je 0x405dda
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push ecx
mov ecx, eax
call fcn.00404cb0
mov edi, eax
jmp 0x405ddc
xor edi, edi
push 0xc
mov dword [esp + 0x8c], 0xffffffff
call fcn.00401ae0
mov dword [eax + 8], edi
mov edx, dword [esi + 0x98]
mov dword [eax], edx
mov dword [eax + 4], ebp
mov ecx, dword [esi + 0x94]
add esp, 4
cmp ecx, ebp
jne 0x405e0f
mov dword [esi + 0x94], eax
mov ecx, dword [esi + 0x98]
cmp ecx, ebp
je 0x405e90
jmp 0x405e8d
push 0x30
call fcn.00401ae0
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov dword [esp + 0x88], ebp
je 0x405e4e
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push ecx
mov ecx, eax
call fcn.00404780
mov edi, eax
jmp 0x405e50
xor edi, edi
push 0xc
mov dword [esp + 0x8c], 0xffffffff
call fcn.00401ae0
mov dword [eax + 8], edi
mov edx, dword [esi + 0x98]
mov dword [eax], edx
mov dword [eax + 4], ebp
mov ecx, dword [esi + 0x94]
add esp, 4
cmp ecx, ebp
jne 0x405e83
mov dword [esi + 0x94], eax
mov ecx, dword [esi + 0x98]
cmp ecx, ebp
je 0x405e90
mov dword [ecx + 4], eax
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0x9c]
inc eax
mov dword [esi + 0x9c], eax
dec ebx
jne 0x405cee
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x405b70
call fcn.0045bccd
mov dword [esp + 0x24], eax
sub esp, 8
fild dword [esp + 0x2c]
fmul dword [0x4673f4]
fmul dword [0x467334]
fsub dword [0x467414]
fstp dword [esp + 0x2c]
fld dword [esp + 0x34]
fstp qword [esp]
call fcn.004031f0
fstp dword [esp + 0x20]
fld dword [esp + 0x3c]
fstp qword [esp]
call fcn.00403230
fcomp dword [0x4672a0]
fld dword [esp + 0x20]
add esp, 8
fnstsw ax
test ah, 1
je 0x405f14
fchs
fadd dword [esp + 0x24]
fstp qword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
push edi
push ebx
call fcn.00403190
fstp dword [esp + 0x28]
push edi
push ebx
call fcn.00403130
fstp dword [esp + 0x2c]
call fcn.0045bccd
lea eax, [eax + eax*4]
add esp, 0xc
lea eax, [eax + eax*4]
shl eax, 2
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul dword [0x467334]
fadd dword [0x46737c]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp]
fld dword [esp + 0x20]
fmul st(1)
push 0
push ecx
lea ecx, [esp + 0x80]
fstp dword [esp]
fstp st(0)
call fcn.00402dd0
mov ecx, dword [eax]
push 0
fld dword [esp + 0x60]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 4]
fadd dword [esp + 0x48]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x48]
push 0xa
push ecx
fstp dword [esp + 0x50]
fld dword [esp + 0x6c]
fadd dword [esp + 0x54]
mov ecx, esi
fstp dword [esp + 0x54]
fld dword [esp + 0x70]
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
call fcn.00406ce0
test al, al
jne 0x405ebc
push 0x1c
call fcn.00401ae0
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x88], 2
je 0x406007
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
push edx
mov ecx, eax
call fcn.00404b30
jmp 0x406009
xor eax, eax
push eax
lea ecx, [esi + 0x90]
mov dword [esp + 0x8c], 0xffffffff
call fcn.00440ce0
inc ebp
cmp ebp, 2
jl 0x405ebc
mov ecx, dword [esp + 0x80]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret