Function at 0x72a64b50
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, 1
sub esp, 0xf4
cmp dword [ebp + 0xc], 1
je 0x72a64b73
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0xac]
mov esi, str.REGISTRYMACHINESOFTWAREMicrosoftWindows_NTCurrentVersionPrintPrinters
mov edi, ebx
mov dword [esp], eax
call sym._DisableThreadLibraryCalls_4
mov eax, dword [str.PRINTERS]
mov ecx, 0x27
mov dword [ebp - 0xd4], 0
rep movsd dword es:[edi], dword [esi]
sub esp, 4
mov dword [ebp - 0xc0], eax
mov eax, dword [0x72a77e60]
mov dword [esp + 4], str.SYSTEMCurrentControlSetControlPrintPrinters
mov dword [ebp - 0xbc], eax
mov eax, dword [0x72a77e64]
mov dword [esp], 0x80000002
mov dword [ebp - 0xb8], eax
mov eax, dword [0x72a77e68]
mov dword [esp + 0x20], 0
mov dword [ebp - 0xb4], eax
mov eax, dword [0x72a77e6c]
mov dword [esp + 0x18], 0
mov dword [ebp - 0xb0], eax
mov eax, dword [0x72a77e70]
mov dword [esp + 0x14], 0x22
mov dword [ebp - 0xce], eax
mov eax, dword [0x72a77e74]
mov dword [esp + 0x10], 3
mov dword [ebp - 0xca], eax
mov eax, dword [0x72a77e78]
mov dword [esp + 0xc], 0
mov dword [ebp - 0xc6], eax
movzx eax, word [0x72a77e7c]
mov dword [esp + 8], 0
mov word [ebp - 0xc2], ax
lea eax, [ebp - 0xd4]
mov dword [esp + 0x1c], eax
call sym._RegCreateKeyExW_36
sub esp, 0x24
test eax, eax
je 0x72a64c95
cmp eax, 0xb7
je 0x72a64cd2
test byte [0x72a7660c], 2
jne 0x72a64ef0
xor ebx, ebx
mov eax, dword [ebp - 0xd4]
test eax, eax
je 0x72a64b67
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, dword [ebp - 0xd4]
mov dword [esp + 0x14], 0x9a
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 6
mov dword [esp + 8], 0
mov dword [esp + 4], str.SymbolicLinkValue
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
test eax, eax
jne 0x72a64ec0
mov dword [esp + 0x10], 0x72a7c50c
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetControlPrint
mov dword [esp], 0x80000002
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x72a64d30
test byte [0x72a7660c], 2
je 0x72a64c6e
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.RegOpenKeyExW_failed_for__Print__with_error__lu__n
mov dword [esp + 0x10], 0xa5
jmp 0x72a64d84
mov dword [esp + 0x10], 0x72a7c508
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindows_NTCurrentVersionPrintPrinters
mov dword [esp], 0x80000002
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x72a64db0
test byte [0x72a7660c], 2
je 0x72a64c6e
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.RegOpenKeyExW_failed_for__Printers__with_error__lu__n
mov dword [esp + 0x10], 0xac
mov dword [esp + 0xc], str._InitializeLocalSpooler
mov dword [esp + 8], 0x72a77bbd
mov dword [esp + 4], 0x72a7660c
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a64c6e
mov dword [esp + 4], 0x104
mov dword [esp], 0x72a7c0e0
call sym._GetSystemDirectoryW_8
mov edx, dword [ebp - 0xce]
mov dword [ebp - 0xd8], 0x208
sub esp, 8
mov dword [eax + eax + 0x72a7c0e0], edx
mov edx, dword [ebp - 0xca]
mov dword [esp + 0x10], 0x72a7c300
mov dword [eax + eax + 0x72a7c0e4], edx
mov edx, dword [ebp - 0xc6]
mov dword [esp + 0xc], 0
mov dword [eax + eax + 0x72a7c0e8], edx
movzx edx, word [ebp - 0xc2]
mov dword [esp + 8], 0
mov word [eax + eax + 0x72a7c0ec], dx
add eax, 6
mov dword [0x72a7c0c0], eax
lea eax, [ebp - 0xd8]
mov dword [esp + 0x14], eax
mov eax, dword [0x72a7c508]
mov dword [esp + 4], 0x72a77d60
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x72a64f10
mov eax, dword [ebp - 0xd8]
shr eax, 1
sub eax, 1
mov dword [0x72a7c2e8], eax
call sym._InitializePrintMonitorList
test eax, eax
je 0x72a64c6e
call sym._InitializePortList
test eax, eax
je 0x72a64c6e
call sym._InitializePrintProcessorList
test eax, eax
je 0x72a64c6e
call sym._InitializePrinterList
test eax, eax
je 0x72a64c6e
call sym._InitializeGlobalJobList
test eax, eax
je 0x72a64c6e
call sym._InitializeFormList
test eax, eax
je 0x72a64c6e
call sym._InitializePrinterDrivers
xor ebx, ebx
test eax, eax
setne bl
jmp 0x72a64c70
test byte [0x72a7660c], 2
je 0x72a64c6e
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.RegSetValueExW_failed_for_the_Printers_symlink_with_error__lu__n
mov dword [esp + 0x10], 0x97
jmp 0x72a64d84
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.RegCreateKeyExW_failed_for_the_Printers_symlink_with_error__lu__n
mov dword [esp + 0x10], 0x9d
jmp 0x72a64d84
cmp eax, 2
je 0x72a64f69
test byte [0x72a7660c], 2
je 0x72a64c6e
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov dword [esp + 0x18], 0x72a77d60
mov dword [esp + 0x14], str.RegQueryValueExW_failed_for___S__with_error__lu__n
mov dword [esp + 0x10], 0xc9
mov dword [esp + 0xc], str._InitializeLocalSpooler
mov dword [esp + 8], 0x72a77bbd
mov dword [esp + 4], 0x72a7660c
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a64c70
mov esi, dword [0x72a7c0c0]
mov dword [esp + 4], 0x72a7c0e0
mov dword [esp], 0x72a7c300
lea ebx, [esi + esi]
mov dword [esp + 8], ebx
add ebx, 0x14
call sym._memcpy
mov eax, dword [ebp - 0xc0]
mov dword [esp + 0x10], 0x72a7c300
mov dword [esp + 0xc], 1
mov dword [esi + esi + 0x72a7c300], eax
mov eax, dword [ebp - 0xbc]
add esi, 9
mov dword [esp + 8], 0
mov dword [ebx + 0x72a7c2f0], eax
mov eax, dword [ebp - 0xb8]
mov dword [esp + 4], 0x72a77d60
mov dword [ebx + 0x72a7c2f4], eax
mov eax, dword [ebp - 0xb4]
mov dword [0x72a7c2e8], esi
mov dword [ebx + 0x72a7c2f8], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebx + 0x72a7c2fc], eax
mov eax, dword [0x72a7c508]
mov dword [esp + 0x14], ebx
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
jmp 0x72a64e61