Function at 0x52354f
Capabilities:
Get memory capacity

Disassembly:
mov eax, 0x6db97b
call fcn.006899cc
mov eax, dword [0x7ea2fc]
sub esp, 0x2c
shr eax, 2
push esi
push edi
test al, 1
je 0x52358a
call fcn.004bac86
mov edi, dword [eax + 4]
mov esi, dword [edi]
cmp esi, edi
je 0x52358a
mov ecx, dword [esi + 8]
push 1
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi]
mov esi, eax
cmp eax, edi
jne 0x523578
mov eax, dword fs:[0x2c]
mov ecx, dword [0x81c3a0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7f29b0]
cmp eax, dword [ecx + 4]
jg 0x5238ca
mov ecx, dword [0x7f29a8]
mov eax, dword [0x7f29ac]
add ecx, 2
mov edx, dword [0x7e67e4]
adc eax, 0
cmp eax, edx
jg 0x52360b
mov eax, dword [0x7e67e0]
jl 0x5235d0
cmp ecx, eax
jae 0x52360b
mov edi, 0x7f2954
mov dword [0x7f29a8], eax
push edi
mov dword [0x7f29ac], edx
call fcn.0047b887
mov esi, 0x7f25b8
mov ecx, esi
call fcn.00523f54
add esi, 0x28
cmp esi, 0x7f2950
jl 0x5235eb
and dword [ebp - 4], 0
push edi
call fcn.0047b9d1
or dword [ebp - 4], 0xffffffff
push 5
mov edx, 0x7f24d8
pop esi
mov eax, dword [edx]
mov ecx, dword [edx - 4]
mov dword [edx], ecx
sub ecx, eax
mov eax, dword [edx - 8]
and dword [edx - 8], 0
add dword [edx + 8], eax
mov dword [edx + 4], ecx
adc dword [edx + 0xc], 0
lea edx, [edx + 0x20]
mov dword [edx - 0x10], eax
sub esi, 1
jne 0x523613
cmp byte [0x7f247a], 0
je 0x52364c
mov esi, dword [0x7f2494]
shl esi, 0x14
jmp 0x523652
mov esi, dword [0x7f246c]
movzx eax, byte [0x7f2480]
neg eax
push ebx
sbb eax, eax
mov ebx, 0x7f25a8
and eax, esi
xchg dword [ebx], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
push 0
push esi
push 0
push dword [ebp - 0x30]
call fcn.004acf2d
push 0
push eax
mov eax, dword [ebp - 0x20]
add eax, 0xf3800000
push 0
push eax
call fcn.004acf2d
mov edi, eax
xor eax, eax
lock xadd dword [ebx], eax
cdq
mov esi, eax
xor eax, eax
push edx
mov edx, 0x7f25a4
lock xadd dword [edx], eax
cdq
push esi
push edx
push eax
call fcn.004acf2d
xor ecx, ecx
sub edi, eax
mov eax, 0x100000
sbb ecx, edx
jne 0x5236ca
cmp edi, eax
ja 0x5236ca
and dword [ebp - 0x14], 0
mov edi, eax
jmp 0x5236cd
mov dword [ebp - 0x14], ecx
cmp byte [0x7f248d], 0
mov esi, 0x7f25a0
je 0x523805
cmp byte [0x7f248e], 0
je 0x523708
xor eax, eax
lock xadd dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xffff63c0
add eax, 0x13880
cmp dword [0x7e9908], eax
jb 0x523805
cmp byte [0x7f247b], 0
jne 0x52371f
and dword [0x7f25b0], 0
xchg dword [esi], edi
jmp 0x523810
call fcn.00559ca1
mov ebx, eax
xor ecx, ecx
add ebx, ebx
mov eax, 0x7f25a4
lock xadd dword [eax], ecx
xor eax, eax
mov edx, 0x7f25a8
lock xadd dword [edx], eax
cdq
mov dword [ebp - 0x10], eax
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
cdq
sub ecx, eax
mov eax, dword [ebp - 0x14]
push 0
sbb eax, edx
add ecx, ebx
pop edx
adc eax, edx
cmp edx, eax
ja 0x523767
jb 0x523763
cmp ebx, ecx
ja 0x523767
mov ebx, ecx
mov edx, eax
mov ecx, dword [ebp - 0x20]
xor eax, eax
sub ecx, ebx
sbb eax, edx
shrd ecx, eax, 1
shr eax, 1
push eax
mov eax, dword [0x7f2498]
imul dword [0x7e9908]
push ecx
xor ecx, ecx
add eax, dword [0x7f25b0]
push ecx
adc edx, ecx
add eax, 0x100000
push edi
adc edx, ecx
push edx
push eax
call fcn.004acf2d
push edx
push eax
call fcn.004acf2d
mov ebx, eax
mov ecx, ebx
xchg dword [esi], ecx
cmp byte [0x7f2490], 0
je 0x5237fc
mov ecx, dword [0x7f2484]
sub ecx, dword [0x7f25ac]
mov eax, dword [0x7f25b4]
test eax, eax
je 0x5237d0
cmp ebx, edi
jne 0x5237d4
test edx, edx
jne 0x5237d4
test ecx, ecx
jns 0x523810
test eax, eax
je 0x5237de
dec eax
mov dword [0x7f25b4], eax
add ecx, dword [0x7f25b0]
mov eax, 0x1000000
cmp ecx, eax
jg 0x5237f5
mov eax, ecx
test ecx, ecx
jns 0x5237f5
xor eax, eax
mov dword [0x7f25b0], eax
jmp 0x523810
and dword [0x7f25b0], 0
jmp 0x523810
and dword [0x7f25b0], 0
xor eax, eax
xchg dword [esi], eax
mov edi, 0x7f41a8
mov byte [ebp - 0x14], 1
push edi
mov dword [ebp - 0x18], edi
call fcn.0047b887
mov dword [ebp - 4], 1
xor ecx, ecx
mov edx, 0x7f259c
lock xadd dword [edx], ecx
xor eax, eax
lock xadd dword [esi], eax
pop ebx
cmp ecx, eax
jle 0x523853
xor ecx, ecx
lock xadd dword [edx], ecx
xor eax, eax
lock xadd dword [esi], eax
sub ecx, eax
push ecx
call fcn.00559a6d
call fcn.00559bac
test eax, eax
je 0x523893
call fcn.00559bac
lea esi, [eax + 0x14]
call fcn.00473a26
sub eax, dword [esi]
cmp byte [0x7f248f], 0
mov dword [0x7f25ac], eax
je 0x52389a
imul ecx, dword [0x7f247c], 0xea60
cmp eax, ecx
jb 0x52389a
mov eax, ecx
cdq
push edx
push eax
call fcn.00559ac4
jmp 0x52389a
and dword [0x7f25ac], 0
push edi
mov dword [ebp - 4], 2
call fcn.0047b9d1
mov eax, dword [0x7f24b0]
inc eax
pop edi
pop esi
cmp eax, 0x14
jb 0x5238b7
push 0x14
pop eax
mov ecx, dword [ebp - 0xc]
mov dword [0x7f24b0], eax
mov dword fs:[0], ecx
leave
ret 4
mov esi, 0x7f29b0
push esi
call fcn.00689c05
cmp dword [0x7f29b0], 0xffffffff
pop ecx
jne 0x5235aa
mov eax, dword [0x7e67e0]
mov ecx, dword [0x7e67e4]
push esi
mov dword [0x7f29a8], eax
mov dword [0x7f29ac], ecx
call fcn.00689bbb
pop ecx
jmp 0x5235aa