Function at 0x41fb90
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47e6d3
mov eax, dword fs:[0]
push eax
mov eax, 0x1a30
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x1a2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x1a44]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x1a54]
mov eax, dword [0x4a1014]
mov esi, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x1a50], 0
call fcn.00440930
push str.Bin360DesktopSwitch.exe
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0041dfe0
mov ecx, dword [esi + 8]
mov byte [esp + 0x1a4c], 1
test ecx, ecx
je 0x41fd02
call fcn.0043f6d0
test eax, eax
je 0x41fd02
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push eax
call edx
test eax, eax
je 0x41fd02
push str.Bin360DesktopSwitch64.exe
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov edi, 1
call fcn.0041dfe0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a50], 2
call fcn.0041ca20
mov eax, dword [esp + 0x24]
lea edx, [eax - 0xc]
mov byte [esp + 0x1a4c], 1
cmp edx, dword [0x4a1010]
je 0x41fca1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41fca1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00461ef0
add esp, 4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41fcb3
call fcn.0043f760
mov esi, eax
test esi, esi
jne 0x41fd06
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4a1010]
je 0x41fce0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41fce0
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00461ef0
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4a1010]
je 0x420105
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x4200f1
xor edi, edi
jmp 0x41fca1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
push esi
call edx
mov eax, dword [0x4a1014]
mov dword [esp + 0x24], eax
push str._unloaddtswitcher
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a50], 3
call fcn.0041ca80
mov eax, dword [esp + 0x24]
mov ecx, dword [esi]
push 1
xor edx, edx
push 0x1388
push 0
test edi, edi
sete dl
push 1
push edx
mov edx, dword [esp + 0x30]
push 5
push eax
mov eax, dword [ecx + 0x78]
push edx
push esi
call eax
push str.BinSetupUtilDT.exe
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.0041dfe0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 0
push 1
push 1
push 0
push str._UninstFromSP
push ecx
push esi
mov byte [esp + 0x1a68], 4
call edx
mov ebp, dword [esp + 0x1a58]
test ebp, ebp
je 0x41fda8
mov eax, dword [esp + 0x18]
push eax
mov ecx, ebx
call fcn.00447180
jmp 0x41fdb5
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00445390
add esp, 4
push 0x800
lea edx, [esp + 0x103c]
push 0
push edx
call fcn.00461880
push 0x800
lea eax, [esp + 0x48]
push 0
push eax
call fcn.00461880
add esp, 0x18
push 1
push 0x1a
lea ecx, [esp + 0x1040]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.360Notify
lea edx, [esp + 0x103c]
push edx
lea eax, [esp + 0x40]
push eax
call ebx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041deb0
push str.Bin360seNotify.exe
push str.Bin360seNotify.exe
mov byte [esp + 0x1a54], 5
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x38]
call fcn.0041bff0
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x34]
push eax
push 1
push 1
push 0
push str._Uninstall:360Desktop
mov dword [esp + 0x48], 0xffffffff
mov edx, dword [esi]
mov ecx, dword [edx + 0x24]
push edi
push esi
call ecx
test eax, eax
je 0x41ff36
cmp dword [esp + 0x34], 0
jne 0x41ff36
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push edi
push esi
call eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call fcn.0041deb0
push str.Bin360weibo.exe
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a50], 6
call fcn.0041c3a0
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
mov ecx, dword [edx + 0x10]
push eax
push esi
call ecx
cmp dword [0x4a6450], 0
lea edx, [esp + 0x38]
lea ecx, [esp + 0x14]
push edx
jne 0x41feee
call fcn.0041deb0
push str.Bin
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a50], 7
call fcn.0041c3a0
test ebp, ebp
je 0x41ff0f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push eax
call fcn.00447180
jmp 0x41ff1c
call fcn.0041deb0
mov byte [esp + 0x1a4c], 8
test ebp, ebp
je 0x41ff0f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push eax
call fcn.00447180
jmp 0x41ff1c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00445390
add esp, 4
lea ecx, [esp + 0x14]
call fcn.0041c130
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a4c], 5
call fcn.0041c130
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1842]
push eax
mov word [esp + 0x1844], dx
call fcn.00461880
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x183c]
push edx
lea eax, [esp + 0x1c]
push eax
push str.PathSub
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360GameBox.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x2c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42003c
cmp dword [esp + 0x28], eax
jbe 0x42003c
push 0x800
push eax
lea ecx, [esp + 0x840]
push ecx
call fcn.00461880
add esp, 0xc
push str.Uninstall.exe
lea edx, [esp + 0x183c]
push edx
lea eax, [esp + 0x840]
push eax
call ebx
lea ecx, [esp + 0x838]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42003c
cmp dword [0x4a6450], 0
mov dword [esp + 0x20], 0
je 0x42001c
mov edx, dword [esi]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push str._S__delconf__zm
lea ecx, [esp + 0x84c]
push ecx
push esi
call edx
jmp 0x42003c
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push str._S__zm
lea edx, [esp + 0x84c]
push edx
push esi
call eax
lea ecx, [edi - 0xc]
cmp ecx, dword [0x4a1010]
je 0x420062
lea esi, [edi - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call edi
test eax, eax
jg 0x420068
push esi
call fcn.00461ef0
add esp, 4
jmp 0x420068
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x2c]
lea edx, [eax - 0xc]
cmp edx, dword [0x4a1010]
je 0x420091
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x420091
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff4
push eax
call fcn.00461ef0
add esp, 4
mov esi, dword [esp + 0x24]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x4a1010]
je 0x4200b3
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x4200b3
push esi
call fcn.00461ef0
add esp, 4
mov eax, dword [esp + 0x1c]
lea edx, [eax - 0xc]
cmp edx, dword [0x4a1010]
je 0x4200dc
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4200dc
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00461ef0
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4a1010]
je 0x420105
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x420105
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00461ef0
add esp, 4
mov ecx, dword [esp + 0x1a44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a2c]
xor ecx, esp
call fcn.00461862
add esp, 0x1a3c
ret 8