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

Disassembly:
push 0xffffffffffffffff
push 0x525fdc
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x158], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x17c]
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x130], 0xf
mov dword [esp + 0x12c], 0
mov byte [esp + 0x11c], 0
mov dword [esp + 0x174], 0
lea eax, [esp + 0x4c]
push 0x40
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x4c], 0x40
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x4cf948
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
shrd ecx, eax, 0x14
mov dword [esp + 0x15c], 0
shr eax, 0x14
xor eax, eax
mov dword [esp + 0x160], 0
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], ax
mov byte [esp + 0x174], 1
lea eax, [esp + 0x14c]
push ecx
push 0x535cfc
push eax
call fcn.00430230
mov edx, dword [esp + 0x168]
lea eax, [esp + 0x128]
add esp, 0xc
lea ecx, [esp + 0x14c]
cmp dword [esp + 0x160], 8
cmovae ecx, dword [esp + 0x14c]
push eax
call fcn.00431c40
add esp, 4
mov byte [esp + 0x174], 0
cmp dword [esp + 0x160], 8
jb 0x4cf928
push dword [esp + 0x14c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], ax
mov edx, dword [esp + 0x12c]
test edx, edx
je 0x4cf9da
mov byte [esp + 0x34], 4
lea ecx, [esp + 0x11c]
or dword [esp + 0x34], 0x100
cmp dword [esp + 0x130], 0x10
mov dword [esp + 0x38], 0
cmovae ecx, dword [esp + 0x11c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.004867e0
mov dword [esp + 0x2c], eax
mov byte [esp + 0x174], 2
mov ecx, edi
push 0x53aac9
push str.A0201
call fcn.0048a850
mov byte [esp + 0x174], 3
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.00488570
mov byte [esp + 0x174], 0
lea ecx, [esp + 0x2c]
call fcn.00488360
push 0xa
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea ecx, [esp + 0x30]
push 0x536334
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.00405240
mov byte [esp + 0x174], 4
mov eax, dword [0x569648]
test al, 1
jne 0x4cfa56
or eax, 1
mov dword [0x569648], eax
mov byte [esp + 0x174], 5
mov dword [0x569644], 0
call fcn.00452140
push 0x52cc50
call fcn.00505c19
add esp, 4
mov byte [esp + 0x174], 4
lea eax, [esp + 0x2c]
mov ecx, 0x569644
push eax
call fcn.004523f0
mov dword [esp + 0x48], eax
mov byte [esp + 0x174], 0
cmp dword [esp + 0x40], 8
jb 0x4cfa85
push dword [esp + 0x2c]
call esi
mov eax, dword [esp + 0x4c]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], 7
xor edi, edi
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
test eax, eax
je 0x4cfab0
push str.GetSystemMetrics
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], 0
mov byte [esp + 0x174], 6
test edi, edi
je 0x4cfbc0
push 0
call edi
test eax, eax
jle 0x4cfbc0
xor ecx, ecx
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], cx
mov byte [esp + 0x174], 7
push eax
lea eax, [esp + 0x150]
push 0x537b40
push eax
call fcn.00430230
mov edx, dword [esp + 0x168]
lea eax, [esp + 0xf8]
add esp, 0xc
lea ecx, [esp + 0x14c]
cmp dword [esp + 0x160], 8
cmovae ecx, dword [esp + 0x14c]
push eax
call fcn.00431c40
add esp, 4
mov byte [esp + 0x174], 6
cmp dword [esp + 0x160], 8
jb 0x4cfba0
push dword [esp + 0x14c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], ax
mov edx, dword [esp + 0xfc]
test edx, edx
je 0x4cfc6c
mov byte [esp + 0x154], 4
lea ecx, [esp + 0xec]
or dword [esp + 0x154], 0x100
cmp dword [esp + 0x100], 0x10
mov dword [esp + 0x158], 0
cmovae ecx, dword [esp + 0xec]
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
call fcn.004867e0
mov dword [esp + 0x14c], eax
mov byte [esp + 0x174], 8
mov ecx, dword [esp + 0x28]
push 0x53aad1
push str.A0202
call fcn.0048a850
mov byte [esp + 0x174], 9
lea ecx, [esp + 0x14c]
push ecx
mov ecx, eax
call fcn.00488570
mov byte [esp + 0x174], 6
lea ecx, [esp + 0x14c]
call fcn.00488360
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
mov byte [esp + 0x174], 0xa
test edi, edi
je 0x4cfd7c
push 1
call edi
test eax, eax
jle 0x4cfd7c
xor ecx, ecx
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], cx
mov byte [esp + 0x174], 0xb
push eax
lea eax, [esp + 0x150]
push 0x537b40
push eax
call fcn.00430230
mov edx, dword [esp + 0x168]
lea eax, [esp + 0x110]
add esp, 0xc
lea ecx, [esp + 0x14c]
cmp dword [esp + 0x160], 8
cmovae ecx, dword [esp + 0x14c]
push eax
call fcn.00431c40
add esp, 4
mov byte [esp + 0x174], 0xa
cmp dword [esp + 0x160], 8
jb 0x4cfd5c
push dword [esp + 0x14c]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], 0
mov word [esp + 0x14c], ax
mov edx, dword [esp + 0x114]
test edx, edx
je 0x4cfe28
mov byte [esp + 0x154], 4
lea ecx, [esp + 0x104]
or dword [esp + 0x154], 0x100
cmp dword [esp + 0x118], 0x10
mov dword [esp + 0x158], 0
cmovae ecx, dword [esp + 0x104]
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
call fcn.004867e0
mov dword [esp + 0x14c], eax
mov byte [esp + 0x174], 0xc
mov ecx, dword [esp + 0x28]
push 0x53aab9
push str.A0203
call fcn.0048a850
mov byte [esp + 0x174], 0xd
lea ecx, [esp + 0x14c]
push ecx
mov ecx, eax
call fcn.00488570
mov byte [esp + 0x174], 0xa
lea ecx, [esp + 0x14c]
call fcn.00488360
xorps xmm0, xmm0
mov dword [esp + 0x90], 0
lea eax, [esp + 0x90]
push eax
movdqu xmmword [esp + 0x98], xmm0
movdqu xmmword [esp + 0xa8], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0xa4]
mov byte [esp + 0x154], 2
and dword [esp + 0x154], 0xfffffeff
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], 0
mov byte [esp + 0x174], 0xe
mov ecx, dword [esp + 0x28]
push 0x53aac1
push str.A0204
call fcn.0048a850
mov byte [esp + 0x174], 0xf
lea ecx, [esp + 0x14c]
push ecx
mov ecx, eax
call fcn.00488570
mov byte [esp + 0x174], 0xa
lea ecx, [esp + 0x14c]
call fcn.00488360
mov edi, dword [esp + 0x48]
push str.GetDC
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ReleaseDC
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov dword [esp + 0x1c], eax
push str.Gdi32.dll
mov dword [esp + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4cff38
push str.GetDeviceCaps
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
test edi, edi
je 0x4cff82
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4cff82
cmp dword [esp + 0x1c], 0
je 0x4cff82
push 0
call eax
mov edi, eax
test edi, edi
je 0x4cff82
push 0x58
push edi
call dword [esp + 0x50]
push 0x5a
push edi
mov dword [esp + 0x2c], eax
call dword [esp + 0x50]
push edi
push 0
mov dword [esp + 0x28], eax
call dword [esp + 0x24]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4cff91
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x24]
mov byte [esp + 0x34], 2
and dword [esp + 0x34], 0xfffffeff
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
mov byte [esp + 0x174], 0x10
mov edi, dword [esp + 0x28]
mov ecx, edi
push 0x53ab25
push str.A0205
call fcn.0048a850
mov byte [esp + 0x174], 0x11
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.00488570
mov byte [esp + 0x174], 0xa
lea ecx, [esp + 0x2c]
call fcn.00488360
mov eax, dword [esp + 0x20]
mov byte [esp + 0x154], 2
and dword [esp + 0x154], 0xfffffeff
mov dword [esp + 0x158], 0
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], 0
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], 0
mov byte [esp + 0x174], 0x12
mov ecx, edi
push 0x53ab2d
push str.A0206
call fcn.0048a850
mov byte [esp + 0x174], 0x13
lea ecx, [esp + 0x14c]
push ecx
mov ecx, eax
call fcn.00488570
mov byte [esp + 0x174], 0xa
lea ecx, [esp + 0x14c]
call fcn.00488360
xorps xmm0, xmm0
lea ecx, [esp + 0xb4]
movdqu xmmword [esp + 0xb4], xmm0
movdqu xmmword [esp + 0xc4], xmm0
call fcn.00454560
mov byte [esp + 0x174], 0x14
lea ecx, [esp + 0xbc]
mov eax, dword [esp + 0x10]
cmp ecx, eax
je 0x4d00d8
push 0xffffffffffffffff
push 0
push eax
call fcn.00404c30
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0xb8]
call fcn.004547a0
mov byte [esp + 0x174], 0x15
cmp dword [esp + 0xe4], 0
jne 0x4d0111
push 0xc
push str.000000000000
lea ecx, [esp + 0xdc]
call fcn.00405240
mov dword [esp + 0x144], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x148], 0xf
mov dword [esp + 0x144], 0
mov byte [esp + 0x134], 0
mov byte [esp + 0x174], 0x16
lea eax, [esp + 0x134]
cmp dword [esp + 0xe8], 8
lea ecx, [esp + 0xd4]
mov edx, dword [esp + 0xe4]
cmovae ecx, dword [esp + 0xd4]
push eax
call fcn.00431c40
mov edx, dword [esp + 0x148]
lea ecx, [esp + 0x138]
add esp, 4
mov byte [esp + 0x34], 4
or dword [esp + 0x34], 0x100
cmp dword [esp + 0x148], 0x10
mov dword [esp + 0x38], 0
cmovae ecx, dword [esp + 0x134]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.004867e0
mov dword [esp + 0x2c], eax
mov byte [esp + 0x174], 0x17
mov ecx, edi
push 0x53ab11
push str.A0207
call fcn.0048a850
mov byte [esp + 0x174], 0x18
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.00488570
mov byte [esp + 0x174], 0x16
lea ecx, [esp + 0x2c]
call fcn.00488360
mov byte [esp + 0x174], 0x15
cmp dword [esp + 0x148], 0x10
jb 0x4d0223
push dword [esp + 0x134]
call esi
add esp, 4
mov dword [esp + 0x148], 0xf
mov dword [esp + 0x144], 0
mov byte [esp + 0x134], 0
mov byte [esp + 0x174], 0x14
cmp dword [esp + 0xe8], 8
jb 0x4d025f
push dword [esp + 0xd4]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], 0
mov word [esp + 0xd4], ax
mov byte [esp + 0x174], 0xa
lea ecx, [esp + 0xb4]
call fcn.00454640
mov byte [esp + 0x174], 6
cmp dword [esp + 0x118], 0x10
jb 0x4d02b1
push dword [esp + 0x104]
call esi
add esp, 4
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], 0
mov byte [esp + 0x104], 0
mov byte [esp + 0x174], 0
cmp dword [esp + 0x100], 0x10
jb 0x4d02ed
push dword [esp + 0xec]
call esi
add esp, 4
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], 0
mov byte [esp + 0xec], 0
mov dword [esp + 0x174], 0xffffffff
cmp dword [esp + 0x130], 0x10
jb 0x4d032c
push dword [esp + 0x11c]
call esi
add esp, 4
mov dword [esp + 0x130], 0xf
mov dword [esp + 0x12c], 0
mov byte [esp + 0x11c], 0
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.00505b1e
add esp, 0x16c
ret 4