Function at 0x5917b6ba
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x591d4f78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x1a0], ebx
jne 0x5917b6f0
xor eax, eax
jmp 0x5917b91a
push 0x5917965c
push eax
call fcn.5913e168
test eax, eax
jne 0x5917b6e9
lea eax, [ebp - 0x1a0]
push eax
push 0x5917ba1c
push 1
push ebx
push 0x5917ba2c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x5917b72f
mov eax, dword [ebp - 0x1a0]
cmp eax, ebx
je 0x5917b6e9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x5917b6e9
cmp dword [esi], ebx
mov eax, esi
push edi
mov dword [ebp - 0x19c], eax
jne 0x5917b930
cmp dword [ebp + 0x10], ebx
jne 0x5917b907
push 0x40
lea eax, [ebp - 0x184]
push eax
push dword [ebp - 0x198]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x591ec170]
push 0x5917ba0c
mov esi, 0x80
lea eax, [ebp - 0x104]
push esi
push eax
mov dword [ebp - 0x1a8], ebx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push eax
call fcn.59134ab1
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.5917b1bc
push 0x5917b9e0
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x18
push eax
call fcn.59134ab1
push 0x20019
lea eax, [ebp - 0x104]
mov edi, SysReAllocString
push eax
push edi
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x1a4], edi
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x19c], ebx
call fcn.5917b209
test eax, eax
jne 0x5917b83a
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x19c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x1ac], eax
call fcn.5917b1f0
cmp dword [ebp - 0x1ac], ebx
jne 0x5917b83a
cmp dword [ebp - 0x19c], ebx
jne 0x5917b83a
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x5917ba0c
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push eax
call fcn.59134ab1
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.5917b1bc
push 0x5917b9b0
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x18
push eax
call fcn.59134ab1
push 0x20019
lea eax, [ebp - 0x104]
push eax
push edi
lea ecx, [ebp - 0x198]
call fcn.5917b209
test eax, eax
jne 0x5917b8e6
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x19c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x198]
mov esi, eax
call fcn.5917b1f0
cmp esi, ebx
jne 0x5917b8e6
cmp dword [ebp - 0x19c], ebx
jne 0x5917b8e6
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x198]
call fcn.5917b1f0
lea ecx, [ebp - 0x1a4]
call fcn.5917b1f0
lea ecx, [ebp - 0x1a8]
call fcn.5917b285
mov eax, dword [ebp - 0x1a0]
cmp eax, ebx
je 0x5917b917
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.5911c55f
leave
ret 0xc
mov eax, dword [ebp - 0x19c]
cmp dword [ebp + 0x10], ebx
mov esi, dword [eax + 4]
lea edi, [ebp - 0x194]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x194]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x198]
movsd dword es:[edi], dword [esi]
je 0x5917b981
cmp dword [eax], 1
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax]
push eax
jne 0x5917b964
call dword [ecx + 0x14]
jmp 0x5917b967
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x5917b997
mov eax, dword [ebp - 0x1a0]
cmp eax, ebx
je 0x5917b97d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x5917b919
cmp dword [eax], 1
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax]
push eax
jne 0x5917b994
call dword [ecx + 0x18]
jmp 0x5917b997
call dword [ecx + 0x20]
add dword [ebp - 0x19c], 8
mov eax, dword [ebp - 0x19c]
cmp dword [eax], ebx
jne 0x5917b92a
jmp 0x5917b740