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

Disassembly:
push 0xffffffffffffffff
push 0x465811
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.0044ce20
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.004367ed
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404de8
push 0x80004005
call fcn.00402280
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.0044c670
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.0044bd9e
add esp, 0x18
cmp byte [esp + 0x78], 0x5b
je 0x404e65
lea edx, [esp + 0x78]
push edx
mov ecx, ebp
call fcn.00425490
mov dword [esp + 0x18], ebx
lea eax, [esi - 0x10]
jmp 0x4055f1
call fcn.00403370
mov edi, eax
mov al, 0x5d
xor esi, esi
cmp byte [esp + 0x78], al
je 0x404e7e
add esi, ebx
cmp byte [esp + esi + 0x78], al
jne 0x404e76
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x274]
push eax
call fcn.0044c6f0
lea ecx, [esp + esi + 0x85]
push ecx
lea edx, [esp + 0x470]
push 0x1f4
push edx
mov byte [esp + esi + 0x285], 0
call fcn.0044bd9e
add esp, 0x18
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
call fcn.00421670
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1088], 3
call fcn.00425500
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.00425490
call fcn.00424c50
add esp, 0xc
cmp eax, 0xb
ja case.0x404f0b.623
jmp dword [eax*4 + 0x405650]
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.0044bd9e
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.0044bd9e
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x94]
push 0x1f4
push ecx
call fcn.0044c067
add esp, 0x24
jmp case.0x404f0b.623
mov ecx, 0x48e73c
call fcn.00425480
cmp eax, 3
je 0x404fb0
mov edx, dword [0x48e740]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.0044bd9e
add esp, 0xc
jmp 0x404fec
mov ecx, 0x48e73c
call fcn.00425480
dec eax
push eax
push 1
lea ecx, [esp + 0x74]
push ecx
mov ecx, 0x48e73c
call fcn.00425790
mov eax, dword [eax + 4]
push eax
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044bd9e
add esp, 0xc
lea ecx, [esp + 0x6c]
call fcn.00425570
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.0044c067
lea eax, [esp + 0x84]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405010
sub eax, edx
cmp eax, 3
jae case.0x404f0b.623
push 0x46dd70
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044c067
add esp, 0xc
jmp case.0x404f0b.623
lea eax, [esp + 0x460]
push eax
lea ecx, [esp + 0x7c]
push 0x1f4
push ecx
call fcn.0044bd9e
add esp, 0xc
jmp case.0x404f0b.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.0044bd9e
lea edx, [esp + 0x46c]
push edx
lea eax, [esp + 0x88]
push 0x1f4
push eax
call fcn.0044c067
add esp, 0x18
jmp case.0x404f0b.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.0044bd9e
lea ecx, [esp + 0x46c]
push ecx
lea edx, [esp + 0x88]
push 0x1f4
push edx
call fcn.0044c067
add esp, 0x18
jmp case.0x404f0b.623
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x405148
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebp
call fcn.00425490
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x1088], 3
call fcn.00425570
lea ecx, [esp + 0x30]
mov byte [esp + 0x1088], 2
call fcn.00421690
lea ecx, [esp + 0x14]
call fcn.004026e0
jmp 0x405612
lea edx, [esp + 0x24]
push edx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40518f
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x26c]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x405199
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 0x405109
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x7c]
push 0x1f4
push edx
call fcn.0044bd9e
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x88]
push 0x1f4
push ecx
call fcn.0044c067
add esp, 0x18
jmp case.0x404f0b.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 0x4051f0
sub eax, edx
cmp byte [esp + eax + 0x26b], 0x5c
jne 0x405070
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405211
sub eax, edx
mov byte [esp + eax + 0x26b], cl
jmp 0x405070
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 0x405244
sub eax, edx
cmp byte [esp + eax + 0x26b], 0x5c
jne 0x405271
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405261
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.0044bd9e
lea ecx, [esp + 0x46c]
push ecx
lea edx, [esp + 0x88]
push 0x1f4
push edx
call fcn.0044c067
add esp, 0x18
jmp case.0x404f0b.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 0x4052c8
sub eax, edx
cmp byte [esp + eax + 0x26b], 0x5c
jne 0x4052f5
lea eax, [esp + 0x26c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4052e5
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.0044bd9e
lea eax, [esp + 0x46c]
push eax
lea ecx, [esp + 0x88]
push 0x1f4
push ecx
call fcn.0044c067
add esp, 0x18
jmp case.0x404f0b.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.00404cd0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x108c], 5
call fcn.00402950
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 0x4053c3
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.0044bd9e
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.0044c067
add esp, 0xc
cmp edi, 3
je 0x405410
cmp edi, ebx
jne 0x40542a
lea edx, [esp + 0x780]
push edx
lea eax, [esp + 0x7c]
push 0x1f4
push eax
call fcn.0044bd9e
add esp, 0xc
lea ecx, [esp + 0x460]
push ecx
jmp 0x405027
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
call fcn.004216a0
push 1
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x46de60
call fcn.004253a0
lea ecx, [esp + 0x40]
call fcn.004217e0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Common_Startup
call fcn.004253a0
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x40]
call fcn.00421d90
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x108c], 6
call fcn.00425580
lea ecx, [esp + 0x54]
mov byte [esp + 0x1088], bl
call fcn.00425570
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x8b0]
push 0x1f4
push edx
call fcn.0044bd9e
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00421d70
lea eax, [esp + 0x8ac]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4054d3
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0x8ac], cl
je 0x4054fa
jmp 0x4054f0
dec eax
cmp byte [esp + eax + 0x8ac], cl
jne 0x4054f0
inc eax
lea edx, [esp + eax + 0x8ac]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x40551f
lea ebx, [ebx]
inc edx
mov byte [esp + ecx + 0xc94], al
mov al, byte [edx]
inc ecx
test al, al
jne 0x405510
push str._Start_Menu__
lea eax, [esp + 0xaa4]
push 0x1f4
push eax
mov byte [esp + ecx + 0xca0], 0
call fcn.0044bd9e
lea ecx, [esp + 0xca0]
push ecx
lea edx, [esp + 0xab0]
push 0x1f4
push edx
call fcn.0044c067
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0xabc]
push 0x1f4
push ecx
call fcn.0044c067
add esp, 0x18
lea edx, [esp + 0xaac]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00425490
lea eax, [esp + 0x6c]
push eax
call fcn.00404d70
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x8c]
push 0x1f4
push ecx
call fcn.0044bd9e
add esp, 0x1c
lea ecx, [esp + 0x60]
call fcn.00425570
lea edx, [esp + 0x78]
push edx
mov ecx, ebp
call fcn.00425490
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x1088], 3
call fcn.00425570
lea ecx, [esp + 0x30]
mov byte [esp + 0x1088], 2
call fcn.00421690
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 0x405612
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.00425570
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.0044b758
add esp, 0x1078
ret