Function at 0x40817b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.00408990
push edi
mov dword [ebp - 0x1418], 0
mov dword [ebp - 0x1414], 0
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x1410], 0
mov eax, dword [0x40f4c4]
mov dword [ebp - 0x41c], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x418]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x140c]
push edx
call fcn.00404130
add esp, 8
mov dword [ebp - 0x1418], eax
cmp dword [ebp - 0x1418], 0
je 0x40820e
mov eax, dword [ebp - 0x1418]
jmp 0x40848c
cmp dword [ebp + 0xc], 1
jne 0x408227
lea eax, [ebp - 0x140c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004037b1
add esp, 8
push 0
push 1
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0x105
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040284d
add esp, 0x1c
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jne 0x408420
lea edx, [ebp - 0x420]
push edx
push 0x4093a0
lea eax, [ebp - 0x20c]
push eax
call dword [0x40f49c]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jl 0x408420
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402f0d
add esp, 8
lea eax, [ebp - 0x1414]
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 - 0x1418], eax
cmp dword [ebp - 0x1418], 0
jne 0x408375
lea eax, [ebp - 0x424]
push eax
push 0x4091e0
mov ecx, dword [ebp - 0x420]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x420]
push eax
call dword [edx]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jl 0x408375
lea ecx, [ebp - 0x1410]
push ecx
mov edx, dword [ebp - 0x424]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x424]
push ecx
call dword [eax + 0x24]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x1410], 0
je 0x408375
mov edx, dword [ebp - 0x1410]
push edx
lea eax, [ebp - 0x474]
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
lea ecx, [ebp - 0x474]
push ecx
call sub.MSVCRT.dll_wcslen
add esp, 4
shl eax, 1
mov dword [ebp - 0x210], eax
mov edx, dword [ebp - 0x210]
push edx
lea eax, [ebp - 0x474]
push eax
push 1
push 0
push 0x40edc8
mov ecx, dword [ebp - 0x1414]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1418], eax
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x41c]
push eax
call fcn.00405087
add esp, 8
test eax, eax
je 0x40839d
mov ecx, dword [ebp + 0x10]
push ecx
push 0x40b038
call fcn.00405116
add esp, 8
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x10f4], 0
jne 0x4083e0
mov dword [ebp - 0x478], 0x12
lea eax, [ebp - 0x478]
push eax
mov ecx, dword [ebp - 0x478]
push ecx
push 0x40dbb8
mov edx, dword [ebp - 0x420]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x420]
push ecx
call dword [eax + 0x14]
mov dword [ebp - 0x47c], eax
jmp 0x408415
mov dword [ebp - 0x478], 0x18
lea edx, [ebp - 0x478]
push edx
mov eax, dword [ebp - 0x478]
push eax
push 0x40d9c0
mov ecx, dword [ebp - 0x420]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x420]
push eax
call dword [edx + 0x14]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jge 0x408420
jmp 0x40848a
cmp dword [ebp - 0x1410], 0
je 0x408436
mov ecx, dword [ebp - 0x1410]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x424], 0
je 0x408451
mov edx, dword [ebp - 0x424]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x424]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x420], 0
je 0x40846c
mov edx, dword [ebp - 0x420]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x420]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x1414], 0
je 0x408482
mov edx, dword [ebp - 0x1414]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x47c]
jmp 0x40848c
jmp 0x408420
pop edi
mov esp, ebp
pop ebp
ret