Function at 0x407ca3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.004084b0
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 [0x40f508]
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.00403d23
add esp, 8
mov dword [ebp - 0x1418], eax
cmp dword [ebp - 0x1418], 0
je 0x407d36
mov eax, dword [ebp - 0x1418]
jmp 0x407faf
cmp dword [ebp + 0xc], 1
jne 0x407d4f
lea eax, [ebp - 0x140c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004033a4
add esp, 8
push 0
push 1
mov edx, dword [ebp + 0x10]
push edx
push 1
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040247f
add esp, 0x18
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jne 0x407f43
lea edx, [ebp - 0x420]
push edx
push 0x4093a0
lea eax, [ebp - 0x20c]
push eax
call dword [0x40f4dc]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jl 0x407f43
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402b05
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 0x407e98
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 0x407e98
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 0x407e98
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 0x40ee08
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.00404cf1
add esp, 8
test eax, eax
je 0x407ec0
mov ecx, dword [ebp + 0x10]
push ecx
push str.LocalSystem
call fcn.00404d80
add esp, 8
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x10f4], 0
jne 0x407f03
mov dword [ebp - 0x478], 0x12
lea eax, [ebp - 0x478]
push eax
mov ecx, dword [ebp - 0x478]
push ecx
push 0x40dbf8
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 0x407f38
mov dword [ebp - 0x478], 0x18
lea edx, [ebp - 0x478]
push edx
mov eax, dword [ebp - 0x478]
push eax
push 0x40da00
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 0x407f43
jmp 0x407fad
cmp dword [ebp - 0x1410], 0
je 0x407f59
mov ecx, dword [ebp - 0x1410]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x424], 0
je 0x407f74
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 0x407f8f
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 0x407fa5
mov edx, dword [ebp - 0x1414]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x47c]
jmp 0x407faf
jmp 0x407f43
pop edi
mov esp, ebp
pop ebp
ret