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

Disassembly:
push 0xffffffffffffffff
push 0x4653b1
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.0044c940
mov eax, dword [0x48bb84]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48bb84]
xor eax, esp
push eax
lea eax, [esp + 0x1080]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1090]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x18], 0
mov ebx, 1
mov dword [esp + 0x1088], ebx
call fcn.00436342
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404d48
push 0x80004005
call fcn.00402290
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
xor ecx, ecx
push 0x12a
push ecx
lea edx, [esp + 0x65e]
push edx
mov byte [esp + 0x1094], 2
mov word [esp + 0x660], cx
call fcn.0044c190
mov eax, dword [esp + 0x10a4]
push eax
lea ecx, [esp + 0x88]
push 0x1f4
push ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], 0x104
call fcn.0044b8de
add esp, 0x18
cmp byte [esp + 0x78], 0x5b
je 0x404dc5
lea edx, [esp + 0x78]
push edx
mov ecx, ebp
call fcn.00424fe0
mov dword [esp + 0x18], ebx
lea eax, [esi - 0x10]
jmp 0x405441
call fcn.00403340
mov edi, eax
mov al, 0x5d
xor esi, esi
cmp byte [esp + 0x78], al
je 0x404dde
add esi, ebx
cmp byte [esp + esi + 0x78], al
jne 0x404dd6
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x274]
push eax
call fcn.0044c210
lea ecx, [esp + esi + 0x85]
push ecx
lea edx, [esp + 0x470]
push 0x1f4
push edx
mov byte [esp + esi + 0x285], 0
call fcn.0044b8de
add esp, 0x18
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
call fcn.00421350
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1088], 3
call fcn.00425050
sub esp, 0xc
lea eax, [esp + 0x278]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov ebx, 4
push eax
mov byte [esp + 0x1098], bl
call fcn.00424fe0
call fcn.004248b0
add esp, 0xc
cmp eax, 8
ja case.default.0x404e6b
jmp dword [eax*4 + 0x4054a0]
push 0x118
lea ecx, [esp + 0xe8c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.C:Program_Files
lea edx, [esp + 0x270]
push 0x1f4
push edx
call fcn.0044b8de
mov al, byte [esp + 0xe94]
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x88]
push 0x1f4
push edx
mov byte [esp + 0x284], al
call fcn.0044b8de
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x94]
push 0x1f4
push ecx
call fcn.0044bba8
add esp, 0x24
jmp case.default.0x404e6b
mov ecx, 0x48e73c
call fcn.00424fd0
cmp eax, 3
je 0x404f10
mov edx, dword [0x48e740]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.0044b8de
add esp, 0xc
jmp 0x404f4c
mov ecx, 0x48e73c
call fcn.00424fd0
dec eax
push eax
push 1
lea ecx, [esp + 0x74]
push ecx
mov ecx, 0x48e73c
call fcn.004252e0
mov eax, dword [eax + 4]
push eax
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044b8de
add esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.004250c0
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.0044bba8
lea eax, [esp + 0x84]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f70
sub eax, edx
cmp eax, 3
jae case.default.0x404e6b
push 0x46dd68
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044bba8
add esp, 0xc
jmp case.default.0x404e6b
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.0044b8de
add esp, 0xc
jmp case.default.0x404e6b
push 0x118
lea edx, [esp + 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.0044b8de
lea edx, [esp + 0x46c]
push edx
lea eax, [esp + 0x88]
push 0x1f4
push eax
call fcn.0044bba8
add esp, 0x18
jmp case.default.0x404e6b
push 0x118
lea ecx, [esp + 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x26c]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.0044b8de
lea ecx, [esp + 0x46c]
push ecx
lea edx, [esp + 0x88]
push 0x1f4
push edx
call fcn.0044bba8
add esp, 0x18
jmp case.default.0x404e6b
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x4050a8
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebp
call fcn.00424fe0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x1088], 3
call fcn.004250c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1088], 2
call fcn.00421370
lea ecx, [esp + 0x14]
call fcn.004026d0
jmp 0x405462
lea edx, [esp + 0x24]
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4050ef
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x26c]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x4050f9
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 + 0x78]
push eax
jmp 0x405069
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044b8de
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x88]
push 0x1f4
push ecx
call fcn.0044bba8
add esp, 0x18
jmp case.default.0x404e6b
lea edx, [esp + 0x26c]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405150
sub eax, edx
cmp byte [esp + eax + 0x26b], 0x5c
jne 0x404fd0
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405171
sub eax, edx
mov byte [esp + eax + 0x26b], cl
jmp 0x404fd0
lea ecx, [esp + 0x2c]
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 + 0x48]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x658]
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 + 0x654]
push ecx
lea ecx, [esp + 0x24]
call fcn.00404c30
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x108c], 5
call fcn.00402940
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1088], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40521b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044b8de
add esp, 0xc
push 0x118
lea eax, [esp + 0x784]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Start_MenuPrograms
lea ecx, [esp + 0x784]
push 0x12c
push ecx
call fcn.0044bba8
add esp, 0xc
cmp edi, 3
je 0x405268
cmp edi, ebx
jne 0x405282
lea edx, [esp + 0x780]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.0044b8de
add esp, 0xc
lea ecx, [esp + 0x460]
push ecx
jmp 0x404f87
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
call fcn.00421380
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x46de50
call fcn.00424ef0
lea ecx, [esp + 0x40]
call fcn.004214c0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Common_Startup
call fcn.00424ef0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x40]
call fcn.00421a70
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x108c], 6
call fcn.004250d0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1088], bl
call fcn.004250c0
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x8b0]
push 0x1f4
push edx
call fcn.0044b8de
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00421a50
lea eax, [esp + 0x8ac]
lea edx, [eax + 1]
jmp 0x405330
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405330
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0x8ac], cl
je 0x40534e
dec eax
cmp byte [esp + eax + 0x8ac], cl
jne 0x405344
inc eax
lea edx, [esp + eax + 0x8ac]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x40536f
mov edi, edi
inc edx
mov byte [esp + ecx + 0xc94], al
mov al, byte [edx]
inc ecx
test al, al
jne 0x405360
push str._Start_Menu__
lea eax, [esp + 0xaa4]
push 0x1f4
push eax
mov byte [esp + ecx + 0xca0], 0
call fcn.0044b8de
lea ecx, [esp + 0xca0]
push ecx
lea edx, [esp + 0xab0]
push 0x1f4
push edx
call fcn.0044bba8
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0xabc]
push 0x1f4
push ecx
call fcn.0044bba8
add esp, 0x18
lea edx, [esp + 0xaac]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00424fe0
lea eax, [esp + 0x6c]
push eax
call fcn.00404cd0
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x8c]
push 0x1f4
push ecx
call fcn.0044b8de
add esp, 0x1c
lea ecx, [esp + 0x60]
call fcn.004250c0
lea edx, [esp + 0x78]
push edx
mov ecx, ebp
call fcn.00424fe0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x1088], 3
call fcn.004250c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x1088], 2
call fcn.00421370
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1088], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405462
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1094]
mov byte [esp + 0x1088], 0
call fcn.004250c0
mov eax, ebp
mov ecx, dword [esp + 0x1080]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.0044b298
add esp, 0x1078
ret