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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x460a5e
push eax
mov eax, 0x1064
mov dword fs:[0], esp
call fcn.004475e0
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov ebx, 1
mov dword [esp + 0x1078], ebx
call fcn.0043229d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404350
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.00446e00
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.00446a3e
add esp, 0x18
cmp byte [esp + 0x6c], 0x5b
je 0x4043e7
mov esi, dword [esp + 0x1080]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.00421f00
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 0x404a91
call fcn.00402ea0
mov edi, eax
mov al, 0x5d
xor esi, esi
cmp byte [esp + 0x6c], al
je 0x404400
add esi, ebx
cmp byte [esp + esi + 0x6c], al
jne 0x4043f8
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x268]
push eax
call fcn.00446e80
lea ecx, [esp + esi + 0x79]
push ecx
lea edx, [esp + 0x464]
push 0x1f4
push edx
mov byte [esp + esi + 0x279], 0
call fcn.00446a3e
add esp, 0x18
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x28]
call fcn.0041ea10
lea ecx, [esp + 0x34]
mov byte [esp + 0x1078], 3
call fcn.00421fb0
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.00421f00
call fcn.00421430
add esp, 0xc
cmp eax, 8
ja case.default.0x40448a
jmp dword [eax*4 + 0x404acc]
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.00446a3e
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.00446a3e
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x88]
push 0x1f4
push ecx
call fcn.00446aa3
add esp, 0x24
jmp case.default.0x40448a
mov ecx, 0x4924f4
call fcn.00421b90
cmp eax, 3
je 0x40452c
mov edx, dword [0x4924f8]
push edx
lea eax, [esp + 0x70]
push 0x1f4
push eax
call fcn.00446a3e
add esp, 0xc
jmp 0x40456a
mov ecx, 0x4924f4
call fcn.00421b90
sub eax, 1
push eax
push 1
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x4924f4
call fcn.00422140
mov eax, dword [eax + 4]
push eax
lea edx, [esp + 0x70]
push 0x1f4
push edx
call fcn.00446a3e
add esp, 0xc
lea ecx, [esp + 0x48]
call fcn.00421ba0
lea eax, [esp + 0x454]
push eax
lea ecx, [esp + 0x70]
push 0x1f4
push ecx
call fcn.00446aa3
lea eax, [esp + 0x78]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x404590
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404590
sub eax, edx
cmp eax, 3
jae case.default.0x40448a
push 0x468a68
lea edx, [esp + 0x70]
push 0x1f4
push edx
call fcn.00446aa3
add esp, 0xc
jmp case.default.0x40448a
lea eax, [esp + 0x454]
push eax
lea ecx, [esp + 0x70]
push 0x1f4
push ecx
call fcn.00446a3e
add esp, 0xc
jmp case.default.0x40448a
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.00446a3e
lea edx, [esp + 0x460]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.00446aa3
add esp, 0x18
jmp case.default.0x40448a
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.00446a3e
lea ecx, [esp + 0x460]
push ecx
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.00446aa3
add esp, 0x18
jmp case.default.0x40448a
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x4046cb
lea ecx, [esp + 0x6c]
push ecx
mov esi, dword [esp + 0x1084]
mov ecx, esi
call fcn.00421f00
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], 1
mov byte [esp + 0x1078], 3
call fcn.00421ba0
lea ecx, [esp + 0x24]
mov byte [esp + 0x1078], 2
call fcn.0041ea30
lea ecx, [esp + 0xc]
call fcn.00402580
jmp 0x404a9d
lea edx, [esp + 0x18]
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x404712
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x260]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x40471c
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 0x404685
lea ecx, [esp + 0x260]
push ecx
lea edx, [esp + 0x70]
push 0x1f4
push edx
call fcn.00446a3e
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.00446aa3
add esp, 0x18
jmp case.default.0x40448a
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 0x404770
sub eax, edx
cmp byte [esp + eax + 0x25f], 0x5c
jne 0x4045f2
lea eax, [esp + 0x260]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404793
sub eax, edx
mov byte [esp + eax + 0x25f], cl
jmp 0x4045f2
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.00404270
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x107c], 5
call fcn.004028c0
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 0x40483f
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.00446a3e
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.00446aa3
add esp, 0xc
cmp edi, 3
je 0x40488c
cmp edi, ebx
jne 0x4048a6
lea edx, [esp + 0x968]
push edx
lea eax, [esp + 0x70]
push 0x1f4
push eax
call fcn.00446a3e
add esp, 0xc
lea ecx, [esp + 0x454]
push ecx
jmp 0x4045a9
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x28]
call fcn.0041e690
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x40], esp
push 0x468cd8
call fcn.00421e50
lea ecx, [esp + 0x34]
call fcn.0041ea50
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x3c], esp
push str.Common_Startup
call fcn.00421e50
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x34]
call fcn.0041ef50
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x107c], 6
call fcn.00421e20
lea ecx, [esp + 0x60]
mov byte [esp + 0x1078], bl
call fcn.00421ba0
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x778]
push 0x1f4
push edx
call fcn.00446a3e
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.0041e7a0
lea eax, [esp + 0x774]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404950
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0x774], cl
je 0x40497c
jmp 0x404970
sub eax, 1
cmp byte [esp + eax + 0x774], cl
jne 0x404970
add eax, 1
lea edx, [esp + eax + 0x774]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x4049a3
mov edi, edi
add edx, 1
mov byte [esp + ecx + 0xc88], al
mov al, byte [edx]
add ecx, 1
test al, al
jne 0x404990
push str._Start_Menu__
lea eax, [esp + 0xa98]
push 0x1f4
push eax
mov byte [esp + ecx + 0xc94], 0
call fcn.00446a3e
lea ecx, [esp + 0xc94]
push ecx
lea edx, [esp + 0xaa4]
push 0x1f4
push edx
call fcn.00446aa3
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0xab0]
push 0x1f4
push ecx
call fcn.00446aa3
add esp, 0x18
lea edx, [esp + 0xaa0]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00421f00
lea eax, [esp + 0x60]
push eax
call fcn.00404300
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x80]
push 0x1f4
push ecx
call fcn.00446a3e
add esp, 0x1c
lea ecx, [esp + 0x54]
call fcn.00421ba0
mov esi, dword [esp + 0x1080]
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.00421f00
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], 1
mov byte [esp + 0x1078], 3
call fcn.00421ba0
lea ecx, [esp + 0x24]
mov byte [esp + 0x1078], 2
call fcn.0041ea30
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 0x404a9d
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.00421ba0
mov ecx, dword [esp + 0x1070]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1070
ret