Function at 0x50db74
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x6aa941
call fcn.006426c4
mov eax, dword [0x7b5190]
sub esp, 0x2c
shr eax, 2
push esi
push edi
test al, 1
je 0x50dbab
call fcn.004a7bf3
mov esi, dword [eax + 4]
mov edi, esi
jmp 0x50dba5
mov ecx, dword [esi + 8]
push 1
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [esi]
cmp esi, edi
jne 0x50db9b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7e59f0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7bd790]
cmp eax, dword [ecx + 4]
jle 0x50dbf7
mov esi, 0x7bd790
push esi
call fcn.00642848
cmp dword [0x7bd790], 0xffffffff
pop ecx
jne 0x50dbf7
mov eax, dword [0x7b4650]
mov dword [0x7bd788], eax
mov eax, dword [0x7b4654]
push esi
mov dword [0x7bd78c], eax
call fcn.00642809
pop ecx
mov ecx, dword [0x7bd788]
mov eax, dword [0x7bd78c]
add ecx, 2
mov edx, dword [0x7b4654]
push ebx
push 0
pop edi
adc eax, edi
cmp eax, edx
jg 0x50dc5a
mov eax, dword [0x7b4650]
jl 0x50dc20
cmp ecx, eax
jae 0x50dc5a
mov ebx, 0x7bd734
mov dword [0x7bd788], eax
push ebx
mov dword [0x7bd78c], edx
call fcn.0046ba5f
mov esi, 0x7bd3f0
mov ecx, esi
call fcn.0050e58f
add esi, 0x24
cmp esi, 0x7bd72c
jl 0x50dc3b
push ebx
mov dword [ebp - 4], edi
call fcn.0046bb9c
or dword [ebp - 4], 0xffffffff
push 5
mov edx, 0x7bd328
pop esi
mov eax, dword [edx]
mov ecx, dword [edx - 4]
mov dword [edx], ecx
sub ecx, eax
mov dword [edx + 4], ecx
mov eax, dword [edx - 8]
mov dword [edx - 8], edi
add dword [edx + 8], eax
mov dword [edx + 0x10], eax
adc dword [edx + 0xc], edi
lea edx, [edx + 0x1c]
sub esi, 1
jne 0x50dc62
cmp byte [0x7bd2d2], 0
je 0x50dc99
mov esi, dword [0x7bd2ec]
shl esi, 0x14
jmp 0x50dc9f
mov esi, dword [0x7bd2c4]
movzx eax, byte [0x7bd2d8]
neg eax
sbb eax, eax
and eax, esi
push eax
push 0x7bd3e0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
push edi
push esi
push edi
push dword [ebp - 0x30]
call fcn.0050978c
push edi
push eax
mov eax, dword [ebp - 0x20]
add eax, 0xf3800000
push edi
push eax
call fcn.0050978c
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_InterlockedExchangeAdd]
mov ebx, eax
push 0x7bd3e0
mov dword [ebp - 0x14], edx
call edi
push 0
push 0x7bd3dc
mov esi, eax
call edi
mov ecx, eax
mov eax, esi
cdq
push edx
push eax
mov eax, ecx
cdq
push edx
push eax
call fcn.0050978c
xor ecx, ecx
sub ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, 0x100000
sbb ecx, edx
jne 0x50dd2c
cmp ebx, eax
ja 0x50dd2c
and dword [ebp - 0x14], 0
mov esi, eax
mov dword [ebp - 0x10], esi
jmp 0x50dd32
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
cmp byte [0x7bd2e5], 0
mov ebx, 0x7bd3d8
je 0x50dd64
cmp byte [0x7bd2e6], 0
je 0x50dd68
push 0
push ebx
call edi
neg eax
sbb eax, eax
and eax, 0xffff63c0
add eax, 0x13880
cmp dword [0x7b472c], eax
jae 0x50dd68
push 0
jmp 0x50dd72
cmp byte [0x7bd2d3], 0
jne 0x50dd85
push esi
and dword [0x7bd3e8], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x50de7a
call fcn.0054764b
push 0
add eax, eax
push 0x7bd3e0
mov dword [ebp - 0x14], eax
call edi
push 0
push 0x7bd3dc
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchangeAdd]
cdq
mov ecx, eax
mov esi, edx
mov eax, edi
cdq
sub eax, ecx
push 0
sbb edx, esi
mov esi, dword [ebp - 0x14]
add eax, esi
pop edi
adc edx, edi
cmp edi, edx
ja 0x50ddcb
jb 0x50ddc7
cmp esi, eax
ja 0x50ddcb
mov esi, eax
mov edi, edx
mov ecx, dword [ebp - 0x20]
xor eax, eax
sub ecx, esi
mov esi, dword [ebp - 0x10]
sbb eax, edi
shrd ecx, eax, 1
shr eax, 1
push eax
mov eax, dword [0x7bd2f0]
imul dword [0x7b472c]
push ecx
xor ecx, ecx
add eax, dword [0x7bd3e8]
push ecx
adc edx, ecx
add eax, 0x100000
push esi
adc edx, ecx
push edx
push eax
call fcn.0050978c
push edx
push eax
call fcn.0050978c
mov edi, eax
mov dword [ebp - 0x14], edx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp byte [0x7bd2e8], 0
je 0x50de6d
mov ecx, dword [0x7bd2dc]
sub ecx, dword [0x7bd3e4]
mov eax, dword [0x7bd3ec]
test eax, eax
je 0x50de40
cmp edi, esi
jne 0x50de44
cmp dword [ebp - 0x14], 0
jne 0x50de44
test ecx, ecx
jns 0x50de74
test eax, eax
je 0x50de4e
dec eax
mov dword [0x7bd3ec], eax
mov eax, dword [0x7bd3e8]
add eax, ecx
mov ecx, 0x1000000
cmp eax, ecx
jle 0x50de60
mov eax, ecx
test eax, eax
jns 0x50de66
xor eax, eax
mov dword [0x7bd3e8], eax
jmp 0x50de74
and dword [0x7bd3e8], 0
mov edi, dword [sym.imp.KERNEL32.DLL_InterlockedExchangeAdd]
mov eax, 0x7bef88
mov byte [ebp - 0x14], 1
push eax
mov dword [ebp - 0x18], eax
call fcn.0046ba5f
push 0
push ebx
mov dword [ebp - 4], 1
call edi
push 0
push 0x7bd3d4
mov esi, eax
call edi
cmp eax, esi
jle 0x50debf
push 0
push ebx
call edi
push 0
push 0x7bd3d4
mov esi, eax
call edi
sub eax, esi
push eax
call fcn.00547406
call fcn.00547554
pop ebx
test eax, eax
je 0x50df00
call fcn.00547554
lea esi, [eax + 0x14]
call fcn.00464286
sub eax, dword [esi]
cmp byte [0x7bd2e7], 0
mov dword [0x7bd3e4], eax
je 0x50df07
imul ecx, dword [0x7bd2d4], 0xea60
cmp eax, ecx
jb 0x50df07
mov eax, ecx
cdq
push edx
push eax
call fcn.00547465
jmp 0x50df07
and dword [0x7bd3e4], 0
push 0x7bef88
mov dword [ebp - 4], 2
call fcn.0046bb9c
mov eax, dword [0x7bd308]
inc eax
pop edi
pop esi
cmp eax, 0x14
jb 0x50df28
push 0x14
pop eax
mov ecx, dword [ebp - 0xc]
mov dword [0x7bd308], eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4