Function at 0x40ccd1
Capabilities:
Set registry value

Disassembly:
push ebp
sub esp, 0xe4
lea ebp, [esp - 4]
mov eax, dword [0x489c20]
xor eax, ebp
mov dword [ebp + 0xe4], eax
push 0x18
mov eax, 0x46fd76
call fcn.00450afd
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], edi
sub esp, 0x1c
lea eax, [ebp + 0xf0]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov dword [ebp - 4], edi
call fcn.00406a5e
lea eax, [ebp]
push eax
call fcn.0040ca5e
add esp, 0x20
mov byte [ebp - 4], 1
cmp dword [ebp + 0x14], edi
jne 0x40cee4
xor eax, eax
push 0xc6
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push edi
push eax
call fcn.00450bc0
add esp, 0xc
mov esi, str.Software_
push esi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x20], edi
call fcn.004019b7
mov byte [ebp - 4], 2
cmp dword [ebp + 0x108], 8
mov eax, dword [ebp + 0xf4]
jae 0x40cd72
lea eax, [ebp + 0xf4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408b2d
push 0x47cf18
lea eax, [ebp - 0x10]
push eax
call fcn.00408b2d
cmp dword [ebp + 0x108], 8
mov eax, dword [ebp + 0xf4]
jae 0x40cd9f
lea eax, [ebp + 0xf4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408b2d
push str._Helper_Compact_
lea eax, [ebp - 0x10]
push eax
call fcn.00408b2d
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.004019b7
mov byte [ebp - 4], 3
cmp dword [ebp + 0x108], 8
mov eax, dword [ebp + 0xf4]
jae 0x40cdda
lea eax, [ebp + 0xf4]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00408b2d
push str.WAF_
lea eax, [ebp - 0x18]
push eax
call fcn.00408b2d
xor ebx, ebx
call fcn.0040c8f8
test eax, eax
je 0x40ce02
mov ebx, 0x200
lea esi, [ebp + 0x1c]
call fcn.0040c888
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
or ebx, 0x20006
push ebx
push edi
push edi
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call esi
test eax, eax
jne 0x40ce60
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp + 0x1c]
push eax
push 1
push edi
push str.ClientSign
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x1c]
push edi
push edi
push edi
push dword [ebp - 0x18]
push ebx
call esi
test eax, eax
jne 0x40cea4
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp + 0x1c]
push eax
push 1
push edi
push str.ClientSign
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 0x1c]
push eax
call fcn.00406a3c
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401464
push edi
push 1
lea ecx, [ebp]
call fcn.00401fd6
push edi
push 1
lea ecx, [ebp + 0xf0]
call fcn.00401fd6
mov eax, dword [ebp - 0x24]
jmp 0x40cf0a
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00406a5e
push edi
push 1
lea ecx, [ebp]
call fcn.00401fd6
push edi
push 1
lea ecx, [ebp + 0xf0]
call fcn.00401fd6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe4]
xor ecx, ebp
call fcn.0044eff8
add ebp, 0xe8
leave
ret