Function at 0x5a5d92e8
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5a5dd198]
and dword [ebp - 0x218], 0
and dword [ebp - 0x220], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x228], eax
jmp 0x5a5d97d7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x5a5d1254
push edi
call esi
mov ebx, eax
neg ebx
push 0x5a5d1278
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x5a5d935f
test ebx, ebx
je 0x5a5d9408
mov ecx, dword [ebp - 0x214]
push edi
call fcn.5a5d88ae
mov esi, eax
test esi, esi
jl 0x5a5d97ff
cmp dword [ebp + 0x10], 0
je 0x5a5d9408
and dword [ebp - 0x210], 0
push 0x5c
push edi
call fcn.5a5d8826
test eax, eax
jne 0x5a5d97ef
mov ecx, dword [ebp - 0x214]
push edi
call fcn.5a5d8b4f
test eax, eax
je 0x5a5d93c5
mov eax, dword [ebp - 0x21c]
push edi
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], eax
call fcn.5a5d9225
and dword [ebp - 0x210], 0
test ebx, ebx
je 0x5a5d93fd
mov ecx, dword [ebp - 0x214]
push edi
call fcn.5a5d88ae
mov esi, eax
test esi, esi
jl 0x5a5d9831
mov ecx, dword [ebp - 0x214]
push edi
call fcn.5a5d8c61
lea ecx, [ebp - 0x210]
mov esi, eax
call fcn.5a5d83b1
jmp 0x5a5d9798
lea ecx, [ebp - 0x210]
call fcn.5a5d83b1
push 0x5a5d1264
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x5a5d9434
mov ecx, dword [ebp - 0x214]
and dword [ebp - 0x224], eax
push edi
call fcn.5a5d88ae
mov esi, eax
test esi, esi
jl 0x5a5d97ff
push 0x5a5d1290
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x5a5d9535
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call fcn.5a5d88ae
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x5a5d97ff
mov ecx, dword [ebp - 0x214]
push edi
call fcn.5a5d88ae
mov esi, eax
cmp esi, ebx
jl 0x5a5d97ff
cmp word [edi], 0x3d
jne 0x5a5d97fa
cmp dword [ebp + 0x10], ebx
je 0x5a5d94cb
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x210], eax
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.5a5d89a7
lea ecx, [ebp - 0x210]
mov esi, eax
mov dword [ebp - 0x210], ebx
call fcn.5a5d83b1
cmp esi, ebx
jmp 0x5a5d979a
cmp dword [ebp + 0x14], ebx
jne 0x5a5d9520
push 0x20006
push ebx
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
call fcn.5a5d8424
cmp eax, ebx
jne 0x5a5d9823
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x5a5d9515
cmp eax, 2
jne 0x5a5d9821
lea ecx, [ebp - 0x210]
call fcn.5a5d83b1
mov ecx, dword [ebp - 0x214]
push edi
call fcn.5a5d8c61
mov esi, eax
cmp esi, ebx
jmp 0x5a5d97e1
push 0x5c
push edi
call fcn.5a5d8826
test eax, eax
jne 0x5a5d97fa
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x5a5d95e2
mov esi, 0xf003f
push esi
push edi
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
call fcn.5a5d8424
test eax, eax
je 0x5a5d95a8
push 0x20019
push edi
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
call fcn.5a5d8424
test eax, eax
je 0x5a5d95a8
xor eax, eax
push eax
push eax
push esi
push eax
push eax
push edi
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
call fcn.5a5d83cf
test eax, eax
jne 0x5a5d97fa
mov ecx, dword [ebp - 0x214]
push edi
call fcn.5a5d88ae
mov esi, eax
test esi, esi
jl 0x5a5d97ff
cmp word [edi], 0x3d
jne 0x5a5d979c
mov ecx, dword [ebp - 0x214]
push edi
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.5a5d89a7
jmp 0x5a5d9796
cmp dword [ebp + 0x14], esi
jne 0x5a5d9609
push 0x20019
push edi
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
call fcn.5a5d8424
test eax, eax
je 0x5a5d9609
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x220], esi
jne 0x5a5d9621
mov eax, 0x208
call fcn.5a5dbcb0
mov dword [ebp - 0x220], esp
push 0x104
push edi
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], esi
jne 0x5a5d9666
push dword [ebp - 0x218]
mov ecx, dword [ebp - 0x214]
call fcn.5a5d8b85
test eax, eax
jne 0x5a5d9666
push dword [ebp - 0x218]
mov ecx, dword [ebp - 0x214]
call fcn.5a5d8bc1
test eax, eax
je 0x5a5d9739
mov ecx, dword [ebp - 0x214]
push edi
call fcn.5a5d88ae
mov esi, eax
test esi, esi
jl 0x5a5d97ff
mov ebx, dword [ebp - 0x214]
push edi
mov ecx, ebx
call fcn.5a5d8c61
mov esi, eax
test esi, esi
jl 0x5a5d97ff
cmp word [edi], 0x7b
jne 0x5a5d96e5
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x218]
push edi
call fcn.5a5d92e8
mov esi, eax
test esi, esi
jl 0x5a5d97ff
cmp dword [ebp + 0x14], 0
je 0x5a5d96f5
mov eax, dword [ebp - 0x228]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.5a5d88ae
mov esi, eax
test esi, esi
jl 0x5a5d97ff
push edi
mov ecx, ebx
call fcn.5a5d8c61
jmp 0x5a5d97dd
cmp dword [ebp + 0x14], 0
jne 0x5a5d97e3
mov ebx, dword [ebp - 0x214]
push dword [ebp - 0x218]
mov ecx, ebx
call fcn.5a5d8b85
test eax, eax
je 0x5a5d972f
push dword [ebp - 0x220]
mov ecx, ebx
call fcn.5a5d8b4f
test eax, eax
je 0x5a5d9728
push dword [ebp - 0x220]
lea ecx, [ebp - 0x218]
call fcn.5a5d9225
mov ecx, ebx
jmp 0x5a5d97d7
cmp dword [ebp + 0x14], 0
jne 0x5a5d97e3
lea ecx, [ebp - 0x218]
call fcn.5a5d83b1
test eax, eax
jne 0x5a5d97fa
cmp dword [ebp - 0x224], eax
je 0x5a5d9778
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x210], 0
lea ecx, [ebp - 0x210]
call fcn.5a5d83b1
mov ecx, dword [ebp - 0x214]
push edi
call fcn.5a5d88ae
mov esi, eax
test esi, esi
jl 0x5a5d97ff
mov ecx, dword [ebp - 0x214]
push edi
call fcn.5a5d8c61
mov esi, eax
test esi, esi
jl 0x5a5d97ff
cmp dword [ebp + 0x10], 0
je 0x5a5d97e3
cmp word [edi], 0x7b
jne 0x5a5d97e3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x5a5d97e3
mov ecx, dword [ebp - 0x214]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x218]
push edi
call fcn.5a5d92e8
mov esi, eax
test esi, esi
jl 0x5a5d97ff
mov ecx, dword [ebp - 0x214]
push edi
call fcn.5a5d88ae
mov esi, eax
test esi, esi
jl 0x5a5d97ff
cmp word [edi], 0x7d
jne 0x5a5d9336
jmp 0x5a5d97ff
lea ecx, [ebp - 0x210]
call fcn.5a5d83b1
mov esi, 0x80020009
lea ecx, [ebp - 0x218]
call fcn.5a5d83b1
mov eax, esi
lea esp, [ebp - 0x234]
mov ecx, dword [ebp - 4]
call fcn.5a5db9ad
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x5a5d982f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp - 0x210]
call fcn.5a5d83b1
jmp 0x5a5d97ff