Function at 0x5d9d80
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x42
push 0
push 0
dec ecx
jne 0x5d9d88
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5da39e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5da2a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4cd138]
call fcn.004053a8
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5da298
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1d0]
mov eax, dword [ebp - 0x18]
call fcn.004cfb60
lea eax, [ebp - 0x88]
mov edx, 0x40
call fcn.004318a0
mov dword [ebp - 0x88], 0x40
inc dword [ebp - 0x10]
lea eax, [ebp - 0x88]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x5d9e1f
lea eax, [ebp - 0x88]
mov edx, 0x40
call fcn.004318a0
lea ecx, [ebp - 0x34]
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.004ce6c0
lea ecx, [ebp - 0x44]
mov edx, 0x80000001
mov eax, dword [ebp - 0x18]
call fcn.004ce6c0
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42c2f8]
call fcn.00408ba0
add esp, 4
push ebp
push 0
push 6
mov eax, 0x5da3bc
call fcn.005d9c80
pop ecx
push ebp
mov eax, dword [ebp - 0x1c8]
xor edx, edx
push edx
push eax
mov eax, 0x5da3d0
call fcn.005d9c80
pop ecx
push ebp
mov eax, dword [ebp - 0x1c4]
xor edx, edx
push edx
push eax
mov eax, 0x5da400
call fcn.005d9c80
pop ecx
push ebp
movzx eax, word [ebp - 0xb8]
xor edx, edx
push edx
push eax
mov eax, 0x5da430
call fcn.005d9c80
pop ecx
push ebp
movzx eax, word [ebp - 0xb4]
xor edx, edx
push edx
push eax
mov eax, 0x5da468
call fcn.005d9c80
pop ecx
push ebp
xor eax, eax
mov al, byte [ebp - 0xb2]
xor edx, edx
push edx
push eax
mov eax, 0x5da490
call fcn.005d9c80
pop ecx
push ebp
mov eax, dword [ebp - 0xb0]
xor edx, edx
push edx
push eax
mov eax, 0x5da4bc
call fcn.005d9c80
pop ecx
push ebp
movzx eax, word [ebp - 0xac]
xor edx, edx
push edx
push eax
mov eax, 0x5da4f4
call fcn.005d9c80
pop ecx
push ebp
movzx eax, word [ebp - 0x8a]
xor edx, edx
push edx
push eax
mov eax, 0x5da534
call fcn.005d9c80
pop ecx
push ebp
mov eax, dword [ebp - 0x98]
xor edx, edx
push edx
push eax
mov eax, 0x5da56c
call fcn.005d9c80
pop ecx
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004ce740
lea edx, [ebp - 0x1d4]
call fcn.0041b37c
mov edx, dword [ebp - 0x1d4]
mov eax, 0x5da5a8
call fcn.005d9bc0
pop ecx
push ebp
push 0
push 0x100000
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
call fcn.004083f0
push edx
push eax
mov eax, 0x5da5e0
call fcn.005d9c80
pop ecx
push ebp
push 0
push 0x100000
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
call fcn.004083f0
push edx
push eax
mov eax, 0x5da60c
call fcn.005d9c80
pop ecx
push ebp
push 0
push 0x100000
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
call fcn.004083f0
push edx
push eax
mov eax, 0x5da640
call fcn.005d9c80
pop ecx
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004ce880
movzx eax, ax
xor edx, edx
push edx
push eax
mov eax, 0x5da670
call fcn.005d9c80
pop ecx
mov byte [ebp - 0x19], 0
push ebp
xor eax, eax
mov al, byte [ebp - 0x19]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*4 + 0x30]
xor edx, edx
push edx
push eax
xor eax, eax
mov al, byte [ebp - 0x19]
mov eax, dword [eax*4 + 0x653250]
call fcn.005d9c80
pop ecx
inc byte [ebp - 0x19]
cmp byte [ebp - 0x19], 0xb
jne 0x5d9fd7
push ebp
mov eax, dword [ebp - 0x34]
xor edx, edx
push edx
push eax
mov eax, 0x5da698
call fcn.005d9c80
pop ecx
push ebp
mov eax, dword [ebp - 0x28]
xor edx, edx
push edx
push eax
mov eax, 0x5da6c8
call fcn.005d9c80
pop ecx
push ebp
mov eax, dword [ebp - 0x30]
xor edx, edx
push edx
push eax
mov eax, 0x5da6f8
call fcn.005d9c80
pop ecx
push ebp
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
mov eax, 0x5da728
call fcn.005d9c80
pop ecx
push ebp
mov eax, dword [ebp - 0x40]
xor edx, edx
push edx
push eax
mov eax, 0x5da758
call fcn.005d9c80
pop ecx
push ebp
mov eax, dword [ebp - 0x3c]
xor edx, edx
push edx
push eax
mov eax, 0x5da788
call fcn.005d9c80
pop ecx
push ebp
lea edx, [ebp - 0x1d8]
mov eax, dword [ebp - 0x18]
call fcn.004ce2c0
mov edx, dword [ebp - 0x1d8]
mov eax, 0x5da7b8
call fcn.005d9bc0
pop ecx
push ebp
lea edx, [ebp - 0x1dc]
mov eax, dword [ebp - 0x18]
call fcn.004cf300
mov edx, dword [ebp - 0x1dc]
mov eax, 0x5da7e4
call fcn.005d9ce0
pop ecx
push ebp
lea edx, [ebp - 0x1e0]
mov eax, dword [ebp - 0x18]
call fcn.004cf160
mov edx, dword [ebp - 0x1e0]
mov eax, 0x5da810
call fcn.005d9ce0
pop ecx
push ebp
lea edx, [ebp - 0x1e4]
mov eax, dword [ebp - 0x18]
call fcn.004cf230
mov edx, dword [ebp - 0x1e4]
mov eax, 0x5da83c
call fcn.005d9ce0
pop ecx
push ebp
lea edx, [ebp - 0x1e8]
mov eax, dword [ebp - 0x18]
call fcn.004cf5b0
mov edx, dword [ebp - 0x1e8]
mov eax, 0x5da868
call fcn.005d9bc0
pop ecx
push ebp
lea edx, [ebp - 0x1ec]
mov eax, dword [ebp - 0x18]
call fcn.004cf6b0
mov edx, dword [ebp - 0x1ec]
mov eax, 0x5da89c
call fcn.005d9bc0
pop ecx
push ebp
lea edx, [ebp - 0x1f0]
mov eax, dword [ebp - 0x18]
call fcn.004d0170
mov edx, dword [ebp - 0x1f0]
mov eax, 0x5da8d0
call fcn.005d9ce0
pop ecx
push ebp
lea edx, [ebp - 0x1f4]
mov eax, dword [ebp - 0x18]
call fcn.004d0240
mov edx, dword [ebp - 0x1f4]
mov eax, 0x5da8f4
call fcn.005d9ce0
pop ecx
push ebp
lea edx, [ebp - 0x1f8]
mov eax, dword [ebp - 0x18]
call fcn.004cf080
mov edx, dword [ebp - 0x1f8]
mov eax, 0x5da918
call fcn.005d9ce0
pop ecx
push ebp
lea edx, [ebp - 0x1fc]
mov eax, dword [ebp - 0x18]
call fcn.004cefa0
mov edx, dword [ebp - 0x1fc]
mov eax, 0x5da93c
call fcn.005d9ce0
pop ecx
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.004d0010
mov eax, dword [ebp - 0x14]
call fcn.0040898c
test eax, eax
jl 0x5da233
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
push ebp
lea ecx, [ebp - 0x200]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.004d00e0
mov eax, dword [ebp - 0x200]
push eax
push 0x5da960
lea edx, [ebp - 0x208]
mov eax, dword [ebp - 0xc]
call fcn.0041b37c
push dword [ebp - 0x208]
push 0x5da994
lea eax, [ebp - 0x204]
mov edx, 3
call fcn.004078f4
mov eax, dword [ebp - 0x204]
pop edx
call fcn.005d9ce0
pop ecx
inc dword [ebp - 0xc]
dec dword [ebp - 0x20]
jne 0x5da1d7
push ebp
mov edx, dword [ebp - 0x14]
mov eax, 0x5da9a4
call fcn.005d9ce0
pop ecx
mov eax, dword [0x653c0c]
push dword [eax]
push 0x5da9c8
lea ecx, [ebp - 0x20c]
mov edx, 0x5da9d8
mov eax, dword [ebp - 4]
call fcn.00432160
push dword [ebp - 0x20c]
push 0x5da9d8
mov eax, dword [ebp - 8]
push dword [eax + 0x2c]
mov eax, dword [ebp - 8]
add eax, 0x5c
mov edx, 5
call fcn.00407240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5da29f
mov eax, dword [ebp - 0x18]
call fcn.004053d8
ret