Function at 0x4ba740
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x24
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.00445020
add esp, 0xc
push 0xe00
push 0x800
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
add ecx, dword [edx + 4]
call fcn.0040c380
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 4]
mov ecx, edx
call fcn.0042f3b0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp + 8], 0
je 0x4ba7a2
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 0x68], ecx
jmp 0x4ba7a9
mov dword [ebp - 0x68], 0
push 0x4d83ec
push 0x4d83f8
mov edx, dword [ebp - 0x68]
push edx
call fcn.00424ff0
add esp, 8
push eax
call fcn.00424ff0
add esp, 8
cmp dword [ebp + 8], 0
je 0x4ba7d9
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x6c], eax
jmp 0x4ba7e0
mov dword [ebp - 0x6c], 0
push 0x4d8464
mov ecx, dword [ebp - 0x60]
push ecx
push str.Page_Size:_t
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.00438cc0
push eax
call fcn.00424ff0
add esp, 8
cmp dword [ebp + 8], 0
je 0x4ba81b
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x70], eax
jmp 0x4ba822
mov dword [ebp - 0x70], 0
push 0x4d8484
mov ecx, dword [ebp - 0x5c]
push ecx
push str.Min_Address:_t
mov edx, dword [ebp - 0x70]
push edx
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.00439750
push eax
call fcn.00424ff0
add esp, 8
cmp dword [ebp + 8], 0
je 0x4ba85d
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x74], eax
jmp 0x4ba864
mov dword [ebp - 0x74], 0
push 0x4d84a8
mov ecx, dword [ebp - 0x58]
push ecx
push str.Max_Address:_t
mov edx, dword [ebp - 0x74]
push edx
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.00439750
push eax
call fcn.00424ff0
add esp, 8
mov dword [ebp - 0x40], 0x40
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
je 0x4ba8b0
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 0x78], ecx
jmp 0x4ba8b7
mov dword [ebp - 0x78], 0
push 0x4d84cc
mov edx, dword [ebp - 0x3c]
push edx
push str.Mem_In_Use___:_t
mov eax, dword [ebp - 0x78]
push eax
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.00438cc0
push eax
call fcn.00424ff0
add esp, 8
cmp dword [ebp + 8], 0
je 0x4ba8f2
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 0x7c], ecx
jmp 0x4ba8f9
mov dword [ebp - 0x7c], 0
push 0x4d84f4
push 0
push 0x400
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004566d0
push 0
push 0x400
push edx
push eax
call fcn.004566d0
push edx
push eax
push str.Total_Phy_Mem_M_:_t
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.004395c0
push eax
call fcn.00424ff0
add esp, 8
cmp dword [ebp + 8], 0
je 0x4ba954
mov edx, dword [ebp + 8]
add edx, 8
mov dword [ebp - 0x80], edx
jmp 0x4ba95b
mov dword [ebp - 0x80], 0
push 0x4d8524
push 0
push 0x400
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004566d0
push 0
push 0x400
push edx
push eax
call fcn.004566d0
push edx
push eax
push str.Free_Phy_Mem_M_:_t
mov edx, dword [ebp - 0x80]
push edx
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.004395c0
push eax
call fcn.00424ff0
add esp, 8
cmp dword [ebp + 8], 0
je 0x4ba9b9
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x84], eax
jmp 0x4ba9c3
mov dword [ebp - 0x84], 0
push 0x4d8550
push 0
push 0x400
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004566d0
push 0
push 0x400
push edx
push eax
call fcn.004566d0
push edx
push eax
push str.Total_PFile_M_:_t
mov eax, dword [ebp - 0x84]
push eax
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.004395c0
push eax
call fcn.00424ff0
add esp, 8
cmp dword [ebp + 8], 0
je 0x4baa24
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 0x88], ecx
jmp 0x4baa2e
mov dword [ebp - 0x88], 0
push 0x4d857c
push 0
push 0x400
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004566d0
push 0
push 0x400
push edx
push eax
call fcn.004566d0
push edx
push eax
push str.Free_PFile_M_:_t
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.004395c0
push eax
call fcn.00424ff0
add esp, 8
cmp dword [ebp + 8], 0
je 0x4baa8f
mov edx, dword [ebp + 8]
add edx, 8
mov dword [ebp - 0x8c], edx
jmp 0x4baa99
mov dword [ebp - 0x8c], 0
push 0x4d85a4
push 0
push 0x400
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004566d0
push 0
push 0x400
push edx
push eax
call fcn.004566d0
push edx
push eax
push str.Total_VM_M_:_t
mov edx, dword [ebp - 0x8c]
push edx
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.004395c0
push eax
call fcn.00424ff0
add esp, 8
cmp dword [ebp + 8], 0
je 0x4baafa
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x90], eax
jmp 0x4bab04
mov dword [ebp - 0x90], 0
push 0x4d85c8
push 0
push 0x400
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.004566d0
push 0
push 0x400
push edx
push eax
call fcn.004566d0
push edx
push eax
push str.Free_VM_M_:_t
mov eax, dword [ebp - 0x90]
push eax
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.004395c0
push eax
call fcn.00424ff0
add esp, 8
cmp dword [ebp + 8], 0
je 0x4bab65
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 0x94], ecx
jmp 0x4bab6f
mov dword [ebp - 0x94], 0
push 0x4d85ec
push 0
push 0x400
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.004566d0
push 0
push 0x400
push edx
push eax
call fcn.004566d0
push edx
push eax
push str.Extend_Mem_M_:_t
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.00424ff0
add esp, 8
mov ecx, eax
call fcn.004395c0
push eax
call fcn.00424ff0
add esp, 8
push 0xe00
push 0x200
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 4]
call fcn.0040c380
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
add ecx, dword [edx + 4]
call fcn.0042f3e0
mov al, 1
mov esp, ebp
pop ebp
ret