Function at 0x406f40
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x48d0
call fcn.00409590
mov eax, dword [0x410060]
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.00403400
add esp, 0x18
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jge 0x406fcf
mov eax, dword [ebp - 0x228]
jmp 0x4071ca
lea edx, [ebp - 0x10]
push edx
push 0x40e1a0
lea eax, [ebp - 0x220]
push eax
call dword [0x4106e0]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jge 0x407002
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 4], ecx
jmp 0x407177
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x48d0]
push eax
call fcn.00404d90
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407023
jmp 0x407177
cmp dword [ebp + 0xc], 1
jne 0x40703c
lea ecx, [ebp - 0x48d0]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004042d0
add esp, 8
mov dword [ebp - 0x284], 0xc
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x284]
push ecx
push 0x40f3b8
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 0x407082
mov edx, dword [ebp - 0x228]
mov dword [ebp - 4], edx
jmp 0x407177
cmp dword [ebp - 0xc], 0
je 0x407177
lea eax, [ebp - 8]
push eax
push 0x40e360
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 0x4070bd
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 4], ecx
jmp 0x407177
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 0x4070ed
mov eax, dword [ebp - 0x228]
mov dword [ebp - 4], eax
jmp 0x407177
cmp dword [ebp - 0x224], 0
je 0x40710c
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.00403650
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 0x407145
jmp 0x407177
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 0x40be54
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 0x40718d
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x22c], 0
je 0x4071a3
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x4071b5
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 0x4071c7
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.00409559
mov esp, ebp
pop ebp
ret