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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x674014]
xor eax, ebp
mov dword [esp + 0x28], eax
push 0
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x4cfcc2
mov dword [esp + 0x24], 0
mov eax, ebx
or eax, 8
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4cfcc9
xor esi, esi
cmp eax, 2
je 0x4cfe91
mov esi, eax
jmp 0x4cfe91
xor esi, esi
jmp 0x4cfe91
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
push edi
call fcn.005f8ba4
add esp, 4
cmp eax, 0x7ffffff0
jae 0x4cfec7
mov ebx, eax
cmp eax, 5
jae 0x4cfd0a
mov byte [esp + 0x23], bl
lea esi, [esp + 0x18]
test ebx, ebx
jne 0x4cfd33
jmp 0x4cfd42
lea edi, [ebx + 8]
and edi, 0xfffffff8
lea eax, [edi + edi]
push eax
call fcn.005dc726
add esp, 4
mov esi, eax
mov dword [esp + 0x18], eax
or edi, 0x80000000
mov dword [esp + 0x20], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x1c], ebx
mov eax, ebx
add eax, ebx
push eax
push edi
push esi
call fcn.005df8f0
add esp, 0xc
mov word [esi + ebx*2], 0
mov al, byte [esp + 0x23]
test al, al
js 0x4cfd76
je 0x4cfd92
movzx ecx, al
lea edx, [esp + 0x18]
cmp word [edx + ecx*2 - 2], 0x5c
je 0x4cfd70
lea ecx, [esp + 0x18]
push 0x5c
call fcn.004aba70
mov al, byte [esp + 0x23]
test al, al
jns 0x4cfd94
jmp 0x4cfd8c
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4cfd8c
mov edx, dword [esp + 0x18]
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x4cfd61
jmp 0x4cfd70
mov ebx, dword [esp + 0x1c]
jmp 0x4cfd97
xor eax, eax
movzx ebx, al
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
lea esi, [esp + 8]
lea edi, [esp + 0x18]
jmp 0x4cfdd7
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.004cfc60
add esp, 0xc
test eax, eax
jne 0x4cfe66
mov dword [esp + 4], 0x104
push 0x104
push esi
call fcn.004ce740
add esp, 8
mov ecx, dword [esp + 0x24]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea edx, [esp + 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4cfe66
mov ecx, esi
push 0
push dword [esp + 8]
call fcn.004abdfc
mov ecx, edi
push 0
push ebx
call fcn.004abdfc
movzx eax, byte [esp + 0x13]
mov edx, esi
test al, al
jns 0x4cfe47
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, edi
push eax
push edx
call fcn.004ab748
cmp byte [esp + 0x23], 0
mov eax, edi
jns 0x4cfdc0
mov eax, dword [esp + 0x18]
jmp 0x4cfdc0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
cmp byte [esp + 0x13], 0
js 0x4cfea6
cmp byte [esp + 0x23], 0
js 0x4cfeb9
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.005dd6f3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 8]
call fcn.005dc756
add esp, 4
cmp byte [esp + 0x23], 0
jns 0x4cfe91
push dword [esp + 0x18]
call fcn.005dc756
add esp, 4
jmp 0x4cfe91
call fcn.005f1440
int3