Function at 0x406920
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x48d0
call fcn.00408f10
mov eax, dword [0x40feb8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402da0
add esp, 0x18
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jge 0x4069af
mov eax, dword [ebp - 0x228]
jmp 0x406baa
lea edx, [ebp - 0x10]
push edx
push 0x40df00
lea eax, [ebp - 0x220]
push eax
call dword [0x410510]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jge 0x4069e2
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 4], ecx
jmp 0x406b57
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x48d0]
push eax
call fcn.00404730
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406a03
jmp 0x406b57
cmp dword [ebp + 0xc], 1
jne 0x406a1c
lea ecx, [ebp - 0x48d0]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00403c70
add esp, 8
mov dword [ebp - 0x284], 0xc
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x284]
push ecx
push 0x40f210
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [eax + 0x14]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jge 0x406a62
mov edx, dword [ebp - 0x228]
mov dword [ebp - 4], edx
jmp 0x406b57
cmp dword [ebp - 0xc], 0
je 0x406b57
lea eax, [ebp - 8]
push eax
push 0x40e0c0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
call dword [edx]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jge 0x406a9d
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 4], ecx
jmp 0x406b57
lea edx, [ebp - 0x224]
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 - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x406acd
mov eax, dword [ebp - 0x228]
mov dword [ebp - 4], eax
jmp 0x406b57
cmp dword [ebp - 0x224], 0
je 0x406aec
mov ecx, dword [ebp - 0x224]
push ecx
lea edx, [ebp - 0x280]
push edx
call sub.MSVCR71.dll_wcscpy
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
push 2
call fcn.00402ff0
add esp, 8
lea ecx, [ebp - 0x22c]
push ecx
push 2
push 0
mov edx, dword [ebp + 0x10]
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 0x406b25
jmp 0x406b57
lea eax, [ebp - 0x280]
push eax
call sub.MSVCR71.dll_wcslen
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x280]
push ecx
push 1
push 0
push 0x40bbb4
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x224], 0
je 0x406b6d
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x22c], 0
je 0x406b83
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x406b95
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x10], 0
je 0x406ba7
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
call fcn.00408ef1
mov esp, ebp
pop ebp
ret