Function at 0x4b6a30
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x587413
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
xor ebp, ebp
push 0x3c
lea eax, [esp + 0x64]
push ebp
push eax
mov dword [edi], ebp
mov dword [edi + 4], ebp
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
call fcn.005695a0
add esp, 0xc
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x60], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x68]
push eax
push 0x28
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4b6cc9
lea ecx, [esp + 0x34]
push ecx
push str.SeIncreaseBasePriorityPrivilege
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 0x10]
push ebp
push ebp
push ebp
lea edx, [esp + 0x3c]
push edx
push ebp
push eax
mov dword [esp + 0x48], 1
mov dword [esp + 0x54], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jne 0x4b6cc9
mov esi, dword [esp + 0xb4]
mov eax, dword [esi]
cmp eax, ebp
je 0x4b6b4a
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call eax
add esp, 8
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0xac], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
push str.NtQuerySystemInformation
push str.ntdll.dll
mov byte [esp + 0xb4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004b6990
cmp eax, ebp
jne 0x4b6bdd
lea eax, [esp + 0x40]
call fcn.004b68c0
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4b6cd0
push eax
call fcn.00566eaf
add esp, 4
jmp 0x4b6cd0
xor ebx, ebx
cmp dword [esp + 0x1c], ebp
jbe 0x4b6c59
cmp ebx, dword [esp + 0x1c]
jae 0x4b6cbf
mov edx, dword [esp + 0x18]
mov eax, dword [edx + ebx*4]
push eax
push ebp
push 0x100
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebp
je 0x4b6c1b
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0xb4]
mov eax, dword [edx]
cmp eax, ebp
je 0x4b6c49
mov ecx, dword [esp + 0x14]
add ecx, 1
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + 4]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], ebp
call eax
add esp, 8
add ebx, 1
cmp ebx, dword [esp + 0x1c]
jb 0x4b6bef
mov esi, dword [esp + 0xb4]
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4b6c6c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x40]
call fcn.004b68c0
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4b6c91
push eax
call fcn.00566eaf
add esp, 4
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x70]
cmp eax, edx
mov ebx, dword [edi + 8]
jb 0x4b6cd0
mov ecx, dword [esp + 0x6c]
ja 0x4b6cb4
cmp ecx, ebx
jbe 0x4b6cd0
sub ecx, ebx
sbb eax, edx
mov dword [edi], ecx
mov dword [edi + 4], eax
jmp 0x4b6cd0
push 0x80070057
call fcn.00473d10
mov esi, dword [esp + 0xb4]
mov eax, dword [esi]
cmp eax, ebp
je 0x4b6cf0
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], ebp
call eax
add esp, 8
mov eax, edi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 4