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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44784f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a0
mov dword [ebp - 0x3ac], 0
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0xb
mov dword [ebp - 0x194], 6
mov dword [ebp - 0x190], 5
mov dword [ebp - 0x18c], 8
mov dword [ebp - 0x188], 9
mov dword [ebp - 0x184], 0x18
mov dword [ebp - 0x180], 7
mov dword [ebp - 0x17c], 0x17
mov dword [ebp - 0x178], 2
mov dword [ebp - 0x174], 0x15
mov dword [ebp - 0x170], 0x14
mov dword [ebp - 0x16c], 0x1a
mov dword [ebp - 0x168], 0x20
mov dword [ebp - 0x164], 0x12
mov dword [ebp - 0x50], str.Desktop
mov dword [ebp - 0x4c], str.Start_Menu
mov dword [ebp - 0x48], str.Favorites
mov dword [ebp - 0x44], str.Personal
mov dword [ebp - 0x40], str.Recent
mov dword [ebp - 0x3c], str.SendTo
mov dword [ebp - 0x38], str.AllStartup
mov dword [ebp - 0x34], str.Startup
mov dword [ebp - 0x30], str.CommonPrograms
mov dword [ebp - 0x2c], str.Programs
mov dword [ebp - 0x28], str.Templates
mov dword [ebp - 0x24], str.Fonts
mov dword [ebp - 0x20], str.AppData
mov dword [ebp - 0x1c], str.Cache
mov dword [ebp - 0x18], str.NetHood
push 0x45fbb8
lea ecx, [ebp - 0x10]
call fcn.0043ba88
mov dword [ebp - 4], 1
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x158], 0
jmp 0x405ffd
mov ecx, dword [ebp - 0x158]
add ecx, 1
mov dword [ebp - 0x158], ecx
cmp dword [ebp - 0x158], 0xf
jae 0x40601c
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp + edx*4 - 0x19c]
cmp eax, dword [ebp + 0xc]
jne 0x40601a
jmp 0x40601c
jmp 0x405fee
cmp dword [ebp - 0x158], 0xf
jae 0x4060dc
mov dword [ebp - 0x2a4], 0xff
mov dword [ebp - 0x1a0], 1
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.00426fb0
add esp, 8
call fcn.00405900
cmp eax, 3
jne 0x40606f
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea edx, [ebp - 0x2a0]
push edx
call fcn.00426fb0
add esp, 8
lea eax, [ebp - 0x2a8]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x2a0]
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4060dc
lea edx, [ebp - 0x2a4]
push edx
lea eax, [ebp - 0x3a8]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
push 0
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp + edx*4 - 0x50]
push eax
mov ecx, dword [ebp - 0x2a8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4060dc
lea edx, [ebp - 0x3a8]
push edx
lea ecx, [ebp - 0x10]
call fcn.0043bba3
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
jne 0x40611c
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40611c
lea edx, [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043bba3
lea ecx, [ebp - 0x10]
call fcn.004042d0
cmp eax, 3
jl 0x40613b
push 2
lea ecx, [ebp - 0x10]
call fcn.0041c250
movsx edx, al
cmp edx, 0x5c
je 0x406174
push 0x104
lea eax, [ebp - 0x154]
push eax
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0043be35
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0043be84
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043bba3
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.0043b78f
mov eax, dword [ebp - 0x3ac]
or al, 1
mov dword [ebp - 0x3ac], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043ba1a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret