Function at 0x49c298
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040500c
xor eax, eax
push ebp
push 0x49c4b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x34], 0x20
lea eax, [ebx + 8]
mov edx, dword [ebp - 4]
call fcn.00404ba0
lea eax, [ebp - 0x38]
mov ecx, 0x49c4d0
mov edx, dword [ebx + 8]
call fcn.00404e68
mov eax, dword [ebp - 0x38]
call fcn.004096d8
test al, al
je 0x49c3ac
lea eax, [ebp - 0x3c]
mov ecx, 0x49c4d0
mov edx, dword [ebx + 8]
call fcn.00404e68
mov edx, dword [ebp - 0x3c]
mov eax, ebx
call fcn.0049c52c
mov eax, dword [ebx + 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x49c48e
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x34]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
cmp dword [ebp - 0x28], 0xe4e1c0
jb 0x49c48e
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x28]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x10]
call fcn.00408d88
mov dl, 1
mov eax, dword [0x469de0]
call fcn.0046bfac
mov esi, eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebx + 8]
call fcn.00404e68
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.0046c080
mov ecx, esi
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x49c33d
jmp 0x49c48e
lea eax, [ebp - 0x48]
mov ecx, 0x49c4e0
mov edx, dword [ebx + 8]
call fcn.00404e68
mov eax, dword [ebp - 0x48]
mov ecx, 0x55db8c
mov edx, 0x3f
call fcn.00409778
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x49c417
lea edx, [ebp - 0x10]
mov eax, dword [0x55db98]
call fcn.00408d88
mov dl, 1
mov eax, dword [0x469de0]
call fcn.0046bfac
mov esi, eax
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebx + 8]
call fcn.00404e68
mov edx, dword [ebp - 0x4c]
mov eax, esi
call fcn.0046c080
mov ecx, esi
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
mov eax, 0x55db8c
call fcn.004097c8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
cmp dword [ebp - 0x28], 0xe4e1c0
jb 0x49c48e
cmp dword [ebp - 8], 0
jne 0x49c48e
lea edx, [ebp - 0x10]
mov eax, dword [0x55db98]
call fcn.00408d88
mov edx, dword [ebp - 0x10]
mov eax, 0x49c4f0
call fcn.00405160
dec eax
je 0x49c417
mov dl, 1
mov eax, dword [0x469de0]
call fcn.0046bfac
mov esi, eax
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebx + 8]
call fcn.00404e68
mov edx, dword [ebp - 0x50]
mov eax, esi
call fcn.0046c080
mov ecx, esi
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
jmp 0x49c417
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c4c0
lea eax, [ebp - 0x50]
mov edx, 7
call fcn.00404b70
lea eax, [ebp - 0x10]
call fcn.00404b4c
lea eax, [ebp - 4]
call fcn.00404b4c
ret