Function at 0x18072942
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xac], eax
mov bl, cl
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xb8], eax
call fcn.180663aa
push 0x68
mov dword [ebp - 0xb4], eax
call fcn.180a6a69
pop ecx
mov edi, eax
mov ecx, edi
call fcn.180727c1
push 0x180f336c
mov byte [edi], bl
call fcn.180ac191
pop ecx
push eax
push 0x180f336c
lea ecx, [edi + 8]
call fcn.18005f0f
mov dl, bl
lea ecx, [ebp - 0xb0]
call fcn.180634d9
push eax
lea ecx, [edi + 4]
call fcn.18005b84
mov ecx, dword [ebp - 0xb0]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov esi, dword [0x1810131c]
test esi, esi
jne 0x180729e4
xor eax, eax
jmp 0x180729eb
push esi
call fcn.180ac191
pop ecx
push eax
push esi
lea ecx, [edi + 0xc]
call fcn.18005f0f
mov esi, dword [0x18101318]
test esi, esi
jne 0x18072a03
xor eax, eax
jmp 0x18072a0a
push esi
call fcn.180ac191
pop ecx
push eax
push esi
lea ecx, [edi + 0x10]
call fcn.18005f0f
push dword [ebp - 0xac]
lea ecx, [edi + 0x14]
call fcn.18005b84
push dword [ebp - 0xc0]
lea ecx, [edi + 0x18]
call fcn.18005b84
lea eax, [ebp - 0xc0]
push eax
call fcn.18067738
push eax
lea ecx, [edi + 0x1c]
call fcn.18005b84
mov ecx, dword [ebp - 0xc0]
lea ecx, [ecx - 0x10]
call fcn.18003140
push dword [ebp - 0xc4]
lea ecx, [edi + 0x24]
call fcn.18005b84
push dword [ebp - 0xb8]
lea ecx, [edi + 0x20]
call fcn.18005b84
mov esi, dword [ebp - 0xb4]
lea eax, [ebp - 0xa5]
xor ebx, ebx
mov ecx, esi
push ebx
push eax
mov byte [ebp - 0xa5], bl
call fcn.18066d49
cmp byte [ebp - 0xa5], bl
je 0x18072a97
mov dword [edi + 0x28], eax
push ebx
lea eax, [ebp - 0xb4]
mov ecx, esi
push eax
call fcn.180680c9
push eax
lea ecx, [edi + 0x2c]
call fcn.18005b84
mov ecx, dword [ebp - 0xb4]
lea ecx, [ecx - 0x10]
call fcn.18003140
call fcn.180098d1
mov byte [edi + 0x30], al
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x18072b4d
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xbc], eax
mov eax, ecx
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [ebp - 0xb8], ecx
fild qword [ebp - 0xbc]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xbc], ebx
push ecx
fild qword [ebp - 0xbc]
push ecx
fchs
faddp st(1)
fstp qword [ebp - 0xbc]
fld qword [ebp - 0xbc]
fmul qword [0x180f7398]
fadd qword [0x180f73a0]
fstp qword [esp]
call fcn.180cc2d0
pop ecx
pop ecx
call fcn.180cb780
mov dword [edi + 0x34], eax
push 0xf
pop esi
push 7
push 0x180e794c
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x40], bx
mov byte [ebp - 0x3e], bl
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
call fcn.18031953
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call fcn.1809eb55
mov al, byte [ebp - 0x47]
mov ebx, 0x180e92a8
mov byte [edi + 0x38], al
mov al, byte [ebp - 0x46]
mov byte [edi + 0x39], al
mov al, byte [ebp - 0x45]
mov byte [edi + 0x3a], al
mov al, byte [ebp - 0x44]
mov byte [edi + 0x3b], al
mov al, byte [ebp - 0x43]
mov byte [edi + 0x3c], al
mov al, byte [ebp - 0x42]
mov byte [edi + 0x3d], al
mov al, byte [ebp - 0x41]
push ebx
mov byte [edi + 0x3e], al
call fcn.180ac191
pop ecx
push eax
push ebx
lea ecx, [edi + 0x40]
call fcn.18005f0f
lea edx, [edi + 0x48]
lea ecx, [edi + 0x44]
call fcn.18062167
call fcn.1801506b
mov edx, eax
lea ecx, [ebp - 0xb4]
call fcn.18075854
push eax
lea ecx, [edi + 0x4c]
call fcn.18005b84
mov ecx, dword [ebp - 0xb4]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov eax, dword [ebp - 0x10]
mov esi, 0x1000
cmp eax, 0x10
jb 0x18072c5a
mov ecx, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb0], ecx
cmp eax, esi
jb 0x18072c51
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.18003b3c
mov eax, dword [ebp - 0xac]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xb0]
push eax
push ecx
call fcn.180a66f3
pop ecx
pop ecx
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
cmp eax, 0x10
jb 0x18072caf
mov ecx, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], ecx
cmp eax, esi
jb 0x18072ca6
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.18003b3c
mov eax, dword [ebp - 0xb0]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xac]
push eax
push ecx
call fcn.180a66f3
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret