Function at 0x4066e0
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f626
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x43f1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x248]
call fcn.00408e20
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, ds:[ebp - 0x27c]
test eax, eax
je 0x4067ae
push 0x438ed0
call fcn.00408e20
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 1
call fcn.00405a20
mov ecx, dword [ebp - 0x268]
cmp ecx, 7
jbe 0x406a3a
mov edx, dword ds:[ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406a30
mov edx, dword ds:[eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a8f
jmp 0x406a30
lea eax, [ebp - 0x218]
push eax
call fcn.00408e20
push ecx
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x260]
call fcn.0040a000
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x268]
cmp ecx, 7
jbe 0x406813
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406809
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a94
push ecx
push edx
call fcn.00416efb
add esp, 8
xor eax, eax
mov dword [ebp - 0x26c], 0
push ecx
lea edx, [ebp - 0x260]
mov dword [ebp - 0x268], 7
lea ecx, [ebp - 0x230]
mov word [ebp - 0x27c], ax
call fcn.00409ea0
add esp, 4
push 0
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 5
cmp dword [ebp - 0x234], 7
lea eax, [ebp - 0x248]
push ecx
cmova eax, dword [ebp - 0x248]
push 0
push 2
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop
test eax, eax
jne 0x406937
mov eax, dword ds:[ebp - 0x220]
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 7
cmova ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.UpdateCheck
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x406929
push 0x439064
lea ecx, [ebp - 0x27c]
call fcn.00408e20
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 6
call fcn.00405a20
mov ecx, dword [ebp - 0x268]
cmp ecx, 7
jbe 0x406929
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40691f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a99
push ecx
push edx
call fcn.00416efb
add esp, 8
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40699a
push 0x439094
lea ecx, [ebp - 0x27c]
call fcn.00408e20
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 7
call fcn.00405a20
mov ecx, dword ds:[ebp - 0x268]
cmp ecx, 7
jbe 0x40699a
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406990
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a9e
push ecx
push edx
call fcn.00416efb
add esp, 8
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x4069da
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4069d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406aa5
push ecx
push edx
call fcn.00416efb
add esp, 8
mov ecx, dword ds:[ebp - 0x24c]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp ecx, 7
jbe 0x406a3a
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406a30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406aa5
push ecx
push edx
call fcn.00416efb
add esp, 8
mov ecx, dword [ebp - 0x234]
cmp ecx, 7
jbe 0x406a76
mov edx, dword [ebp - 0x248]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406a6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406aa5
push ecx
push edx
call fcn.00416efb
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416aa2
mov esp, ebp
pop ebp
ret
call fcn.0041d357
call fcn.0041d357
call fcn.0041d357
nop
call fcn.0041d357
call fcn.0041d357
int3