Function at 0x40cbf0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e82b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x106c
call fcn.00429090
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x103c], eax
mov edi, dword [ebp + 0xc]
mov byte [ebp + 0x10], 0
xor edx, edx
mov dword [ebp - 0x1024], edx
mov dword [ebp - 0x1028], edx
mov dword [ebp - 0x102c], 0x400
mov dword [ebp - 0x1038], edx
mov dword [ebp - 4], edx
cmp eax, edx
je 0x40cf03
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x40cc62
sub eax, esi
sar eax, 1
je 0x40cf03
lea esi, [ebp - 0x1078]
call fcn.0040f3e0
mov byte [ebp - 4], 1
cmp byte [eax + 0x18], 0
sete bl
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0040f4c0
test bl, bl
je 0x40cca0
mov byte [ebp + 0x10], 0
test edi, edi
jne 0x40cca9
mov edi, 0x80000002
mov ebx, dword [ebp - 0x103c]
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebp - 0x1020], eax
test eax, eax
je 0x40ce32
mov dword [ebp - 0x104c], 0xf003f
lea eax, [ebp - 0x1024]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1020], eax
test eax, eax
je 0x40cd06
mov dword [ebp - 0x1048], eax
push 0x44d030
lea ecx, [ebp - 0x1048]
push ecx
call fcn.0042903a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x1028]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x1024]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x1020], eax
test eax, eax
je 0x40cd4f
mov dword [ebp - 0x1044], eax
push 0x44d030
lea ecx, [ebp - 0x1044]
push ecx
call fcn.0042903a
mov esi, dword [ebp - 0x1028]
add esi, 0xffffffff
mov dword [ebp - 0x1030], esi
test esi, esi
jl 0x40cdf9
push 0x800
push 0
lea edx, [ebp - 0x101c]
push edx
call fcn.00428ee0
add esp, 0xc
mov dword [ebp - 0x102c], 0x800
lea eax, [ebp - 0x105c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x102c]
push ecx
lea edx, [ebp - 0x101c]
push edx
push esi
mov eax, dword [ebp - 0x1024]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x1020], eax
test eax, eax
jne 0x40cdf1
push eax
mov ecx, dword [ebp - 0x1024]
push ecx
lea edx, [ebp - 0x101c]
push edx
call fcn.0040cbf0
add esp, 0xc
mov dword [ebp - 0x1020], eax
test eax, eax
je 0x40cdf1
mov dword [ebp - 0x1040], eax
push 0x44d030
lea eax, [ebp - 0x1040]
push eax
call fcn.0042903a
sub esi, 1
jmp 0x40cd58
mov eax, dword [ebp - 0x1024]
test eax, eax
je 0x40ce14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1024], 0
xor eax, eax
je 0x40ce24
push eax
push pe_nt_image_headers32
push ebx
push edi
call eax
jmp 0x40ce2c
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x1020], eax
push 0x800
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.00428ee0
add esp, 0xc
push ebx
push 0x400
lea edx, [ebp - 0x81c]
push edx
call fcn.0042771d
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
mov esi, dword [ebp + 0x10]
push 0x5c
lea eax, [ebp - 0x81c]
push eax
call fcn.004275d1
add esp, 8
test eax, eax
je 0x40ceb8
mov word [eax], 0
push esi
push edi
lea edx, [ebp - 0x81c]
call fcn.0040cf60
add esp, 8
test al, al
je 0x40ceb8
xor eax, eax
je 0x40ceaa
push eax
push pe_nt_image_headers32
lea ecx, [ebp - 0x81c]
push ecx
push edi
call eax
jmp 0x40ceb4
lea edx, [ebp - 0x81c]
push edx
push edi
call ebx
test eax, eax
je 0x40ce66
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1024]
test eax, eax
je 0x40ced0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1038]
test eax, eax
je 0x40cee1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x1020]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042683e
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x1034], eax
push 0x44d030
lea eax, [ebp - 0x1034]
push eax
call fcn.0042903a
mov ecx, dword [ebp - 0x1054]
mov dword [ebp - 0x1020], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40cf3e
ret