Function at 0x40c5d3
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x654
mov eax, dword [0x4424f4]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x401600
lea edi, [esp + 0x248]
rep movsd dword es:[edi], dword [esi]
push 0x1ee
lea eax, [esp + 0x266]
push 0
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
lea edi, [esp + 0x450]
mov esi, 0x40161c
lea eax, [esp + 0x46e]
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0x1ea
push 0
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
lea edi, [esp + 0x248]
push 2
pop ebx
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0x2001f
push 0
push edi
xor esi, esi
push SysReAllocStringLen
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c6b1
and dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x40163c
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40c6a7
push 0x40163c
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor esi, esi
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40c923
push edi
push 0x401648
lea eax, [esp + 0x48]
push 0x104
push eax
call fcn.0040c0e1
add esp, 0x10
test eax, eax
js 0x40c923
xor ecx, ecx
lea eax, [esp + 0x10]
push eax
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push eax
push ecx
push ecx
push 4
push 4
lea eax, [esp + 0x5c]
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x30], ecx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x40c7d6
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc]
push eax
push 0x401668
mov dword [esp + 0x28], 0x10000000
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 3
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x40c7b4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x40c798
push eax
push dword [esp + 0x1c]
push eax
push eax
push 4
push 4
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x40c790
inc esi
jmp 0x40c7a8
push eax
push 0x40562c
jmp 0x40c79e
push eax
push 0x405654
push 2
call fcn.0041e83a
add esp, 0xc
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40c7ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405674
push 2
call fcn.0041e83a
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40c7e6
push eax
push 0x4056a4
push 2
call fcn.0041e83a
add esp, 0xc
test esi, esi
je 0x40c7fe
lea eax, [esp + 0x40]
push eax
push 0x4056cc
push 4
call fcn.0041e83a
add esp, 0xc
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
push ecx
push ecx
push 4
push 4
lea eax, [esp + 0x5c]
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x34], ecx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x40c8fb
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc]
push eax
push 0x401670
mov dword [esp + 0x28], 0x10000000
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 3
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x40c8d9
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x40c8bd
push eax
push dword [esp + 0x1c]
push eax
push eax
push 4
push 4
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x40c8b5
inc esi
jmp 0x40c8cd
push eax
push 0x40562c
jmp 0x40c8c3
push eax
push 0x405654
push 2
call fcn.0041e83a
add esp, 0xc
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40c8ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405674
push 2
call fcn.0041e83a
add esp, 0xc
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40c90b
push eax
push 0x4056a4
push 2
call fcn.0041e83a
add esp, 0xc
test esi, esi
je 0x40c923
lea eax, [esp + 0x40]
push eax
push 0x4056cc
push 4
call fcn.0041e83a
add esp, 0xc
add edi, 0x208
sub ebx, 1
jne 0x40c650
mov ecx, dword [esp + 0x65c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00441130
mov esp, ebp
pop ebp