Function at 0xc1ed20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x68], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x68]
add eax, 0x24
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x18], 0x10
jb 0xc1ed4d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
jmp 0xc1ed56
mov ecx, dword [ebp - 0x18]
add ecx, 4
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
push edx
push 0xf003f
push 0
mov eax, dword [ebp - 0x28]
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0xc1edad
mov dword [ebp - 0x24], 0
cmp dword [ebp - 4], 0
je 0xc1eda1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x20], 0
je 0xc1ee89
mov ecx, dword [ebp - 0x68]
add ecx, 0x24
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x18], 0x10
jb 0xc1edd4
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
jmp 0xc1eddd
mov edx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp - 0x44]
push edx
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x40], 0
je 0xc1ee20
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
cmp dword [ebp - 0x34], 0
jne 0xc1ee53
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 4], 0
je 0xc1ee47
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x34], 0
je 0xc1ee89
mov dword [ebp - 8], 0
mov dword [ebp - 0x48], 0
cmp dword [ebp - 4], 0
je 0xc1ee81
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
jmp 0xc1efbe
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
push 4
lea edx, [ebp - 0x4c]
push edx
push 4
push 0
push str.Version
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0xc1eeff
mov dword [ebp - 0x50], 0
cmp dword [ebp - 4], 0
je 0xc1eecf
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x54], 0
cmp dword [ebp - 4], 0
je 0xc1eef7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
jmp 0xc1efbe
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0xc1ef13
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x58], edx
jmp 0xc1ef1c
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp - 0x58]
push edx
push 1
push 0
push str.InstallPath
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0xc1ef93
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 4], 0
je 0xc1ef66
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x60], 0
cmp dword [ebp - 4], 0
je 0xc1ef8e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
jmp 0xc1efbe
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x64], 0
cmp dword [ebp - 4], 0
je 0xc1efbb
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0xc