Function at 0x408398
Capabilities:
Get disk size
Get installed programs
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43823c
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x44e278]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x44e278]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
and dword [esp + 0x20], 0
lea eax, [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20119
push 0
push 0x443588
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
setne bl
test bl, bl
je 0x4084dc
lea eax, [esp + 0x20]
push eax
push 0x20119
push 0
push str.SOFTWAREWOW6432NodeAVAST_SoftwareAvastVersion
push 0x80000002
call esi
test eax, eax
setne bl
test bl, bl
je 0x4084dc
lea eax, [esp + 0x20]
push eax
push 0x20119
push 0
push str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionUninstallAvast
push 0x80000002
call esi
test eax, eax
setne bl
test bl, bl
je 0x4084dc
lea eax, [esp + 0x20]
push eax
push 0x20119
push 0
push str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionUninstallAvast_Antivirus
push 0x80000002
call esi
test eax, eax
setne bl
test bl, bl
je 0x4084dc
lea eax, [esp + 0x20]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall4CB91122_AA85_4431_953C_BEFAEC86DA97_is1
push 0x80000002
call esi
test eax, eax
setne bl
test bl, bl
je 0x4084dc
lea eax, [esp + 0x20]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAvast
push 0x80000002
call esi
test eax, eax
setne bl
test bl, bl
je 0x4084dc
lea eax, [esp + 0x20]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAvast_Antivirus
push 0x80000002
call esi
test eax, eax
setne bl
test bl, bl
jne 0x4084ea
push dword [esp + 0x20]
call edi
test bl, bl
je 0x40871b
lea eax, [esp + 0x20]
push eax
push 0x20119
push 0
push str.AvastPersistentStorage
push 0x80000000
call esi
test eax, eax
jne 0x40859a
push str.AvUninstallTimestamp
lea ecx, [esp + 0x30]
call fcn.00401590
push ecx
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x34]
call fcn.00413023
pop ecx
pop ecx
push 0
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], edx
mov esi, eax
call fcn.004017dc
cmp dword [esp + 0x14], 0
ja 0x408547
test esi, esi
je 0x408594
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add ecx, 0x2ac18000
push 0
push 0x989680
adc eax, 0xfe624e21
push eax
push ecx
call fcn.00429620
sub eax, esi
push 0
sbb edx, dword [esp + 0x18]
push 0x15180
push edx
push eax
call fcn.00429620
test edx, edx
ja 0x408594
jb 0x408592
cmp eax, 0x28
jae 0x408594
xor bl, bl
push dword [esp + 0x20]
call edi
test bl, bl
je 0x40871b
lea ecx, [esp + 0x94]
call fcn.00411c7c
and dword [esp + 0x160], 0
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x144]
jmp 0x408609
mov edx, str.avastsvc.exe
mov ecx, esi
call fcn.00407956
test al, al
jne 0x40860f
mov edx, str.instup.exe
mov ecx, esi
call fcn.00407956
test al, al
jne 0x40860f
mov edx, str.avastui.exe
mov ecx, esi
call fcn.00407956
test al, al
jne 0x40860f
mov edx, str.avgui.exe
mov ecx, esi
call fcn.00407956
test al, al
jne 0x40860f
add esi, 0x18
cmp esi, edi
jne 0x4085c6
jmp 0x408611
xor bl, bl
test bl, bl
je 0x408620
cmp byte [esp + 0x13c], 0
sete bl
or dword [esp + 0x160], 0xffffffff
lea ecx, [esp + 0x94]
call fcn.00408741
test bl, bl
je 0x40871b
and dword [esp + 0x14], 0
lea ecx, [esp + 0x2c]
xor esi, esi
call fcn.00412acf
cmp dword [esp + 0x3c], esi
jbe 0x40866b
cmp dword [esp + 0x40], 8
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
call fcn.00412c0b
mov dword [esp + 0x14], eax
mov esi, edx
xor edi, edi
lea ecx, [esp + 0x2c]
push 0
inc edi
push edi
call fcn.004017dc
mov eax, esi
push 5
shr eax, 0x10
pop ecx
cmp ax, cx
jne 0x408699
test si, si
je 0x408719
cmp si, di
jne 0x4086bc
push 3
jmp 0x4086b2
push 6
pop ecx
cmp ax, cx
jne 0x4086bc
test si, si
jne 0x4086ac
push 2
xor edx, edx
jmp 0x4086b4
cmp si, di
jne 0x4086bc
push edi
mov edx, edi
call fcn.0040880a
pop ecx
mov bl, al
test bl, bl
je 0x40871b
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4086e4
cmp dword [esp + 0x60], 0
ja 0x4086e4
jb 0x4086e2
cmp dword [esp + 0x5c], 0x10000000
jae 0x4086e4
xor bl, bl
test bl, bl
je 0x40871b
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x4439ec
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40871b
cmp dword [esp + 0x28], 0
ja 0x40871b
jb 0x408719
cmp dword [esp + 0x24], 0x80000000
jae 0x40871b
xor bl, bl
mov al, bl
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00424209
mov esp, ebp
pop ebp
ret