Function at 0x479c10
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585188
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5cca0c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea esi, [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0
call fcn.004798b0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00480a30
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00480cd0
test eax, eax
jl 0x479e23
mov eax, dword [0x5c5024]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x34]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
mov bl, 3
push str.Caption
mov byte [ebp - 4], bl
call fcn.0040a920
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.Win32_DisplayConfiguration
mov byte [ebp - 4], 4
call fcn.0040a920
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.004815d0
test eax, eax
jl 0x479d04
mov eax, dword [ebp - 0x34]
test eax, eax
mov edi, eax
je 0x479d04
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x479d04
lea esi, [eax + eax]
mov eax, esi
call fcn.00553150
mov dword [ebp - 0x10], esp
mov eax, esp
push 0x3a8
push esi
push edi
push eax
call fcn.00401180
test eax, eax
je 0x479d04
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx - 8]
push ecx
mov ecx, dword [ebp - 0x40]
push eax
add ecx, 0x1c
call fcn.0040c1c0
lea eax, [ebp - 0x34]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push str.Name
call fcn.0040a920
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.Win32_Processor
mov byte [ebp - 4], 5
call fcn.0040a920
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.004815d0
test eax, eax
jl 0x479df4
mov eax, dword [ebp - 0x34]
test eax, eax
mov edi, eax
je 0x479d91
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x479d91
lea esi, [eax + eax]
mov eax, esi
call fcn.00553150
mov dword [ebp - 0x10], esp
mov eax, esp
push 0x3a8
push esi
push edi
push eax
call fcn.00401180
test eax, eax
je 0x479d91
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx - 8]
mov esi, dword [ebp - 0x40]
push ecx
push eax
mov ecx, esi
call fcn.0040c1c0
cmp dword [esi + 0x14], 0
ja 0x479df4
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
lea ecx, [ebp - 0x38]
call fcn.0040a920
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x38]
push 0xf003f
push edx
push reloc.WS2_32.dll_bind
lea ecx, [ebp - 0x3c]
call fcn.00449940
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x479dc9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x38]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x5c5020]
je 0x479df4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x479df4
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff4
push eax
call fcn.0055221b
add esp, 4
mov eax, dword [ebp - 0x34]
lea edx, [eax - 0xc]
cmp edx, dword [0x5c5020]
mov byte [ebp - 4], 2
je 0x479e23
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x479e23
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff4
push eax
call fcn.0055221b
add esp, 4
lea ecx, [ebp - 0x50]
call fcn.00480a50
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x84]
mov dword [eax + 0x38], ecx
lea ecx, [ebp - 0x50]
mov dword [eax + 0x3c], edx
mov byte [ebp - 4], 1
call fcn.00480a40
cmp dword [ebp - 0x18], 0x10
jb 0x479e75
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0055215c
add esp, 4
lea esp, [ebp - 0xa0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00552d63
mov esp, ebp
pop ebp
ret