Function at 0x41e1b1
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c9c
call fcn.0042e5e0
push ebx
push esi
mov esi, ecx
push edi
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x147a]
mov word [ebp - 0x147c], dx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [ebp - 0x147c]
push 0x17
push eax
push edx
call ebx
test eax, eax
je 0x41e216
push 0x43dd5c
lea eax, [ebp - 0x147c]
push 0x43d678
push eax
lea eax, [esi + 0x10]
push str._s_s_s
push eax
call fcn.004099a4
add esp, 0x14
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x1682]
mov word [ebp - 0x1684], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1684]
push 2
push eax
push edx
call ebx
test eax, eax
je 0x41e263
push 0x43dd5c
lea eax, [ebp - 0x1684]
push 0x43d678
push eax
lea eax, [esi + 0x14]
push str._s_s_s
push eax
call fcn.004099a4
add esp, 0x14
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xe62]
mov word [ebp - 0xe64], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xe64]
push 0x16
push eax
push edx
call ebx
test eax, eax
je 0x41e2b7
lea eax, [ebp - 0xe64]
lea edi, [esi + 0x18]
test eax, eax
je 0x41e2a8
lea eax, [ebp - 0xe64]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0xe64]
push ecx
push eax
mov ecx, edi
call fcn.00404cce
and word [ebp - 0xc5c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xc5a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0xc5c]
push 0xb
push eax
push 0
call ebx
test eax, eax
je 0x41e30c
lea eax, [ebp - 0xc5c]
lea edi, [esi + 0x1c]
test eax, eax
je 0x41e2fd
lea eax, [ebp - 0xc5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0xc5c]
push ecx
push eax
mov ecx, edi
call fcn.00404cce
and word [ebp - 0x1274], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x1272]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0x1274]
push 0x19
push eax
push 0
call ebx
test eax, eax
je 0x41e361
lea eax, [ebp - 0x1274]
lea edi, [esi + 0x20]
test eax, eax
je 0x41e352
lea eax, [ebp - 0x1274]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x1274]
push ecx
push eax
mov ecx, edi
call fcn.00404cce
and word [ebp - 0x106c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x106a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea eax, [ebp - 0x106c]
push 0x10
push eax
push 0
call ebx
test eax, eax
je 0x41e3b6
lea eax, [ebp - 0x106c]
lea edi, [esi + 0x24]
test eax, eax
je 0x41e3a7
lea eax, [ebp - 0x106c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x106c]
push ecx
push eax
mov ecx, edi
call fcn.00404cce
and word [ebp - 0x1a94], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x1a92]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
lea eax, [ebp - 0x1a94]
push edi
push 0x1a
push eax
push edi
call ebx
test eax, eax
je 0x41e3ff
lea eax, [ebp - 0x1a94]
push str.MicrosoftInternet_ExplorerQuick_Launch
push eax
lea eax, [esi + 0x28]
push 0x439530
push eax
call fcn.004099a4
add esp, 0x10
mov word [ebp - 0xa54], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xa52]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0xa54]
push 6
push eax
push 0
call ebx
test eax, eax
je 0x41e453
lea eax, [ebp - 0xa54]
lea edi, [esi + 0x2c]
test eax, eax
je 0x41e444
lea eax, [ebp - 0xa54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0xa54]
push ecx
push eax
mov ecx, edi
call fcn.00404cce
and word [ebp - 0x84c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x84a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
lea eax, [ebp - 0x84c]
push edi
push 0x1a
push eax
push edi
call ebx
test eax, eax
je 0x41e497
lea eax, [ebp - 0x84c]
push eax
lea eax, [esi + 0xc]
push 0x438aa0
push eax
call fcn.004099a4
add esp, 0xc
mov eax, dword [0x4384ec]
mov word [ebp - 0x43c], di
mov dword [ebp - 0x10], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x43a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
lea eax, [ebp - 0x43c]
push 0x103
push eax
mov ecx, esi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x2c], edi
call fcn.0041de35
cmp eax, edi
mov dword [ebp - 4], eax
je 0x41e6e3
cmp dword [esi + 4], 6
jle 0x41e545
mov word [ebp - 0x644], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x642]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x84c]
push eax
push 0x438aa0
lea eax, [ebp - 0x644]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x84c]
mov ecx, esi
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.0041df61
mov dword [ebp - 4], eax
xor edi, edi
cmp dword [ebp - 4], edi
je 0x41e6e3
lea eax, [esi + 0x50]
push edi
push 0x26
push eax
push edi
call ebx
push edi
lea eax, [esi + 0x258]
push 0x24
push eax
push edi
call ebx
push edi
lea eax, [esi + 0x460]
push 0x25
push eax
push edi
call ebx
push edi
lea eax, [esi + 0x668]
push 0x1a
push eax
push edi
call ebx
push edi
lea eax, [esi + 0x870]
push 0x10
push eax
push edi
call ebx
mov word [ebp - 0x234], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x232]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x43c]
push eax
push 0x438aa0
lea eax, [ebp - 0x234]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x234]
push eax
call edi
cmp word [ebp + eax*2 - 0x236], 0x5c
pop ecx
jne 0x41e600
lea eax, [ebp - 0x234]
push eax
call edi
and word [ebp + eax*2 - 0x236], 0
pop ecx
lea eax, [ebp - 0x234]
push eax
call edi
cmp eax, 4
pop ecx
jg 0x41e679
cmp eax, 2
jne 0x41e61e
cmp word [ebp - 0x232], 0x3a
je 0x41e65a
cmp eax, 3
jne 0x41e637
cmp word [ebp - 0x232], 0x3a
jne 0x41e679
cmp word [ebp - 0x230], 0x5c
je 0x41e65a
cmp eax, 4
jne 0x41e679
cmp word [ebp - 0x232], 0x3a
jne 0x41e679
cmp word [ebp - 0x230], 0x5c
jne 0x41e679
cmp word [ebp - 0x22e], 0x5c
jne 0x41e679
mov ax, word [ebp - 0x234]
cmp ax, 0x5a
ja 0x41e66d
cmp ax, 0x41
jae 0x41e6c2
cmp ax, 0x7a
ja 0x41e679
cmp ax, 0x61
jae 0x41e6c2
xor ecx, ecx
lea eax, [esi + 0x50]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], ecx
je 0x41e6a1
push dword [ebp - 0xc]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x41e6b3
xor ecx, ecx
inc dword [ebp - 8]
add dword [ebp - 0xc], 0x208
cmp dword [ebp - 8], 0xa
jl 0x41e684
jmp 0x41e6b9
and dword [ebp - 4], 0
xor ecx, ecx
cmp dword [ebp - 4], ecx
jne 0x41e796
lea eax, [ebp - 0x43c]
push eax
push 0x438aa0
push 0x103
push 0x442690
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
xor edi, edi
cmp dword [esi + 4], 6
mov dword [ebp - 4], edi
jg 0x41e90e
mov word [ebp - 0x234], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x232]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 1
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x43fcc4
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41e8c3
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
jbe 0x41e8c3
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e8c3
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x234]
push eax
call edi
lea eax, [ebp - 0x234]
push eax
call edi
lea eax, [ebp - 0x234]
push str.360se
push eax
jmp 0x41e916
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x43c]
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
call fcn.004204cf
add esp, 0x14
lea ebx, [esi + 0x30]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 8]
push str._d._d._d._d
push ebx
call fcn.004099a4
add esp, 0x18
cmp dword [ebp - 8], 5
jl 0x41e7ee
mov dword [esi + 0x14e8], 1
mov ebx, dword [ebx]
push str.5.0.3.6
push ebx
call fcn.00420595
pop ecx
test eax, eax
pop ecx
jge 0x41e80a
mov dword [ebp - 4], 1
jmp 0x41e816
xor ecx, ecx
test eax, eax
setne cl
inc ecx
inc ecx
mov dword [ebp - 4], ecx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x43c]
push eax
call ebx
lea eax, [ebp - 0x43c]
push eax
call edi
cmp word [ebp + eax*2 - 0x43e], 0x5c
pop ecx
jne 0x41e84d
lea eax, [ebp - 0x43c]
push eax
call edi
and word [ebp + eax*2 - 0x43e], 0
pop ecx
cmp dword [esi + 4], 6
jg 0x41e8bb
cmp dword [ebp - 0x2c], 0
je 0x41e8bb
lea eax, [ebp - 0x43c]
push eax
call ebx
and word [ebp - 0x234], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x232]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x43c]
push str.360se
push eax
push 0x439530
lea eax, [ebp - 0x234]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x10]
push 0x438aa0
push eax
call fcn.004099a4
add esp, 0xc
jmp 0x41e927
lea eax, [ebp - 0x43c]
jmp 0x41e8a7
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x642]
mov word [ebp - 0x644], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x644]
push 0x26
push eax
push edx
call ebx
push str.360se
lea eax, [ebp - 0x644]
push 0x43e280
push eax
lea eax, [ebp - 0x10]
push str._s_s_s
push eax
call fcn.004099a4
add esp, 0x14
jmp 0x41e927
push str.360se_bin
push dword [esi + 0xc]
lea eax, [ebp - 0x10]
push 0x439530
push eax
call fcn.004099a4
add esp, 0x10
mov ecx, esi
call fcn.0041d878
mov eax, dword [ebp - 4]
lea edi, [esi + 0x48]
mov dword [esi + 0x1504], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0040476f
push edi
mov ecx, 0x442f54
call fcn.0040476f
push str.360se
lea ebx, [esi + 0x40]
push dword [esi + 0xc]
push 0x439530
push ebx
call fcn.004099a4
push dword [ebx]
call fcn.00420705
add esp, 0x14
lea edi, [esi + 0x38]
push str.360se.ini
push str.360se
push dword [esi + 0xc]
push str._s_s_s
push edi
call fcn.004099a4
add esp, 0x14
lea eax, [esi + 0x34]
push str.360se_s.ini
push str.360se
push dword [esi + 0xc]
push str._s_s_s
push eax
call fcn.004099a4
add esp, 0x14
lea eax, [esi + 0x3c]
push str.360seie6.ini
push str.360se
push dword [esi + 0xc]
push str._s_s_s
push eax
call fcn.004099a4
add esp, 0x14
push dword [edi]
push 1
push str.NotJoinPrivate
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x14b4], eax
mov ax, word [0x43fcc4]
mov word [ebp - 0x188c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x188a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x188c]
push 0x103
push eax
call fcn.0042295e
mov eax, dword [esi + 4]
pop ecx
cmp eax, 2
pop ecx
jl 0x41ea36
cmp eax, 7
jge 0x41ea36
cmp word [ebp - 0x188c], 0x36
jne 0x41ea36
mov dword [esi + 0x1514], 1
mov eax, dword [0x4384ec]
push dword [ebx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push str._sAppsAppslocal.ini
push eax
call fcn.004099a4
and word [ebp - 0x1c9c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x1c9a]
rep stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1c9c]
mov edi, 0x43fcc4
push 0x103
push eax
push edi
push str.AppItem
push str.LoginAssis
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x1c9c]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x41eb48
mov eax, dword [0x4384ec]
push dword [ebx]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str._sAppsLoginAssisLoginAssis.dll
push eax
call fcn.004099a4
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41eb40
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call fcn.004204cf
add esp, 0x14
mov eax, dword [0x4384ec]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp - 0x28]
push str._d._d._d._d
push eax
call fcn.004099a4
push str.1.0.1.1037
push dword [ebp - 8]
call fcn.00420595
add esp, 0x20
test eax, eax
jge 0x41eb38
mov dword [esi + 0x151c], 1
lea ecx, [ebp - 8]
call fcn.00404bf2
lea ecx, [ebp - 4]
call fcn.00404bf2
mov ecx, esi
call fcn.0041eb64
lea ecx, [ebp - 0x1c]
call fcn.00404bf2
lea ecx, [ebp - 0x10]
call fcn.00404bf2
pop edi
pop esi
pop ebx
leave
ret