Function at 0x4c0ed0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc2b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x408
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push ebx
mov ecx, 0xf558a0
mov dword [ebp - 4], 0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 4
jl 0x4c1226
cmp eax, esi
jge 0x4c0f42
cmp byte [eax + ebx], 0x5c
je 0x4c0f42
inc eax
jmp 0x4c0f35
xor edx, edx
cmp edx, eax
jge 0x4c0f55
mov cl, byte [edx + ebx]
mov byte [ebp + edx - 0x114], cl
inc edx
jmp 0x4c0f44
mov byte [ebp + eax - 0x114], 0
xor edx, edx
mov ecx, esi
sub ecx, eax
cmp edx, ecx
jge 0x4c0f78
lea ecx, [edx + eax]
inc edx
mov cl, byte [ecx + ebx + 1]
mov byte [ebp + edx - 0x215], cl
jmp 0x4c0f5f
sub esi, eax
lea edx, [ebp - 0x214]
push edx
mov ecx, 0xf558a0
mov byte [ebp + esi - 0x214], 0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea edi, [ebp - 0x214]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea eax, [esi - 1]
test eax, eax
jle 0x4c0fce
cmp byte [ebp + eax - 0x214], 0x5c
je 0x4c0fce
dec eax
jmp 0x4c0fbd
xor edx, edx
cmp edx, eax
jge 0x4c0fe5
mov cl, byte [ebp + edx - 0x214]
mov byte [ebp + edx - 0x314], cl
inc edx
jmp 0x4c0fd0
mov byte [ebp + eax - 0x314], 0
xor edx, edx
mov ecx, esi
sub ecx, eax
cmp edx, ecx
jge 0x4c100b
lea ecx, [ebp + edx - 0x213]
inc edx
mov cl, byte [ecx + eax]
mov byte [ebp + edx - 0x415], cl
jmp 0x4c0fef
sub esi, eax
lea edx, [ebp - 0x114]
push str.HKCR
push edx
mov byte [ebp + esi - 0x414], 0
call fcn.004f61e0
add esp, 8
mov esi, closesocket
test eax, eax
je 0x4c1035
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push str.HKCU
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4c1052
mov esi, closesocket
lea ecx, [ebp - 0x114]
push str.HKLM
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4c106f
mov esi, closesocket
lea edx, [ebp - 0x114]
push 0x51a568
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4c108c
mov esi, reloc.WS2_32.dll_closesocket
lea eax, [ebp - 0x114]
mov ecx, 0xf558a0
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea ecx, [ebp - 0x314]
push ecx
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea edx, [ebp - 0x414]
mov ecx, 0xf558a0
push edx
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
push str.begin_del....
mov ecx, 0xf558a0
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea eax, [ebp - 0x314]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x14]
lea edx, [ebp + 8]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0xc30c0c
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x52a230
mov ecx, 0xf558a0
mov edi, eax
call fcn.004f0087
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
push eax
mov ecx, esi
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
test edi, edi
jne 0x4c11dc
push 0x52a22c
mov ecx, 0xf558a0
call fcn.004f0087
mov esi, eax
call ebx
push eax
mov ecx, esi
call fcn.004f0509
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x414]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4c11dc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret