Function at 0x5fef0f87
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [ebp + 0xc], edi
jne 0x5fef0fd4
push 0x57
pop ecx
mov dword [esi + 8], ecx
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fef0fcd
test byte [eax + 0x1c], 1
je 0x5fef0fcd
cmp byte [eax + 0x19], 2
jb 0x5fef0fcd
push ecx
push edi
push 0x5ff36058
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee39e5
add esp, 0x18
xor eax, eax
jmp 0x5fef127b
push ebx
call fcn.5fef097e
test byte [ebp + 0x18], 1
je 0x5fef121d
push 1
call fcn.5fef71d0
pop ecx
test al, al
je 0x5fef121d
push dword [ebp + 0x18]
mov ecx, esi
push edi
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.5fef12f4
push edi
test eax, eax
jne 0x5fef1068
lea ebx, [esi + 4]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x5fef1273
mov ecx, dword [0x5ff4320c]
cmp ecx, 0x5ff4320c
je 0x5fef1273
test byte [ecx + 0x1c], 1
je 0x5fef1273
cmp byte [ecx + 0x19], 2
jb 0x5fef1273
push eax
push dword [ebp + 0xc]
push 0x5ff36058
push 0xd
jmp 0x5fef1265
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x14]
lea eax, [esi + 4]
push edi
push edi
push edi
push edi
push str.__volatile_test
push dword [eax]
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
call ebx
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.5fef097e
mov ecx, dword [ebp - 0xc]
cmp ecx, edi
je 0x5fef1142
cmp ecx, 0x3fd
je 0x5fef10e5
mov dword [esi + 8], ecx
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fef11be
test byte [eax + 0x1c], 1
je 0x5fef11be
cmp byte [eax + 0x19], 3
jb 0x5fef11be
push ecx
push dword [ebp + 0xc]
push 0x5ff36058
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x5fef11b6
push edi
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
mov dword [esi + 8], eax
cmp eax, edi
je 0x5fef1136
mov ecx, dword [0x5ff4320c]
cmp ecx, 0x5ff4320c
je 0x5fef1136
test byte [ecx + 0x1c], 1
je 0x5fef1136
cmp byte [ecx + 0x19], 2
jb 0x5fef1136
push eax
push dword [ebp + 0xc]
push 0x5ff36058
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.5fee39e5
add esp, 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ecx], edi
jmp 0x5fef1277
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fef1178
test byte [eax + 0x1c], 1
je 0x5fef1178
cmp byte [eax + 0x19], 3
jb 0x5fef1178
push 0x5ff36058
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1540
add esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x5fef11c5
mov ecx, dword [0x5ff4320c]
cmp ecx, 0x5ff4320c
je 0x5fef11be
test byte [ecx + 0x1c], 1
je 0x5fef11be
cmp byte [ecx + 0x19], 2
jb 0x5fef11be
push eax
push dword [ebp + 0xc]
push 0x5ff36058
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.5fee39e5
add esp, 0x18
xor eax, eax
jmp 0x5fef127a
push edi
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
mov dword [esi + 8], eax
cmp eax, edi
je 0x5fef1136
mov ecx, dword [0x5ff4320c]
cmp ecx, 0x5ff4320c
je 0x5fef1136
test byte [ecx + 0x1c], 1
je 0x5fef1136
cmp byte [ecx + 0x19], 2
jb 0x5fef1136
push eax
push dword [ebp + 0xc]
push 0x5ff36058
push 0x12
jmp 0x5fef1128
push edi
lea ebx, [esi + 4]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x5fef1273
mov ecx, dword [0x5ff4320c]
cmp ecx, 0x5ff4320c
je 0x5fef1273
test byte [ecx + 0x1c], 1
je 0x5fef1273
cmp byte [ecx + 0x19], 2
jb 0x5fef1273
push eax
push dword [ebp + 0xc]
push 0x5ff36058
push 0xc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.5fee39e5
add esp, 0x18
xor eax, eax
cmp dword [ebx], edi
setne al
pop ebx
pop edi
pop esi
leave
ret 0x14