Function at 0x407783
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.00407f50
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 [0x40f0d8]
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.00403873
add esp, 8
mov dword [ebp - 0x1418], eax
cmp dword [ebp - 0x1418], 0
je 0x407816
mov eax, dword [ebp - 0x1418]
jmp 0x407a8f
cmp dword [ebp + 0xc], 1
jne 0x40782f
lea eax, [ebp - 0x140c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00402ef4
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.00401fcf
add esp, 0x18
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jne 0x407a23
lea edx, [ebp - 0x420]
push edx
push 0x409350
lea eax, [ebp - 0x20c]
push eax
call dword [0x40f0b8]
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jl 0x407a23
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00402655
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 0x407978
lea eax, [ebp - 0x424]
push eax
push 0x409190
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 0x407978
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 0x407978
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 0x40ea08
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.00404841
add esp, 8
test eax, eax
je 0x4079a0
mov ecx, dword [ebp + 0x10]
push ecx
push str.LocalSystem
call fcn.004048d0
add esp, 8
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x10f4], 0
jne 0x4079e3
mov dword [ebp - 0x478], 0x12
lea eax, [ebp - 0x478]
push eax
mov ecx, dword [ebp - 0x478]
push ecx
push 0x40d7f8
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 0x407a18
mov dword [ebp - 0x478], 0x18
lea edx, [ebp - 0x478]
push edx
mov eax, dword [ebp - 0x478]
push eax
push 0x40d600
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 0x407a23
jmp 0x407a8d
cmp dword [ebp - 0x1410], 0
je 0x407a39
mov ecx, dword [ebp - 0x1410]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x424], 0
je 0x407a54
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 0x407a6f
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 0x407a85
mov edx, dword [ebp - 0x1414]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x47c]
jmp 0x407a8f
jmp 0x407a23
pop edi
mov esp, ebp
pop ebp
ret