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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x43b50c]
and word [ebp - 0x228], 0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push 0x103
push eax
mov ecx, esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x104
call fcn.00412a8d
test eax, eax
mov ebx, str._s_s_s
je 0x412d56
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004214b4
add esp, 0x14
lea edi, [esi + 0x20]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push str._d._d._d._d
push edi
call fcn.00409818
mov edi, dword [edi]
push str.4.1.6.6
push edi
call fcn.0042157a
add esp, 0x20
test eax, eax
jge 0x412c12
mov dword [ebp - 8], 1
jmp 0x412c1e
xor ecx, ecx
test eax, eax
setne cl
inc ecx
inc ecx
mov dword [ebp - 8], ecx
and word [ebp - 0x430], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
push 0x43bb18
lea eax, [ebp - 0x430]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add esp, 0x10
lea eax, [ebp - 0x430]
push eax
call edi
lea eax, [ebp - 0x228]
push eax
call edi
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x228]
push eax
call edi
cmp word [ebp + eax*2 - 0x22a], 0x5c
pop ecx
jne 0x412c9e
lea eax, [ebp - 0x228]
push eax
call edi
and word [ebp + eax*2 - 0x22a], 0
pop ecx
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 4]
push 0x43bb18
push eax
call fcn.00409818
mov eax, dword [esi + 4]
add esp, 0xc
cmp dword [eax + 4], 6
jle 0x412e92
and word [ebp - 0x638], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x636]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0x638]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.360se3
lea eax, [ebp - 0x638]
push 0x43e768
push eax
push ebx
mov edi, 0x4461c4
push 0x103
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x430]
push edi
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x20
test eax, eax
jne 0x412e92
mov dword [0x4463cc], 1
mov eax, dword [esi + 4]
push str.360se_bin
push dword [eax + 0x18]
lea eax, [ebp - 4]
push 0x43cb6c
push eax
call fcn.00409818
add esp, 0x10
jmp 0x412e92
mov eax, dword [esi + 4]
and dword [ebp - 8], 0
cmp dword [eax + 4], 6
jg 0x412e2e
and word [ebp - 0x430], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x14]
push eax
push str.Path
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x412de3
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
jbe 0x412de3
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x430]
push str.360se3
push eax
jmp 0x412e36
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x636]
mov word [ebp - 0x638], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x638]
push 0x26
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.360se3
lea eax, [ebp - 0x638]
push 0x43e768
push eax
lea eax, [ebp - 4]
push ebx
push eax
call fcn.00409818
add esp, 0x14
jmp 0x412e47
push str.360se_bin
push dword [eax + 0x18]
lea eax, [ebp - 4]
push 0x43cb6c
push eax
call fcn.00409818
add esp, 0x10
mov edi, 0x445fbc
mov eax, edi
test eax, eax
je 0x412e92
cmp word [0x445fbc], 0
je 0x412e92
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [eax*2 + 0x445fba], 0x5c
pop ecx
jne 0x412e80
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
and word [eax*2 + 0x445fba], 0
pop ecx
push edi
lea eax, [ebp - 4]
push 0x43bb18
push eax
call fcn.00409818
add esp, 0xc
mov ecx, esi
call fcn.00418b9a
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 8]
mov dword [ecx + 8], eax
push dword [ebp - 4]
mov ecx, dword [esi + 4]
mov dword [esi + 0xa8], eax
call fcn.0041aa9a
mov ecx, dword [esi + 4]
mov edi, str.360se
push edi
lea eax, [esi + 0x30]
push dword [ecx + 0x18]
push 0x43cb6c
push eax
call fcn.00409818
push dword [esi + 0x30]
call fcn.004216ea
mov ecx, dword [esi + 4]
add esp, 0x14
lea eax, [esi + 0x28]
push 0x43e6d4
push edi
push dword [ecx + 0x18]
push ebx
push eax
call fcn.00409818
mov eax, dword [esi + 4]
add esp, 0x14
push str.360se_s.ini
push edi
push dword [eax + 0x18]
lea eax, [esi + 0x24]
push ebx
push eax
call fcn.00409818
mov eax, dword [esi + 4]
add esp, 0x14
push str.360seie6.ini
push edi
push dword [eax + 0x18]
lea eax, [esi + 0x2c]
push ebx
push eax
call fcn.00409818
add esp, 0x14
mov ecx, esi
push dword [esi + 0x28]
call fcn.00412a41
push dword [esi + 0x28]
push 1
push str.NotJoinPrivate
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, esi
mov dword [esi + 0x50], eax
call fcn.00418c2e
lea ecx, [ebp - 4]
call fcn.00404c0d
pop edi
pop esi
pop ebx
leave
ret