Function at 0x56fb00
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 edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x28], eax
push 0
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x56fcba
mov edx, esi
xor esi, esi
lea eax, [esp + 0x24]
mov dword [eax], esi
mov ecx, edi
or ecx, 8
push eax
push ecx
push esi
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x56fcbc
mov esi, eax
test eax, eax
jne 0x56fcbc
xor eax, eax
dec eax
lea esi, [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push dword [ebp + 0xc]
call fcn.005477d0
movzx eax, byte [esi + 0xb]
mov edx, eax
and edx, 0x7f
test al, al
mov ecx, dword [esi + 4]
mov dword [esp], edx
cmovs edx, ecx
test edx, edx
je 0x56fbbd
test al, al
jns 0x56fb99
mov esi, dword [esp + 0x18]
cmp word [esi + edx*2 - 2], 0x5c
je 0x56fbbd
lea esi, [esp + 0x18]
mov ecx, esi
push 0x5c
call fcn.00504400
movzx eax, byte [esi + 0xb]
mov ecx, dword [esi + 4]
mov edx, eax
and edx, 0x7f
mov dword [esp], edx
test al, al
mov eax, dword [esp]
cmovs eax, ecx
mov dword [esp], eax
xor eax, eax
lea esi, [esp + 8]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov eax, 0x104
lea ecx, [esp + 4]
mov dword [ecx], eax
push eax
push esi
call fcn.0056f740
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
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x56fcd1
mov ecx, esi
xor eax, eax
push eax
push dword [esp + 8]
call fcn.0040aa10
lea ecx, [esp + 0x18]
xor eax, eax
push eax
push dword [esp + 4]
call fcn.0040aa10
movzx eax, byte [esp + 0x13]
test al, al
jns 0x56fc4e
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
jmp 0x56fc53
and eax, 0x7f
mov edx, esi
lea ecx, [esp + 0x18]
push eax
push edx
call fcn.00410600
cmp byte [esp + 0x23], 0
lea eax, [esp + 0x18]
jns 0x56fc6d
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.0056fb00
add esp, 0xc
test eax, eax
jne 0x56fcd1
mov eax, 0x104
mov dword [esp + 4], eax
push eax
push esi
call fcn.0056f740
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
jmp 0x56fc0f
xor esi, esi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00512ee3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
cmp byte [esp + 0x13], 0
jns 0x56fcfd
push dword [esp + 8]
call fcn.0050fc7c
add esp, 4
cmp byte [esp + 0x23], 0
jns 0x56fcbc
push dword [esp + 0x18]
call fcn.0050fc7c
add esp, 4
jmp 0x56fcbc