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

Disassembly:
sub esp, 0xe8
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [esi + 0xce8], ebx
mov dword [esp + 0x2c], esi
mov eax, 0x4e001
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], ebx
jne 0x5b634f
mov eax, dword [esi + 0x90]
push eax
call fcn.005c0d10
mov edx, dword [esi + 0x90]
push 0x5c
lea eax, [esi + 0xf0e]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.005c1800
test eax, eax
jl 0x5b62f2
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.005c0f20
test eax, eax
mov dword [esp + 0x10], 1
jl 0x5b62f2
mov ecx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x50]
push eax
push ebx
push ecx
xor edi, edi
mov dword [esp + 0x4c], 0x5a
call ebp
cmp eax, 0x103
je 0x5b62f0
inc edi
cmp eax, ebx
jne 0x5b62cf
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x2001f
push ebx
lea eax, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b62c7
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x5d4f14
push edx
mov dword [esp + 0x34], 4
mov dword [esp + 0x4c], 0x5e
mov esi, 1
call fcn.005c1080
test eax, eax
jne 0x5b61d8
mov eax, dword [esp + 0x10]
push eax
call fcn.005c1260
test eax, eax
jne 0x5b61d8
xor esi, esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
push 0x5f70bc
push ecx
call fcn.005c1080
test eax, eax
jne 0x5b620a
mov edx, dword [esp + 0x10]
push edx
call fcn.005c1260
test eax, eax
jne 0x5b620a
xor esi, esi
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x5f70b4
push eax
call fcn.005c1080
test eax, eax
jne 0x5b623c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005c1260
test eax, eax
jne 0x5b623c
xor esi, esi
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x5f70ac
push edx
call fcn.005c1080
test eax, eax
jne 0x5b6263
xor esi, esi
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x5f70a4
push eax
call fcn.005c1080
test eax, eax
jne 0x5b6295
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005c1260
test eax, eax
jne 0x5b6295
xor esi, esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x5b62bf
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
dec edi
jmp 0x5b62c3
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], 0x5a
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x50]
push eax
push edi
push ecx
call ebp
cmp eax, 0x103
jne 0x5b6161
pop edi
pop ebp
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x5b6317
cmp dword [esp + 0x28], ebx
je 0x5b6310
cmp dword [esp + 0x10], ebx
jne 0x5b6310
push eax
call fcn.005c1380
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x5b6326
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], ebx
je 0x5b634a
mov edx, dword [esi + 0x90]
push 0x5c
lea eax, [esi + 0xf0e]
push eax
push edx
call fcn.005c1980
pop esi
pop ebx
add esp, 0xe8
ret
mov eax, 0x4e001
pop esi
pop ebx
add esp, 0xe8
ret