Function at 0x49d2d0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x80
mov ecx, dword [esp + 0x90]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x88]
mov edx, 0xffffffff
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0xc], ebp
cmp ecx, 0xffffefff
mov dword [esp + 0x14], edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
ja 0x49d325
lea edx, [ecx + 0xfff]
shr edx, 0xc
mov dword [esp + 0x68], edx
cmp dword [esp + 0x68], 0xffffffff
jne 0x49d335
call fcn.0049c06c
lea eax, [esp + 0x7c]
call fcn.0049d5f0
xor al, 1
je 0x49d422
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 0x49d3ca
mov edx, dword [esp + 0x7c]
cmp dword [edx + 0xa0], 0
jne 0x49d39f
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 0x49d3ca
jp 0x49d3ca
lea eax, [esp + 0x7c]
call fcn.0049d678
xor al, 1
je 0x49d3e6
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x28], ecx
push 0
mov eax, dword [esp + 0x2c]
call fcn.0049e364
mov eax, dword [esp + 0x7c]
call fcn.0049cc5c
jmp 0x49d3e6
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x34], edx
push 0
mov eax, dword [esp + 0x38]
call fcn.0049e364
mov eax, dword [esp + 0x7c]
call fcn.0049cc5c
cmp dword [esp + 0x30], 0
jne 0x49d422
lea eax, [esp + 0x7c]
call fcn.0049d5f0
xor al, 1
je 0x49d422
lea eax, [esp + 0x7c]
call fcn.0049d678
xor al, 1
je 0x49d422
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add esp, 0x80
xor eax, eax
ret 0x10
mov dword [esp + 0x84], esi
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
add dword [edx + 0xf8], ecx
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
shl esi, 0xc
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x8c]
add esi, dword [edi]
shl eax, 0xc
test ebx, ebx
mov dword [esp + 0x6c], esi
mov dword [ecx], eax
je 0x49d589
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 + 0x30]
je 0x49d4ca
mov edx, dword [esp + 0x30]
cmp dword [edx + 0x28], 0
jne 0x49d4c2
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.004abae4
mov edx, dword [esp + 0x70]
test eax, eax
mov dword [edx], eax
je 0x49d574
mov edx, dword [edi + 0x24]
mov ecx, ebp
or dword [edx + esi*4], ecx
test ebx, 1
je 0x49d510
cmp dword [edi + 0x20], 0
jne 0x49d508
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.004abae4
mov edx, dword [esp + 0x74]
test eax, eax
mov dword [edx], eax
je 0x49d574
mov edx, dword [edi + 0x1c]
mov ecx, ebp
or dword [edx + esi*4], ecx
test ebx, 2
je 0x49d520
mov edx, dword [edi + 0x2c]
mov ecx, ebp
or dword [edx + esi*4], ecx
test ebx, 8
je 0x49d530
mov edx, dword [edi + 0x34]
mov ecx, ebp
or dword [edx + esi*4], ecx
cmp byte [edi + 0x58], 0
je 0x49d589
test ebx, 0x10
je 0x49d589
cmp dword [edi + 0x40], 0
jne 0x49d581
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.004abae4
mov edx, dword [esp + 0x78]
test eax, eax
mov dword [edx], eax
jne 0x49d581
call fcn.0045bdbc
mov dword [esp], eax
call fcn.0044a110
mov edx, dword [edi + 0x3c]
mov ecx, ebp
or dword [edx + esi*4], ecx
cmp byte [0x5115c8], 0
je 0x49d5d0
mov esi, dword [esp + 0x84]
test esi, esi
je 0x49d5af
test ebx, 8
je 0x49d5b6
mov ecx, dword [esi]
cmp dword [ecx], 0x4c3040
jne 0x49d5b6
mov ebx, 1
jmp 0x49d5bf
mov edx, dword [esi]
mov eax, esi
call dword [edx + 0x44]
mov ebx, eax
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x9c]
mov dword [ecx + esi*4], ebx
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add esp, 0x80
ret 0x10