Function at 0x406d10
Capabilities:
Delete registry key
Hide graphical window
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48989a
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x4b135c]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
mov eax, dword [0x4b135c]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [esp + 0x80]
push 0
push eax
call fcn.00421df0
add esp, 0xc
lea eax, [esp + 0x284]
push 0x208
push 0
push eax
call fcn.00421df0
add esp, 0xc
lea ecx, [esp + 0x284]
call fcn.00410990
lea eax, [esp + 0x284]
push eax
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x7a], 0x5c
jne 0x406dce
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x406e5f
xor ecx, ecx
mov word [esp + eax + 0x7c], cx
push 0x2d
xor eax, eax
mov dword [esp + 0x34], 7
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call fcn.00401b00
sub esp, 0x18
mov dword [esp + 0x4b8], 0
mov ecx, esp
mov dword [esp + 0x30], esp
xor eax, eax
push 0xc
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.InpaintMAXNP
mov word [ecx], ax
call fcn.00401b00
mov byte [esp + 0x4b8], 1
lea edx, [esp + 0x34]
cmp dword [esp + 0x48], 8
cmovae edx, dword [esp + 0x34]
sub esp, 0x18
mov esi, esp
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [edx], ax
jne 0x406e64
xor ecx, ecx
jmp 0x406e7f
call fcn.0041dea5
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406e70
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00401b00
mov byte [esp + 0x4d0], 0
call fcn.004024d0
add esp, 0x30
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x406eb0
lea ecx, [esp + 0x7c]
call fcn.004104e0
mov ecx, 1
call fcn.00411480
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.SoftwareInpaintMAX
push SysReAllocString
call esi
call fcn.00410d60
lea ecx, [esp + 0x64]
call fcn.00405d80
push 0x49fa50
mov edx, eax
mov byte [esp + 0x4a4], 2
lea ecx, [esp + 0x50]
call fcn.00406420
add esp, 4
push str.SoftwareInpaintMAX
mov edx, eax
mov byte [esp + 0x4a4], 3
lea ecx, [esp + 0x38]
call fcn.00406420
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x406f18
mov eax, dword [eax]
push eax
push SysStringLen
call esi
cmp dword [esp + 0x48], 8
jb 0x406f33
push dword [esp + 0x34]
call fcn.0046f2be
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
cmp dword [esp + 0x60], 8
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
jb 0x406f5d
push dword [esp + 0x4c]
call fcn.0046f2be
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov byte [esp + 0x4a0], al
cmp dword [esp + 0x78], 8
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
jb 0x406f8e
push dword [esp + 0x64]
call fcn.0046f2be
add esp, 4
lea ecx, [edi + 0x2c]
call fcn.0043b627
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [eax + 8]
call ebx
push 0
push dword [edi + 4]
call ebx
cmp dword [edi + 0x330], 0
jne 0x407053
push 0x33c
call fcn.0041db97
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov byte [esp + 0x4a0], 4
test esi, esi
je 0x40700b
mov ecx, esi
call fcn.00406580
mov dword [esi], vtable.CDlgCompleteWnd.3.0
mov dword [esi + 0x10], vtable.CDlgCompleteWnd.4.0
mov dword [esi + 0x20], vtable.CDlgCompleteWnd.0
mov dword [esi + 0x24], vtable.CDlgCompleteWnd.2.0
mov dword [esi + 0x28], vtable.CDlgCompleteWnd.1.0
mov dword [esi + 0x334], 0
jmp 0x40700d
xor esi, esi
mov byte [esp + 0x4a0], 0
mov dword [edi + 0x330], esi
test esi, esi
je 0x407063
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0
push 0x96c80000
push 0
push dword [edi + 4]
mov ecx, esi
call fcn.00438874
mov ecx, dword [edi + 0x330]
call fcn.0043871e
mov ecx, dword [edi + 0x330]
push 1
call fcn.0043871a
push eax
call ebx
cmp dword [esp + 0x30], 8
jb 0x407076
push dword [esp + 0x1c]
call fcn.0046f2be
add esp, 4
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret