Function at 0x42bdb7
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x3f4
mov eax, 0x4a5957
call fcn.00483770
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, edi
je 0x42bdf2
lea ecx, [ebp - 0x3f8]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x42bdff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
je 0x42be0b
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42bdc9
push dword [ebp - 0x3f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004035e3
mov byte [0x4d79b9], al
call fcn.00403497
mov ecx, str.kxescore.exe
mov byte [0x4d79b5], al
call fcn.0041e4c5
mov ecx, str.kxetray.exe
mov byte [0x4d79b6], al
call fcn.0041e4c5
xor ebx, ebx
mov byte [0x4d79b7], al
xor eax, eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x3dc]
call fcn.00428c8f
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x3dc]
call fcn.0042c558
mov byte [0x4d79bb], al
xor eax, eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 0x3dc]
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x42bebb
mov dword [0x4d79ac], 1
jmp 0x42c099
push ecx
push ecx
mov esi, esp
lea eax, [ebp - 0x21c]
push eax
mov dword [esi], eax
call fcn.00402919
pop ecx
lea ecx, [ebp - 0x3cc]
mov dword [esi + 4], eax
call fcn.0042ffa0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
push eax
call fcn.004300e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3cc]
call fcn.004300b0
push ecx
push ecx
mov esi, esp
mov eax, str.360safeCleanCleanLog.ini
push eax
mov dword [esi], eax
call fcn.004012c1
pop ecx
mov dword [esi + 4], eax
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x3b4]
push eax
call fcn.00430a00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
push eax
call fcn.004300e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3b4]
call fcn.004300b0
lea ecx, [ebp - 0x234]
call fcn.00432760
test al, al
jne 0x42bf5f
mov dword [0x4d79ac], 2
jmp 0x42c099
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x24c], bl
mov byte [ebp - 4], 4
lea edx, [ebp - 0x24c]
push edi
lea ecx, [ebp - 0x234]
call fcn.00439ae0
pop ecx
test al, al
jne 0x42bfab
mov dword [0x4d79ac], 3
jmp 0x42c086
cmp dword [ebp - 0x238], 0x10
lea eax, [ebp - 0x24c]
push ecx
cmovae eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x400]
mov dword [ebp - 0x400], eax
lea ecx, [ebp - 0x27c]
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x3fc], eax
call fcn.0043ef70
pop ecx
mov byte [ebp - 4], 5
mov esi, 0x4ba25c
push esi
call fcn.00402919
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x27c]
call fcn.00403dca
movzx ecx, byte [0x4d79b4]
cmp eax, edi
push 1
pop eax
cmovne ecx, eax
mov esi, 0x4ba248
push esi
mov byte [0x4d79b4], cl
call fcn.00402919
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x27c]
call fcn.00403dca
movzx ecx, byte [0x4d79b8]
cmp eax, edi
push 1
pop eax
cmovne ecx, eax
mov esi, 0x4ba274
push esi
mov byte [0x4d79b8], cl
call fcn.00402919
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x27c]
call fcn.00403dca
movzx ecx, byte [0x4d79ba]
cmp eax, edi
push 1
pop eax
cmovne ecx, eax
mov byte [0x4d79ba], cl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
push ebx
push eax
call fcn.0040314a
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x24c]
push ebx
push eax
call fcn.0040162e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x3dc]
call fcn.00428cd8
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x234]
call fcn.004300b0
call fcn.0042c5e3
push 0xc
push 0x53
lea ecx, [ebp - 0x3f4]
call fcn.0046b350
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x354]
push str.stype
call fcn.004014ed
mov byte [ebp - 4], 7
lea eax, [ebp - 0x354]
fld qword [0x4bfc68]
push ecx
push ecx
fstp qword [esp]
push eax
lea ecx, [ebp - 0x3f4]
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x354]
push eax
call fcn.0040162e
push str.err2
lea ecx, [ebp - 0x324]
call fcn.004014ed
mov byte [ebp - 4], 8
lea eax, [ebp - 0x324]
fild dword [0x4d79ac]
push ecx
push ecx
lea ecx, [ebp - 0x3f4]
fstp qword [ebp - 0x3d4]
fld qword [ebp - 0x3d4]
fstp qword [esp]
push eax
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x324]
push eax
call fcn.0040162e
push str.err1
lea ecx, [ebp - 0x294]
call fcn.004014ed
mov byte [ebp - 4], 9
lea eax, [ebp - 0x294]
fild dword [0x4d79bc]
push ecx
push ecx
lea ecx, [ebp - 0x3f4]
fstp qword [ebp - 0x3d4]
fld qword [ebp - 0x3d4]
fstp qword [esp]
push eax
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x294]
push eax
call fcn.0040162e
push str.duba
lea ecx, [ebp - 0x384]
call fcn.004014ed
mov byte [ebp - 4], 0xa
movzx eax, byte [0x4d79b5]
mov dword [ebp - 0x3d0], eax
lea eax, [ebp - 0x384]
fild dword [ebp - 0x3d0]
push ecx
push ecx
lea ecx, [ebp - 0x3f4]
fstp qword [ebp - 0x3d4]
fld qword [ebp - 0x3d4]
fstp qword [esp]
push eax
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x384]
push eax
call fcn.0040162e
push 0x4ba2a8
lea ecx, [ebp - 0x2dc]
call fcn.004014ed
mov byte [ebp - 4], 0xb
movzx eax, byte [0x4d79b6]
mov dword [ebp - 0x3d0], eax
lea eax, [ebp - 0x2dc]
fild dword [ebp - 0x3d0]
push ecx
push ecx
lea ecx, [ebp - 0x3f4]
fstp qword [ebp - 0x3d4]
fld qword [ebp - 0x3d4]
fstp qword [esp]
push eax
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x2dc]
push eax
call fcn.0040162e
push str.tray
lea ecx, [ebp - 0x2ac]
call fcn.004014ed
mov byte [ebp - 4], 0xc
movzx eax, byte [0x4d79b7]
mov dword [ebp - 0x3d0], eax
lea eax, [ebp - 0x2ac]
fild dword [ebp - 0x3d0]
push ecx
push ecx
lea ecx, [ebp - 0x3f4]
fstp qword [ebp - 0x3d4]
fld qword [ebp - 0x3d4]
fstp qword [esp]
push eax
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x2ac]
push eax
call fcn.0040162e
push 0x4ba2b0
lea ecx, [ebp - 0x2c4]
call fcn.004014ed
mov byte [ebp - 4], 0xd
movzx eax, byte [0x4d79bb]
mov dword [ebp - 0x3d0], eax
fild dword [ebp - 0x3d0]
push ecx
push ecx
fstp qword [ebp - 0x3d4]
fld qword [ebp - 0x3d4]
fstp qword [esp]
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x3f4]
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x2c4]
push eax
call fcn.0040162e
push 0x4ba2ac
lea ecx, [ebp - 0x30c]
call fcn.004014ed
mov byte [ebp - 4], 0xe
movzx eax, byte [0x4d79b4]
mov dword [ebp - 0x3d0], eax
lea eax, [ebp - 0x30c]
fild dword [ebp - 0x3d0]
push ecx
push ecx
lea ecx, [ebp - 0x3f4]
fstp qword [ebp - 0x3d4]
fld qword [ebp - 0x3d4]
fstp qword [esp]
push eax
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x30c]
push eax
call fcn.0040162e
push 0x4ba2b8
lea ecx, [ebp - 0x33c]
call fcn.004014ed
mov byte [ebp - 4], 0xf
movzx eax, byte [0x4d79b8]
mov dword [ebp - 0x3d0], eax
lea eax, [ebp - 0x33c]
fild dword [ebp - 0x3d0]
push ecx
push ecx
lea ecx, [ebp - 0x3f4]
fstp qword [ebp - 0x3d4]
fld qword [ebp - 0x3d4]
fstp qword [esp]
push eax
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x33c]
push eax
call fcn.0040162e
push 0x4ba2b4
lea ecx, [ebp - 0x36c]
call fcn.004014ed
mov byte [ebp - 4], 0x10
movzx eax, byte [0x4d79ba]
mov dword [ebp - 0x3d0], eax
lea eax, [ebp - 0x36c]
fild dword [ebp - 0x3d0]
push ecx
push ecx
lea ecx, [ebp - 0x3f4]
fstp qword [ebp - 0x3d4]
fld qword [ebp - 0x3d4]
fstp qword [esp]
push eax
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
push eax
lea ecx, [ebp - 0x36c]
call fcn.0040162e
push str.srvstatus
lea ecx, [ebp - 0x39c]
call fcn.004014ed
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x39c]
fild dword [0x4d79b0]
push ecx
push ecx
lea ecx, [ebp - 0x3f4]
fstp qword [ebp - 0x3d4]
fld qword [ebp - 0x3d4]
fstp qword [esp]
push eax
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x39c]
push eax
call fcn.0040162e
push str.xinst
lea ecx, [ebp - 0x2f4]
call fcn.004014ed
mov byte [ebp - 4], 0x12
movzx eax, byte [0x4d79b9]
mov dword [ebp - 0x3d0], eax
lea eax, [ebp - 0x2f4]
fild dword [ebp - 0x3d0]
push ecx
push ecx
lea ecx, [ebp - 0x3f4]
fstp qword [ebp - 0x3d4]
fld qword [ebp - 0x3d4]
fstp qword [esp]
push eax
call fcn.0046bba0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x2f4]
push eax
call fcn.0040162e
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x250], 0xf
mov dword [ebp - 0x254], ebx
mov byte [ebp - 0x264], bl
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x3f4]
call fcn.0046bcd0
mov byte [ebp - 4], 6
xor eax, eax
push ebx
inc eax
lea ecx, [ebp - 0x264]
push eax
call fcn.0040162e
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x3f4]
call fcn.0046b3c0
call fcn.0048371f
ret