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

Disassembly:
push 0xffffffffffffffff
push 0x480e07
mov eax, dword fs:[0]
push eax
mov eax, 0x143c
call fcn.00462bf0
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x1438], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a60f8]
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 0x41dd41
call fcn.0043ec90
mov esi, eax
test esi, esi
je 0x41dd41
mov eax, dword [0x4a4014]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x145c], 0
call fcn.0043fd40
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1046]
push eax
mov word [esp + 0x1048], dx
call fcn.00461950
push 0x800
lea ecx, [esp + 0x4c]
push 0
push ecx
call fcn.00461950
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 0x489d9c
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.00461950
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.0041aa30
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 0x41db97
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 + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
push str.appinstallcount
push str.SOFTWARE360desktop
push SysReAllocString
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41db97
cmp dword [esp + 0x1c], eax
jbe 0x41db97
mov edx, dword [0x4a4014]
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.0041d3c0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x125a]
push edx
mov word [esp + 0x125c], cx
call fcn.00461950
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 [0x4a4010]
je 0x41db89
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41db89
push edi
call fcn.00462471
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x1c]
jb 0x41dacf
call fcn.0041abe0
push str.Bin360DesktopSwitch.exe
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0041d3e0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
mov bl, 2
mov byte [esp + 0x1458], bl
test ecx, ecx
je 0x41dd6b
call fcn.0043ec40
test eax, eax
je 0x41dd6b
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push eax
call edx
test eax, eax
je 0x41dd6b
push str.Bin360DesktopSwitch64.exe
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x28], 1
call fcn.0041d3e0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x145c], 3
call fcn.0041be30
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
mov byte [esp + 0x1458], bl
cmp edx, dword [0x4a4010]
je 0x41dc47
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41dc47
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00462471
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
push esi
call edx
mov eax, dword [0x4a4014]
mov dword [esp + 0x14], eax
push str._unloaddtswitcher
mov byte [esp + 0x145c], 4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push ebx
lea ecx, [esp + 0x18]
call fcn.0041b970
mov edi, dword [esp + 0x14]
test eax, eax
je 0x41dca6
lea ebp, [ebx + ebx]
lea ecx, [ebp + 2]
cmp ecx, ebp
jb 0x41dc9d
push ebp
push str._unloaddtswitcher
push edi
call fcn.00461ec0
add esp, 0xc
xor edx, edx
mov dword [edi - 8], ebx
mov word [edi + ebp], dx
mov edx, dword [esp + 0x20]
mov eax, dword [esi]
mov eax, dword [eax + 0x78]
push 1
xor ecx, ecx
cmp dword [esp + 0x20], ecx
push 0x1388
push 0
sete cl
push 1
push ecx
push 5
push edi
push edx
push esi
call eax
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [edi - 0xc]
cmp ecx, dword [0x4a4010]
je 0x41dcef
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x41dcef
push edi
call fcn.00462471
add esp, 4
mov eax, dword [esp + 0x20]
lea edx, [eax - 0xc]
cmp edx, dword [0x4a4010]
je 0x41dd18
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41dd18
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00462471
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4a4010]
je 0x41dd41
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41dd41
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00462471
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.00461932
add esp, 0x1448
ret 8
mov dword [esp + 0x1c], 0
jmp 0x41dc47