Function at 0x4d1fe0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
call fcn.00422860
mov ecx, eax
call fcn.004d4830
lea ecx, [esp + 0x48]
mov dword [esp + 0xc], eax
mov dword [ecx], eax
push ecx
call fcn.004ee170
add esp, 4
mov eax, dword [0x6ceb4c]
mov ecx, dword [0x5f75b4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4d220f
mov ecx, dword [0x6ceb48]
call fcn.004d46c0
mov edi, eax
lea eax, [esp + 0x44]
mov dword [eax], edi
push eax
call fcn.004ee170
add esp, 4
xor esi, esi
lea eax, [esp + 0x40]
mov dword [eax], esi
push eax
call fcn.004ee170
add esp, 4
lea eax, [esp + 0x3c]
mov dword [eax], esi
push eax
call fcn.004ee170
add esp, 4
lea eax, [esp + 0x38]
mov dword [eax], esi
push eax
call fcn.004ee170
add esp, 4
lea eax, [esp + 0x34]
mov dword [eax], esi
push eax
call fcn.004ee170
add esp, 4
lea eax, [esp + 0x30]
mov dword [eax], esi
push eax
call fcn.004ee170
add esp, 4
lea eax, [esp + 0x2c]
mov dword [eax], esi
push eax
call fcn.004ee170
add esp, 4
lea eax, [esp + 0x28]
mov dword [eax], esi
push eax
call fcn.004ee170
add esp, 4
lea eax, [esp + 0x24]
mov dword [eax], esi
push eax
call fcn.004ee170
add esp, 4
lea eax, [esp + 0x20]
mov dword [eax], esi
push eax
call fcn.004ee170
add esp, 4
mov ecx, dword [0x6bedd8]
push str.enable_low_end_device_mode
call fcn.004fd6b0
test al, al
jne 0x4d227f
call fcn.00409da0
lea ecx, [esp + 7]
mov byte [ecx], al
push ecx
call fcn.004ee170
add esp, 4
mov ecx, dword [0x6bedd8]
push str.enable_low_end_device_mode
call fcn.004fd6b0
mov ebx, eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x50]
movdqa xmmword [esi], xmm0
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
mov dword [esi], 0x40
push esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, eax
test eax, eax
je 0x4d2148
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
add edi, dword [esp + 0xc]
test bl, bl
jne 0x4d2286
shld eax, ecx, 0xc
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x1c]
mov dword [ecx], eax
push ecx
call fcn.004ee170
add esp, 4
call fcn.0056c320
shld edx, eax, 0xc
lea eax, [esp + 0x18]
mov dword [eax], edx
push eax
call fcn.004ee170
add esp, 4
shr edi, 0x14
lea eax, [esp + 0x4c]
mov dword [eax], edi
push eax
call fcn.004ee170
add esp, 4
mov dword [esp + 8], 0
xor eax, eax
dec eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x28
push esi
push eax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x4d21d5
mov eax, dword [esp + 0x5c]
shr eax, 0x14
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
call fcn.004ee170
add esp, 4
lea eax, [esp + 0x14]
mov dword [eax], ebx
push eax
call fcn.004ee170
add esp, 4
lea eax, [esp + 0x10]
mov dword [eax], ebx
xor ecx, ecx
inc ecx
mov esi, 0xe0000008
push eax
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x6ceb4c
call fcn.00510c6d
add esp, 4
cmp dword [0x6ceb4c], 0xffffffff
jne 0x4d202f
push 0x14
call fcn.00510d64
add esp, 4
mov edi, eax
mov dword [eax], 0x5d65d8
xor esi, esi
mov dword [eax + 4], esi
add eax, 0xc
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 8], eax
call fcn.0040f9d0
lea edx, [esp + 0x50]
mov byte [edx], 1
mov ecx, eax
push edx
push esi
push str.SharedMemoryTracker
push edi
call fcn.004fed60
mov dword [0x6ceb48], edi
push 0x6ceb4c
call fcn.00510d9d
add esp, 4
jmp 0x4d202f
mov al, 1
jmp 0x4d20f1
mov edx, 0x20000000
cmp ecx, edx
cmovae ecx, edx
test eax, eax
cmovne ecx, edx
shr ecx, 0x14
mov eax, ecx
jmp 0x4d2158