Function at 0x485ea0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bd35c
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x14], edi
cmp dword [0x4ee74c], ebx
je 0x4863e2
push 1
push 1
push str.SERIALSCANCOMPLETE
call fcn.004809b0
push 1
push ebx
push str.COMMS_CONNECTED
mov ecx, edi
call fcn.004809b0
push 1
push ebx
push str.COMMS_VIEWMESSAGE
mov ecx, edi
call fcn.004809b0
push 1
push ebx
push str.CAN_PRINT
mov ecx, edi
call fcn.004809b0
push 0x4c3af6
lea ecx, [esp + 0x14]
call fcn.00408080
mov dword [esp + 0x238], ebx
mov ecx, dword [0x4ee750]
mov ecx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x5c]
mov eax, dword [eax]
cmp ecx, dword [edi + 0x174]
jne 0x485f67
push ebx
mov ebx, 0x12
call fcn.0040dea0
xor ebx, ebx
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x485f92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push 1
push str.CONNECTIONTYPE
mov ecx, edi
call fcn.004809b0
mov dword [edi + 0x130], ebx
cmp dword [edi + 0x124], ebx
jne 0x4863d8
lea ecx, [edi + 0x140]
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 0x1b4]
mov edx, dword [eax + 0xc]
push edx
lea eax, [esp + 0x28]
push str..COM_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x24]
call fcn.00479a70
test eax, eax
je 0x4863c4
or esi, 0xffffffff
cmp dword [edi + 0x158], esi
je 0x4863bc
nop
cmp dword [edi + 0x124], ebx
jne 0x4863d8
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x170], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x18c], ebx
mov dword [edi + 0x17c], esi
mov dword [edi + 0x178], esi
mov dword [edi + 0x25c], ebx
cmp byte [edi + 0x254], bl
je 0x4863a0
cmp dword [edi + 0x234], ebx
je 0x4863a0
cmp dword [edi + 0x124], ebx
jne 0x4863b0
cmp dword [edi + 0x158], esi
je 0x486406
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x170], ebx
mov dword [edi + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x190], eax
lea esi, [edi + 0x21c]
lea ecx, [ecx]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
call fcn.0047d180
push esi
test eax, eax
je 0x4860e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [edi + 0x130], eax
jbe 0x4860e6
cmp dword [edi + 0x124], ebx
jne 0x4860e6
cmp byte [edi + 0x254], bl
je 0x4860e6
cmp byte [edi + 0x256], bl
je 0x4860a0
jmp 0x4860e6
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x14]
push 1
mov eax, 0x4c4848
mov edi, str.VIEWDELAY
mov ebx, esi
call fcn.00480a70
push 1
mov eax, 0x4c4848
mov edi, str.VIEWWIDTH
call fcn.00480a70
push 1
mov eax, 0x4c4848
mov edi, str.VIEWDELAYLOG
call fcn.00480a70
push 1
mov eax, 0x4c4848
mov edi, str.VIEWWIDTHLOG
call fcn.00480a70
push 1
xor edi, edi
push edi
push str.VIEWPRINTS
mov ecx, esi
call fcn.004809b0
push edi
push edi
push str.COMMS_CONNECTED
mov ecx, esi
call fcn.004809b0
push 1
push edi
push str.COMMS_VIEWMESSAGE
mov ecx, esi
call fcn.004809b0
push 1
push edi
push str.CAN_PRINT
mov ecx, esi
call fcn.004809b0
push 0x4c3af6
lea ecx, [esp + 0x1c]
call fcn.00408080
mov dword [esp + 0x238], 1
mov ecx, dword [0x4ee750]
mov ecx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x5c]
mov eax, dword [eax]
cmp ecx, dword [esi + 0x174]
jne 0x4861a5
push edi
lea ebx, [edi + 0x12]
call fcn.0040dea0
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4861d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x198]
cmp eax, edi
je 0x4861e6
lea ebx, [ebx]
mov eax, dword [eax]
cmp eax, edi
jne 0x4861e0
mov ecx, dword [esi + 0x1a8]
mov dword [esi + 0x1a0], edi
mov dword [esi + 0x1a4], edi
mov dword [esi + 0x19c], edi
mov dword [esi + 0x198], edi
call fcn.00499511
push str.PRINTER_STATUS
mov eax, esi
mov dword [esi + 0x1a8], edi
call fcn.00480b20
mov ebx, eax
cmp ebx, edi
je 0x486240
push ebx
call fcn.0049e31d
add esp, 4
push ebx
mov edi, eax
call fcn.0049081d
add esp, 4
cmp edi, 8
je 0x4862e5
xor edi, edi
push 1
push edi
push str.PRINTER_STATUS
mov ecx, esi
call fcn.004809b0
push 1
push edi
push str.SEND_ENABLED
mov ecx, esi
call fcn.004809b0
push 1
push edi
push str.CAN_PRINT
mov ecx, esi
call fcn.004809b0
push 0x4c3af6
lea ecx, [esp + 0x24]
call fcn.00408080
mov dword [esp + 0x238], 2
mov ecx, dword [0x4ee750]
mov ecx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x5c]
mov eax, dword [eax]
cmp ecx, dword [esi + 0x174]
jne 0x4862a9
push edi
mov ebx, 0x12
call fcn.0040dea0
xor edi, edi
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4862d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4ee750]
mov eax, dword [ecx + 0x24]
push eax
call fcn.00488790
jmp 0x4862e7
xor edi, edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x190], edi
cmp dword [esi + 0x124], edi
je 0x486304
mov eax, dword [esp + 0x10]
call fcn.00479a00
mov edi, dword [esp + 0x14]
xor ebx, ebx
push 1
push 1
push str.SERIALSCANCOMPLETE
mov ecx, edi
call fcn.004809b0
push 0x4c3af6
lea ecx, [esp + 0x20]
call fcn.00408080
mov dword [esp + 0x238], 3
mov ecx, dword [0x4ee750]
mov ecx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x5c]
mov eax, dword [eax]
cmp ecx, dword [edi + 0x174]
jne 0x486356
push ebx
mov ebx, 0x12
call fcn.0040dea0
xor ebx, ebx
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x486381
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi + 0x124], ebx
jne 0x486391
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
or esi, 0xffffffff
cmp byte [edi + 0x254], bl
jne 0x486051
cmp dword [edi + 0x124], ebx
jne 0x4863b0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x158], esi
jne 0x486000
cmp dword [edi + 0x124], ebx
jne 0x4863d8
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x124], ebx
je 0x485fbe
mov dword [edi + 0x128], 1
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0049dc2a
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x1b4]
mov edx, dword [eax + 0xc]
push edx
lea eax, [esp + 0x28]
push str..COM_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x24]
call fcn.00479a70
jmp 0x48630a