Function at 0x406789
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x880], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x87c], 0
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x878], 0
push 0
push 1
mov eax, dword [ebp + 0x10]
push eax
push 1
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401fcf
add esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x406804
mov eax, dword [ebp - 0x14]
jmp 0x406a8f
lea eax, [ebp - 8]
push eax
push 0x409350
lea ecx, [ebp - 0x21c]
push ecx
call dword [0x40f0b8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x406828
jmp 0x406a8a
mov edx, dword [ebp + 0x10]
push edx
push 4
call fcn.004036cc
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x870]
push ecx
call fcn.00403b8d
add esp, 8
mov dword [ebp - 0x880], eax
cmp dword [ebp - 0x880], 0
je 0x406866
mov edx, dword [ebp - 0x880]
mov dword [ebp - 0x14], edx
jmp 0x406a85
lea eax, [ebp - 0x870]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040352e
add esp, 8
mov dword [ebp - 0x10], 0xe
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0x40c2e0
mov ecx, dword [ebp + 0x10]
add ecx, 0x410
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
call dword [eax + 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4068b1
jmp 0x406a80
lea edx, [ebp - 0x87c]
push edx
push 0x409190
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
call dword [ecx]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4068d6
jmp 0x406a7b
push 0
push 1
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0x40030
mov ecx, dword [ebp - 0x87c]
push ecx
call fcn.0040495d
add esp, 0x24
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x406908
jmp 0x406a76
lea edx, [ebp - 0x874]
push edx
mov eax, dword [ebp - 0x87c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x87c]
push edx
call dword [ecx + 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40692f
jmp 0x406a71
cmp dword [ebp - 0x874], 0
je 0x406951
mov eax, dword [ebp - 0x874]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x10a4
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
cmp dword [ebp - 0x874], 0
je 0x406967
mov edx, dword [ebp - 0x874]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x87c], 0
je 0x406982
mov eax, dword [ebp - 0x87c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x87c]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x406994
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
call dword [ecx + 8]
cmp dword [ebp - 8], 0
je 0x4069a6
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x14], 0
je 0x4069b4
mov eax, dword [ebp - 0x14]
jmp 0x406a8f
mov eax, dword [ebp + 0x10]
push eax
push 4
call fcn.00402655
add esp, 8
lea ecx, [ebp - 0x878]
push ecx
push 2
push 0
mov edx, dword [ebp + 0x10]
add edx, 0x618
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x880], eax
cmp dword [ebp - 0x880], 0
je 0x4069f2
jmp 0x406a6f
mov ecx, dword [ebp + 0x10]
add ecx, 0x10a4
push ecx
call sub.MSVCRT.dll_wcslen
add esp, 4
shl eax, 1
push eax
mov edx, dword [ebp + 0x10]
add edx, 0x10a4
push edx
push 1
push 0
push 0x40d28c
mov eax, dword [ebp - 0x878]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x880], eax
cmp dword [ebp - 0x880], 0
je 0x406a38
jmp 0x406a6d
mov ecx, dword [ebp + 0x10]
add ecx, 0x10a4
push ecx
push 0x40d2a4
call sub.MSVCRT.dll_wprintf
add esp, 8
cmp dword [ebp - 0x878], 0
je 0x406a65
mov edx, dword [ebp - 0x878]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x880]
jmp 0x406a8f
jmp 0x406a4f
jmp 0x406a4f
jmp 0x406951
jmp 0x406951
jmp 0x406951
jmp 0x406951
jmp 0x406951
jmp 0x406951
mov esp, ebp
pop ebp
ret