Function at 0x100013b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x114
mov eax, dword [0x1001100c]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push esi
mov esi, dword [esp + 0x120]
xor ebp, ebp
test esi, esi
je 0x100015ae
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100015ae
push ebp
lea eax, [esp + 0xc]
push eax
push esi
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
jne 0x1000140d
pop esi
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10004b28
add esp, 0x114
ret
mov edx, dword [esp + 8]
push edi
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 2
push edx
call sub.WINSPOOL.DRV_GetPrinterA
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x10001458
call edi
cmp eax, 0x7a
je 0x10001458
mov eax, dword [esp + 0xc]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10004b28
add esp, 0x114
ret
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
push ecx
push 0x40
call esi
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
push ebx
push 2
push ecx
call sub.WINSPOOL.DRV_GetPrinterA
test eax, eax
jne 0x100014b1
mov edx, dword [esp + 0x10]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10004b28
add esp, 0x114
ret
mov edx, dword [ebx + 0x4c]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 1
push edx
push 0
push eax
call sub.WINSPOOL.DRV_EnumJobsA
test eax, eax
jne 0x100014ef
call edi
cmp eax, 0x7a
je 0x100014ef
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x10]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
jmp 0x10001496
mov edx, dword [esp + 0x14]
push edx
push 0x40
call esi
mov edx, dword [esp + 0x14]
mov edi, eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [ebx + 0x4c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push edi
push 1
push eax
push 0
push ecx
call sub.WINSPOOL.DRV_EnumJobsA
test eax, eax
jne 0x1000153b
mov edx, dword [esp + 0x10]
push edx
call sub.WINSPOOL.DRV_ClosePrinter
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
push edi
call esi
jmp 0x10001496
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x10001572
lea ecx, [edi + 0x1c]
mov edx, eax
jmp 0x10001550
mov eax, dword [ecx]
cmp eax, 0x80
je 0x1000156a
cmp eax, 0x100
je 0x1000156a
cmp eax, 0x1000
je 0x1000156a
add ebp, 1
add ecx, 0x40
sub edx, 1
jne 0x10001550
mov eax, dword [esp + 0x10]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
push edi
call esi
push ebp
lea ecx, [esp + 0x20]
push str._Device_Monitor__GetJobCount_:__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, ebp
jmp 0x10001498
mov ecx, dword [esp + 0x118]
pop esi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.10004b28
add esp, 0x114
ret