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

Disassembly:
push 0xffffffffffffffff
push 0x45122a
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.00439c40
mov eax, dword [0x469788]
xor eax, esp
mov dword [esp + 0x1068], eax
push ebp
push esi
push edi
mov eax, dword [0x469788]
xor eax, esp
push eax
lea eax, [esp + 0x107c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x108c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov ebp, 1
mov dword [esp + 0x1084], ebp
call fcn.004246dd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417327
push 0x80004005
call fcn.004085f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
xor ecx, ecx
push 0x12a
push ecx
lea edx, [esp + 0x84e]
push edx
mov byte [esp + 0x1090], 2
mov word [esp + 0x850], cx
call fcn.00439a10
mov eax, dword [esp + 0x10a0]
lea edx, [esp + 0x80]
add esp, 0xc
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], 0x104
sub edx, eax
jmp 0x417380
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebp
test cl, cl
jne 0x417380
cmp byte [esp + 0x74], 0x5b
je 0x4173e1
lea eax, [esp + 0x74]
push eax
mov ecx, edi
call fcn.0040f3f0
lea eax, [esi - 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x1084], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4173c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1090]
mov byte [esp + 0x1084], 0
call fcn.0040f070
mov eax, edi
jmp 0x417bcc
call fcn.00416960
mov edi, eax
mov al, 0x5d
xor esi, esi
cmp byte [esp + 0x74], al
je 0x4173fa
add esi, ebp
cmp byte [esp + esi + 0x74], al
jne 0x4173f2
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x270]
push eax
call fcn.00439da0
lea eax, [esp + esi + 0x81]
lea edx, [esp + 0x468]
add esp, 0xc
mov byte [esp + esi + 0x269], 0
sub edx, eax
jmp 0x417430
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, ebp
test cl, cl
jne 0x417430
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
call fcn.0040c960
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1084], 3
call fcn.0040f4a0
sub esp, 0xc
lea edx, [esp + 0x274]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x1094], 4
call fcn.0040f3f0
call fcn.0040ea40
add esp, 0xc
cmp eax, 8
ja case.default.0x417489
jmp dword [eax*4 + 0x417bf4]
push 0x118
lea eax, [esp + 0xe88]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x456e00]
mov ecx, dword [str.C:Program_Files]
mov edx, dword [0x456dfc]
mov dword [esp + 0x270], eax
mov al, byte [esp + 0xe84]
mov dword [esp + 0x268], ecx
mov ecx, dword [0x456e04]
mov dword [esp + 0x26c], edx
mov dl, byte [0x456e08]
mov byte [esp + 0x268], al
mov dword [esp + 0x274], ecx
mov byte [esp + 0x278], dl
xor eax, eax
mov cl, byte [esp + eax + 0x268]
mov byte [esp + eax + 0x74], cl
add eax, ebp
test cl, cl
jne 0x4174f3
lea eax, [esp + 0x45c]
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417510
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417520
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x417489
mov ecx, 0x46ab5c
call fcn.0040f060
cmp eax, 3
je 0x417564
mov eax, dword [0x46ab60]
lea edx, [esp + 0x74]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, ebp
test cl, cl
jne 0x417557
jmp 0x41759d
mov ecx, 0x46ab5c
call fcn.0040f060
sub eax, ebp
push eax
push ebp
lea ecx, [esp + 0x64]
push ecx
mov ecx, 0x46ab5c
call fcn.0040f650
mov ecx, dword [eax + 4]
lea edx, [esp + 0x74]
mov al, byte [ecx]
mov byte [edx], al
add ecx, ebp
add edx, ebp
test al, al
jne 0x417588
lea ecx, [esp + 0x5c]
call fcn.0040f070
lea eax, [esp + 0x45c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4175a6
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4175b4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x74]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4175d3
sub eax, edx
cmp eax, 3
jae case.default.0x417489
lea edi, [esp + 0x74]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4175f0
mov dx, word [0x456e0c]
mov word [edi], dx
jmp case.default.0x417489
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x45c]
mov byte [esp + eax + 0x74], cl
add eax, ebp
test cl, cl
jne 0x417610
jmp case.default.0x417489
push 0x118
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
jmp 0x417640
mov cl, byte [esp + eax + 0x268]
mov byte [esp + eax + 0x74], cl
add eax, ebp
test cl, cl
jne 0x417640
lea eax, [esp + 0x45c]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417660
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417670
jmp 0x417528
push 0x118
lea ecx, [esp + 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor eax, eax
mov cl, byte [esp + eax + 0x268]
mov byte [esp + eax + 0x74], cl
add eax, ebp
test cl, cl
jne 0x417692
lea eax, [esp + 0x45c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4176b0
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4176c0
jmp 0x417528
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x41772a
lea ecx, [esp + 0x24]
push ecx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x4176f6
lea edx, [esp + 0x74]
push edx
jmp 0x41772f
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x268]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x41776e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x74]
push eax
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.0040f3f0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x1084], 3
call fcn.0040f070
lea ecx, [esp + 0x30]
mov byte [esp + 0x1084], 2
call fcn.0040c980
lea ecx, [esp + 0x10]
call fcn.00408800
jmp 0x417bb6
xor eax, eax
mov cl, byte [esp + eax + 0x268]
mov byte [esp + eax + 0x74], cl
add eax, ebp
test cl, cl
jne 0x417770
lea eax, [esp + 0x45c]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417790
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4177a0
jmp 0x417528
lea ecx, [esp + 0x268]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x268]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4177d0
sub eax, edx
cmp byte [esp + eax + 0x267], 0x5c
jne 0x417800
lea eax, [esp + 0x268]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4177f0
sub eax, edx
mov byte [esp + eax + 0x267], cl
xor eax, eax
mov cl, byte [esp + eax + 0x268]
mov byte [esp + eax + 0x74], cl
add eax, ebp
test cl, cl
jne 0x417802
lea eax, [esp + 0x45c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417820
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417830
jmp 0x417528
lea edx, [esp + 0x2c]
push edx
push 0x20019
push 0
push 0x456e10
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 + 0x848]
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 + 0x844]
push edx
lea ecx, [esp + 0x24]
call fcn.0041a5c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1088], 5
call fcn.0040e230
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1084], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4178d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x74]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, ebp
test cl, cl
jne 0x4178e0
push 0x118
lea ecx, [esp + 0x974]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x970]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x417906
mov edx, dword [str.Start_MenuPrograms]
mov ecx, dword [0x456e68]
mov dword [eax], edx
mov edx, dword [0x456e6c]
mov dword [eax + 4], ecx
mov ecx, dword [0x456e70]
mov dword [eax + 8], edx
mov edx, dword [0x456e74]
mov dword [eax + 0xc], ecx
mov cl, byte [0x456e78]
mov dword [eax + 0x10], edx
mov byte [eax + 0x14], cl
cmp edi, 3
je 0x41794d
cmp edi, 4
jne 0x417961
xor eax, eax
nop
mov cl, byte [esp + eax + 0x970]
mov byte [esp + eax + 0x74], cl
add eax, ebp
test cl, cl
jne 0x417950
lea eax, [esp + 0x45c]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417970
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417980
jmp 0x417528
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
call fcn.0040c7b0
push ebp
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x456e80
call fcn.0040f340
lea ecx, [esp + 0x40]
call fcn.0040c9a0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Common_Startup
call fcn.0040f340
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x40]
call fcn.0040cf00
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x1088], 6
call fcn.0040f310
lea ecx, [esp + 0x68]
mov byte [esp + 0x1084], 4
call fcn.0040f070
mov eax, dword [esp + 0x40]
lea edx, [esp + 0xa9c]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, ebp
test cl, cl
jne 0x417a10
lea ecx, [esp + 0x30]
call fcn.0040c8d0
lea eax, [esp + 0xa9c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417a30
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0xa9c], cl
je 0x417a4f
sub eax, ebp
cmp byte [esp + eax + 0xa9c], cl
jne 0x417a44
add eax, ebp
lea edx, [esp + eax + 0xa9c]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x417a71
add edx, ebp
mov byte [esp + ecx + 0xc90], al
mov al, byte [edx]
add ecx, ebp
test al, al
jne 0x417a60
mov eax, dword [str._Start_Menu__]
mov edx, dword [0x456edc]
mov dword [esp + 0x650], eax
mov ax, word [0x456ee0]
mov byte [esp + ecx + 0xc90], 0
mov ecx, dword [0x456ed8]
mov word [esp + 0x65c], ax
lea eax, [esp + 0xc90]
mov dword [esp + 0x654], ecx
mov dword [esp + 0x658], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x417ab6
lea edi, [esp + 0x650]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417ad0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x45c]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x417af0
lea edi, [esp + 0x650]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417b03
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
sub esp, 0xc
rep movsb byte es:[edi], byte [esi]
lea edx, [esp + 0x65c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0040f3f0
lea eax, [esp + 0x5c]
push eax
call fcn.004172b0
mov ecx, dword [eax + 4]
add esp, 0x10
lea edx, [esp + 0x74]
mov al, byte [ecx]
mov byte [edx], al
add ecx, ebp
add edx, ebp
test al, al
jne 0x417b43
lea ecx, [esp + 0x50]
call fcn.0040f070
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x74]
push ecx
mov ecx, esi
call fcn.0040f3f0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x1084], 3
call fcn.0040f070
lea ecx, [esp + 0x30]
mov byte [esp + 0x1084], 2
call fcn.0040c980
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x1084], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417bb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1090]
mov byte [esp + 0x1084], 0
call fcn.0040f070
mov eax, esi
mov ecx, dword [esp + 0x107c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1068]
xor ecx, esp
call fcn.004385b6
add esp, 0x1078
ret