Function at 0x40f570
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
or eax, 0xffffffff
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
call fcn.00423c10
mov ecx, dword [esi + 0x80c]
lea edx, [esp + 0x14]
push 0xfa0
mov dword [esi + 0x804], eax
push edx
mov dword [eax + 0x18], ecx
call fcn.00423c10
mov ecx, eax
call fcn.00422540
test eax, eax
je 0x40fb42
mov ecx, 0x4f715c
call fcn.00406580
mov ecx, dword [esi + 0x804]
call fcn.004236a0
test eax, eax
je 0x40f613
mov eax, dword [esi + 0x804]
mov eax, dword [eax + 0x54]
mov dword [esi + 0x808], eax
mov eax, dword [eax + 0x2c]
add eax, 0xffffffff
cmp eax, 1
ja 0x40f613
xor eax, eax
mov dword [0x52fc68], 1
mov dword [0x5310ec], eax
mov dword [0x5310c8], eax
mov dword [0x5310d0], eax
mov dword [0x5310d4], eax
mov dword [0x5310d8], eax
push 0x7d0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x80c]
call fcn.004a08a0
test eax, eax
je 0x40f67a
mov ecx, dword [esi + 0x80c]
lea edx, [ecx + 0xd74]
push edx
call fcn.004a1150
mov ecx, dword [esi + 0x80c]
cmp dword [ecx + 0xd74], 0x134
je 0x40f67a
call fcn.004a0990
mov ecx, dword [esi + 0x80c]
push 1
push 1
push 1
call fcn.004a07c0
mov eax, dword [ebp + 8]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x804]
call fcn.004234a0
mov ecx, 0x503c14
call fcn.00406580
cmp dword [0x5310cc], 0
je 0x40f71e
mov ecx, dword [esi + 0x804]
call fcn.004233f0
test eax, eax
je 0x40f71e
mov ecx, dword [esi + 0x804]
mov ecx, dword [ecx + 0x4c]
test ecx, ecx
mov dword [esi + 0x824], ecx
je 0x40f71e
push 2
call fcn.004b1a60
mov edi, eax
test edi, edi
je 0x40f71e
mov eax, dword [edi + 0xc]
cmp byte [eax], 0
je 0x40f71e
mov ecx, dword [esi + 0x804]
push eax
call fcn.00422380
mov edx, dword [edi + 0xc]
mov ecx, dword [esi + 0x804]
mov ebx, eax
push edx
mov dword [esp + 0x10], ebx
call fcn.00422350
cmp ebx, 0xb88438e0
mov dword [esp + 0x10], eax
je 0x40f714
cmp ebx, 0x504c8720
jne 0x40f71e
mov dword [0x5310ec], 2
jmp 0x40f71e
mov dword [0x5310d0], 0
mov ecx, 0x503c1c
call fcn.00406580
cmp dword [0x5310ec], 0
je 0x40f771
mov ecx, dword [esi + 0x804]
call fcn.004231f0
test eax, eax
je 0x40f771
mov eax, dword [esi + 0x804]
mov eax, dword [eax + 0x38]
mov dword [esi + 0x814], eax
mov ecx, dword [0x5310e8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x814]
mov eax, dword [0x5310ec]
mov dword [edx + 0x14], eax
mov ecx, dword [esi + 0x814]
call fcn.004267a0
mov ecx, str.ACPI
call fcn.00406580
cmp dword [0x5310c8], 0
je 0x40f7ac
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x804]
push edx
call fcn.004232a0
test eax, eax
je 0x40f7ac
mov eax, dword [esi + 0x804]
mov ecx, dword [eax + 0x3c]
mov dword [esi + 0x828], ecx
mov ecx, str.Processors
call fcn.00406580
mov ecx, dword [esi + 0x804]
push 0
call fcn.00423550
test eax, eax
je 0x40f7d6
mov edx, dword [esi + 0x804]
mov eax, dword [edx + 0x40]
mov dword [esi + 0x810], eax
call fcn.00423c10
mov ecx, eax
call fcn.00422ff0
mov ebx, eax
test ebx, ebx
je 0x40f873
call fcn.00423c10
mov ecx, eax
call fcn.00422fb0
mov edi, eax
test edi, edi
je 0x40f873
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0x14
push 0
push ebx
mov ecx, edi
call eax
fstp qword [esp + 0x20]
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0x14
push 0
push ebx
mov ecx, edi
call eax
fstp qword [esp + 0x18]
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0x14
push 0
push ebx
mov ecx, edi
call eax
fld qword [esp + 0x18]
fadd qword [esp + 0x20]
faddp st(1)
fdiv qword [0x505be0]
fld qword [edi + 0x10]
fld qword [0x505bd8]
fmul st(1)
fcomp st(2)
fnstsw ax
test ah, 5
jnp 0x40f865
fmul qword [0x505bd0]
fcompp
fnstsw ax
test ah, 0x41
jne 0x40f873
jmp 0x40f869
fstp st(1)
fstp st(0)
mov dword [0x52fc68], 1
mov ecx, 0x503c48
call fcn.00406580
mov ecx, dword [esi + 0x804]
call fcn.00423340
test eax, eax
je 0x40f89b
mov ecx, dword [esi + 0x804]
mov edx, dword [ecx + 0x48]
mov dword [esi + 0x818], edx
mov ecx, 0x4f8d24
call fcn.00406580
cmp dword [0x5310d0], 0
je 0x40f936
mov ecx, dword [esi + 0x804]
call fcn.004235f0
test eax, eax
je 0x40f936
mov eax, dword [esi + 0x804]
mov ecx, dword [eax + 0x44]
mov dword [esi + 0x81c], ecx
mov ecx, dword [esi + 0x810]
test ecx, ecx
je 0x40f905
push 0
call fcn.00428670
test eax, eax
je 0x40f905
mov ecx, eax
call fcn.0042b670
sub eax, 0x1000805
je 0x40f8f8
sub eax, 5
jne 0x40f905
mov edx, dword [esi + 0x820]
mov dword [edx + 0x10], 4
mov eax, dword [esi + 0x820]
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x820]
push fcn.00406530
call fcn.004a75d0
test eax, eax
je 0x40f936
mov ecx, dword [esi + 0x820]
push fcn.00406530
call fcn.004a6490
mov ecx, str.Graphics
call fcn.00406580
cmp dword [0x5310d8], 0
je 0x40f97b
xor eax, eax
cmp dword [0x5310dc], eax
je 0x40f958
mov eax, 1
mov ecx, dword [esi + 0x804]
push eax
call fcn.00423750
test eax, eax
je 0x40f97b
mov ecx, dword [esi + 0x804]
push 0x20
call fcn.004238a0
mov dword [esi + 0x830], eax
mov ecx, str.Monitoring
call fcn.00406580
cmp dword [0x5310d4], 0
je 0x40f9bd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x804]
push edx
push eax
call fcn.004237f0
test eax, eax
je 0x40f9bd
mov ecx, dword [esi + 0x804]
push 0x80
call fcn.004238a0
mov dword [esi + 0x82c], eax
mov ecx, dword [esi + 0x80c]
call fcn.004a0990
mov ecx, 0x4f8d14
call fcn.00406580
xor ebx, ebx
call fcn.00406530
push str.GlobalMemoryStatusEx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
lea ecx, [esp + 0x4c]
push ebx
push ecx
mov edi, eax
call fcn.004c43d0
add esp, 0xc
test edi, edi
mov dword [esp + 0x48], 0x40
je 0x40fa47
lea edx, [esp + 0x48]
push edx
call edi
test eax, eax
je 0x40fa47
mov eax, dword [esp + 0x54]
fild dword [esp + 0x54]
test eax, eax
jge 0x40fa2b
fadd qword [0x505bc8]
mov ecx, dword [esp + 0x50]
fmul qword [0x505bc8]
test ecx, ecx
fild dword [esp + 0x50]
jge 0x40fa43
fadd qword [0x505bc8]
faddp st(1)
jmp 0x40fa64
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
fild dword [esp + 0x30]
mov eax, dword [esp + 0x30]
test eax, eax
jge 0x40fa64
fadd qword [0x505bc8]
fmul qword [0x505bc0]
fadd qword [0x505bd0]
call fcn.004c51b0
test al, 1
je 0x40fa7c
add eax, 1
mov ecx, dword [esi + 0x820]
mov edx, dword [ecx + 4]
test edx, edx
jle 0x40fab3
mov ecx, dword [ecx + 8]
mov edx, dword [esi + 0x820]
mov edi, dword [edx + 4]
add ecx, 0x184
jmp 0x40faa0
mov edx, dword [ecx]
test edx, edx
jle 0x40faa8
add ebx, edx
add ecx, 0x228
sub edi, 1
jne 0x40faa0
cmp ebx, eax
jle 0x40fabf
mov dword [esi + 0x834], ebx
jmp 0x40fac5
mov dword [esi + 0x834], eax
mov eax, dword [esi + 0x818]
test eax, eax
je 0x40fadb
mov eax, dword [eax + 0x14]
mov ecx, dword [esi + 0x834]
mov dword [eax + 8], ecx
mov eax, dword [0x52f78c]
mov esi, dword [0x52f788]
add eax, 1
test esi, esi
mov dword [0x52f78c], eax
je 0x40fb28
cmp dword [0x52f790], 0
je 0x40fb28
imul eax, eax, 0x64
mov ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
mov ecx, dword [esi + 0x20]
sar edx, 4
mov eax, edx
push 0x503c88
shr eax, 0x1f
add eax, edx
push eax
push 0x420
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.00423c10
mov ecx, eax
call fcn.00422340
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 8]
pop edi
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4