Function at 0x406b00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c0ad
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x840], ecx
mov dword [ebp - 4], 0
mov ecx, 6
mov esi, 0x423884
lea edi, [ebp - 0x628]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1ee
push 0
lea eax, [ebp - 0x60e]
push eax
call fcn.0040fb70
add esp, 0xc
call fcn.00404f40
movzx ecx, al
test ecx, ecx
je 0x406b82
push 0x4238a0
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x208
push 0
lea eax, [ebp - 0x830]
push eax
call fcn.0040fb70
add esp, 0xc
lea ecx, [ebp - 0x830]
push ecx
sub esp, 0x10
mov edx, esp
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0x14]
mov dword [edx + 0xc], ecx
call fcn.0040aff0
add esp, 0x14
push 0x208
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.0040fb70
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0x4238ac
push str._s_s
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
lea edx, [ebp - 0x834]
push edx
lea eax, [ebp - 0x838]
push eax
push 0
mov ecx, dword [ebp + 0x5c]
or ecx, 0xf003f
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x218]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x406c68
mov dword [ebp - 0x844], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x844]
jmp 0x406f45
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x628]
push edx
push 1
push 0
push 0
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x406ce4
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x5c]
push edx
lea eax, [ebp - 0x218]
push eax
push 0x80000000
mov ecx, dword [ebp - 0x840]
call fcn.00408cc0
mov dword [ebp - 0x848], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x848]
jmp 0x406f45
mov dword [ebp - 0x83c], 0
lea ecx, [ebp - 0x834]
push ecx
lea edx, [ebp - 0x83c]
push edx
push 0
mov eax, dword [ebp + 0x5c]
or eax, 0xf003f
push eax
push 0
push 0
push 0
push 0x4238c4
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x406d6f
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x5c]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0x80000000
mov ecx, dword [ebp - 0x840]
call fcn.00408cc0
mov dword [ebp - 0x84c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x84c]
jmp 0x406f45
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.0040fb70
add esp, 0xc
lea ecx, [ebp + 0x28]
call fcn.004042c0
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0x5c], 0x100
jne 0x406db8
push 0x4238e4
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x406dca
push 0x4238fc
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea ecx, [ebp - 0x420]
push ecx
push 1
push 0
push 0
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x406e6c
mov eax, dword [ebp - 0x83c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x5c]
push ecx
push 0x423914
mov edx, dword [ebp - 0x838]
push edx
mov ecx, dword [ebp - 0x840]
call fcn.00408cc0
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x5c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0x80000000
mov ecx, dword [ebp - 0x840]
call fcn.00408cc0
mov dword [ebp - 0x850], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x850]
jmp 0x406f45
push 0x423934
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push str.Apartment
push 1
push 0
push str.ThreadingModel
mov ecx, dword [ebp - 0x83c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x406f0c
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x5c]
push eax
push str.InProcServer32
mov ecx, dword [ebp - 0x838]
push ecx
mov ecx, dword [ebp - 0x840]
call fcn.00408cc0
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x5c]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0x80000000
mov ecx, dword [ebp - 0x840]
call fcn.00408cc0
mov dword [ebp - 0x854], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x854]
jmp 0x406f45
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x858], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402ab0
mov eax, dword [ebp - 0x858]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e852
mov esp, ebp
pop ebp
ret 0x58