Function at 0x408610
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1424
call fcn.00408f10
mov eax, dword [0x40feb8]
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x13c8], 0
mov dword [ebp - 0x11b0], 0
mov dword [ebp - 0x13c4], 0
mov dword [ebp - 0x13cc], 0
mov dword [ebp - 0x11ac], 0
mov eax, dword [0x40cd74]
mov dword [ebp - 0x13c0], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x13bc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xf98]
push edx
call fcn.00404360
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4086a1
mov eax, dword [ebp - 4]
jmp 0x408907
cmp dword [ebp + 0xc], 1
jne 0x4086ba
lea eax, [ebp - 0xf98]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00403990
add esp, 8
push 0
push 1
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0x105
lea eax, [ebp - 0x11a8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402850
add esp, 0x1c
mov dword [ebp - 0x11b0], eax
cmp dword [ebp - 0x11b0], 0
jne 0x40889f
lea edx, [ebp - 0x13c4]
push edx
push 0x40df00
lea eax, [ebp - 0x11a8]
push eax
call dword [0x410510]
mov dword [ebp - 0x11b0], eax
cmp dword [ebp - 0x11b0], 0
jl 0x40889f
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402ff0
add esp, 8
lea eax, [ebp - 0x13c8]
push eax
push 2
push 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x618
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4087ff
lea eax, [ebp - 0x13cc]
push eax
push 0x40e0c0
mov ecx, dword [ebp - 0x13c4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x13c4]
push eax
call dword [edx]
mov dword [ebp - 0x11b0], eax
cmp dword [ebp - 0x11b0], 0
jl 0x4087ff
lea ecx, [ebp - 0x11ac]
push ecx
mov edx, dword [ebp - 0x13cc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x13cc]
push ecx
call dword [eax + 0x24]
mov dword [ebp - 0x11b0], eax
cmp dword [ebp - 0x11ac], 0
je 0x4087ff
mov edx, dword [ebp - 0x11ac]
push edx
lea eax, [ebp - 0x1420]
push eax
call sub.MSVCR71.dll_wcscpy
add esp, 8
lea ecx, [ebp - 0x1420]
push ecx
call sub.MSVCR71.dll_wcslen
add esp, 4
shl eax, 1
mov dword [ebp - 0x1424], eax
mov edx, dword [ebp - 0x1424]
push edx
lea eax, [ebp - 0x1420]
push eax
push 1
push 0
push 0x40cd78
mov ecx, dword [ebp - 0x13c8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x13c0]
push eax
call fcn.00405430
add esp, 8
test eax, eax
je 0x408827
mov ecx, dword [ebp + 0x10]
push ecx
push str.LocalSystem
call fcn.004054d0
add esp, 8
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x10f4], 0
jne 0x40886a
mov dword [ebp - 0x13d0], 0x12
lea eax, [ebp - 0x13d0]
push eax
mov ecx, dword [ebp - 0x13d0]
push ecx
push 0x40fbe8
mov edx, dword [ebp - 0x13c4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x13c4]
push ecx
call dword [eax + 0x14]
mov dword [ebp - 0x11b0], eax
jmp 0x40889f
mov dword [ebp - 0x13d0], 0x18
lea edx, [ebp - 0x13d0]
push edx
mov eax, dword [ebp - 0x13d0]
push eax
push 0x40f9f0
mov ecx, dword [ebp - 0x13c4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x13c4]
push eax
call dword [edx + 0x14]
mov dword [ebp - 0x11b0], eax
cmp dword [ebp - 0x11ac], 0
je 0x4088b5
mov ecx, dword [ebp - 0x11ac]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x13cc], 0
je 0x4088d0
mov edx, dword [ebp - 0x13cc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x13cc]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x13c4], 0
je 0x4088eb
mov edx, dword [ebp - 0x13c4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x13c4]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x13c8], 0
je 0x408901
mov edx, dword [ebp - 0x13c8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x11b0]
mov ecx, dword [ebp - 8]
call fcn.00408ef1
pop edi
mov esp, ebp
pop ebp
ret