Function at 0x4220c0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x4ce540]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push 0x3c
lea ecx, [esp + 0x28]
push edi
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
call fcn.00427b00
add esp, 0xc
push 0x400
call fcn.004261ca
mov esi, eax
add esp, 4
cmp esi, edi
je 0x422641
push 0x400
push edi
push esi
call fcn.00427b00
add esp, 0xc
push str.WindowsDevice
push 0x400
push esi
call fcn.0042e825
add esp, 0xc
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x10]
push edx
call fcn.00414a60
mov ebx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x18], ebx
cmp ebx, edi
jne 0x422159
mov dword [esp + 0x18], 0x4c8f10
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422160
sub eax, edx
mov ecx, eax
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x422170
mov edx, dword [esp + 0x18]
push edx
mov edx, 0x400
sub eax, edi
push 0x4c8f14
sub edx, ecx
push edx
add eax, esi
push eax
call fcn.0042b843
add esp, 0x10
test ebx, ebx
je 0x4221ab
push ebx
call fcn.00427598
add esp, 4
mov dword [esp + 0x10], 0
push 0x1e
push str.SerialNumber
push str.BaseBoard
lea edx, [esp + 0x24]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], 0
call fcn.00413970
add esp, 0xc
cmp dword [esp + 0x18], 0xa
mov ebx, 0x4c8f10
jb 0x4221df
mov ebx, dword [esp + 0x10]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4221e4
sub eax, edx
mov ecx, eax
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4221f4
push ebx
mov edx, 0x400
sub eax, edi
push 0x4c8f14
sub edx, ecx
push edx
add eax, esi
push eax
call fcn.0042b843
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
je 0x42222f
push eax
call fcn.00427598
add esp, 4
mov dword [esp + 0x10], 0
push 0x1e
push str.Signature
push str.DiskDrive
lea edx, [esp + 0x24]
lea ecx, [esp + 0x1c]
call fcn.00413970
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x42225f
mov dword [esp + 0x14], 0x4c8f10
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422264
sub eax, edx
mov ecx, eax
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x422274
mov edx, dword [esp + 0x14]
push edx
mov edx, 0x400
sub eax, edi
push 0x4c8f14
sub edx, ecx
push edx
add eax, esi
push eax
call fcn.0042b843
add esp, 0x10
test ebx, ebx
je 0x4222af
push ebx
call fcn.00427598
add esp, 4
mov dword [esp + 0x10], 0
push 0x14
push str.CSName
push str.OperatingSystem
lea edx, [esp + 0x24]
lea ecx, [esp + 0x1c]
call fcn.00413970
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x4222df
mov dword [esp + 0x14], 0x4c8f10
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4222e4
sub eax, edx
mov ecx, eax
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4222f4
mov edx, dword [esp + 0x14]
push edx
mov edx, 0x400
sub eax, edi
push 0x4c8f14
sub edx, ecx
push edx
add eax, esi
push eax
call fcn.0042b843
add esp, 0x10
test ebx, ebx
je 0x42232f
push ebx
call fcn.00427598
add esp, 4
mov dword [esp + 0x10], 0
lea edi, [esp + 0x10]
call fcn.00421f50
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x42234c
mov dword [esp + 0x14], 0x4c8f10
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422351
sub eax, edx
mov edx, eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422361
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, 0x400
sub eax, edi
push 0x4c8f60
sub ecx, edx
push ecx
add eax, esi
push eax
call fcn.0042b843
add esp, 0x10
test ebx, ebx
je 0x42239c
push ebx
call fcn.00427598
add esp, 4
mov dword [esp + 0x10], 0
lea edx, [esp + 0x10]
push edx
call fcn.00420fb0
mov ebx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x4223bd
mov dword [esp + 0x14], 0x4c8f10
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4223c2
sub eax, edx
mov ecx, eax
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4223d2
mov edx, dword [esp + 0x14]
push edx
mov edx, 0x400
sub eax, edi
push 0x4c8f14
sub edx, ecx
push edx
add eax, esi
push eax
call fcn.0042b843
add esp, 0x10
test ebx, ebx
je 0x42240d
push ebx
call fcn.00427598
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
call fcn.004216b0
mov ebx, dword [esp + 0x14]
add esp, 4
test ebx, ebx
jne 0x422437
lea ecx, [esp + 0x10]
push ecx
call fcn.00421a20
mov ebx, dword [esp + 0x14]
add esp, 4
test ebx, ebx
je 0x42243d
mov dword [esp + 0x14], ebx
jmp 0x422445
mov dword [esp + 0x14], 0x4c8f68
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422450
sub eax, edx
mov ecx, eax
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x422460
mov edx, dword [esp + 0x14]
push edx
mov edx, 0x400
sub eax, edi
push 0x4c8f14
sub edx, ecx
push edx
add eax, esi
push eax
call fcn.0042b843
add esp, 0x10
test ebx, ebx
je 0x42249b
push ebx
call fcn.00427598
add esp, 4
mov dword [esp + 0x10], 0
push 0x14
push str.Manufacturer
push str.BaseBoard
lea edx, [esp + 0x24]
lea ecx, [esp + 0x1c]
call fcn.00413970
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x4224cb
mov dword [esp + 0x14], 0x4c8f10
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4224d0
sub eax, edx
mov ecx, eax
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4224e0
mov edx, dword [esp + 0x14]
push edx
mov edx, 0x400
sub eax, edi
push 0x4c8f14
sub edx, ecx
push edx
add eax, esi
push eax
call fcn.0042b843
add esp, 0x10
test ebx, ebx
je 0x42251b
push ebx
call fcn.00427598
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
call fcn.00413fe0
mov ebx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x42253c
mov dword [esp + 0x14], 0x4c8f10
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422541
sub eax, edx
mov ecx, eax
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x422551
mov edx, dword [esp + 0x14]
push edx
mov edx, 0x400
sub eax, edi
push 0x4c8f14
sub edx, ecx
push edx
add eax, esi
push eax
call fcn.0042b843
add esp, 0x10
test ebx, ebx
je 0x42258c
push ebx
call fcn.00427598
add esp, 4
mov dword [esp + 0x10], 0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422591
sub eax, edx
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4225a1
sub eax, edx
mov edi, eax
call fcn.00422070
push eax
mov eax, 0x400
push 0x4c8f14
sub eax, ebx
push eax
add edi, esi
push edi
call fcn.0042b843
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4225e2
sub eax, edx
mov edx, eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4225f2
mov ecx, dword [esp + 0x28]
sub eax, edi
mov edi, dword [esp + 0x2c]
shrd ecx, edi, 0x14
shr edi, 0x14
push edi
push ecx
mov ecx, 0x400
push str._d
sub ecx, edx
push ecx
add eax, esi
push eax
call fcn.0042b843
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
je 0x422635
push eax
call fcn.00427598
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edx, dword [esp + 0x1c]
mov dword [edx], esi
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004265ea
mov esp, ebp
pop ebp
ret