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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bd0bc
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x18], edi
cmp dword [0x4ee74c], ebx
je 0x47d150
push 1
push ebx
push str.COMMS_CONNECTED
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 + 0x18]
call fcn.00408080
mov dword [esp + 0x240], 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 0x47cd37
push ebx
mov ebx, 0x12
call fcn.0040dea0
xor ebx, ebx
or esi, 0xffffffff
mov dword [esp + 0x240], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47cd60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
push ebx
push str.CONNECTIONTYPE
mov ecx, edi
call fcn.004809b0
mov eax, dword [edi + 0x1b4]
mov dword [edi + 0x130], ebx
cmp eax, ebx
je 0x47cd96
cmp dword [eax + 0x10], ebx
setne cl
cmp cl, bl
je 0x47cd96
mov dword [eax + 0x10], ebx
mov dword [edi + 0x124], 1
cmp dword [edi + 0x124], ebx
jne 0x47d150
lea ecx, [edi + 0x140]
mov dword [esp + 0x14], ecx
jmp 0x47cdb3
or esi, 0xffffffff
push 1
push 0x4c4848
mov eax, str.SERIALNUMBER
mov ecx, edi
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x170], ebx
mov dword [edi + 0x4c], 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
call fcn.004808f0
mov eax, dword [edi + 0x1b4]
mov edx, dword [eax + 0xc]
push edx
lea eax, [esp + 0x30]
push str..COM_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x2c]
call fcn.00479a70
test eax, eax
je 0x47ce43
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
mov dword [edi + 0x170], ebx
mov byte [edi + 0xc], bl
mov dword [edi + 0x4c], 1
cmp dword [edi + 0x158], 0xffffffff
je 0x47d0b2
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [edi + 0x190], eax
mov edi, edi
push edi
call fcn.0047d180
test eax, eax
je 0x47ce7c
call esi
cmp dword [edi + 0x130], eax
jbe 0x47ce7c
cmp dword [edi + 0x124], ebx
je 0x47ce60
mov edi, dword [edi + 0x174]
cmp edi, 5
jle 0x47ce95
push edi
push str.No_printer_on__d_r_n
call fcn.00477b80
add esp, 8
mov esi, dword [esp + 0x18]
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 1
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 + 0x2c]
call fcn.00408080
mov dword [esp + 0x240], 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 0x47cf55
push edi
lea ebx, [edi + 0x12]
call fcn.0040dea0
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47cf80
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 0x47cf96
lea ebx, [ebx]
mov eax, dword [eax]
cmp eax, edi
jne 0x47cf90
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 0x47cff2
push ebx
call fcn.0049e31d
add esp, 4
push ebx
mov dword [esp + 0x20], eax
call fcn.0049081d
add esp, 4
cmp dword [esp + 0x1c], 8
je 0x47d095
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 + 0x240], 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 0x47d05b
push edi
mov ebx, 0x12
call fcn.0040dea0
xor edi, edi
mov dword [esp + 0x240], 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 0x47d086
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
mov eax, dword [esp + 0x14]
mov dword [esi + 0x130], edi
mov dword [esi + 0x190], edi
call fcn.00479a00
mov edi, dword [esp + 0x18]
xor ebx, ebx
jmp 0x47d0ba
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 1
push str.SERIALSCANCOMPLETE
mov ecx, edi
call fcn.004809b0
push 0x4c3af6
lea ecx, [esp + 0x28]
call fcn.00408080
mov dword [esp + 0x240], 3
mov edx, dword [0x4ee750]
mov ecx, dword [edx + 0x1c]
mov ecx, dword [ecx + 0x5c]
mov eax, dword [eax]
cmp ecx, dword [edi + 0x174]
jne 0x47d106
push ebx
mov ebx, 0x12
call fcn.0040dea0
xor ebx, ebx
mov dword [esp + 0x240], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d131
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi + 0x124], ebx
jne 0x47d150
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x124], ebx
je 0x47cdb0
mov dword [edi + 0x128], 1
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0049dc2a
mov esp, ebp
pop ebp
ret