Function at 0x4a9cf0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x84
mov ecx, dword [esp + 0x94]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x8c]
mov edx, 0xffffffff
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0xc], ebp
cmp ecx, 0xffffefff
mov dword [esp + 0x14], edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
ja 0x4a9d48
lea edx, [ecx + 0xfff]
shr edx, 0xc
mov dword [esp + 0x30], edx
cmp dword [esp + 0x30], 0xffffffff
jne 0x4a9d58
call fcn.004a8aa4
lea eax, [esp + 0x80]
call fcn.004aa03c
xor al, 1
je 0x4a9e70
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x48]
push ecx
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0x60]
mov edx, 0xcccccccd
mul edx
shr edx, 4
cmp dword [esp + 0x64], edx
jb 0x4a9dfc
mov edx, dword [esp + 0x80]
cmp dword [edx + 0xa0], 0
jne 0x4a9dc8
mov ecx, dword [edx + 0xf8]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fcomp dword [edx + 0xf0]
fnstsw ax
sahf
jae 0x4a9dfc
jp 0x4a9dfc
lea eax, [esp + 0x80]
call fcn.004aa0c4
xor al, 1
je 0x4a9e2e
mov edx, dword [esp + 0x80]
mov dword [esp + 0x68], edx
push 0
mov eax, dword [esp + 0x6c]
call fcn.004aaebc
mov eax, dword [esp + 0x80]
call fcn.004a9674
jmp 0x4a9e2e
mov edx, dword [esp + 0x80]
cmp dword [edx + 0xf8], 0
je 0x4a9e2e
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x6c], ecx
push 0
mov eax, dword [esp + 0x70]
call fcn.004aaebc
mov eax, dword [esp + 0x80]
call fcn.004a9674
cmp dword [esp + 0x28], 0
jne 0x4a9e70
lea eax, [esp + 0x80]
call fcn.004aa03c
xor al, 1
je 0x4a9e70
lea eax, [esp + 0x80]
call fcn.004aa0c4
xor al, 1
je 0x4a9e70
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add esp, 0x84
xor eax, eax
ret 0x10
mov dword [esp + 0x88], esi
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x30]
add dword [edx + 0xf8], ecx
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
shl esi, 0xc
mov eax, dword [esp + 0x90]
shl ecx, 0xc
add esi, dword [edi]
test ebx, ebx
mov dword [esp + 0x7c], esi
mov dword [eax], ecx
je 0x4a9fd6
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
mov ebp, 1
and ecx, 0x1f
shr esi, 5
shl ebp, cl
test ebx, 0x20
mov edi, dword [esp + 0x28]
je 0x4a9f17
mov edx, dword [esp + 0x28]
cmp dword [edx + 0x28], 0
jne 0x4a9f0f
mov ecx, dword [edx + 0x10]
lea edx, [edx + 0x24]
mov dword [edx + 4], ecx
mov dword [esp + 4], 4
mov ecx, dword [edx + 4]
add ecx, 0x1f
shr ecx, 5
mov dword [esp + 0x70], edx
mov dword [esp], ecx
call fcn.004ba190
mov edx, dword [esp + 0x70]
test eax, eax
mov dword [edx], eax
je 0x4a9fc1
mov edx, dword [edi + 0x24]
mov ecx, ebp
or dword [edx + esi*4], ecx
test ebx, 1
je 0x4a9f5d
cmp dword [edi + 0x20], 0
jne 0x4a9f55
lea edx, [edi + 0x1c]
mov ecx, dword [edi + 0x10]
mov dword [edx + 4], ecx
mov dword [esp + 4], 4
mov ecx, dword [edx + 4]
add ecx, 0x1f
shr ecx, 5
mov dword [esp + 0x74], edx
mov dword [esp], ecx
call fcn.004ba190
mov edx, dword [esp + 0x74]
test eax, eax
mov dword [edx], eax
je 0x4a9fc1
mov edx, dword [edi + 0x1c]
mov ecx, ebp
or dword [edx + esi*4], ecx
test ebx, 2
je 0x4a9f6d
mov edx, dword [edi + 0x2c]
mov ecx, ebp
or dword [edx + esi*4], ecx
test ebx, 8
je 0x4a9f7d
mov edx, dword [edi + 0x34]
mov ecx, ebp
or dword [edx + esi*4], ecx
cmp byte [edi + 0x58], 0
je 0x4a9fd6
test ebx, 0x10
je 0x4a9fd6
cmp dword [edi + 0x40], 0
jne 0x4a9fce
lea edx, [edi + 0x3c]
mov ecx, dword [edi + 0x10]
mov dword [edx + 4], ecx
mov dword [esp + 4], 4
mov ecx, dword [edx + 4]
add ecx, 0x1f
shr ecx, 5
mov dword [esp + 0x78], edx
mov dword [esp], ecx
call fcn.004ba190
mov edx, dword [esp + 0x78]
test eax, eax
mov dword [edx], eax
jne 0x4a9fce
call fcn.0046dbec
mov dword [esp], eax
call fcn.00463074
mov edx, dword [edi + 0x3c]
mov ecx, ebp
or dword [edx + esi*4], ecx
cmp byte [0x50f1c8], 0
je 0x4aa01d
mov esi, dword [esp + 0x88]
test esi, esi
je 0x4a9ffc
test ebx, 8
je 0x4aa003
mov ecx, dword [esi]
cmp dword [ecx], 0x4d6be0
jne 0x4aa003
mov ebx, 1
jmp 0x4aa00c
mov edx, dword [esi]
mov eax, esi
call dword [edx + 0x44]
mov ebx, eax
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x9c]
mov dword [ecx + esi*4], ebx
mov eax, dword [esp + 0x7c]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add esp, 0x84
ret 0x10