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

Disassembly:
push 0xffffffffffffffff
push 0x460661
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.004474c0
mov eax, dword [0x486904]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push esi
push edi
mov eax, dword [0x486904]
xor eax, esp
push eax
lea eax, [esp + 0x107c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x108c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov ebx, 1
mov dword [esp + 0x1084], ebx
call fcn.004314b2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404657
push 0x80004005
call fcn.00401100
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x12a
lea ecx, [esp + 0x656]
push 0
push ecx
mov byte [esp + 0x1090], 2
mov word [esp + 0x65c], 0
call fcn.00446ce0
mov edx, dword [esp + 0x10a0]
push edx
lea eax, [esp + 0x84]
push 0x1f4
push eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], 0x104
call fcn.00446925
add esp, 0x18
cmp byte [esp + 0x74], 0x5b
je 0x40470c
lea ecx, [esp + 0x74]
push ecx
mov ecx, edi
call fcn.00421590
lea eax, [esi - 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x1084], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4046f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1090]
mov byte [esp + 0x1084], 0
call fcn.004212c0
mov eax, edi
jmp 0x404de0
call fcn.00402ff0
mov edi, eax
mov al, 0x5d
xor esi, esi
cmp byte [esp + 0x74], al
je 0x404728
lea ecx, [ecx]
add esi, ebx
cmp byte [esp + esi + 0x74], al
jne 0x404720
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x270]
push eax
call fcn.00446d60
lea ecx, [esp + esi + 0x81]
push ecx
lea edx, [esp + 0x46c]
push 0x1f4
push edx
mov byte [esp + esi + 0x281], 0
call fcn.00446925
add esp, 0x18
push 0x80000002
lea ecx, [esp + 0x34]
call fcn.0041e6f0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1084], 3
call fcn.00421640
sub esp, 0xc
lea eax, [esp + 0x274]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov ebx, 4
push eax
mov byte [esp + 0x1094], bl
call fcn.00421590
call fcn.00420b60
add esp, 0xc
cmp eax, 8
ja case.default.0x4047b5
jmp dword [eax*4 + 0x404e08]
push 0x118
lea ecx, [esp + 0xe88]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.C:Program_Files
lea edx, [esp + 0x26c]
push 0x1f4
push edx
call fcn.00446925
mov al, byte [esp + 0xe90]
lea ecx, [esp + 0x274]
push ecx
lea edx, [esp + 0x84]
push 0x1f4
push edx
mov byte [esp + 0x280], al
call fcn.00446925
lea eax, [esp + 0x474]
push eax
lea ecx, [esp + 0x90]
push 0x1f4
push ecx
call fcn.0044698a
add esp, 0x24
jmp case.default.0x4047b5
mov ecx, 0x49351c
call fcn.004212b0
cmp eax, 3
je 0x40485a
mov edx, dword [0x493520]
push edx
lea eax, [esp + 0x78]
push 0x1f4
push eax
call fcn.00446925
add esp, 0xc
jmp 0x404898
mov ecx, 0x49351c
call fcn.004212b0
sub eax, 1
push eax
push 1
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x49351c
call fcn.004217b0
mov eax, dword [eax + 4]
push eax
lea edx, [esp + 0x78]
push 0x1f4
push edx
call fcn.00446925
add esp, 0xc
lea ecx, [esp + 0x68]
call fcn.004212c0
lea eax, [esp + 0x45c]
push eax
lea ecx, [esp + 0x78]
push 0x1f4
push ecx
call fcn.0044698a
lea eax, [esp + 0x80]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4048c0
sub eax, edx
cmp eax, 3
jae case.default.0x4047b5
push 0x469904
lea edx, [esp + 0x78]
push 0x1f4
push edx
call fcn.0044698a
add esp, 0xc
jmp case.default.0x4047b5
lea eax, [esp + 0x45c]
push eax
lea ecx, [esp + 0x78]
push 0x1f4
push ecx
call fcn.00446925
add esp, 0xc
jmp case.default.0x4047b5
push 0x118
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x78]
push 0x1f4
push ecx
call fcn.00446925
lea edx, [esp + 0x468]
push edx
lea eax, [esp + 0x84]
push 0x1f4
push eax
call fcn.0044698a
add esp, 0x18
jmp case.default.0x4047b5
push 0x118
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x78]
push 0x1f4
push eax
call fcn.00446925
lea ecx, [esp + 0x468]
push ecx
lea edx, [esp + 0x84]
push 0x1f4
push edx
call fcn.0044698a
add esp, 0x18
jmp case.default.0x4047b5
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x4049fe
lea ecx, [esp + 0x74]
push ecx
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00421590
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], 1
mov byte [esp + 0x1084], 3
call fcn.004212c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1084], 2
call fcn.0041e710
lea ecx, [esp + 0x10]
call fcn.004018d0
jmp 0x404dca
lea edx, [esp + 0x24]
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x404a45
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x268]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x404a4f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x74]
push eax
jmp 0x4049bb
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x78]
push 0x1f4
push edx
call fcn.00446925
lea eax, [esp + 0x468]
push eax
lea ecx, [esp + 0x84]
push 0x1f4
push ecx
call fcn.0044698a
add esp, 0x18
jmp case.default.0x4047b5
lea edx, [esp + 0x268]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x268]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404aa5
sub eax, edx
cmp byte [esp + eax + 0x267], 0x5c
jne 0x404922
lea eax, [esp + 0x268]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404ac8
sub eax, edx
mov byte [esp + eax + 0x267], cl
jmp 0x404922
lea ecx, [esp + 0x2c]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x654]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
push str.Common_Programs
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x650]
push ecx
lea ecx, [esp + 0x24]
call fcn.00404540
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1088], 5
call fcn.00401e40
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1084], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404b74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x78]
push 0x1f4
push edx
call fcn.00446925
add esp, 0xc
push 0x118
lea eax, [esp + 0x780]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Start_MenuPrograms
lea ecx, [esp + 0x780]
push 0x12c
push ecx
call fcn.0044698a
add esp, 0xc
cmp edi, 3
je 0x404bc1
cmp edi, ebx
jne 0x404bdb
lea edx, [esp + 0x77c]
push edx
lea eax, [esp + 0x78]
push 0x1f4
push eax
call fcn.00446925
add esp, 0xc
lea ecx, [esp + 0x45c]
push ecx
jmp 0x4048d9
push 0x80000002
lea ecx, [esp + 0x34]
call fcn.0041e3a0
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x469d50
call fcn.004214e0
lea ecx, [esp + 0x40]
call fcn.0041e730
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Common_Startup
call fcn.004214e0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x40]
call fcn.0041ec90
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x1088], 6
call fcn.004214b0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1084], bl
call fcn.004212c0
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x8ac]
push 0x1f4
push edx
call fcn.00446925
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.0041e4b0
lea eax, [esp + 0x8a8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404c84
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0x8a8], cl
je 0x404cac
lea ebx, [ebx]
sub eax, 1
cmp byte [esp + eax + 0x8a8], cl
jne 0x404ca0
add eax, 1
lea edx, [esp + eax + 0x8a8]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x404cd3
mov edi, edi
add edx, 1
mov byte [esp + ecx + 0xc90], al
mov al, byte [edx]
add ecx, 1
test al, al
jne 0x404cc0
push str._Start_Menu__
lea eax, [esp + 0xaa0]
push 0x1f4
push eax
mov byte [esp + ecx + 0xc9c], 0
call fcn.00446925
lea ecx, [esp + 0xc9c]
push ecx
lea edx, [esp + 0xaac]
push 0x1f4
push edx
call fcn.0044698a
lea eax, [esp + 0x474]
push eax
lea ecx, [esp + 0xab8]
push 0x1f4
push ecx
call fcn.0044698a
add esp, 0x18
lea edx, [esp + 0xaa8]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00421590
lea eax, [esp + 0x5c]
push eax
call fcn.004045e0
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x88]
push 0x1f4
push ecx
call fcn.00446925
add esp, 0x1c
lea ecx, [esp + 0x50]
call fcn.004212c0
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x74]
push edx
mov ecx, esi
call fcn.00421590
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], 1
mov byte [esp + 0x1084], 3
call fcn.004212c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1084], 2
call fcn.0041e710
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x1084], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404dca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1090]
mov byte [esp + 0x1084], 0
call fcn.004212c0
mov eax, esi
mov ecx, dword [esp + 0x107c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.00445fb9
add esp, 0x1078
ret