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

Disassembly:
push 0xffffffffffffffff
push 0x45178a
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.0043a170
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.00424bf8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417587
push 0x80004005
call fcn.00408600
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.00439f40
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 0x4175e0
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebp
test cl, cl
jne 0x4175e0
cmp byte [esp + 0x74], 0x5b
je 0x417641
lea eax, [esp + 0x74]
push eax
mov ecx, edi
call fcn.0040f5b0
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 0x417626
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.0040f230
mov eax, edi
jmp 0x417f3c
call fcn.00416b10
mov edi, eax
mov al, 0x5d
xor esi, esi
cmp byte [esp + 0x74], al
je 0x41765a
add esi, ebp
cmp byte [esp + esi + 0x74], al
jne 0x417652
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x270]
push eax
call fcn.0043a2d0
lea eax, [esp + esi + 0x81]
lea edx, [esp + 0x468]
add esp, 0xc
mov byte [esp + esi + 0x269], 0
sub edx, eax
jmp 0x417690
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebp
test cl, cl
jne 0x417690
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
call fcn.0040c970
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1084], 3
call fcn.0040f660
sub esp, 0xc
lea edx, [esp + 0x274]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x1094], 4
call fcn.0040f5b0
call fcn.0040ead0
add esp, 0xc
cmp eax, 0xb
ja case.0x4176e9.9
jmp dword [eax*4 + 0x417f64]
push 0x118
lea eax, [esp + 0xe88]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x456ec8]
mov ecx, dword [str.C:Program_Files]
mov edx, dword [0x456ec4]
mov dword [esp + 0x270], eax
mov al, byte [esp + 0xe84]
mov dword [esp + 0x268], ecx
mov ecx, dword [0x456ecc]
mov dword [esp + 0x26c], edx
mov dl, byte [0x456ed0]
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 0x417753
lea eax, [esp + 0x45c]
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417770
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417780
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.0x4176e9.9
mov ecx, 0x46ab5c
call fcn.0040f220
cmp eax, 3
je 0x4177c4
mov eax, dword [0x46ab60]
lea edx, [esp + 0x74]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebp
test cl, cl
jne 0x4177b7
jmp 0x4177fd
mov ecx, 0x46ab5c
call fcn.0040f220
sub eax, ebp
push eax
push ebp
lea ecx, [esp + 0x64]
push ecx
mov ecx, 0x46ab5c
call fcn.0040f810
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 0x4177e8
lea ecx, [esp + 0x5c]
call fcn.0040f230
lea eax, [esp + 0x45c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417806
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417814
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 0x417833
sub eax, edx
cmp eax, 3
jae case.0x4176e9.9
lea edi, [esp + 0x74]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x417850
mov dx, word [0x456ed4]
mov word [edi], dx
jmp case.0x4176e9.9
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 0x417870
jmp case.0x4176e9.9
push 0x118
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
jmp 0x4178a0
mov cl, byte [esp + eax + 0x268]
mov byte [esp + eax + 0x74], cl
add eax, ebp
test cl, cl
jne 0x4178a0
lea eax, [esp + 0x45c]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4178c0
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4178d0
jmp 0x417788
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 0x4178f2
lea eax, [esp + 0x45c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417910
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417920
jmp 0x417788
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x41798a
lea ecx, [esp + 0x24]
push ecx
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x417956
lea edx, [esp + 0x74]
push edx
jmp 0x41798f
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x268]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jne 0x4179ce
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.0040f5b0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x1084], 3
call fcn.0040f230
lea ecx, [esp + 0x30]
mov byte [esp + 0x1084], 2
call fcn.0040c990
lea ecx, [esp + 0x10]
call fcn.00408790
jmp 0x417f26
xor eax, eax
mov cl, byte [esp + eax + 0x268]
mov byte [esp + eax + 0x74], cl
add eax, ebp
test cl, cl
jne 0x4179d0
lea eax, [esp + 0x45c]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4179f0
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417a00
jmp 0x417788
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 0x417a30
sub eax, edx
cmp byte [esp + eax + 0x267], 0x5c
jne 0x417a60
lea eax, [esp + 0x268]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417a50
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 0x417a62
lea eax, [esp + 0x45c]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417a80
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417a90
jmp 0x417788
push 0
push 5
lea edx, [esp + 0x270]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x268]
lea edx, [eax + 1]
jmp 0x417ac0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417ac0
sub eax, edx
cmp byte [esp + eax + 0x267], 0x5c
jne 0x417af0
lea eax, [esp + 0x268]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417ae0
sub eax, edx
mov byte [esp + eax + 0x267], cl
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x78]
push 0x1f4
push ecx
call fcn.0043ad8e
lea edx, [esp + 0x468]
push edx
lea eax, [esp + 0x84]
push 0x1f4
push eax
call fcn.0043adf6
add esp, 0x18
jmp case.0x4176e9.9
push 0
push 0x1a
lea ecx, [esp + 0x270]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x268]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417b47
sub eax, edx
cmp byte [esp + eax + 0x267], 0x5c
jne 0x417b74
lea eax, [esp + 0x268]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417b64
sub eax, edx
mov byte [esp + eax + 0x267], cl
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x78]
push 0x1f4
push eax
call fcn.0043ad8e
lea ecx, [esp + 0x468]
push ecx
lea edx, [esp + 0x84]
push 0x1f4
push edx
call fcn.0043adf6
add esp, 0x18
jmp case.0x4176e9.9
lea eax, [esp + 0x2c]
push eax
push 0x20019
push 0
push 0x456ed8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x848]
push edx
lea eax, [esp + 0x54]
push eax
push 0
push str.Common_Programs
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x844]
push eax
lea ecx, [esp + 0x24]
call fcn.0041aac0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1088], 5
call fcn.0040e240
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 0x417c43
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 0x417c50
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 0x417c76
mov edx, dword [str.Start_MenuPrograms]
mov ecx, dword [0x456f30]
mov dword [eax], edx
mov edx, dword [0x456f34]
mov dword [eax + 4], ecx
mov ecx, dword [0x456f38]
mov dword [eax + 8], edx
mov edx, dword [0x456f3c]
mov dword [eax + 0xc], ecx
mov cl, byte [0x456f40]
mov dword [eax + 0x10], edx
mov byte [eax + 0x14], cl
cmp edi, 3
je 0x417cbd
cmp edi, 4
jne 0x417cd1
xor eax, eax
nop
mov cl, byte [esp + eax + 0x970]
mov byte [esp + eax + 0x74], cl
add eax, ebp
test cl, cl
jne 0x417cc0
lea eax, [esp + 0x45c]
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417ce0
lea edi, [esp + 0x74]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417cf0
jmp 0x417788
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x34]
call fcn.0040c7c0
push ebp
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x456f48
call fcn.0040f500
lea ecx, [esp + 0x40]
call fcn.0040c9b0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Common_Startup
call fcn.0040f500
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x40]
call fcn.0040cf10
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x1088], 6
call fcn.0040f4d0
lea ecx, [esp + 0x68]
mov byte [esp + 0x1084], 4
call fcn.0040f230
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 0x417d80
lea ecx, [esp + 0x30]
call fcn.0040c8e0
lea eax, [esp + 0xa9c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417da0
sub eax, edx
mov cl, 0x5c
cmp byte [esp + eax + 0xa9c], cl
je 0x417dbf
sub eax, ebp
cmp byte [esp + eax + 0xa9c], cl
jne 0x417db4
add eax, ebp
lea edx, [esp + eax + 0xa9c]
mov al, byte [edx]
xor ecx, ecx
test al, al
je 0x417de1
add edx, ebp
mov byte [esp + ecx + 0xc90], al
mov al, byte [edx]
add ecx, ebp
test al, al
jne 0x417dd0
mov eax, dword [str._Start_Menu__]
mov edx, dword [0x456fa4]
mov dword [esp + 0x650], eax
mov ax, word [0x456fa8]
mov byte [esp + ecx + 0xc90], 0
mov ecx, dword [0x456fa0]
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 0x417e26
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 0x417e40
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 0x417e60
lea edi, [esp + 0x650]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417e73
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.0040f5b0
lea eax, [esp + 0x5c]
push eax
call fcn.00417510
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 0x417eb3
lea ecx, [esp + 0x50]
call fcn.0040f230
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x74]
push ecx
mov ecx, esi
call fcn.0040f5b0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x1084], 3
call fcn.0040f230
lea ecx, [esp + 0x30]
mov byte [esp + 0x1084], 2
call fcn.0040c990
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 0x417f26
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.0040f230
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.00438ae6
add esp, 0x1078
ret