Function at 0x408c30
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1424
call fcn.00409590
mov eax, dword [0x410060]
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 [0x40d014]
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.004049c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408cc1
mov eax, dword [ebp - 4]
jmp 0x408f27
cmp dword [ebp + 0xc], 1
jne 0x408cda
lea eax, [ebp - 0xf98]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00403ff0
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.00402eb0
add esp, 0x1c
mov dword [ebp - 0x11b0], eax
cmp dword [ebp - 0x11b0], 0
jne 0x408ebf
lea edx, [ebp - 0x13c4]
push edx
push 0x40e1a0
lea eax, [ebp - 0x11a8]
push eax
call dword [0x4106e0]
mov dword [ebp - 0x11b0], eax
cmp dword [ebp - 0x11b0], 0
jl 0x408ebf
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00403650
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 0x408e1f
lea eax, [ebp - 0x13cc]
push eax
push 0x40e360
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 0x408e1f
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 0x408e1f
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 0x40d018
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.00405a90
add esp, 8
test eax, eax
je 0x408e47
mov ecx, dword [ebp + 0x10]
push ecx
push str.LocalSystem
call fcn.00405b30
add esp, 8
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x10f4], 0
jne 0x408e8a
mov dword [ebp - 0x13d0], 0x12
lea eax, [ebp - 0x13d0]
push eax
mov ecx, dword [ebp - 0x13d0]
push ecx
push 0x40fd90
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 0x408ebf
mov dword [ebp - 0x13d0], 0x18
lea edx, [ebp - 0x13d0]
push edx
mov eax, dword [ebp - 0x13d0]
push eax
push 0x40fb98
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 0x408ed5
mov ecx, dword [ebp - 0x11ac]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x13cc], 0
je 0x408ef0
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 0x408f0b
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 0x408f21
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.00409559
pop edi
mov esp, ebp
pop ebp
ret