Function at 0x464df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bd4b3
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x140]
push eax
mov dword [esp + 0x38], eax
call esi
xor eax, eax
push str.USBPRINT
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
call fcn.0046ccd0
mov ebx, eax
test ebx, ebx
je 0x464e75
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], 0
jne 0x464f2b
mov eax, dword [0x4ee750]
mov eax, dword [eax + 0x1c]
add eax, 0x64
push eax
call esi
mov ecx, dword [0x4ee750]
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax + 0x5c]
inc dword [0x4ee7c8]
push edx
push eax
call fcn.004823b0
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x464eee
mov eax, dword [0x4ee750]
mov ecx, dword [eax + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add ecx, 0x64
push ecx
call esi
sub dword [0x4ee7c8], 1
jns 0x464ed0
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
mov edx, dword [esp + 0x34]
push edx
call esi
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebx + 0x1c0]
test eax, eax
je 0x464f01
push eax
call esi
inc dword [0x4ee7c4]
mov eax, dword [0x4ee750]
mov eax, dword [eax + 0x1c]
add eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c8], 1
jns 0x464f61
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
jmp 0x464f61
push 0x204
call fcn.004907ee
mov esi, eax
add esp, 4
mov dword [esp + 0x40], esi
xor eax, eax
mov dword [esp + 0x80], eax
cmp esi, eax
je 0x464f50
call fcn.00487250
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x20], eax
mov ebx, eax
mov eax, dword [edi + 0x6c]
mov edx, dword [ebx]
mov dword [ebx + 0x1b0], eax
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x46504f
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], ecx
cmp eax, 0x1a
je 0x464fca
cmp eax, 0x1b
je 0x464fca
cmp eax, 0x21
je 0x464fca
cmp eax, 0x1c
je 0x464fca
cmp eax, 0x23
jne 0x465035
push esi
call fcn.0044bba0
test eax, eax
je 0x465035
mov edx, dword [esi]
mov eax, dword [edx + 0xa8]
mov ecx, esi
call eax
movzx ecx, al
push ecx
jmp 0x464fda
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
movzx eax, al
push eax
mov edx, dword [esi]
mov eax, dword [edx + 0xa4]
mov ecx, esi
call eax
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x90]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x98]
push eax
push ecx
mov eax, esp
mov dword [esp + 0x50], esp
push eax
mov ecx, esi
call edx
mov ecx, ebx
call fcn.0047c4a0
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
cmp eax, 8
jle 0x465035
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
push 0
mov ecx, esi
call edx
mov dword [esp + 0x30], 1
jmp 0x465043
mov eax, dword [esi]
mov edx, dword [eax + 0xc0]
push 1
mov ecx, esi
call edx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x464f81
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x4650c0
jmp 0x465064
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], ecx
cmp eax, 0x1a
je 0x465089
cmp eax, 0x1b
je 0x465089
cmp eax, 0x21
je 0x465089
cmp eax, 0x1c
je 0x465089
cmp eax, 0x23
jne 0x4650b9
push 0
push 0
push esi
mov ecx, ebx
call fcn.00487370
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
cmp eax, 0xa
jle 0x4650b9
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
push 0
mov ecx, esi
call eax
mov dword [esp + 0x30], 1
cmp dword [esp + 0x18], 0
jne 0x465060
cmp dword [ebp + 0x10], 0
jne 0x4656fa
mov eax, dword [edi + 0x6c]
mov edx, dword [edi + 0x70]
push 0xff0062
push 0
push 0
push 0
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x108]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [edi + 0x70]
mov edx, dword [edi + 0x6c]
mov eax, edi
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call fcn.0045fac0
mov dword [esp + 0x18], eax
test eax, eax
je 0x4651c6
mov ecx, dword [eax + 0x2c]
cmp ecx, 0x18
je 0x465189
cmp ecx, 0x19
je 0x465189
cmp ecx, 0x22
jne 0x4651a0
mov esi, dword [esp + 0x18]
add esi, 0x644
push 0x4c3af6
mov dword [esp + 0x3c], esi
call fcn.004116a0
mov esi, dword [esp + 0x1c]
add esp, 4
test al, al
je 0x465175
mov eax, dword [esp + 0x38]
lea ecx, [esi + 0x648]
push eax
call fcn.00408830
push 0
xor cl, cl
mov edi, esi
call fcn.00456120
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x108]
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, esi
jmp 0x46519b
mov ecx, dword [edi + 0x108]
mov edx, dword [eax]
push 0
push ecx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
mov edx, dword [edx + 8]
call edx
cmp dword [edi + 0x98], 0
je 0x4651c6
mov eax, dword [edi + 0x98]
mov ecx, dword [eax]
mov dword [edi + 0x98], ecx
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x465122
lea esi, [esp + 0x64]
mov eax, edi
call fcn.00464d60
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 8]
mov ecx, dword [edi + 0x70]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
mov eax, ecx
add ecx, ecx
push ecx
mov ecx, dword [edi + 0x6c]
push ecx
push edx
mov edx, dword [edi + 0x110]
shl eax, 7
lea eax, [edx + eax*2]
push eax
push ebx
call fcn.0047a5d0
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.00498c2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x465239
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x80], 1
mov ecx, dword [0x4ee750]
mov eax, dword [ecx + 0x14]
cmp eax, edi
jne 0x4652eb
cmp dword [edi + 0x130], 0
je 0x4652eb
lea esi, [edi + 0x138]
push 0x5c
mov ecx, esi
call fcn.00408240
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
sub ecx, eax
sub ecx, 0x25
push ecx
add eax, 0x12
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00408300
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 2
call fcn.00408830
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4652d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [0x4ee750]
push str.CurrentFilename
call fcn.0046cab0
mov edx, dword [ebx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.COMMS_CONNECTED
mov dword [esp + 0x1c], 0
call fcn.0046ccd0
mov esi, eax
test esi, esi
je 0x465343
push esi
call fcn.0049e31d
add esp, 4
push esi
mov dword [esp + 0x1c], eax
call fcn.0049081d
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
push str.COMMS_CONNECTED___d__r_n
call fcn.00477b80
add esp, 8
push str.USBPRINT
call fcn.0046ccd0
mov esi, eax
test esi, esi
je 0x465386
push esi
call fcn.0049e31d
add esp, 4
push esi
mov dword [esp + 0x1c], eax
call fcn.0049081d
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x46559b
mov edx, dword [esp + 0x28]
push edx
push 0
push str.Serialise___ptr___d__size___d_r_n
call fcn.00477b80
add esp, 0xc
mov dword [esp + 0x18], 1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov dword [ebx + 0x1e0], 1
mov dword [ebx + 0x138], edi
cmp dword [ebx + 0x2c], edi
jne 0x4653d5
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x2c], ecx
mov edi, 1
push edi
push str.SendToPrinter___d__r_n
mov dword [esp + 0x1c], edi
call fcn.00477b80
add esp, 8
test edi, edi
je 0x465570
cmp dword [ebx + 0x2c], 0
mov edi, 0x12c
je 0x46540f
mov edx, edi
dec edi
test edx, edx
je 0x46540b
push 0x64
call esi
cmp dword [ebx + 0x2c], 0
jne 0x4653fa
test edi, edi
jle 0x465431
cmp dword [ebx + 0x138], 0
mov edi, 0x12c
jne 0x465431
mov eax, edi
dec edi
test eax, eax
je 0x465431
push 0x64
call esi
cmp dword [ebx + 0x138], 0
je 0x46541d
mov eax, dword [ebx + 0x138]
cmp eax, 3
ja case.default.0x465440
jmp dword [eax*4 + 0x4657f8]
dec dword [esp + 0x18]
push str.Busy_or_no_message_returned_r_n
mov dword [esp + 0x18], 0
call fcn.00477b80
add esp, 4
jmp case.default.0x465440
xor eax, eax
push str.Error__r_n
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
call fcn.00477b80
add esp, 4
jmp case.default.0x465440
mov esi, dword [ebp + 8]
cmp dword [esi + 0x130], 0
jne 0x46549c
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [esp + 0x58]
call fcn.00461450
jmp 0x4654bd
push str.CurrentFilename
call fcn.0046ccd0
mov edi, eax
push esi
lea edx, [esp + 0x58]
mov ecx, edi
call fcn.00461450
push edi
call fcn.0049081d
add esp, 4
mov esi, dword [ebx + 0x28]
push 0x4c3af6
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], esi
call fcn.00408080
mov byte [esp + 0x80], 3
mov eax, dword [eax]
push 0
mov ebx, 0xca
call fcn.0040dea0
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x465510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c3af6
lea ecx, [esp + 0x44]
call fcn.00408080
mov byte [esp + 0x80], 4
mov eax, dword [eax]
push 0
mov ebx, 0xcb
call fcn.0040dea0
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46555c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
push str.SentToPrinterSuccess___d__r_n
call fcn.00477b80
mov ebx, dword [esp + 0x28]
add esp, 8
jmp case.default.0x465440
push 0x64
call esi
cmp dword [esp + 0x18], 0
mov dword [ebx + 0x1e0], 0
jle 0x4656cf
cmp dword [ebx + 0x138], 3
jne 0x4653a2
jmp 0x4656cf
push str.USB_DRIVEROOT
call fcn.0046ccd0
mov dword [esp + 0x20], eax
call fcn.00498c2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4655c3
push 0x80004005
call fcn.004010d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x20]
push ecx
mov byte [esp + 0x84], 5
call fcn.004658a0
mov ecx, dword [0x4ee750]
mov esi, eax
push esi
push 0x4cb980
call fcn.0046c980
mov eax, dword [edi]
test eax, eax
je 0x465607
push eax
call fcn.0049081d
add esp, 4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ecx
mov dword [edi], edx
mov dword [edi + 4], eax
mov dword [esp + 0x18], 1
call fcn.00465810
mov ecx, dword [0x4ee750]
push eax
push str.UsedSlots
call fcn.0046c980
mov ecx, dword [0x4ee750]
push esi
push str.LastUsedSlot
call fcn.0046c980
push 0x4c3af6
lea ecx, [esp + 0x44]
call fcn.00408080
mov byte [esp + 0x80], 6
mov eax, dword [eax]
mov ecx, dword [0x4ee74c]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x64]
push 0x12
call eax
mov byte [esp + 0x80], 5
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46569a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0049081d
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4656cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4656fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 0
jne 0x465724
lea ecx, [ebx + 0x1c0]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c4], 1
jns 0x465724
push str.ahhh_r_n
call fcn.00477b80
add esp, 4
push str.UNPRINTABLE
xor edi, edi
call fcn.0046ccd0
mov esi, eax
test esi, esi
je 0x46574a
push esi
call fcn.0049e31d
add esp, 4
push esi
mov edi, eax
call fcn.0049081d
add esp, 4
mov eax, dword [esp + 0x30]
cmp edi, eax
je 0x4657bb
mov ecx, dword [0x4ee750]
push eax
push str.UNPRINTABLE
call fcn.0046c980
push 0x4c3af6
lea ecx, [esp + 0x30]
call fcn.00408080
mov dword [esp + 0x80], 7
mov eax, dword [eax]
mov ecx, dword [0x4ee74c]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x64]
push 0x12
call eax
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4657bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 0
je 0x4657cc
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
cmp dword [esp + 0x38], 0
jne 0x4657de
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc