Function at 0x5012bd
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x679593
call fcn.0062921c
mov eax, dword [0x771280]
sub esp, 0x2c
shr eax, 2
push esi
push edi
test al, 1
je 0x5012f4
call fcn.0049fe92
mov esi, dword [eax + 4]
mov edi, esi
jmp 0x5012ee
mov ecx, dword [esi + 8]
push 1
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [esi]
cmp esi, edi
jne 0x5012e4
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7a0690]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x779738]
cmp eax, dword [ecx + 4]
jle 0x501340
mov esi, 0x779738
push esi
call fcn.006296ef
cmp dword [0x779738], 0xffffffff
pop ecx
jne 0x501340
mov eax, dword [0x76d730]
mov dword [0x779730], eax
mov eax, dword [0x76d734]
push esi
mov dword [0x779734], eax
call fcn.006296b0
pop ecx
mov ecx, dword [0x779730]
mov eax, dword [0x779734]
add ecx, 2
mov edx, dword [0x76d734]
push ebx
push 0
pop edi
adc eax, edi
cmp eax, edx
jg 0x5013a3
mov eax, dword [0x76d730]
jl 0x501369
cmp ecx, eax
jae 0x5013a3
mov ebx, 0x7796e0
mov dword [0x779730], eax
push ebx
mov dword [0x779734], edx
call fcn.00465e86
mov esi, 0x7793a0
mov ecx, esi
call fcn.00501c6e
add esi, 0x24
cmp esi, 0x7796dc
jl 0x501384
push ebx
mov dword [ebp - 4], edi
call fcn.00465f79
or dword [ebp - 4], 0xffffffff
push 5
mov edx, 0x7792d8
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 0x5013ab
cmp byte [0x77927a], 0
je 0x5013e2
mov esi, dword [0x779294]
shl esi, 0x14
jmp 0x5013e8
mov esi, dword [0x7792b0]
movzx eax, byte [0x779280]
neg eax
sbb eax, eax
and eax, esi
push eax
push 0x779390
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.004fcf6c
push edi
push eax
mov eax, dword [ebp - 0x20]
add eax, 0xf3800000
push edi
push eax
call fcn.004fcf6c
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_InterlockedExchangeAdd]
mov ebx, eax
push 0x779390
mov dword [ebp - 0x14], edx
call edi
push 0
push 0x77938c
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.004fcf6c
xor ecx, ecx
sub ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, 0x100000
sbb ecx, edx
jne 0x501475
cmp ebx, eax
ja 0x501475
and dword [ebp - 0x14], 0
mov esi, eax
mov dword [ebp - 0x10], esi
jmp 0x50147b
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
cmp byte [0x77928d], 0
mov ebx, 0x779388
je 0x5014ad
cmp byte [0x77928e], 0
je 0x5014b1
push 0
push ebx
call edi
neg eax
sbb eax, eax
and eax, 0xffff63c0
add eax, 0x13880
cmp dword [0x77084c], eax
jae 0x5014b1
push 0
jmp 0x5014bb
cmp byte [0x77927b], 0
jne 0x5014ce
push esi
and dword [0x779398], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x5015c3
call fcn.00535fef
push 0
add eax, eax
push 0x779390
mov dword [ebp - 0x14], eax
call edi
push 0
push 0x77938c
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 0x501514
jb 0x501510
cmp esi, eax
ja 0x501514
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 [0x779298]
imul dword [0x77084c]
push ecx
xor ecx, ecx
add eax, dword [0x779398]
push ecx
adc edx, ecx
add eax, 0x100000
push esi
adc edx, ecx
push edx
push eax
call fcn.004fcf6c
push edx
push eax
call fcn.004fcf6c
mov edi, eax
mov dword [ebp - 0x14], edx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp byte [0x779290], 0
je 0x5015b6
mov ecx, dword [0x779284]
sub ecx, dword [0x779394]
mov eax, dword [0x77939c]
test eax, eax
je 0x501589
cmp edi, esi
jne 0x50158d
cmp dword [ebp - 0x14], 0
jne 0x50158d
test ecx, ecx
jns 0x5015bd
test eax, eax
je 0x501597
dec eax
mov dword [0x77939c], eax
mov eax, dword [0x779398]
add eax, ecx
mov ecx, 0x1000000
cmp eax, ecx
jle 0x5015a9
mov eax, ecx
test eax, eax
jns 0x5015af
xor eax, eax
mov dword [0x779398], eax
jmp 0x5015bd
and dword [0x779398], 0
mov edi, dword [sym.imp.KERNEL32.DLL_InterlockedExchangeAdd]
mov eax, 0x77af10
mov byte [ebp - 0x14], 1
push eax
mov dword [ebp - 0x18], eax
call fcn.00465e86
push 0
push ebx
mov dword [ebp - 4], 1
call edi
push 0
push 0x779384
mov esi, eax
call edi
cmp eax, esi
jle 0x501608
push 0
push ebx
call edi
push 0
push 0x779384
mov esi, eax
call edi
sub eax, esi
push eax
call fcn.00535dcf
call fcn.00535f1d
pop ebx
test eax, eax
je 0x501649
call fcn.00535f1d
lea esi, [eax + 0x14]
call fcn.0045ecfb
sub eax, dword [esi]
cmp byte [0x77928f], 0
mov dword [0x779394], eax
je 0x501650
imul ecx, dword [0x77927c], 0xea60
cmp eax, ecx
jb 0x501650
mov eax, ecx
cdq
push edx
push eax
call fcn.00535e2e
jmp 0x501650
and dword [0x779394], 0
push 0x77af10
mov dword [ebp - 4], 2
call fcn.00465f79
mov eax, dword [0x7792b4]
inc eax
pop edi
pop esi
cmp eax, 0x14
jb 0x501671
push 0x14
pop eax
mov ecx, dword [ebp - 0xc]
mov dword [0x7792b4], eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4