Function at 0x41e510
Capabilities:
Get common file path
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47e437
mov eax, dword fs:[0]
push eax
mov eax, 0x143c
call fcn.00462620
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x1438], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x1450]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1460]
mov ebx, dword [esp + 0x1464]
mov edi, ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x28], edi
test ecx, ecx
je 0x41e907
call fcn.0043f760
mov esi, eax
test esi, esi
je 0x41e907
mov eax, dword [0x4a1014]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x145c], 0
call fcn.00440930
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1046]
push eax
mov word [esp + 0x1048], dx
call fcn.00461880
push 0x800
lea ecx, [esp + 0x4c]
push 0
push ecx
call fcn.00461880
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0x18
push 1
push 0x1a
lea edx, [esp + 0x1044]
push edx
push 0
call edi
push 0x486d44
lea eax, [esp + 0x1040]
push eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x800
lea edx, [esp + 0x840]
push 0
push edx
call fcn.00461880
add esp, 0xc
push 1
push 0x1a
lea eax, [esp + 0x1044]
push eax
push 0
call edi
push str.360Notify
lea ecx, [esp + 0x1040]
push ecx
lea edx, [esp + 0x844]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esp + 0x18]
push eax
push str.ExitAllProgram_Start__Dir___s_n
call fcn.0041b730
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
add esp, 8
push ebx
push ebp
push esi
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 8]
mov edi, 4
cmp eax, edi
jle 0x41e797
mov eax, dword [esi]
push ebx
push ebp
push ecx
mov ecx, dword [eax + 0x14]
push esi
call ecx
mov edx, dword [esi]
mov ecx, dword [edx + 0x14]
push ebx
push ebp
lea eax, [esp + 0x44]
push eax
push esi
call ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push ecx
push str.appinstallcount
push str.SOFTWARE360desktop
push SysReAllocString
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41e797
cmp dword [esp + 0x20], eax
jbe 0x41e797
mov edx, dword [0x4a1014]
mov dword [esp + 0x14], edx
inc eax
push eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x18]
push str.appinstall_d
push eax
mov byte [esp + 0x1464], 1
call fcn.0041dfb0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x125a]
push edx
mov word [esp + 0x125c], cx
call fcn.00461880
mov edi, dword [esp + 0x2c]
add esp, 0x18
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1248]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
push str.SOFTWARE360desktop
push SysReAllocString
mov dword [esp + 0x50], 1
mov dword [esp + 0x3c], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ebx
push ebp
lea ecx, [esp + 0x124c]
push ecx
push esi
call edx
lea eax, [edi - 0xc]
mov byte [esp + 0x1458], 0
cmp eax, dword [0x4a1010]
je 0x41e789
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41e789
push edi
call fcn.00461ef0
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x20]
jb 0x41e6cf
call fcn.0041b8b0
push str.Bin360DesktopSwitch.exe
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0041dfe0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
mov bl, 2
mov byte [esp + 0x1458], bl
test ecx, ecx
je 0x41e83c
call fcn.0043f6d0
test eax, eax
je 0x41e83c
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push eax
call edx
test eax, eax
je 0x41e83c
push str.Bin360DesktopSwitch64.exe
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov edi, 1
call fcn.0041dfe0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x145c], 3
call fcn.0041ca20
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
mov byte [esp + 0x1458], bl
cmp edx, dword [0x4a1010]
je 0x41e83e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x41e844
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00461ef0
add esp, 4
jmp 0x41e844
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
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 + 0x14], eax
push str._unloaddtswitcher
lea ecx, [esp + 0x18]
mov byte [esp + 0x145c], 4
call fcn.0041ca80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x78]
push 1
xor edx, edx
push 0x1388
test edi, edi
mov edi, dword [esp + 0x1c]
push 0
sete dl
push 1
push edx
push 5
push edi
push eax
push esi
call ecx
lea edx, [edi - 0xc]
cmp edx, dword [0x4a1010]
je 0x41e8b5
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x41e8b5
push esi
call fcn.00461ef0
add esp, 4
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4a1010]
je 0x41e8de
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x41e8de
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 0x41e907
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x41e907
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00461ef0
add esp, 4
mov ecx, dword [esp + 0x1450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1438]
xor ecx, esp
call fcn.00461862
add esp, 0x1448
ret 8