Function at 0x65145f50
Capabilities:
Delete registry key

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x1c], 0
mov ebx, dword [ecx + 8]
test byte [0x65157028], 8
jne 0x65146120
test esi, esi
je 0x65145f8a
cmp word [esi], 0x5c
je 0x65145fc8
test ebx, ebx
je 0x651462f8
cmp word [ebx], 0
jne 0x65146010
test byte [0x65157028], 8
jne 0x65146270
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor esi, esi
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
cmp word [esi + 2], 0x5c
jne 0x65145f8a
xor edx, edx
mov eax, esi
call sym._copy_servername_from_name.part.0
test eax, eax
je 0x65145f8a
test byte [0x65157028], 1
jne 0x65146310
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7b
lea esp, [ebp - 0x10]
xor esi, esi
pop ecx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp], 0x6515712c
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov esi, dword [0x65157124]
sub esp, 4
cmp esi, 0x65157124
je 0x6514605d
mov edi, dword [sym.imp.kernel32.dll_lstrcmpW]
lea esi, [esi]
mov eax, dword [esi + 8]
test eax, eax
je 0x65146053
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
sub esp, 8
test eax, eax
je 0x651463b0
mov esi, dword [esi]
cmp esi, 0x65157124
jne 0x65146038
mov dword [esp], 0x6515712c
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x1c]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintMonitors_
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x65146220
xor esi, esi
test byte [0x65157028], 2
je 0x65145fb4
mov eax, str.SystemCurrentControlSetControlPrintMonitors_
mov edx, eax
shr edx, 0x10
je 0x651464b3
mov dword [esp + 4], 0xffffffff
mov dword [esp], str.SystemCurrentControlSetControlPrintMonitors_
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x651460e7
mov edx, 0xffffffff
mov eax, str.SystemCurrentControlSetControlPrintMonitors_
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0xc], str.unable_to_create_key__s_n
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 4], 0x65157028
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x65145fb4
test ebx, ebx
je 0x651463c0
mov eax, ebx
shr eax, 0x10
je 0x651462d8
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x30], str._invalid_
sub esp, 8
test eax, eax
jne 0x65146161
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [ebp - 0x30], eax
test edi, edi
je 0x651463e0
mov eax, edi
shr eax, 0x10
je 0x65146390
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x2c], str._invalid_
sub esp, 8
test eax, eax
jne 0x651461a2
mov edx, 0xffffffff
mov eax, edi
call sym._wine_dbgstr_wn.part.0
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x651463d0
mov eax, esi
shr eax, 0x10
je 0x65146378
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x651461e0
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___s___s__n
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x65145f80
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
sub esp, 8
test eax, eax
je 0x651463f0
test byte [0x65157028], 8
jne 0x65146450
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xbb8
jmp 0x65145fb4
mov eax, ebx
shr eax, 0x10
je 0x65146420
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x651462a6
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.pMonitorName__s_is_invalid_n
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x65145fa5
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [ebp - 0x30], eax
jmp 0x65146161
test byte [0x65157028], 8
je 0x65145fa5
mov eax, str._null_
jmp 0x651462a6
mov eax, esi
shr eax, 0x10
je 0x65146438
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x65146346
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.server__s_not_supported_n
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 4], 0x65157028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x65145fe9
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x651461e0
movzx ecx, di
mov dword [esp], str._04x
mov dword [esp + 4], ecx
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [ebp - 0x2c], eax
jmp 0x651461a2
mov eax, esi
call sym._monitor_unload
jmp 0x6514605d
mov dword [ebp - 0x30], str._null_
jmp 0x65146161
mov eax, str._null_
jmp 0x651461e0
mov dword [ebp - 0x2c], str._null_
jmp 0x651461a2
test byte [0x65157028], 8
jne 0x651464cb
mov eax, dword [ebp - 0x1c]
mov esi, 1
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x65145fb4
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x651462a6
movzx esi, si
mov dword [esp], str._04x
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x65146346
mov eax, ebx
shr eax, 0x10
je 0x6514652a
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x65146486
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s_does_not_exist_n
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x65146248
movzx eax, ax
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x651460e7
mov eax, ebx
shr eax, 0x10
je 0x65146542
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x651464fd
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._s_deleted_n
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x651463fd
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x65146486
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x651464fd