Function at 0x41a1c0
Capabilities:
Get common file path
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4893d6
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x4a9150]
xor eax, esp
mov dword [esp + 0x62c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9150]
xor eax, esp
push eax
lea eax, [esp + 0x644]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x658]
mov esi, dword [esp + 0x654]
push 0x206
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x2e]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x30], ebx
mov word [esp + 0x34], ax
call fcn.0043f2b0
push 0x206
lea eax, [esp + 0x242]
xor edx, edx
push ebp
push eax
mov word [esp + 0x248], dx
call fcn.0043f2b0
push 0x25
push esi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x38], 0x208
call fcn.0043f66b
add esp, 0x20
test eax, eax
jne 0x41a29d
cmp esi, ebp
jne 0x41a276
push eax
push esi
mov ecx, ebx
call fcn.0040d8e0
jmp 0x41a739
mov eax, esi
lea edx, [eax + 2]
jmp 0x41a280
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x41a280
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, ebx
call fcn.0040d8e0
jmp 0x41a739
push 9
push str._install_
push esi
call fcn.004401c4
add esp, 0xc
test eax, eax
jne 0x41a309
add esi, 0x12
push esi
add edi, 8
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00419880
add esp, 0xc
push eax
mov ecx, ebx
mov dword [esp + 0x650], ebp
call fcn.00410770
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x64c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a739
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41a739
push 8
push str._360safe
push esi
call fcn.004401c4
add esp, 0xc
test eax, eax
jne 0x41a3ca
push 0x25
push esi
call fcn.004408a5
push 0x103
lea ecx, [esp + 0x23c]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
push ecx
mov edi, eax
call fcn.00440443
mov edx, edi
sub edx, esi
sar edx, 1
dec edx
push edx
add esi, 2
lea eax, [esp + 0x248]
push esi
push eax
call fcn.0044026a
add esp, 0x20
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebp
lea edx, [esp + 0x23c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a495
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push 0x48ce28
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.0040e0f0
add edi, 2
push edi
mov ecx, ebx
jmp 0x41a734
push 8
push str._Common
push esi
call fcn.004401c4
add esp, 0xc
test eax, eax
je 0x41a596
push 6
push str._User
push esi
call fcn.004401c4
add esp, 0xc
test eax, eax
je 0x41a596
push 7
push str._Group_
push esi
call fcn.004401c4
add esp, 0xc
test eax, eax
jne 0x41a49c
lea eax, [esp + 0x14]
push eax
push 0x17
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebp
jne 0x41a495
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x41a48a
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call fcn.0040e0f0
add edi, 0x28
push edi
lea ecx, [esp + 0x28]
push 0x48c7b4
push ecx
call fcn.00419aa0
add esp, 0xc
push eax
mov ecx, ebx
mov dword [esp + 0x650], 1
call fcn.00415100
lea ecx, [esp + 0x24]
call fcn.0040d560
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x41a739
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x41a73b
push 0xb
push str._SMPROGRAMS
push esi
call fcn.004401c4
add esp, 0xc
test eax, eax
jne 0x41a55d
push 0x25
push esi
call fcn.004408a5
mov edi, eax
mov ecx, 0x25
sub cx, word [esi + 0x16]
add esp, 8
movzx eax, cx
neg eax
sbb eax, eax
and eax, 0xffffffeb
lea edx, [esp + 0x20]
push edx
add eax, 0x17
push eax
push ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41a556
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x41a54b
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x41a507
sub eax, edx
sar eax, 1
mov edx, 0x104
sub edx, eax
push edx
add edi, 2
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.0044026a
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.0040e0f0
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x41a739
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x41a73b
push 0x104
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 0x18], eax
cmp eax, ebp
je 0x41a495
cmp word [esp + 0x28], bp
je 0x41a495
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
call fcn.0040e0f0
jmp 0x41a739
push 0x25
push esi
xor bl, bl
call fcn.004408a5
mov ebp, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x44a]
push ecx
mov word [esp + 0x44c], ax
call fcn.0043f2b0
push 6
push str._User
push esi
call fcn.004401c4
mov edi, ebp
sub edi, esi
add esp, 0x20
sar edi, 1
lea edx, [esp + 0x230]
test eax, eax
jne 0x41a61f
sub edi, 6
push edi
add esi, 0xc
push esi
push edx
mov bl, 1
call fcn.00440443
push 7
lea eax, [esp + 0x448]
push str.Common
push eax
call fcn.00440443
push edi
lea ecx, [esp + 0x24c]
push ecx
lea edx, [esp + 0x458]
push edx
call fcn.0044026a
add esp, 0x24
jmp 0x41a645
lea eax, [edi - 1]
push eax
lea ecx, [esi + 2]
push ecx
push edx
call fcn.00440443
add edi, 0xfffffff8
push edi
add esi, 0x10
lea eax, [esp + 0x448]
push esi
push eax
call fcn.00440443
add esp, 0x18
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
test bl, bl
lea ecx, [esp + 0x14]
push ecx
sete dl
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [esp + 0x24], 0
add edx, 0x80000001
push edx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a6a9
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x240]
push eax
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ax, word [esp + 0x28]
jne 0x41a71e
xor edx, edx
test bl, bl
lea ecx, [esp + 0x14]
push ecx
setne dl
push 0x20019
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
add edx, 0x80000001
push edx
call esi
test eax, eax
jne 0x41a711
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x448]
push eax
push ecx
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0x208
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ax, word [esp + 0x28]
je 0x41a495
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.0040e0f0
add ebp, 2
push ebp
mov ecx, esi
call fcn.00415120
mov al, 1
mov ecx, dword [esp + 0x644]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x62c]
xor ecx, esp
call fcn.0043f097
add esp, 0x63c
ret 8