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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4293e6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x2d
xorps xmm0, xmm0
mov dword [ebp - 0x258], 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x254], 0
movups xmmword [ebp - 0x268], xmm0
call fcn.00407390
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x405945
xorps xmm0, xmm0
mov dword [ebp - 0x27c], eax
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x278], eax
movups xmmword [ebp - 0x28c], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4055c4
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28c]
call fcn.00407390
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x278]
mov eax, ecx
mov edi, dword [ebp - 0x27c]
sub eax, edi
cmp eax, 0x13
jb 0x40563a
cmp ecx, 7
lea esi, [ebp - 0x28c]
lea eax, [edi + 0x13]
cmova esi, dword [ebp - 0x28c]
push 0x26
mov dword [ebp - 0x27c], eax
push str.ArcControlServices
lea eax, [esi + edi*2]
push eax
call fcn.00414020
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x26], ax
lea eax, [ebp - 0x28c]
jmp 0x405654
push 0x13
push str.ArcControlServices
push dword [ebp - 0x274]
lea ecx, [ebp - 0x28c]
push 0x13
call fcn.00407210
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x240], xmm0
mov byte [ebp - 4], 3
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x278]
cmp ecx, 7
jbe 0x4056c2
mov edx, dword [ebp - 0x28c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4056b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40599f
push ecx
push edx
call fcn.00412bd8
add esp, 8
mov ecx, dword [ebp - 0x240]
xor eax, eax
mov word [ebp - 0x28c], ax
mov eax, 0x7ffffffe
sub eax, ecx
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x278], 7
cmp eax, 0x17
jb 0x4059a4
cmp dword [ebp - 0x23c], 7
lea eax, [ebp - 0x250]
lea edx, [ecx + 0x17]
mov dword [ebp - 0x228], 0
cmova eax, dword [ebp - 0x250]
lea edi, [ebp - 0x238]
mov esi, 7
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x224], 0
xorps xmm0, xmm0
mov dword [ebp - 0x270], edx
movups xmmword [ebp - 0x238], xmm0
cmp edx, esi
jbe 0x4057d3
mov esi, edx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x405790
mov eax, 0x7fffffff
mov esi, 0x7ffffffe
add eax, eax
cmp eax, 0x1000
jb 0x4057b0
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4059ae
push ecx
call fcn.0041283d
add esp, 4
test eax, eax
je 0x4059a9
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x4057bb
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x7fffffff
ja 0x4059ae
add eax, eax
jne 0x405762
xor edi, edi
jmp 0x4057c7
push eax
call fcn.0041283d
add esp, 4
mov edi, eax
mov edx, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x224], esi
lea esi, [ecx + ecx]
push esi
push eax
push edi
mov dword [ebp - 0x228], edx
call fcn.00414020
movups xmm0, xmmword [str.ArcControlServices.exe]
add esp, 0xc
xor ecx, ecx
movups xmmword [esi + edi], xmm0
movups xmm0, xmmword [0x431ddc]
push ecx
movups xmmword [esi + edi + 0x10], xmm0
movq xmm0, qword [0x431dec]
movq qword [esi + edi + 0x20], xmm0
mov eax, dword [0x431df4]
mov dword [esi + edi + 0x28], eax
mov ax, word [0x431df8]
mov word [esi + edi + 0x2c], ax
mov eax, dword [ebp - 0x270]
mov word [edi + eax*2], cx
lea ecx, [ebp - 0x26c]
cmp dword [ebp - 0x254], 7
lea eax, [ebp - 0x268]
push ecx
cmova eax, dword [ebp - 0x268]
push 0
push 2
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4058ac
mov eax, dword [ebp - 0x228]
cmp dword [ebp - 0x224], 7
lea ecx, [eax*2 + 2]
push ecx
lea eax, [ebp - 0x238]
cmova eax, dword [ebp - 0x238]
push eax
push 1
push 0
push 0x431cd8
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x4058ec
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4058e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4059a9
push ecx
push edx
call fcn.00412bd8
add esp, 8
xor eax, eax
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x224], 7
cmp eax, 7
jbe 0x405945
mov edx, dword [ebp - 0x250]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40593b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4059a9
push ecx
push edx
call fcn.00412bd8
add esp, 8
mov ecx, dword [ebp - 0x254]
cmp ecx, 7
jbe 0x405981
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405977
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4059a9
push ecx
push edx
call fcn.00412bd8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041274a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004176b9
call fcn.00401270
call fcn.004176b9
call fcn.004011d0
int3