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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x5901e0
push ecx
push ebx
push esi
mov ebx, edx
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x590538
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x590554
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x48]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x590588
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x54]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov dword [esi], 0x20
push esi
call sub.kernel32.dll_GlobalMemoryStatus
lea eax, [ebp - 0x58]
push eax
mov eax, dword [esi + 8]
shr eax, 0x14
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, 0x5905bc
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x68]
mov ecx, 1
mov eax, 0x5905d0
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x58]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [esi + 0xc]
shr eax, 0x14
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, 0x5905bc
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x68]
mov ecx, 1
mov eax, 0x590610
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x70]
push eax
mov eax, dword [esi + 0x10]
shr eax, 0x14
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, 0x5905bc
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x68]
mov ecx, 1
mov eax, 0x590650
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x70]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x74]
push eax
mov eax, dword [esi + 0x14]
shr eax, 0x14
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, 0x5905bc
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x68]
mov ecx, 1
mov eax, 0x590688
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x74]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x78]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x5906c0
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x78]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x590704
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x7c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x80]
push eax
mov eax, dword [esi + 8]
shr eax, 0x14
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, 0x5905bc
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x68]
mov ecx, 1
mov eax, 0x590738
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x80]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0xc]
shr eax, 0x14
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, 0x5905bc
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x68]
mov ecx, 1
mov eax, 0x59077c
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x84]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi + 0x10]
shr eax, 0x14
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, 0x5905bc
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x68]
mov ecx, 1
mov eax, 0x5907c8
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x88]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [esi + 0x14]
shr eax, 0x14
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, 0x5905bc
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x68]
mov ecx, 1
mov eax, 0x590818
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x8c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x90]
push eax
mov eax, dword [esi + 0x18]
shr eax, 0x14
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, 0x5905bc
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x68]
mov ecx, 1
mov eax, 0x590870
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x90]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x94]
push eax
mov eax, dword [esi + 0x1c]
shr eax, 0x14
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x64], 0
mov eax, 0x5905bc
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x68]
mov ecx, 1
mov eax, 0x5908c0
call sub.rtl170.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x94]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59053f
lea eax, [ebp - 0x94]
mov edx, 0xb
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x58]
mov edx, 2
call sub.rtl170.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x48]
call sub.rtl170.bpl__System__UStrClr_qqrpv
ret