Function at 0x41ee9a
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, 0x1a8c
call fcn.00431de0
push ebx
push esi
mov esi, ecx
push edi
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x1472]
mov word [ebp - 0x1474], 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 - 0x1474]
push 0x17
push eax
push edx
call ebx
test eax, eax
je 0x41eeff
push 0x463328
lea eax, [ebp - 0x1474]
push 0x462bec
push eax
lea eax, [esi + 0x10]
push str._s_s_s
push eax
call fcn.00409be5
add esp, 0x14
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x167a]
mov word [ebp - 0x167c], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x167c]
push 2
push eax
push edx
call ebx
test eax, eax
je 0x41ef4c
push 0x463328
lea eax, [ebp - 0x167c]
push 0x462bec
push eax
lea eax, [esi + 0x14]
push str._s_s_s
push eax
call fcn.00409be5
add esp, 0x14
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xe5a]
mov word [ebp - 0xe5c], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xe5c]
push 0x16
push eax
push edx
call ebx
test eax, eax
je 0x41efa0
lea eax, [ebp - 0xe5c]
lea edi, [esi + 0x18]
test eax, eax
je 0x41ef91
lea eax, [ebp - 0xe5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0xe5c]
push ecx
push eax
mov ecx, edi
call fcn.00404cc7
and word [ebp - 0xc54], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xc52]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0xc54]
push 0xb
push eax
push 0
call ebx
test eax, eax
je 0x41eff5
lea eax, [ebp - 0xc54]
lea edi, [esi + 0x1c]
test eax, eax
je 0x41efe6
lea eax, [ebp - 0xc54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0xc54]
push ecx
push eax
mov ecx, edi
call fcn.00404cc7
and word [ebp - 0x126c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x126a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0x126c]
push 0x19
push eax
push 0
call ebx
test eax, eax
je 0x41f04a
lea eax, [ebp - 0x126c]
lea edi, [esi + 0x20]
test eax, eax
je 0x41f03b
lea eax, [ebp - 0x126c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x126c]
push ecx
push eax
mov ecx, edi
call fcn.00404cc7
and word [ebp - 0x1064], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x1062]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea eax, [ebp - 0x1064]
push 0x10
push eax
push 0
call ebx
test eax, eax
je 0x41f09f
lea eax, [ebp - 0x1064]
lea edi, [esi + 0x24]
test eax, eax
je 0x41f090
lea eax, [ebp - 0x1064]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x1064]
push ecx
push eax
mov ecx, edi
call fcn.00404cc7
and word [ebp - 0x1884], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x1882]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
lea eax, [ebp - 0x1884]
push edi
push 0x1a
push eax
push edi
call ebx
test eax, eax
je 0x41f0e8
lea eax, [ebp - 0x1884]
push str.MicrosoftInternet_ExplorerQuick_Launch
push eax
lea eax, [esi + 0x28]
push 0x43c530
push eax
call fcn.00409be5
add esp, 0x10
mov word [ebp - 0xa4c], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xa4a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0xa4c]
push 6
push eax
push 0
call ebx
test eax, eax
je 0x41f13c
lea eax, [ebp - 0xa4c]
lea edi, [esi + 0x2c]
test eax, eax
je 0x41f12d
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0xa4c]
push ecx
push eax
mov ecx, edi
call fcn.00404cc7
and word [ebp - 0x844], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x842]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
lea eax, [ebp - 0x844]
push edi
push 0x1a
push eax
push edi
call ebx
test eax, eax
je 0x41f180
lea eax, [ebp - 0x844]
push eax
lea eax, [esi + 0xc]
push 0x43baa0
push eax
call fcn.00409be5
add esp, 0xc
mov eax, dword [0x43b4ec]
mov word [ebp - 0x434], di
mov dword [ebp - 8], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x432]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
xor edi, edi
push eax
lea eax, [ebp - 0x434]
push 0x103
push eax
mov ecx, esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], 0x104
mov dword [esi + 0x53b4], edi
mov dword [ebp - 0x24], edi
call fcn.0041eb1e
cmp eax, edi
mov dword [ebp - 4], eax
je 0x41f3d2
cmp dword [esi + 4], 6
jle 0x41f234
mov word [ebp - 0x63c], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x63a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x844]
push eax
push 0x43baa0
lea eax, [ebp - 0x63c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x844]
mov ecx, esi
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.0041ec4a
mov dword [ebp - 4], eax
xor edi, edi
cmp dword [ebp - 4], edi
je 0x41f3d2
lea eax, [esi + 0x54]
push edi
push 0x26
push eax
push edi
call ebx
push edi
lea eax, [esi + 0x25c]
push 0x24
push eax
push edi
call ebx
push edi
lea eax, [esi + 0x464]
push 0x25
push eax
push edi
call ebx
push edi
lea eax, [esi + 0x66c]
push 0x1a
push eax
push edi
call ebx
push edi
lea eax, [esi + 0x874]
push 0x10
push eax
push edi
call ebx
mov word [ebp - 0x22c], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x434]
push eax
push 0x43baa0
lea eax, [ebp - 0x22c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x22c]
push eax
call edi
cmp word [ebp + eax*2 - 0x22e], 0x5c
pop ecx
jne 0x41f2ef
lea eax, [ebp - 0x22c]
push eax
call edi
and word [ebp + eax*2 - 0x22e], 0
pop ecx
lea eax, [ebp - 0x22c]
push eax
call edi
cmp eax, 4
pop ecx
jg 0x41f368
cmp eax, 2
jne 0x41f30d
cmp word [ebp - 0x22a], 0x3a
je 0x41f349
cmp eax, 3
jne 0x41f326
cmp word [ebp - 0x22a], 0x3a
jne 0x41f368
cmp word [ebp - 0x228], 0x5c
je 0x41f349
cmp eax, 4
jne 0x41f368
cmp word [ebp - 0x22a], 0x3a
jne 0x41f368
cmp word [ebp - 0x228], 0x5c
jne 0x41f368
cmp word [ebp - 0x226], 0x5c
jne 0x41f368
mov ax, word [ebp - 0x22c]
cmp ax, 0x5a
ja 0x41f35c
cmp ax, 0x41
jae 0x41f3b1
cmp ax, 0x7a
ja 0x41f368
cmp ax, 0x61
jae 0x41f3b1
xor ecx, ecx
lea eax, [esi + 0x54]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], ecx
je 0x41f390
push dword [ebp - 0xc]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x41f3a2
xor ecx, ecx
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 0x208
cmp dword [ebp - 0x10], 0xa
jl 0x41f373
jmp 0x41f3a8
and dword [ebp - 4], 0
xor ecx, ecx
cmp dword [ebp - 4], ecx
jne 0x41f498
lea eax, [ebp - 0x434]
push eax
push 0x43baa0
push 0x103
push 0x468804
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
xor edi, edi
cmp dword [esi + 4], 6
mov dword [ebp - 4], edi
jg 0x41f60a
mov word [ebp - 0x22c], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 1
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x465a24
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41f5bc
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
jbe 0x41f5bc
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f5bc
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x22c]
push eax
call edi
lea eax, [ebp - 0x22c]
push eax
call edi
lea eax, [ebp - 0x22c]
push str.360se
push eax
lea eax, [ebp - 8]
push 0x43c530
push eax
call fcn.00409be5
add esp, 0x10
xor edi, edi
jmp 0x41f623
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
call fcn.00423bd7
add esp, 0x14
lea ebx, [esi + 0x30]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push str._d._d._d._d
push ebx
call fcn.00409be5
add esp, 0x18
cmp dword [ebp - 0x10], 5
jl 0x41f4f0
mov dword [esi + 0x14ec], 1
mov ebx, dword [ebx]
push str.5.0.7.1
push ebx
call fcn.00423c9d
pop ecx
test eax, eax
pop ecx
jge 0x41f50c
mov dword [ebp - 4], 1
jmp 0x41f518
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 - 0x434]
push eax
call ebx
lea eax, [ebp - 0x434]
push eax
call edi
cmp word [ebp + eax*2 - 0x436], 0x5c
pop ecx
jne 0x41f54f
lea eax, [ebp - 0x434]
push eax
call edi
and word [ebp + eax*2 - 0x436], 0
pop ecx
cmp dword [esi + 4], 6
jg 0x41f5ab
cmp dword [ebp - 0x24], 0
je 0x41f5ab
lea eax, [ebp - 0x434]
push eax
call ebx
and word [ebp - 0x22c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x434]
push str.360se
push eax
push 0x43c530
lea eax, [ebp - 0x22c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x22c]
jmp 0x41f5b1
lea eax, [ebp - 0x434]
push eax
push 0x43baa0
jmp 0x41f67b
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x63a]
mov word [ebp - 0x63c], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x63c]
push 0x26
push eax
push edx
call ebx
push str.360se
lea eax, [ebp - 0x63c]
push 0x463798
push eax
lea eax, [ebp - 8]
push str._s_s_s
push eax
call fcn.00409be5
add esp, 0x14
jmp 0x41f491
push str.360se_bin
lea eax, [ebp - 8]
push dword [esi + 0xc]
push 0x43c530
push eax
call fcn.00409be5
add esp, 0x10
cmp dword [0x467fd4], edi
je 0x41f687
mov ebx, 0x4683f4
mov eax, ebx
test eax, eax
je 0x41f687
cmp word [0x4683f4], di
je 0x41f687
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [eax*2 + 0x4683f2], 0x5c
pop ecx
je 0x41f665
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [eax*2 + 0x4683f2], 0x2f
pop ecx
jne 0x41f675
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov word [eax*2 + 0x4683f2], di
push ebx
push str._s360se
lea eax, [ebp - 8]
push eax
call fcn.00409be5
add esp, 0xc
mov ecx, esi
call fcn.0041e43d
mov eax, dword [ebp - 4]
lea edi, [esi + 0x4c]
mov dword [esi + 0x150c], eax
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.00404768
push edi
mov ecx, 0x4690cc
call fcn.00404768
mov ebx, str.360se
lea edi, [esi + 0x44]
push ebx
push dword [esi + 0xc]
push 0x43c530
push edi
call fcn.00409be5
push dword [edi]
call fcn.00423e0d
add esp, 0x14
lea edi, [esi + 0x3c]
push str.360se.ini
push ebx
push dword [esi + 0xc]
push str._s_s_s
push edi
call fcn.00409be5
add esp, 0x14
lea eax, [esi + 0x34]
push str.360se_s.ini
push ebx
push dword [esi + 0xc]
push str._s_s_s
push eax
call fcn.00409be5
add esp, 0x14
lea eax, [esi + 0x40]
push str.360seie6.ini
push ebx
push dword [esi + 0xc]
push str._s_s_s
push eax
call fcn.00409be5
add esp, 0x14
push dword [edi]
push 1
push str.NotJoinPrivate
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x14b8], eax
mov ax, word [0x465a24]
mov word [ebp - 0x1a8c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x1a8a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1a8c]
push 0x103
push eax
call fcn.00426066
cmp dword [esi + 4], 5
pop ecx
pop ecx
jne 0x41f784
cmp word [ebp - 0x1a8c], 0x36
jne 0x41f784
mov dword [esi + 0x151c], 1
mov ecx, esi
call fcn.0041f798
lea ecx, [ebp - 8]
call fcn.00404beb
pop edi
pop esi
pop ebx
leave
ret