Function at 0x40c693
Capabilities:
Delete registry key

Disassembly:
push 0x38
mov eax, 0x4af7d7
call fcn.0048bc3b
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 0x11], bl
call fcn.00403d35
push 0x4c37f0
lea ecx, [ebp + 0xc]
call fcn.0040f418
cmp byte [ebp + 8], bl
je 0x40c761
mov eax, dword [ebp + 0xc]
mov esi, dword [eax - 0xc]
cmp esi, 2
jle 0x40c713
push ebx
push 0x4c37f4
lea ecx, [ebp + 0xc]
call fcn.00403cda
add esi, 0xfffffffe
cmp eax, esi
jne 0x40c713
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffe
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403dec
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0xc]
call fcn.00404d62
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00403910
mov eax, dword [ebp + 0xc]
mov esi, dword [eax - 0xc]
cmp esi, 2
jle 0x40c761
push ebx
push 0x4c37fc
lea ecx, [ebp + 0xc]
call fcn.00403cda
add esi, 0xfffffffe
cmp eax, esi
jne 0x40c761
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffe
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403dec
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 0xc]
call fcn.00404d62
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00403910
push 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403dec
mov byte [ebp - 4], 3
push eax
mov ecx, str.hkey
call fcn.00404c26
neg eax
sbb al, al
inc al
mov byte [ebp + 0xb], al
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00403910
cmp byte [ebp + 0xb], bl
je 0x40c9da
lea ecx, [ebp - 0x1c]
xor edi, edi
call fcn.0040387f
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0040387f
mov byte [ebp - 4], 5
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x4c3704
call fcn.00403c71
mov byte [ebp - 4], 7
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 6
call fcn.0040cc64
add esp, 0xc
cmp dword [ebp - 0x40], 1
jbe 0x40c802
mov eax, dword [ebp - 0x44]
add eax, 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00404d62
cmp dword [ebp - 0x40], ebx
je 0x40c818
ja 0x40c813
push 0x80070057
call fcn.0040101f
mov eax, dword [ebp - 0x44]
jmp 0x40c81b
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
call fcn.00403c4b
mov byte [ebp - 4], 8
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 9
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov esi, 0x4c2ce4
push esi
call fcn.00403c71
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 9
call fcn.0040cc64
add esp, 0xc
cmp dword [ebp - 0x30], 1
jbe 0x40c8e1
cmp dword [ebp - 0x30], ebx
jbe 0x40c809
push dword [ebp - 0x34]
mov ecx, str.hkey_users
call fcn.00404c26
test eax, eax
jne 0x40c884
mov edi, SysStringLen
jmp 0x40c8e1
cmp dword [ebp - 0x30], ebx
jbe 0x40c809
push dword [ebp - 0x34]
mov ecx, str.hkey_current_user
call fcn.00404c26
test eax, eax
jne 0x40c8a1
mov edi, SysReAllocString
jmp 0x40c8e1
cmp dword [ebp - 0x30], ebx
jbe 0x40c809
push dword [ebp - 0x34]
mov ecx, str.hkey_classes_root
call fcn.00404c26
test eax, eax
jne 0x40c8c2
mov edi, SysReAllocString
jmp 0x40c8e1
cmp dword [ebp - 0x30], ebx
jbe 0x40c809
push dword [ebp - 0x34]
mov ecx, str.hkey_local_machine
call fcn.00404c26
test eax, eax
jne 0x40c8e1
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00403cda
inc eax
push eax
push ebx
lea ecx, [ebp + 8]
call fcn.0040f09c
cmp edi, ebx
je 0x40c99f
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
push ebx
push ecx
mov ecx, esp
cmp dword [eax - 0xc], ebx
je 0x40c943
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esp
push eax
call fcn.00403c4b
mov byte [ebp - 4], 0xb
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00403c4b
mov byte [ebp - 4], 0xc
push edi
mov byte [ebp - 4], 9
call fcn.0040cba2
add esp, 0x14
cmp al, bl
je 0x40c99f
jmp 0x40c99b
lea eax, [ebp + 8]
mov dword [ebp - 0x24], esp
push eax
call fcn.00403c4b
mov byte [ebp - 4], 0xd
push edi
mov byte [ebp - 4], 9
call fcn.0040c9ef
add esp, 0x10
cmp al, bl
jne 0x40c99b
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00403c4b
mov byte [ebp - 4], 0xe
push edi
mov byte [ebp - 4], 9
call fcn.0040c9ef
add esp, 0x10
cmp al, bl
jne 0x40c99b
push dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x40c99f
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 8
lea esi, [ebp - 0x34]
call fcn.004122f2
mov byte [ebp - 4], 6
lea ecx, [ebp + 8]
call fcn.00403910
mov byte [ebp - 4], 5
lea esi, [ebp - 0x44]
call fcn.004122f2
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00403910
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00403910
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00403910
mov al, byte [ebp - 0x11]
call fcn.0048bd13
ret