Function at 0x72a68df0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x38
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
test byte [0x72a76690], 8
jne 0x72a68ec0
test ebx, ebx
je 0x72a68f20
mov eax, dword [ebx]
cmp eax, 1
je 0x72a68f30
mov ebx, 6
cmp eax, 2
je 0x72a68e40
mov dword [esp], ebx
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x18
mov dword [esp + 4], str.DefaultSpoolDirectory
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
mov dword [esp], esi
call ebx
test eax, eax
je 0x72a68e80
mov dword [esp + 4], str.PortThreadPriority
mov dword [esp], esi
call ebx
test eax, eax
je 0x72a68e80
mov dword [esp + 4], str.SchedulerThreadPriority
mov dword [esp], esi
call ebx
test eax, eax
jne 0x72a69033
lea esi, [esi]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [0x72a7c508]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov ebx, eax
jmp 0x72a68e28
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], str.LocalSetPrinterDataEx__p___S___S___lu___p___lu__n
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], 0x1c7
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.LocalSetPrinterDataEx
mov dword [esp + 0x1c], eax
mov dword [esp + 8], 0x72a78c99
mov dword [esp + 4], 0x72a76690
mov dword [esp], 3
call sym._ros_dbg_log
test ebx, ebx
jne 0x72a68e13
mov ebx, 6
jmp 0x72a68e28
mov eax, dword [ebx + 4]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
add eax, 8
call sym.__MakePrinterSubKey.isra.0.constprop.1
mov ebx, eax
test eax, eax
jne 0x72a68fd1
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [0x72a7c508]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
mov ebx, eax
test eax, eax
je 0x72a69000
test byte [0x72a76690], 2
je 0x72a68fd1
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], str.RegOpenKeyExW_failed_for___S__with_error__lu__n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x182
mov dword [esp + 0xc], str._LocalSetPrinterHandleData
mov dword [esp + 8], 0x72a78c99
mov dword [esp + 4], 0x72a76690
mov dword [esp], 1
call sym._ros_dbg_log
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x72a68fe3
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x72a68e28
mov dword [esp], eax
call sym._DllFreeSplMem_4
sub esp, 4
jmp 0x72a68e28
mov eax, dword [ebp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
mov ebx, eax
jmp 0x72a68fd1
mov dword [esp + 4], str.BeepEnabled
mov dword [esp], esi
call ebx
test eax, eax
je 0x72a68e80
mov dword [esp + 4], str.AllowUserManageForms
mov dword [esp], esi
call ebx
test eax, eax
je 0x72a68e80
mov dword [esp + 4], str.NetPopup
mov dword [esp], esi
call ebx
test eax, eax
je 0x72a69083
mov dword [esp + 4], str.RetryPopup
mov dword [esp], esi
call ebx
test eax, eax
jne 0x72a69146
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov eax, dword [0x72a7c50c]
mov dword [esp + 8], 0
mov dword [esp + 4], str.Providers
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
mov ebx, eax
test eax, eax
je 0x72a69102
test byte [0x72a76690], 2
je 0x72a68e28
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.RegOpenKeyExW_failed_for__Providers__with_error__lu__n
mov dword [esp + 0x10], 0x1ad
mov dword [esp + 0xc], str._LocalSetPrintServerHandleData
mov dword [esp + 8], 0x72a78c99
mov dword [esp + 4], 0x72a76690
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a68e28
mov eax, dword [ebp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegSetValueExW_24
mov ebx, eax
mov eax, dword [ebp - 0xc]
sub esp, 0x18
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x72a68e28
mov dword [esp + 4], str.NetPopupToComputer
mov dword [esp], esi
call ebx
test eax, eax
je 0x72a69083
mov dword [esp + 4], str.EventLog
mov dword [esp], esi
call ebx
test eax, eax
je 0x72a69083
mov dword [esp + 4], str.RestartJobOnPoolError
mov dword [esp], esi
call ebx
test eax, eax
je 0x72a69083
mov dword [esp + 4], str.RestartJobOnPoolEnabled
mov dword [esp], esi
call ebx
test eax, eax
je 0x72a69083
mov dword [esp + 4], str.NoRemotePrinterDrivers
mov dword [esp], esi
call ebx
test eax, eax
je 0x72a69083
mov dword [esp + 4], str.WebShareMgmt
mov dword [esp], esi
call ebx
test eax, eax
jne 0x72a69208
xor ebx, ebx
test byte [0x72a76690], 4
je 0x72a68e28
mov dword [esp + 0x14], str.Attempting_to_set_WebShareMgmt__which_is_based_on_IIS_and_therefore_not_supported._Returning_fake_success__n
mov dword [esp + 0x10], 0x1b7
mov dword [esp + 0xc], str._LocalSetPrintServerHandleData
mov dword [esp + 8], 0x72a78c99
mov dword [esp + 4], 0x72a76690
mov dword [esp], 2
call sym._ros_dbg_log
jmp 0x72a68e28
mov ebx, 0x57
jmp 0x72a68e28