Function at 0x4b6bb4
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x4b6bbc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cb0
xor eax, eax
push ebp
push 0x4b706d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404854
mov edx, dword [ebx]
mov eax, 0x4b7084
call fcn.00404e04
test eax, eax
jg 0x4b6c2d
mov edx, dword [ebx]
mov eax, 0x4b7094
call fcn.00404e04
test eax, eax
jg 0x4b6c2d
mov edx, dword [ebx]
mov eax, 0x4b70a4
call fcn.00404e04
test eax, eax
jg 0x4b6c2d
mov edx, dword [ebx]
mov eax, 0x4b70b4
call fcn.00404e04
test eax, eax
jle 0x4b6d7a
mov dword [ebp - 0x24], 0x20
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov edx, dword [ebx]
mov eax, 0x4b7084
call fcn.00404e04
test eax, eax
jle 0x4b6c86
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.004093a8
lea eax, [ebp - 0x2c]
mov edx, 0x4b70c8
call fcn.00404ac8
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov edx, 0x4b7084
call fcn.00438dec
mov edx, dword [ebp - 0x28]
mov eax, ebx
call fcn.00404854
mov edx, dword [ebx]
mov eax, 0x4b7094
call fcn.00404e04
test eax, eax
jle 0x4b6cd5
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
shr eax, 0xa
shr eax, 0xa
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.004093a8
lea eax, [ebp - 0x34]
mov edx, 0x4b70d4
call fcn.00404ac8
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebx]
mov edx, 0x4b7094
call fcn.00438dec
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.00404854
mov edx, dword [ebx]
mov eax, 0x4b70a4
call fcn.00404e04
test eax, eax
jle 0x4b6d2b
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
shr eax, 0xa
shr eax, 0xa
push eax
mov eax, dword [ebp - 0x1c]
pop edx
sub eax, edx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.004093a8
lea eax, [ebp - 0x3c]
mov edx, 0x4b70d4
call fcn.00404ac8
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebx]
mov edx, 0x4b70a4
call fcn.00438dec
mov edx, dword [ebp - 0x38]
mov eax, ebx
call fcn.00404854
mov edx, dword [ebx]
mov eax, 0x4b70b4
call fcn.00404e04
test eax, eax
jle 0x4b6d7a
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x1c]
shr eax, 0xa
shr eax, 0xa
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.004093a8
lea eax, [ebp - 0x44]
mov edx, 0x4b70d4
call fcn.00404ac8
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebx]
mov edx, 0x4b70b4
call fcn.00438dec
mov edx, dword [ebp - 0x40]
mov eax, ebx
call fcn.00404854
mov edx, dword [ebx]
mov eax, 0x4b70e0
call fcn.00404e04
test eax, eax
jle 0x4b6e19
push dword [0x4d914c]
push dword [0x4d9148]
push 0
push 0x32
call fcn.004b15b0
fstp qword [ebp - 0x4c]
wait
call fcn.0040b04c
fcomp qword [ebp - 0x4c]
fnstsw ax
sahf
jbe 0x4b6df9
lea edx, [ebp - 0x50]
xor eax, eax
call fcn.004b6a60
mov edx, dword [ebp - 0x50]
mov eax, 0x4d9150
call fcn.00404854
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebx]
mov ecx, dword [0x4d9150]
mov edx, 0x4b70e0
call fcn.00438dec
mov edx, dword [ebp - 0x54]
mov eax, ebx
call fcn.00404854
call fcn.0040b04c
fstp qword [0x4d9148]
wait
jmp 0x4b6e19
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebx]
mov ecx, dword [0x4d9150]
mov edx, 0x4b70e0
call fcn.00438dec
mov edx, dword [ebp - 0x58]
mov eax, ebx
call fcn.00404854
mov edx, dword [ebx]
mov eax, 0x4b70f0
call fcn.00404e04
test eax, eax
jle 0x4b6eb8
push dword [0x4d9158]
push dword [0x4d9154]
push 0
push 0x32
call fcn.004b15b0
fstp qword [ebp - 0x4c]
wait
call fcn.0040b04c
fcomp qword [ebp - 0x4c]
fnstsw ax
sahf
jbe 0x4b6e98
lea edx, [ebp - 0x5c]
mov al, 1
call fcn.004b6a60
mov edx, dword [ebp - 0x5c]
mov eax, 0x4d915c
call fcn.00404854
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebx]
mov ecx, dword [0x4d915c]
mov edx, 0x4b70f0
call fcn.00438dec
mov edx, dword [ebp - 0x60]
mov eax, ebx
call fcn.00404854
call fcn.0040b04c
fstp qword [0x4d9154]
wait
jmp 0x4b6eb8
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
mov ecx, dword [0x4d915c]
mov edx, 0x4b70f0
call fcn.00438dec
mov edx, dword [ebp - 0x64]
mov eax, ebx
call fcn.00404854
mov edx, dword [ebx]
mov eax, 0x4b7100
call fcn.00404e04
test eax, eax
jle 0x4b6efe
lea eax, [ebp - 0x68]
push eax
call fcn.0040b04c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x6c]
mov eax, 0x4b7110
call fcn.0040bcf4
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebx]
mov edx, 0x4b7100
call fcn.00438dec
mov edx, dword [ebp - 0x68]
mov eax, ebx
call fcn.00404854
mov edx, dword [ebx]
mov eax, 0x4b712c
call fcn.00404e04
test eax, eax
jle 0x4b6f44
lea eax, [ebp - 0x70]
push eax
call fcn.0040b04c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x74]
mov eax, 0x4b713c
call fcn.0040bcf4
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebx]
mov edx, 0x4b712c
call fcn.00438dec
mov edx, dword [ebp - 0x70]
mov eax, ebx
call fcn.00404854
mov edx, dword [ebx]
mov eax, 0x4b715c
call fcn.00404e04
test eax, eax
jle 0x4b6f8d
lea eax, [ebp - 0x78]
push eax
call fcn.0040b04c
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.004b1508
movzx eax, ax
lea edx, [ebp - 0x7c]
call fcn.004092bc
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebx]
mov edx, 0x4b715c
call fcn.00438dec
mov edx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00404854
mov edx, dword [ebx]
mov eax, 0x4b716c
call fcn.00404e04
test eax, eax
jle 0x4b6fe8
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x88]
call fcn.004b47ec
push dword [ebp - 0x88]
push 0x4b7178
push 0x4b7184
lea eax, [ebp - 0x84]
mov edx, 3
call fcn.00404b80
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebx]
mov edx, 0x4b716c
call fcn.00438dec
mov edx, dword [ebp - 0x80]
mov eax, ebx
call fcn.00404854
mov edx, dword [ebx]
mov eax, 0x4b71a4
call fcn.00404e04
test eax, eax
jle 0x4b703a
lea eax, [ebp - 0x8c]
push eax
call fcn.0040b04c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x90]
mov eax, dword [0x4daebc]
call fcn.0040bcf4
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebx]
mov edx, 0x4b71a4
call fcn.00438dec
mov edx, dword [ebp - 0x8c]
mov eax, ebx
call fcn.00404854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7074
lea eax, [ebp - 0x90]
mov edx, 0x11
call fcn.00404824
lea eax, [ebp - 0x44]
mov edx, 8
call fcn.00404824
lea eax, [ebp - 4]
call fcn.00404800
ret