Function at 0x408680
Capabilities:
Access peb ldr_data
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x46d1ac
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x485370]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x485370]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ebx, ecx
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
xor esi, esi
mov dword [esp + 0xc0], esi
mov eax, dword [0x48819c]
mov ecx, dword [eax*4 + 0x4865e0]
push ecx
push 0x47a83c
lea edi, [esp + 0x34]
call fcn.00404aa0
mov ecx, dword [ebx + 0x370]
mov edx, dword [ecx]
mov eax, dword [esp + 0x34]
mov edx, dword [edx + 0x2c]
add esp, 8
push eax
call edx
push 0x40
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00453660
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ecx, eax
mov dword [esp + 0x34], edx
and eax, 0x7fffffff
mov dword [esp + 0x38], eax
fild qword [esp + 0x34]
and ecx, 0x80000000
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], esi
fild qword [esp + 0x34]
sub esp, 8
fchs
faddp st(1)
fmul qword [0x47bb40]
fstp qword [esp]
push 0x47a84c
call fcn.00404aa0
mov ecx, dword [ebx + 0x374]
mov eax, dword [ecx]
mov edx, dword [esp + 0x38]
mov eax, dword [eax + 0x2c]
add esp, 0xc
push edx
call eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0xc0], 1
movzx ecx, word [0x488190]
push ecx
push 0x47a868
call fcn.00404aa0
mov ecx, dword [ebx + 0x378]
mov edx, dword [ecx]
mov eax, dword [esp + 0x34]
mov edx, dword [edx + 0x2c]
add esp, 8
push eax
call edx
lea esi, [esp + 0x30]
call fcn.0040f330
mov byte [esp + 0xc0], 2
mov eax, dword [eax]
push eax
push 0x47a87c
call fcn.00404aa0
mov byte [esp + 0xc8], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40881c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 0x37c]
mov edx, dword [ecx]
mov edi, dword [esp + 0x2c]
mov eax, dword [edx + 0x2c]
push edi
call eax
lea esi, [esp + 0x30]
call fcn.0040f330
mov byte [esp + 0xc0], 3
mov eax, dword [eax]
mov ecx, dword [ebx + 0x37c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x94]
call eax
mov byte [esp + 0xc0], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40887a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call fcn.004084a0
mov ecx, dword [ebx + 4]
push 0x457
push ecx
mov dword [ebx + 0x79c], 0
call dword [sym.imp.USER32.dll_KillTimer]
mov ebx, dword [ebx + 0x36c]
mov edx, dword [ebx]
mov eax, dword [edx + 0x1b4]
push 0
mov ecx, ebx
call eax
mov byte [esp + 0xc0], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0xc0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004501c4
mov esp, ebp
pop ebp
ret