Function at 0x100082a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], 0
test byte [0x100131d8], 8
jne 0x10008410
test ebx, ebx
je 0x100082cd
cmp word [ebx], 0x5c
je 0x10008300
test esi, esi
je 0x100082d7
cmp word [esi], 0
jne 0x10008338
test byte [0x100131d8], 8
jne 0x10008478
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp word [ebx + 2], 0x5c
jne 0x100082cd
xor edx, edx
mov eax, ebx
call sym._copy_servername_from_name.part.0
test eax, eax
je 0x100082cd
test byte [0x100131d8], 1
jne 0x100085a9
mov eax, dword fs:[0x18]
xor ebx, ebx
mov dword [eax + 0x34], 0x7b
jmp 0x100082f3
mov dword [esp], 0x100131c0
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [0x10013154]
sub esp, 4
cmp ebx, 0x10013154
je 0x10008385
mov edi, dword [sym.imp.kernel32.dll_lstrcmpW]
lea esi, [esi]
mov eax, dword [ebx + 8]
test eax, eax
je 0x1000837b
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
sub esp, 8
test eax, eax
je 0x10008508
mov ebx, dword [ebx]
cmp ebx, 0x10013154
jne 0x10008360
mov dword [esp], 0x100131c0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x10]
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 ebx, eax
test eax, eax
je 0x100084b8
xor ebx, ebx
test byte [0x100131d8], 2
je 0x100082f3
mov edx, 0xffffffff
mov eax, str.SystemCurrentControlSetControlPrintMonitors_
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.unable_to_create_key__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x100082f3
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn
mov edx, 0xffffffff
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
call sym._wine_dbgstr_wn
mov edx, 0xffffffff
mov edi, eax
mov eax, ebx
call sym._wine_dbgstr_wn
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], str.__s___s___s__n
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x100082c3
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.pMonitorName__s_is_invalid_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x100082e4
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
sub esp, 8
test eax, eax
je 0x10008518
test byte [0x100131d8], 8
jne 0x10008570
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xbb8
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, ebx
call sym._monitor_unload
jmp 0x10008385
test byte [0x100131d8], 8
jne 0x1000853a
mov eax, dword [ebp - 0x10]
mov ebx, 1
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x100082f3
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str._s_deleted_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10008521
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str._s_does_not_exist_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x100084dc
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.server__s_not_supported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpDeleteMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x10008321