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

Disassembly:
push 0xffffffffffffffff
push 0x4695f1
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.00450c10
mov eax, dword [0x491c04]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491c04]
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.0043a5a2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405848
push 0x80004005
call fcn.004025a0
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.00450460
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.0044fb04
add esp, 0x18
cmp byte [esp + 0x78], 0x5b
je 0x4058c5
lea edx, [esp + 0x78]
push edx
mov ecx, ebp
call fcn.00428fb0
mov dword [esp + 0x18], ebx
lea eax, [esi - 0x10]
jmp 0x406051
call fcn.004039b0
mov edi, eax
mov al, 0x5d
xor esi, esi
cmp byte [esp + 0x78], al
je 0x4058de
add esi, ebx
cmp byte [esp + esi + 0x78], al
jne 0x4058d6
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x274]
push eax
call fcn.004504e0
lea ecx, [esp + esi + 0x85]
push ecx
lea edx, [esp + 0x470]
push 0x1f4
push edx
mov byte [esp + esi + 0x285], 0
call fcn.0044fb04
add esp, 0x18
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
call fcn.00424ba0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1088], 3
call fcn.00429020
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.00428fb0
call fcn.00428770
add esp, 0xc
cmp eax, 0xb
ja case.0x40596b.623
jmp dword [eax*4 + 0x4060b0]
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.0044fb04
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.0044fb04
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x94]
push 0x1f4
push ecx
call fcn.0044fdcd
add esp, 0x24
jmp case.0x40596b.623
mov ecx, 0x49487c
call fcn.00428fa0
cmp eax, 3
je 0x405a10
mov edx, dword [0x494880]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.0044fb04
add esp, 0xc
jmp 0x405a4c
mov ecx, 0x49487c
call fcn.00428fa0
dec eax
push eax
push 1
lea ecx, [esp + 0x74]
push ecx
mov ecx, 0x49487c
call fcn.004292b0
mov eax, dword [eax + 4]
push eax
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044fb04
add esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.00429090
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.0044fdcd
lea eax, [esp + 0x84]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405a70
sub eax, edx
cmp eax, 3
jae case.0x40596b.623
push 0x47317c
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044fdcd
add esp, 0xc
jmp case.0x40596b.623
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.0044fb04
add esp, 0xc
jmp case.0x40596b.623
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.0044fb04
lea edx, [esp + 0x46c]
push edx
lea eax, [esp + 0x88]
push 0x1f4
push eax
call fcn.0044fdcd
add esp, 0x18
jmp case.0x40596b.623
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.0044fb04
lea ecx, [esp + 0x46c]
push ecx
lea edx, [esp + 0x88]
push 0x1f4
push edx
call fcn.0044fdcd
add esp, 0x18
jmp case.0x40596b.623
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x405ba8
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebp
call fcn.00428fb0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x1088], 3
call fcn.00429090
lea ecx, [esp + 0x30]
mov byte [esp + 0x1088], 2
call fcn.00424bc0
lea ecx, [esp + 0x14]
call fcn.00402b70
jmp 0x406072
lea edx, [esp + 0x24]
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x405bef
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x26c]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x405bf9
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 0x405b69
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044fb04
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x88]
push 0x1f4
push ecx
call fcn.0044fdcd
add esp, 0x18
jmp case.0x40596b.623
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 0x405c50
sub eax, edx
cmp byte [esp + eax + 0x26b], 0x5c
jne 0x405ad0
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405c71
sub eax, edx
mov byte [esp + eax + 0x26b], cl
jmp 0x405ad0
push 0
push 5
lea ecx, [esp + 0x274]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ca4
sub eax, edx
cmp byte [esp + eax + 0x26b], 0x5c
jne 0x405cd1
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405cc1
sub eax, edx
mov byte [esp + eax + 0x26b], cl
lea edx, [esp + 0x26c]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.0044fb04
lea ecx, [esp + 0x46c]
push ecx
lea edx, [esp + 0x88]
push 0x1f4
push edx
call fcn.0044fdcd
add esp, 0x18
jmp case.0x40596b.623
push 0
push 0x1a
lea eax, [esp + 0x274]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d28
sub eax, edx
cmp byte [esp + eax + 0x26b], 0x5c
jne 0x405d55
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405d45
sub eax, edx
mov byte [esp + eax + 0x26b], cl
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044fb04
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x88]
push 0x1f4
push ecx
call fcn.0044fdcd
add esp, 0x18
jmp case.0x40596b.623
lea edx, [esp + 0x2c]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x658]
push ecx
lea edx, [esp + 0x54]
push edx
push 0
push str.Common_Programs
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x654]
push edx
lea ecx, [esp + 0x24]
call fcn.00405730
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x108c], 5
call fcn.00402de0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1088], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e23
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.0044fb04
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.0044fdcd
add esp, 0xc
cmp edi, 3
je 0x405e70
cmp edi, ebx
jne 0x405e8a
lea edx, [esp + 0x780]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.0044fb04
add esp, 0xc
lea ecx, [esp + 0x460]
push ecx
jmp 0x405a87
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
call fcn.00424bd0
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x473288
call fcn.00428ec0
lea ecx, [esp + 0x40]
call fcn.00424d10
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Common_Startup
call fcn.00428ec0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x40]
call fcn.004252c0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x108c], 6
call fcn.004290a0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1088], bl
call fcn.00429090
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x8b0]
push 0x1f4
push edx
call fcn.0044fb04
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.004252a0
lea eax, [esp + 0x8ac]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f33
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0x8ac], cl
je 0x405f5a
jmp 0x405f50
dec eax
cmp byte [esp + eax + 0x8ac], cl
jne 0x405f50
inc eax
lea edx, [esp + eax + 0x8ac]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x405f7f
lea ebx, [ebx]
inc edx
mov byte [esp + ecx + 0xc94], al
mov al, byte [edx]
inc ecx
test al, al
jne 0x405f70
push str._Start_Menu__
lea eax, [esp + 0xaa4]
push 0x1f4
push eax
mov byte [esp + ecx + 0xca0], 0
call fcn.0044fb04
lea ecx, [esp + 0xca0]
push ecx
lea edx, [esp + 0xab0]
push 0x1f4
push edx
call fcn.0044fdcd
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0xabc]
push 0x1f4
push ecx
call fcn.0044fdcd
add esp, 0x18
lea edx, [esp + 0xaac]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00428fb0
lea eax, [esp + 0x6c]
push eax
call fcn.004057d0
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x8c]
push 0x1f4
push ecx
call fcn.0044fb04
add esp, 0x1c
lea ecx, [esp + 0x60]
call fcn.00429090
lea edx, [esp + 0x78]
push edx
mov ecx, ebp
call fcn.00428fb0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x1088], 3
call fcn.00429090
lea ecx, [esp + 0x30]
mov byte [esp + 0x1088], 2
call fcn.00424bc0
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 0x406072
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.00429090
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.0044f4be
add esp, 0x1078
ret