Function at 0x406d90
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x46c0
call fcn.00408f10
mov eax, dword [0x40feb8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x46bc], 0
mov dword [ebp - 0x4660], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x465c], 0
mov dword [ebp - 0x4664], 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.004041b0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x4658]
push edx
call fcn.00404730
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406e16
mov eax, dword [ebp - 4]
jmp 0x406fd9
lea eax, [ebp - 0x4658]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00403c70
add esp, 8
mov dword [ebp - 0x46c0], 0xe
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x46c0]
push eax
push 0x40f0f8
mov ecx, dword [ebp + 0xc]
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 - 0x4660], eax
cmp dword [ebp - 0x4660], 0
jge 0x406e6d
jmp 0x406f07
lea edx, [ebp - 8]
push edx
push 0x40e0c0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
call dword [ecx]
mov dword [ebp - 0x4660], eax
cmp dword [ebp - 0x4660], 0
jge 0x406e92
jmp 0x406f07
push 0
push 1
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0x40030
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405570
add esp, 0x24
mov dword [ebp - 0x4660], eax
cmp dword [ebp - 0x4660], 0
je 0x406ec4
jmp 0x406f07
lea edx, [ebp - 0x465c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 0x24]
mov dword [ebp - 0x4660], eax
cmp dword [ebp - 0x4660], 0
je 0x406ee8
jmp 0x406f07
cmp dword [ebp - 0x465c], 0
je 0x406f07
mov eax, dword [ebp - 0x465c]
push eax
lea ecx, [ebp - 0x46b8]
push ecx
call sub.MSVCR71.dll_wcscpy
add esp, 8
cmp dword [ebp - 0x465c], 0
je 0x406f1d
mov edx, dword [ebp - 0x465c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 8], 0
je 0x406f2f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x406f41
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x4660], 0
je 0x406f55
mov eax, dword [ebp - 0x4660]
jmp 0x406fd9
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.00402ff0
add esp, 8
lea ecx, [ebp - 0x4664]
push ecx
push 2
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406f8e
jmp 0x406fc0
lea eax, [ebp - 0x46b8]
push eax
call sub.MSVCR71.dll_wcslen
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x46b8]
push ecx
push 1
push 0
push 0x40bc1c
mov edx, dword [ebp - 0x4664]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x4664], 0
je 0x406fd6
mov eax, dword [ebp - 0x4664]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
call fcn.00408ef1
mov esp, ebp
pop ebp
ret