Function at 0x414ed0
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x4641c5
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x49001c]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49001c]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
push 0x3c
xor ebp, ebp
lea eax, [esp + 0x6c]
push ebp
push eax
mov dword [esp + 0x70], 0x40
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp eax, ebp
je 0x41503e
push 0x110
lea edx, [esp + 0xac]
push ebp
push edx
mov dword [esp + 0xb0], 0x114
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ebx, 2
cmp dword [esp + 0xb4], ebx
mov dword [esp + 0x30], ebp
jne 0x41503e
push ebp
push ebx
lea ecx, [esp + 0x2c]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMToolHelp::constructor_unsigned_int__unsigned_int_]
push 4
mov dword [esp + 0x1cc], ebp
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0x1c8], 1
je 0x414fb6
mov ecx, eax
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMProcessEntry::constructor_void_]
mov esi, eax
jmp 0x414fb8
xor esi, esi
mov byte [esp + 0x1c8], 0
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.00415120
push esi
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.00414420
mov byte [esp + 0x1d4], bl
mov edx, dword [esp + 0x24]
add esp, 4
mov eax, esp
mov dword [eax], edx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x24]
cmp eax, ebp
mov dword [esp + 0x28], esp
je 0x41500b
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x2c]
call dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMToolHelp::ProcessFirst_class_boost::shared_ptr_class_GameMgr::GMProcessEntry__const]
test al, al
jne 0x415045
mov byte [esp + 0x1c8], al
lea eax, [esp + 0x18]
call fcn.0042b170
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c8], 0xffffffff
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMToolHelp::destructor_void_]
xor eax, eax
jmp 0x4150f4
mov ebx, dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMProcessEntry::GetPID_unsigned_int__]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
call ebx
test al, al
je 0x415095
mov ecx, dword [esp + 0x20]
push ecx
push 0
push 0x410
call edi
mov esi, eax
test esi, esi
je 0x415095
push 0x28
lea edx, [esp + 0x40]
push edx
push esi
call sub.PSAPI.DLL_GetProcessMemoryInfo
test eax, eax
je 0x41508e
add ebp, dword [esp + 0x48]
adc dword [esp + 0x30], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x40], esp
je 0x4150bf
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMToolHelp::ProcessNext_class_boost::shared_ptr_class_GameMgr::GMProcessEntry__const]
test al, al
jne 0x415051
mov byte [esp + 0x1c8], al
lea eax, [esp + 0x18]
call fcn.0042b170
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c8], 0xffffffff
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMToolHelp::destructor_void_]
mov eax, ebp
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.0045d098
add esp, 0x1b8
ret