Function at 0x72a66890
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
lea edi, [ebp - 0x70]
lea ecx, [ebp - 0x72]
mov esi, str.SYSTEMCurrentControlSetControlPrintMonitors_
push ebx
sub ecx, edi
sub esi, ecx
add ecx, 0x62
shr ecx, 2
sub esp, 0xb4
mov eax, dword [str.SYSTEMCurrentControlSetControlPrintMonitors_]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x72], eax
mov eax, dword [0x72a785ae]
mov dword [ebp - 0x14], eax
rep movsd dword es:[edi], dword [esi]
test byte [0x72a76664], 1
jne 0x72a66a10
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._copy_servername_from_name
mov esi, eax
test eax, eax
jne 0x72a669e0
mov eax, dword [ebx]
test eax, eax
je 0x72a6690d
cmp word [eax], 0
jne 0x72a66935
test byte [0x72a76664], 1
jne 0x72a66af3
mov dword [esp], 0x57
call sym._SetLastError_4
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._validate_envW
test eax, eax
je 0x72a66929
mov eax, dword [ebx + 8]
test eax, eax
je 0x72a66ac0
cmp word [eax], 0
je 0x72a66ac0
lea eax, [ebp - 0x84]
mov dword [esp], 0x80000002
mov dword [esp + 8], eax
lea eax, [ebp - 0x72]
mov dword [esp + 4], eax
call sym._RegCreateKeyW_12
sub esp, 0xc
test eax, eax
je 0x72a66b90
test byte [0x72a76664], 2
je 0x72a66929
lea eax, [ebp - 0x72]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], str.unable_to_create_key__s_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x2a5
mov dword [esp + 0xc], str.LocalAddMonitor
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a66929
test byte [0x72a76664], 1
jne 0x72a66b40
mov dword [esp], 5
xor esi, esi
call sym._SetLastError_4
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 4], 0xffffffff
mov edi, eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 4], 0xffffffff
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov edx, dword [ebp - 0x8c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.LocalAddMonitor__s___d___p_:__s__s__s_n
mov dword [esp + 0x10], 0x288
mov dword [esp + 0xc], str.LocalAddMonitor
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x72a668e4
test byte [0x72a76664], 1
je 0x72a6691a
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], str.pDLLName_not_valid_:__s_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x29f
jmp 0x72a66b17
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], str.pName_not_valid_:__s_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x294
mov dword [esp + 0xc], str.LocalAddMonitor
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x72a6691a
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], 0x72a785db
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x28d
mov dword [esp + 0xc], str.LocalAddMonitor
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x72a669ed
lea eax, [ebp - 0x7c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x80]
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 - 0x84]
mov dword [esp], eax
call sym._RegCreateKeyExW_36
sub esp, 0x24
test eax, eax
jne 0x72a66c75
cmp dword [ebp - 0x7c], 2
mov dword [ebp - 0x78], 0
je 0x72a66c9c
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym._lstrlenW_4
sub esp, 4
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 - 0x80]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x72a782ec
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [ebx + 8]
sub esp, 0x18
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sym._AddPrintMonitorList
mov esi, eax
test eax, eax
jne 0x72a66c8b
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sym._RegDeleteKeyW_8
sub esp, 8
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x72a66929
mov dword [esp], 0
call sym._SetLastError_4
sub esp, 4
jmp 0x72a66c67
lea eax, [ebp - 0x78]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x80]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x72a782ec
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x72a66bf6
test byte [0x72a76664], 1
jne 0x72a66cf8
mov dword [esp], 0xbbe
call sym._SetLastError_4
sub esp, 4
jmp 0x72a66c67
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx]
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], str.monitor__s_already_exists_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x2b6
mov dword [esp + 0xc], str.LocalAddMonitor
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x72a66ce4