Function at 0x4013ed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp + 8], 0
jne 0x40142d
mov eax, 0xfffffffc
jmp 0x40160f
mov eax, dword [ebp + 8]
push eax
call fcn.00406b50
add esp, 4
add eax, 1
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00401258
add esp, 4
test eax, eax
jne 0x401459
mov eax, 0xfffffffd
jmp 0x40160f
lea edx, [ebp - 0x28]
push edx
push 0x2001f
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x401488
mov dword [ebp - 0x28], 0
jmp 0x40160d
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4014c0
mov dword [ebp - 8], 0
jmp 0x40160b
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4014f8
mov dword [ebp - 0x2c], 0
jmp 0x401609
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x401530
mov dword [ebp - 4], 0
jmp 0x401607
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40157d
mov dword [ebp - 0x48], 0
jmp 0x401605
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x48], 0
je 0x4015aa
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x4015ba
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], 0
je 0x4015ca
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x4015da
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x28], 0
je 0x4015ea
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x24]
push edx
call fcn.004011bb
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x401601
or eax, 0xffffffff
jmp 0x40160f
xor eax, eax
jmp 0x40160f
jmp 0x40159a
jmp 0x40159a
jmp 0x40159a
jmp 0x40159a
jmp 0x40159a
mov esp, ebp
pop ebp
ret