Function at 0x401000
Capabilities:
Get common file path
Get program files directory
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4e5f81
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x512054]
xor eax, esp
mov dword [esp + 0x214], eax
push edi
mov eax, dword [0x512054]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
push 1
mov ecx, 1
call fcn.00401690
push 1
push 0x3e8
call fcn.004014d0
push 1
push 3
call fcn.004014d0
push 4
mov ecx, 1
call fcn.00401690
push 5
xor ecx, ecx
call fcn.00401690
push 6
xor ecx, ecx
call fcn.00401690
push 1
push 7
call fcn.004014d0
push 8
xor ecx, ecx
call fcn.00401690
push 1
push 0x1d
call fcn.004014d0
push 9
mov ecx, 5
call fcn.00401690
push 0
push 0xa
call fcn.004014d0
push 0xb
xor ecx, ecx
call fcn.00401690
push 1
push 0xc
call fcn.004014d0
push 0xd
xor ecx, ecx
call fcn.00401690
push 0xe
xor ecx, ecx
call fcn.00401690
push 0xf
mov ecx, 3
call fcn.00401690
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.004cc620
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x401115
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
jmp 0x40112a
push 0x104
push str.C:Program_Files_
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x5195ac
call eax
add eax, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0x228], 0
movzx ecx, word [esp + 0x14]
push ecx
push str._c:360Downloads_
lea edi, [esp + 0x10]
call fcn.00406e20
mov edx, dword [0x5195ac]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x5195ac
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x228], 1
movzx ecx, word [esp + 0x14]
push ecx
push str._c:360Apps_
lea edi, [esp + 0x14]
call fcn.00406e20
add esp, 8
lea edx, [esp + 8]
push edx
push 0x10
call fcn.00401590
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.00406bd0
lea ecx, [esp + 0x10]
push ecx
push 0x11
mov byte [esp + 0x230], 2
call fcn.00401590
mov byte [esp + 0x228], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4011ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
push ecx
push 0x12
call fcn.00401590
push 0x13
xor ecx, ecx
call fcn.00401690
push 0
push 0x14
call fcn.004014d0
push 1
push 0x15
call fcn.004014d0
push 0
push 0x16
call fcn.004014d0
push 0x17
xor ecx, ecx
call fcn.00401690
push 0x18
xor ecx, ecx
call fcn.00401690
push 1
push 0x19
call fcn.004014d0
push 1
push 0x1e
call fcn.004014d0
push 1
push 0x1a
call fcn.004014d0
push 0
push 0x1c
call fcn.004014d0
mov byte [esp + 0x228], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40127d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x228], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004c961b
add esp, 0x224
ret