Function at 0x72a65560
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ecx, 0x18
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x70]
mov esi, str.SYSTEMCurrentControlSetControlPrintMonitors
push ebx
sub esp, 0xcc
mov dword [ebp - 0x90], 0
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x8c], 0
test byte [0x72a76664], 8
jne 0x72a659a0
lea eax, [ebp - 0x90]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x70]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
mov dword [0x72a7c524], 0x72a7c520
mov dword [0x72a7c520], 0x72a7c520
call sym._RegOpenKeyExW_20
sub esp, 0x14
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x72a65640
test byte [0x72a76664], 2
jne 0x72a659e0
mov eax, dword [ebp - 0x8c]
xor ebx, ebx
test eax, eax
je 0x72a65610
mov dword [esp], eax
xor ebx, ebx
call sym._RegCloseKey_4
sub esp, 4
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x72a65625
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov eax, dword [ebp - 0xa4]
mov dword [esp], eax
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x9c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x94]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._RegQueryInfoKeyW_48
sub esp, 0x30
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x72a65a62
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x8c]
xor ebx, ebx
xor edi, edi
xor esi, esi
test ecx, ecx
jne 0x72a65704
jmp 0x72a65d8b
xor edi, edi
test byte [0x72a76664], 2
jne 0x72a65980
add ebx, 1
mov eax, dword [ebp - 0x8c]
cmp dword [ebp - 0x94], ebx
jbe 0x72a65bc0
test eax, eax
je 0x72a6571d
mov dword [esp], eax
call sym._RegCloseKey_4
mov dword [ebp - 0x8c], 0
sub esp, 4
test edi, edi
je 0x72a6572c
mov dword [esp], edi
call sym._DllFreeSplMem_4
sub esp, 4
test esi, esi
je 0x72a6575f
mov eax, dword [esi + 0x10]
test eax, eax
je 0x72a65742
mov dword [esp], eax
call sym._DllFreeSplMem_4
sub esp, 4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x72a65754
mov dword [esp], eax
call sym._DllFreeSplMem_4
sub esp, 4
mov dword [esp], esi
call sym._DllFreeSplMem_4
sub esp, 4
mov dword [esp], 0x24
call sym._DllAllocSplMem_4
sub esp, 4
mov esi, eax
test eax, eax
je 0x72a65ad0
lea edi, [eax + 4]
mov ecx, eax
mov dword [eax], 0
and edi, 0xfffffffc
mov dword [eax + 0x20], 0
xor eax, eax
sub ecx, edi
add ecx, 0x24
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x9c]
lea eax, [eax + eax + 2]
mov dword [esp], eax
call sym._DllAllocSplMem_4
sub esp, 4
mov dword [esi + 0xc], eax
test eax, eax
je 0x72a65b20
mov edx, dword [ebp - 0x9c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 0x1c], 0
add edx, 1
mov dword [esp + 0x18], 0
mov dword [ebp - 0x98], edx
lea edx, [ebp - 0x98]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._RegEnumKeyExW_32
sub esp, 0x20
test eax, eax
jne 0x72a656e0
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov eax, dword [esi + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
je 0x72a658a0
xor edi, edi
test byte [0x72a76664], 2
je 0x72a656ef
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], str.RegOpenKeyExW_failed_for_Print_Provider___S__with_status__lu__n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0xe3
mov dword [esp + 0xc], str.InitializePrintMonitorList
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a656ef
mov eax, dword [ebp - 0x8c]
mov dword [esp + 4], 0x72a782ec
mov dword [esp], eax
call sym._AllocAndRegQueryWSZ
mov edi, eax
mov dword [esi + 0x10], eax
test eax, eax
je 0x72a656ef
mov dword [esp], eax
call sym._LoadLibraryW_4
sub esp, 4
mov edi, eax
test eax, eax
je 0x72a65a30
mov dword [esi + 0x14], eax
mov dword [esp + 4], str.InitializePrintMonitor2
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
test eax, eax
je 0x72a65bf0
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x88], 0x18
mov dword [ebp - 0x80], edx
lea edx, [esi + 0x20]
mov dword [esp + 4], edx
lea edx, [ebp - 0x88]
mov dword [ebp - 0x7c], 0x72a76620
mov dword [esp], edx
call eax
sub esp, 8
mov edi, eax
mov dword [esi + 0x1c], eax
test eax, eax
je 0x72a65cc0
test byte [0x72a76664], 1
jne 0x72a65b84
mov dword [esi + 0x18], 1
xor edi, edi
mov eax, dword [0x72a7c524]
mov dword [esi], 0x72a7c520
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0x72a7c524], esi
test byte [0x72a76664], 1
jne 0x72a65a90
add dword [esi + 8], 1
xor esi, esi
jmp 0x72a656ef
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x72a78270
mov dword [esp + 0x10], 0xdb
jmp 0x72a65873
mov dword [esp + 0x14], str.InitializePrintMonitorList___n
mov dword [esp + 0x10], 0x91
mov dword [esp + 0xc], str.InitializePrintMonitorList
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x72a6559c
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x72a78204
mov dword [esp + 0x10], 0x9a
mov dword [esp + 0xc], str.InitializePrintMonitorList
xor ebx, ebx
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 1
call sym._ros_dbg_log
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x72a65603
jmp 0x72a65610
test byte [0x72a76664], 2
je 0x72a656ef
call sym._GetLastError_0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], 0x72a782fc
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0xf0
jmp 0x72a65873
test byte [0x72a76664], 2
je 0x72a655f7
mov eax, dword [ebp - 0xa4]
mov dword [esp + 0x14], 0x72a7822c
mov dword [esp + 0x10], 0xa2
mov dword [esp + 0x18], eax
jmp 0x72a659f4
mov eax, dword [esi + 0x20]
mov dword [esp + 0x14], str.InitializePrintMonitorList_Handle__p_n
mov dword [esp + 0x10], 0x130
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.InitializePrintMonitorList
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x72a65972
mov dword [ebp - 0xa4], 8
test byte [0x72a76664], 2
je 0x72a655f7
mov dword [esp + 0x14], 0x72a78256
mov dword [esp + 0x10], 0xc7
mov dword [esp + 0xc], str.InitializePrintMonitorList
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a655f7
test byte [0x72a76664], 2
jne 0x72a65d03
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x72a65cf2
mov dword [esp], eax
xor ebx, ebx
call sym._RegCloseKey_4
mov dword [ebp - 0xa4], 8
push eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x72a65b62
mov dword [esp], eax
call sym._DllFreeSplMem_4
sub esp, 4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x72a65b74
mov dword [esp], eax
call sym._DllFreeSplMem_4
sub esp, 4
mov dword [esp], esi
call sym._DllFreeSplMem_4
sub esp, 4
jmp 0x72a65610
mov dword [esp + 0x14], str.InitializePrintMonitor2_loaded._n
mov dword [esp + 0x10], 0x109
mov dword [esp + 0xc], str.InitializePrintMonitorList
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x72a65946
test eax, eax
je 0x72a65bcf
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
test edi, edi
je 0x72a65bde
mov dword [esp], edi
call sym._DllFreeSplMem_4
sub esp, 4
mov ebx, 1
test esi, esi
jne 0x72a65b50
jmp 0x72a65610
mov dword [esp + 4], str.InitializePrintMonitor
mov dword [esp], edi
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x72a65d3c
mov eax, dword [ebp - 0x98]
lea eax, [eax + eax + 0x62]
mov dword [esp], eax
call sym._DllAllocSplMem_4
sub esp, 4
mov edi, eax
test eax, eax
je 0x72a65db0
lea eax, [ebp - 0x70]
mov dword [esp + 8], 0x5e
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._memmove
mov eax, dword [ebp - 0x98]
mov edx, 0x5c
mov word [edi + 0x5e], dx
lea eax, [eax + eax + 2]
mov dword [esp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 4], eax
lea eax, [edi + 0x60]
mov dword [esp], eax
call sym._memmove
mov dword [esp], edi
mov eax, dword [ebp - 0xa8]
call eax
sub esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x72a6594f
test byte [0x72a76664], 2
je 0x72a656ef
call sym._GetLastError_0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], str.InitializePrintMonitor_failed_for___S__with_error__lu__n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x123
jmp 0x72a65873
test byte [0x72a76664], 2
je 0x72a656ef
call sym._GetLastError_0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], str.InitializePrintMonitor2_failed_for___S__with_error__lu__n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x106
jmp 0x72a65873
mov dword [ebp - 0xa4], 8
xor ebx, ebx
jmp 0x72a65b50
mov dword [esp + 0x14], 0x72a78256
mov dword [esp + 0x10], 0xd2
mov dword [esp + 0xc], str.InitializePrintMonitorList
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a65b2d
xor edi, edi
test byte [0x72a76664], 2
je 0x72a656ef
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], str.No_initialization_routine_found_for___S___n
mov dword [esp + 0x10], 0x129
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.InitializePrintMonitorList
mov dword [esp + 8], 0x72a781a1
mov dword [esp + 4], 0x72a76664
mov dword [esp], 1
call sym._ros_dbg_log
jmp 0x72a656ef
test eax, eax
je 0x72a65d9a
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov dword [ebp - 0xa4], 0
mov ebx, 1
jmp 0x72a65610
test byte [0x72a76664], 2
je 0x72a65b2d
mov dword [esp + 0x14], 0x72a78256
mov dword [esp + 0x10], 0x117
jmp 0x72a65d13