Function at 0x596960
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x596968
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x596e5c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x596e1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x20
lea eax, [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov dl, 1
mov eax, dword [0x43fa34]
call fcn.0043fb34
mov esi, eax
mov edx, 0x80000002
mov eax, esi
call fcn.0043fbd4
xor ecx, ecx
mov edx, 0x596e74
mov eax, esi
call fcn.0043fc3c
mov eax, dword [ebx + 0x400]
mov edx, dword [eax]
call dword [edx + 0xe0]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x34]
call fcn.0059669c
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x28]
mov ecx, 0xc
call fcn.00405008
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x596eb8
call fcn.004050a4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x38]
push eax
call fcn.005961e8
fstp xword [ebp - 0x4c]
wait
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 3
lea edx, [ebp - 0x40]
xor ecx, ecx
mov eax, 0x596edc
call fcn.0040ab3c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x596f08
mov eax, dword [ebp - 0x18]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x54]
call fcn.00409b74
push dword [ebp - 0x54]
push 0x596f2c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
fild qword [ebp - 0x40]
fdiv dword [0x596f38]
fdiv dword [0x596f38]
fmul dword [0x596f3c]
add esp, 0xfffffff8
fistp qword [esp]
wait
lea eax, [ebp - 0x58]
call fcn.0040b298
push dword [ebp - 0x58]
push 0x596f48
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.00405118
mov edx, dword [ebp - 0x50]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x596f58
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x60]
call fcn.00409b74
push dword [ebp - 0x60]
push 0x596f2c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
fild qword [ebp - 0x40]
fdiv dword [0x596f38]
fdiv dword [0x596f38]
fmul dword [0x596f3c]
add esp, 0xfffffff8
fistp qword [esp]
wait
lea eax, [ebp - 0x64]
call fcn.0040b298
push dword [ebp - 0x64]
push 0x596f48
lea eax, [ebp - 0x5c]
mov edx, 5
call fcn.00405118
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x6c]
call fcn.0059628c
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x596f7c
call fcn.004050a4
mov edx, dword [ebp - 0x68]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x74]
call fcn.00596308
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 0x596fa0
call fcn.004050a4
mov edx, dword [ebp - 0x70]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x7c]
mov edx, 0x596fc4
mov eax, esi
call fcn.0043ffe4
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x596fdc
call fcn.004050a4
mov edx, dword [ebp - 0x78]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x84]
call fcn.00596788
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 0x597000
call fcn.004050a4
mov edx, dword [ebp - 0x80]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x597024
lea ecx, [ebp - 0x8c]
mov edx, 0x597048
mov eax, esi
call fcn.0043ffe4
push dword [ebp - 0x8c]
push 0x59705c
lea ecx, [ebp - 0x90]
mov edx, 0x597068
mov eax, esi
call fcn.0043ffe4
push dword [ebp - 0x90]
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.00405118
mov edx, dword [ebp - 0x88]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x98]
mov edx, 0x59707c
mov eax, esi
call fcn.0043ffe4
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x597090
call fcn.004050a4
mov edx, dword [ebp - 0x94]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0xa0]
call fcn.005965a0
mov ecx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
mov edx, 0x5970b4
call fcn.004050a4
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov edx, 0x596eac
mov ecx, dword [eax]
call dword [ecx + 0x38]
call fcn.005964dc
lea edx, [ebp - 0xa8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
mov edx, 0x5970d8
call fcn.004050a4
mov edx, dword [ebp - 0xa4]
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, esi
call fcn.00403f50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x596e29
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x596e63
lea eax, [ebp - 0xa8]
mov edx, 0x17
call fcn.00404dbc
lea eax, [ebp - 0x38]
call fcn.00404d98
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404dbc
ret