Function at 0x100028a0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x30
mov eax, dword [0x1001100c]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [0x10014024], ebx
mov dword [0x1001403c], 0
call fcn.100043d0
mov ebp, dword [esp + 0x44]
cmp ebp, 3
mov dword [0x1001402c], eax
je 0x100028ea
cmp ebp, 4
jne 0x100029f6
cmp eax, 5
je 0x100028f8
cmp eax, 3
jne 0x100029f6
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._Device_Monitor__DeviceOpen:___nDeviceSelect__3____nDeviceSelect__4______m_iOs__WIN2000____m_iOs__WIN98___n
call esi
push str._Device_Monitor__Try_to_open_USBSCAN_n
call esi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [0x10014020], 3
xor esi, esi
mov edi, edi
push esi
lea ecx, [esp + 0x20]
push str..USBSCAN_d
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0x40000000
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x10014044], eax
je 0x10002985
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push ecx
push edx
push eax
call fcn.10003dc0
add esp, 0xc
test eax, eax
jne 0x100029c5
mov eax, dword [0x10014044]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 1
cmp esi, 0x7f
jl 0x10002920
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100029eb
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10002998
sub eax, edx
je 0x100029eb
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._Device_Monitor__DeviceOpen:_Fail_to_open_Imaing_class__try_to_oepn_Printer_class_n
call edi
cmp ebp, 4
jne 0x100029db
push str._Device_Monitor__DeviceOpen:_nDeviceSelect__2_n
call edi
mov ebp, 2
jmp 0x10002a09
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10004b28
add esp, 0x30
ret
cmp ebp, 3
jne 0x100029fc
push str._Device_Monitor__DeviceOpen:_nDeviceSelect__0_n
call edi
xor ebp, ebp
jmp 0x10002a09
push str._Device_Monitor__DeviceOpen:_Fail_to_open_Imaing_class__device_is_NULL__so_Stop_going_printer_class_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test ebp, ebp
je 0x10002a09
cmp ebp, 2
jne 0x10002bb1
mov eax, dword [0x1001402c]
cmp eax, 5
je 0x10002a1c
cmp eax, 3
jne 0x10002bb1
push str._Device_Monitor__Try_to_open_USBPRINT_n
call edi
push str._Device_Monitor__DeviceOpen:___nDeviceSelect_0____nDeviceSelect__2_______m_iOs__WIN2000____m_iOs__WIN98___n
call edi
test ebx, ebx
mov dword [0x10014020], 1
je 0x10002a3d
cmp ebx, 4
jne 0x10002a94
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
push ecx
push edi
push esi
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.Control
call fcn.10003e80
add esp, 0x28
cmp eax, 0xffffffff
mov dword [0x10011ff4], eax
jne 0x10002a8b
test ebp, ebp
jne 0x10002a9c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10004b28
add esp, 0x30
ret
test ebx, ebx
jne 0x10002a9c
jmp 0x10002e60
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
cmp ebx, 1
je 0x10002aab
cmp ebx, 3
je 0x10002aab
cmp ebx, 4
jne 0x10002afe
mov edx, dword [esp + 0x14]
push edx
push edi
push esi
push 0
push 0x40000000
push 3
push 0
push 3
push 0x40000000
push str.Write
call fcn.10003e80
add esp, 0x28
cmp eax, 0xffffffff
mov dword [0x10011ffc], eax
jne 0x10002af4
test ebp, ebp
jne 0x10002b03
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10004b28
add esp, 0x30
ret
cmp ebx, 1
jne 0x10002b03
jmp 0x10002e60
mov eax, dword [0x10011ffc]
cmp ebx, 2
je 0x10002b12
cmp ebx, 3
je 0x10002b12
cmp ebx, 4
jne 0x10002b7b
mov eax, dword [esp + 0x14]
push eax
push edi
push esi
push 0
push 0x40000000
push 3
push 0
push 3
push 0x80000000
push str.Read
call fcn.10003e80
mov dword [0x10011ff8], eax
mov eax, dword [0x10011ffc]
add esp, 0x28
cmp eax, 0xffffffff
jne 0x10002b60
test ebp, ebp
jne 0x10002b7b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10004b28
add esp, 0x30
ret
cmp ebx, 2
je 0x10002e60
cmp ebx, 3
je 0x10002e60
cmp ebx, 4
je 0x10002e60
or ecx, 0xffffffff
cmp dword [0x10011ff4], ecx
jne 0x10002bab
cmp dword [0x10011ff8], ecx
jne 0x10002bab
cmp eax, ecx
jne 0x10002bab
test ebp, ebp
jne 0x10002bca
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10004b28
add esp, 0x30
ret
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test ebp, ebp
jne 0x10002bd0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10004b28
add esp, 0x30
ret
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp ebp, 1
je 0x10002be3
cmp ebp, 2
je 0x10002be3
cmp ebp, 4
jne 0x10002e60
push str._Device_Monitor__DeviceOpen:_LPT__nDeviceSelect__1____nDeviceSelect__2____nDeviceSelect_4__n
call edi
push 0x3e8
mov dword [0x10014020], 2
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1001402c]
cmp eax, 4
je 0x10002c0e
cmp eax, 5
jne 0x10002c13
call fcn.100017c0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10004770
add esp, 4
test eax, eax
jne 0x10002c40
push str.Device_ID_mismatch___n
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10004b28
add esp, 0x30
ret
mov eax, dword [0x1001402c]
cmp eax, 4
je 0x10002cbc
cmp eax, 5
je 0x10002cbc
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0xc0000000
push str.LPT1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x10011ff0], eax
je 0x10002a76
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
mov ecx, dword [0x10011ff0]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x3a98
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x2710
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
jmp 0x10002e60
push 4
mov byte [esp + 0x16], 0x10
mov byte [esp + 0x17], 5
call fcn.10004c18
add esp, 4
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push str..DgivEcp1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x10011ff0], eax
jne 0x10002d15
push str._Device_Monitor__INVALID_HANDLE_VALUE_n
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10004b28
add esp, 0x30
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push esi
push 0
push 0
push 1
lea edx, [esp + 0x26]
push edx
push 0x182004
push eax
call edi
test eax, eax
je 0x10002d44
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._Device_Monitor__NT_Parallel_ECP_MODE_setting___n
call ebx
jmp 0x10002d89
mov ecx, dword [0x10011ff0]
push 0
push esi
push 0
push 0
push 1
lea eax, [esp + 0x26]
push eax
push 0x182004
push ecx
mov byte [esp + 0x32], 0
call edi
test eax, eax
je 0x10002d76
push str._Device_Monitor__NT_Parallel_NIbble_MODE_setting___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10002d83
mov edx, dword [0x10011ff0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.10004c82
mov ecx, dword [0x10011ff0]
add esp, 4
xor ebp, ebp
push ebp
push esi
push ebp
push ebp
push 1
lea eax, [esp + 0x27]
push eax
push 0x182014
push ecx
call edi
test eax, eax
je 0x10002dba
push str._Device_Monitor__NT_Parallel_Set_Method_setting___n
call ebx
jmp 0x10002df1
mov eax, dword [0x10011ff0]
push ebp
push esi
push ebp
push ebp
push 1
lea edx, [esp + 0x27]
push edx
push 0x182014
push eax
mov byte [esp + 0x33], 0
call edi
test eax, eax
je 0x10002de4
push str._Device_Monitor__NT_Parallel_Set_Method_setting___n
call ebx
jmp 0x10002df1
mov ecx, dword [0x10011ff0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x10011ff0]
push ebp
lea edx, [esp + 0x1c]
push edx
push 0x14
lea eax, [esp + 0x28]
push eax
push ebp
push ebp
push 0x1b0020
push ecx
call edi
mov ecx, dword [0x10011ff0]
push ebp
lea edx, [esp + 0x18]
push edx
push ebp
push ebp
mov eax, 0x3a98
push 0x14
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
push 0x1b001c
push ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x3c], 0x5dc
call edi
test eax, eax
jne 0x10002e60
push str._Device_Monitor__NT_Parallel_Timeout_Setting_Error____n
call ebx
mov edx, dword [0x10011ff0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10004b28
add esp, 0x30
ret