Function at 0x1800347e0
Capabilities:
Get memory capacity

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x118
mov rax, qword [0x180076dc0]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov dword [rsp + 0xc0], 0x40
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
nop
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0x30], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 5
mov dword [rsp + 0x34], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x34]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x180034df1
mov rax, qword [rsp + 0xc8]
test rax, rax
jl 0x180034897
cvtsi2sd xmm0, rax
jmp 0x1800348b0
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
divsd xmm0, qword [0x1800604d0]
cvtsi2sd xmm1, dword [rsp + 0x120]
comisd xmm1, xmm0
jbe 0x1800348d5
mov qword [rsp + 0xb8], 1
jmp 0x1800348e1
mov qword [rsp + 0xb8], 0
cvtsi2sd xmm0, qword [rsp + 0xb8]
call fcn.180035a00
mov dword [rsp + 0x48], eax
movzx ecx, byte [0x180076d1c]
movsx ecx, cl
mov dword [rsp + 0x3c], ecx
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 0xa
mov dword [rsp + 0x40], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x40]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x48]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x180034a2c
xor eax, eax
cmp eax, 5
je 0x180034a2c
mov dword [rsp + 0x20], 0
jmp 0x180034988
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0x4c], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x54], eax
call fcn.180029e70
movsx eax, al
mov dword [rsp + 0x50], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x50]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x54]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.180035a00
cmp dword [rsp + 0x20], eax
jge 0x180034a27
mov dword [rsp + 0x24], 0
jmp 0x180034a0f
cmp dword [rsp + 0x24], 0x10
jae 0x180034a22
mov eax, 1
jmp 0x180034df1
jmp 0x18003497e
jmp 0x180034df1
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0x58], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 9
mov dword [rsp + 0x5c], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x5c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x60]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x180034df1
movzx eax, byte [0x180076d19]
movsx eax, al
mov dword [rsp + 0x64], eax
call fcn.180029e90
movsx eax, al
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x68], eax
call fcn.180029e80
movsx eax, al
shl eax, 2
movzx ecx, byte [0x18007a7e9]
movsx ecx, cl
imul eax, ecx
mov ecx, dword [rsp + 0x68]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
call fcn.180029eb0
movsx eax, al
mov ecx, dword [rsp + 0x6c]
sub ecx, eax
mov eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.180035a00
mov dword [rsp + 0x7c], eax
movzx ecx, byte [0x180076d1c]
movsx ecx, cl
mov dword [rsp + 0x70], ecx
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 0xa
mov dword [rsp + 0x74], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x74]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x7c]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x180034d32
xor eax, eax
cmp eax, 5
je 0x180034d32
movsd xmm0, qword [0x180060108]
call fcn.180035a00
nop
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0x80], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x80]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x88], eax
call fcn.180029e70
movsx eax, al
imul eax, eax, 3
mov dword [rsp + 0x84], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x84]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x88]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x180034d2d
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0x8c], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x8c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x94], eax
call fcn.180029e70
movsx eax, al
shl eax, 1
mov dword [rsp + 0x90], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x90]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x94]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.180035a00
mov dword [rsp + 0xa4], eax
movzx ecx, byte [0x180076d1c]
movsx ecx, cl
mov dword [rsp + 0x98], ecx
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0x98]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xa0], eax
call fcn.180029e70
movsx eax, al
shl eax, 3
mov dword [rsp + 0x9c], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0x9c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xa0]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0xa4]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x180034d2d
xor eax, eax
cmp eax, 9
je 0x180034d2d
movsd xmm0, qword [0x180060130]
call fcn.180035a00
nop
jmp 0x180034df1
mov dword [rsp + 0x28], 0
jmp 0x180034d46
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
movzx eax, byte [0x180076d1c]
movsx eax, al
mov dword [rsp + 0xa8], eax
call fcn.180029ea0
movsx eax, al
mov ecx, dword [rsp + 0xa8]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0xb0], eax
call fcn.180029e70
movsx eax, al
mov dword [rsp + 0xac], eax
call fcn.180029e60
movsx eax, al
mov ecx, dword [rsp + 0xac]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xb0]
add ecx, eax
mov eax, ecx
movzx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
movsx ecx, cl
xor edx, edx
div ecx
movzx ecx, byte [0x180076d18]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.180035a00
cmp dword [rsp + 0x28], eax
jge 0x180034df1
mov dword [rsp + 0x2c], 0
jmp 0x180034ddf
cmp dword [rsp + 0x2c], 0x50
jae 0x180034dec
xor eax, eax
jmp 0x180034df1
jmp 0x180034d3c
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.18003c9d0
add rsp, 0x118
ret