Function at 0x478910
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51148f
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x55406c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x15c], ecx
lea ecx, [ebp - 0x40]
call fcn.0040b920
mov dword [ebp - 4], 0
push 0x40
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.004da870
add esp, 0xc
mov dword [ebp - 0x130], 0x40
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x478a04
push 0
push 0x100000
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x128]
push eax
call fcn.004c3220
mov dword [ebp - 0x164], eax
lea ecx, [ebp - 0xb8]
call fcn.00406820
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x164]
push ecx
push 0x532618
lea edx, [ebp - 0xb8]
push edx
call fcn.0041c050
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00406a90
mov esi, eax
lea ecx, [ebp - 0xb8]
call fcn.00406730
mov edx, esi
mov ecx, eax
call fcn.0041df40
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.004067a0
lea ecx, [ebp - 0x40]
call fcn.00406720
movzx ecx, al
test ecx, ecx
jne 0x478a49
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x198], esp
lea edx, [ebp - 0x40]
push edx
call fcn.004aa320
mov dword [ebp - 0x194], eax
mov byte [ebp - 4], 2
push str.A0201
mov ecx, dword [ebp + 8]
call fcn.004ab420
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.004aa5e0
push 0x530808
lea ecx, [ebp - 0x1b4]
call fcn.004067e0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1b4]
push eax
call fcn.0041eed0
mov ecx, eax
call fcn.0041ef90
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b4]
call fcn.004067a0
mov dword [ebp - 0x138], 0
cmp dword [ebp - 0x13c], 0
je 0x478ab0
push str.GetSystemMetrics
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x58]
call fcn.0040b920
mov byte [ebp - 4], 4
mov dword [ebp - 0x148], 0
cmp dword [ebp - 0x138], 0
je 0x478add
push 0
call dword [ebp - 0x138]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jle 0x478b47
lea ecx, [ebp - 0xa0]
call fcn.00406820
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x148]
push edx
push 0x532218
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c050
add esp, 0xc
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00406a90
mov esi, eax
lea ecx, [ebp - 0xa0]
call fcn.00406730
mov edx, esi
mov ecx, eax
call fcn.0041df40
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.004067a0
lea ecx, [ebp - 0x58]
call fcn.00406720
movzx edx, al
test edx, edx
jne 0x478b8c
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x190], esp
lea eax, [ebp - 0x58]
push eax
call fcn.004aa320
mov dword [ebp - 0x18c], eax
mov byte [ebp - 4], 6
push str.A0202
mov ecx, dword [ebp + 8]
call fcn.004ab420
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004aa5e0
lea ecx, [ebp - 0x70]
call fcn.0040b920
mov byte [ebp - 4], 7
mov dword [ebp - 0x14c], 0
cmp dword [ebp - 0x138], 0
je 0x478bb9
push 1
call dword [ebp - 0x138]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jle 0x478c23
lea ecx, [ebp - 0x88]
call fcn.00406820
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x14c]
push ecx
push 0x532218
lea edx, [ebp - 0x88]
push edx
call fcn.0041c050
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x88]
call fcn.00406a90
mov esi, eax
lea ecx, [ebp - 0x88]
call fcn.00406730
mov edx, esi
mov ecx, eax
call fcn.0041df40
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.004067a0
lea ecx, [ebp - 0x70]
call fcn.00406720
movzx ecx, al
test ecx, ecx
jne 0x478c68
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x188], esp
lea edx, [ebp - 0x70]
push edx
call fcn.004aa320
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 9
push str.A0203
mov ecx, dword [ebp + 8]
call fcn.004ab420
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.004aa5e0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x19c], esp
call fcn.0041aa80
push eax
mov ecx, esi
call fcn.004aa200
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 0xa
push str.A0204
mov ecx, dword [ebp + 8]
call fcn.004ab420
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.004aa5e0
push 0x53339c
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x150], eax
push 0x533390
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x140], 0
push str.Gdi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x478d0e
push 0x5333c4
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x160], 0
cmp dword [ebp - 0x140], 0
je 0x478d8d
cmp dword [ebp - 0x150], 0
je 0x478d8d
cmp dword [ebp - 0x154], 0
je 0x478d8d
push 0
call dword [ebp - 0x150]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
je 0x478d8d
push 0x58
mov eax, dword [ebp - 0x144]
push eax
call dword [ebp - 0x140]
mov dword [ebp - 0x158], eax
push 0x5a
mov ecx, dword [ebp - 0x144]
push ecx
call dword [ebp - 0x140]
mov dword [ebp - 0x160], eax
mov edx, dword [ebp - 0x144]
push edx
push 0
call dword [ebp - 0x154]
cmp dword [ebp - 0x134], 0
je 0x478dad
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x134], 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x16c], esp
mov edx, dword [ebp - 0x158]
push edx
call fcn.004aa200
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 0xb
push str.A0205
mov ecx, dword [ebp + 8]
call fcn.004ab420
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.004aa5e0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x174], esp
mov eax, dword [ebp - 0x160]
push eax
call fcn.004aa200
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 0xc
push str.A0206
mov ecx, dword [ebp + 8]
call fcn.004ab420
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.004aa5e0
push 0x20
lea ecx, [ebp - 0xd8]
call fcn.00418e90
lea ecx, [ebp - 0xd8]
call fcn.0045b090
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.0045b210
mov edx, dword [ebp - 0x15c]
movzx eax, byte [edx + 0x30]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0045e540
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.0045b250
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
call fcn.00406720
movzx edx, al
test edx, edx
je 0x478e92
push str.000000000000
lea ecx, [ebp - 0x28]
call fcn.00406740
lea ecx, [ebp - 0xf0]
call fcn.0040b920
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406a90
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00406730
mov edx, esi
mov ecx, eax
call fcn.0041df40
add esp, 4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x17c], esp
lea edx, [ebp - 0xf0]
push edx
call fcn.004aa320
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 0x10
push str.A0207
mov ecx, dword [ebp + 8]
call fcn.004ab420
mov byte [ebp - 4], 0xf
mov ecx, eax
call fcn.004aa5e0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xf0]
call fcn.0040b7f0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
call fcn.004067a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd8]
call fcn.0045b150
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.0040b7f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040b7f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040b7f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c23b5
mov esp, ebp
pop ebp
ret 4