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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46124e
push eax
mov eax, 0x1064
mov dword fs:[0], esp
call fcn.00447dd0
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov ebx, 1
mov dword [esp + 0x1078], ebx
call fcn.00432a90
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404340
push 0x80004005
call fcn.00402070
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
push 0x12a
lea ecx, [esp + 0x64e]
push 0
push ecx
mov byte [esp + 0x1084], 2
mov word [esp + 0x654], 0
call fcn.004475f0
mov edx, dword [esp + 0x1094]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], 0x104
call fcn.0044722f
add esp, 0x18
cmp byte [esp + 0x6c], 0x5b
je 0x4043d7
mov esi, dword [esp + 0x1080]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.004226f0
lea eax, [edi - 0x10]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x1078], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x404a81
call fcn.00402e90
mov edi, eax
mov al, 0x5d
xor esi, esi
cmp byte [esp + 0x6c], al
je 0x4043f0
add esi, ebx
cmp byte [esp + esi + 0x6c], al
jne 0x4043e8
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x268]
push eax
call fcn.00447670
lea ecx, [esp + esi + 0x79]
push ecx
lea edx, [esp + 0x464]
push 0x1f4
push edx
mov byte [esp + esi + 0x279], 0
call fcn.0044722f
add esp, 0x18
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x28]
call fcn.0041f200
lea ecx, [esp + 0x34]
mov byte [esp + 0x1078], 3
call fcn.004227a0
sub esp, 0xc
lea eax, [esp + 0x26c]
mov ecx, esp
mov dword [esp + 0x28], esp
mov ebx, 4
push eax
mov byte [esp + 0x1088], bl
call fcn.004226f0
call fcn.00421c20
add esp, 0xc
cmp eax, 8
ja case.default.0x40447a
jmp dword [eax*4 + 0x404abc]
push 0x118
lea ecx, [esp + 0xe80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.C:Program_Files
lea edx, [esp + 0x264]
push 0x1f4
push edx
call fcn.0044722f
mov al, byte [esp + 0xe88]
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x7c]
push 0x1f4
push edx
mov byte [esp + 0x278], al
call fcn.0044722f
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x88]
push 0x1f4
push ecx
call fcn.00447294
add esp, 0x24
jmp case.default.0x40447a
mov ecx, 0x4934f4
call fcn.00422380
cmp eax, 3
je 0x40451c
mov edx, dword [0x4934f8]
push edx
lea eax, [esp + 0x70]
push 0x1f4
push eax
call fcn.0044722f
add esp, 0xc
jmp 0x40455a
mov ecx, 0x4934f4
call fcn.00422380
sub eax, 1
push eax
push 1
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x4934f4
call fcn.00422930
mov eax, dword [eax + 4]
push eax
lea edx, [esp + 0x70]
push 0x1f4
push edx
call fcn.0044722f
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.00422390
lea eax, [esp + 0x454]
push eax
lea ecx, [esp + 0x70]
push 0x1f4
push ecx
call fcn.00447294
lea eax, [esp + 0x78]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x404580
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404580
sub eax, edx
cmp eax, 3
jae case.default.0x40447a
push 0x469a68
lea edx, [esp + 0x70]
push 0x1f4
push edx
call fcn.00447294
add esp, 0xc
jmp case.default.0x40447a
lea eax, [esp + 0x454]
push eax
lea ecx, [esp + 0x70]
push 0x1f4
push ecx
call fcn.0044722f
add esp, 0xc
jmp case.default.0x40447a
push 0x118
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x70]
push 0x1f4
push ecx
call fcn.0044722f
lea edx, [esp + 0x460]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.00447294
add esp, 0x18
jmp case.default.0x40447a
push 0x118
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0x70]
push 0x1f4
push eax
call fcn.0044722f
lea ecx, [esp + 0x460]
push ecx
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.00447294
add esp, 0x18
jmp case.default.0x40447a
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x4046bb
lea ecx, [esp + 0x6c]
push ecx
mov esi, dword [esp + 0x1084]
mov ecx, esi
call fcn.004226f0
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], 1
mov byte [esp + 0x1078], 3
call fcn.00422390
lea ecx, [esp + 0x24]
mov byte [esp + 0x1078], 2
call fcn.0041f220
lea ecx, [esp + 0xc]
call fcn.00402570
jmp 0x404a8d
lea edx, [esp + 0x18]
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x404702
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x260]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40470c
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x6c]
push eax
jmp 0x404675
lea ecx, [esp + 0x260]
push ecx
lea edx, [esp + 0x70]
push 0x1f4
push edx
call fcn.0044722f
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.00447294
add esp, 0x18
jmp case.default.0x40447a
lea edx, [esp + 0x260]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x260]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404760
sub eax, edx
cmp byte [esp + eax + 0x25f], 0x5c
jne 0x4045e2
lea eax, [esp + 0x260]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404783
sub eax, edx
mov byte [esp + eax + 0x25f], cl
jmp 0x4045e2
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x64c]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0
push str.Common_Programs
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x648]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404260
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x107c], 5
call fcn.004028b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1078], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40482f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x70]
push 0x1f4
push edx
call fcn.0044722f
add esp, 0xc
push 0x118
lea eax, [esp + 0x96c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Start_MenuPrograms
lea ecx, [esp + 0x96c]
push 0x12c
push ecx
call fcn.00447294
add esp, 0xc
cmp edi, 3
je 0x40487c
cmp edi, ebx
jne 0x404896
lea edx, [esp + 0x968]
push edx
lea eax, [esp + 0x70]
push 0x1f4
push eax
call fcn.0044722f
add esp, 0xc
lea ecx, [esp + 0x454]
push ecx
jmp 0x404599
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x28]
call fcn.0041ee80
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x469cd8
call fcn.00422640
lea ecx, [esp + 0x34]
call fcn.0041f240
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.Common_Startup
call fcn.00422640
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x34]
call fcn.0041f740
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x107c], 6
call fcn.00422610
lea ecx, [esp + 0x60]
mov byte [esp + 0x1078], bl
call fcn.00422390
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x778]
push 0x1f4
push edx
call fcn.0044722f
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.0041ef90
lea eax, [esp + 0x774]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404940
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0x774], cl
je 0x40496c
jmp 0x404960
sub eax, 1
cmp byte [esp + eax + 0x774], cl
jne 0x404960
add eax, 1
lea edx, [esp + eax + 0x774]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x404993
mov edi, edi
add edx, 1
mov byte [esp + ecx + 0xc88], al
mov al, byte [edx]
add ecx, 1
test al, al
jne 0x404980
push str._Start_Menu__
lea eax, [esp + 0xa98]
push 0x1f4
push eax
mov byte [esp + ecx + 0xc94], 0
call fcn.0044722f
lea ecx, [esp + 0xc94]
push ecx
lea edx, [esp + 0xaa4]
push 0x1f4
push edx
call fcn.00447294
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0xab0]
push 0x1f4
push ecx
call fcn.00447294
add esp, 0x18
lea edx, [esp + 0xaa0]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.004226f0
lea eax, [esp + 0x60]
push eax
call fcn.004042f0
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x80]
push 0x1f4
push ecx
call fcn.0044722f
add esp, 0x1c
lea ecx, [esp + 0x54]
call fcn.00422390
mov esi, dword [esp + 0x1080]
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.004226f0
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], 1
mov byte [esp + 0x1078], 3
call fcn.00422390
lea ecx, [esp + 0x24]
mov byte [esp + 0x1078], 2
call fcn.0041f220
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x1078], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404a8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1084]
mov byte [esp + 0x1078], 0
call fcn.00422390
mov ecx, dword [esp + 0x1070]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1070
ret