Function at 0x100085f0
Capabilities:
Delete registry key
Persist via print monitors registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x40
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test byte [0x100131d8], 8
jne 0x10008700
test esi, esi
je 0x10008624
cmp word [esi], 0x5c
je 0x10008660
mov eax, dword [ebx]
test eax, eax
je 0x10008630
cmp word [eax], 0
jne 0x10008698
test byte [0x100131d8], 4
jne 0x10008788
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp word [esi + 2], 0x5c
jne 0x10008624
xor edx, edx
mov eax, esi
call sym._copy_servername_from_name.part.0
test eax, eax
je 0x10008624
test byte [0x100131d8], 1
jne 0x10008930
mov eax, dword fs:[0x18]
xor esi, esi
mov dword [eax + 0x34], 5
jmp 0x1000864c
mov eax, dword [ebx + 4]
call sym._validate_envW
test eax, eax
je 0x1000864a
mov eax, dword [ebx + 8]
test eax, eax
je 0x100086b5
cmp word [eax], 0
jne 0x100087c0
test byte [0x100131d8], 4
je 0x1000863d
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.pDLLName_not_valid_:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpAddMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000863d
mov eax, dword [ebx + 8]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov edx, 0xffffffff
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
call sym._wine_dbgstr_wn
mov edx, 0xffffffff
mov edi, eax
mov eax, dword [ebx]
call sym._wine_dbgstr_wn
mov edx, 0xffffffff
mov dword [ebp - 0x20], eax
mov eax, esi
call sym._wine_dbgstr_wn
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x20], edi
mov edi, dword [ebp - 0x20]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___ld___p_:__s__s__s_n
mov dword [esp + 8], str.fpAddMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000861a
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.pName_not_valid_:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpAddMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000863d
lea eax, [ebp - 0x1c]
mov dword [esp + 4], str.SystemCurrentControlSetControlPrintMonitors_
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x10008830
test byte [0x100131d8], 2
je 0x1000864a
mov edx, 0xffffffff
mov eax, str.SystemCurrentControlSetControlPrintMonitors_
xor esi, esi
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.fpAddMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000864c
lea eax, [ebp - 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x20007
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 0x24
test eax, eax
jne 0x10008916
cmp dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0
je 0x10008970
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Driver
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [ebx + 8]
sub esp, 0x18
test eax, eax
sete al
movzx eax, al
mov esi, eax
mov eax, dword [ebx]
call sym._monitor_load
test eax, eax
je 0x100089cb
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call edi
sub esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x1000864c
mov edx, 0xffffffff
mov eax, esi
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.fpAddMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x10008681
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Driver
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x1000889a
test byte [0x100131d8], 8
jne 0x100089e7
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xbbe
jmp 0x10008905
mov eax, dword [ebx]
xor esi, esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
sub esp, 8
jmp 0x10008905
mov eax, dword [ebx]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.monitor__s_already_exists_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpAddMonitor
mov dword [esp + 4], 0x100131d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x100089b9