Function at 0x4697e0
Capabilities:
Check if file exists
Get file attributes
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4bd996
mov eax, dword fs:[0]
push eax
sub esp, 0x698
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x690], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x6ac]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6bc]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0x44]
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x44], eax
call edi
mov ecx, dword [0x4ee750]
push 0x64
push str.UPGRADEJOB_PERCENT
call fcn.0046c980
mov eax, dword [ebp + 0x34]
mov ecx, dword [0x4ee750]
mov esi, dword [ebp + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x1c]
add eax, 0x64
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call edi
mov edx, dword [0x4ee750]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x5c]
inc dword [0x4ee7c8]
push ecx
push eax
call fcn.004823b0
cmp eax, ebx
je 0x4698b8
lea ebx, [eax + 0x1c0]
test ebx, ebx
je 0x46989b
push ebx
call edi
inc dword [0x4ee7c4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c4], 1
jns 0x4698b8
push str.ahhh_r_n
call fcn.00477b80
add esp, 4
mov eax, dword [ebp + 0x34]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490828
mov ecx, eax
xor eax, eax
add esp, 4
cmp dword [ebp + 0x34], eax
mov dword [esp + 0x2c], ecx
jle 0x4698ee
mov dword [ecx + eax*4], 0
inc eax
cmp eax, dword [ebp + 0x34]
jl 0x4698e1
mov ecx, dword [0x4ee750]
push 0
push str.JOB_ERROR
call fcn.0046c980
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 0x469928
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
mov edi, dword [esp + 0x30]
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490828
add esp, 4
push edi
push 0
push eax
mov dword [esp + 0x40], eax
call fcn.004a1210
add esp, 0xc
test esi, esi
je 0x469d02
jmp 0x469965
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x14], 0
jne 0x469d02
mov edx, dword [0x4ee750]
mov ecx, dword [esi]
mov eax, esi
mov edi, dword [eax + 8]
mov eax, dword [edx + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add eax, 0x64
push eax
mov dword [esp + 0x24], ecx
call esi
mov eax, dword [0x4ee750]
mov ecx, dword [edi + 0xc]
mov eax, dword [eax + 0x1c]
push ecx
mov ebp, 1
add dword [0x4ee7c8], ebp
push eax
call fcn.004823b0
mov ebx, eax
test ebx, ebx
je 0x469c66
lea eax, [ebx + 0x1c0]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4699ce
push eax
call esi
add dword [0x4ee7c4], ebp
mov edx, dword [0x4ee750]
mov eax, dword [edx + 0x1c]
add eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c8], ebp
jns 0x4699f6
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
mov eax, dword [ebx + 0x1b4]
test eax, eax
je 0x469a21
cmp dword [eax + 0x10], 0
setne al
test al, al
je 0x469a21
mov edx, dword [edi + 0xc]
mov ecx, dword [0x4ee750]
mov eax, dword [edi]
mov esi, dword [ecx + 0x1c]
push edx
push 1
push eax
xor ecx, ecx
jmp 0x469a34
mov edx, dword [edi + 0xc]
mov eax, dword [0x4ee750]
mov ecx, dword [edi + 0x18]
mov esi, dword [eax + 0x1c]
push edx
push 0
push 0
call fcn.00482530
push 0x208
movzx ebp, al
call fcn.00490828
add esp, 4
mov esi, eax
test ebp, ebp
jne 0x469a6e
mov ecx, dword [0x4ee750]
push 2
push str.JOB_ERROR
mov dword [esp + 0x1c], 2
call fcn.0046c980
jmp 0x469b89
mov eax, dword [edi + 4]
lea edx, [esp + 0x9c]
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x469a80
push str.MESSAGEDATE
mov eax, ebx
call fcn.00480b20
mov ebp, eax
push str.PRINTER_NAME
mov eax, ebx
call fcn.00480b20
mov ebx, eax
mov eax, dword [edi + 4]
lea edx, [esp + 0x9c]
sub edx, eax
jmp 0x469ac0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x469ac0
mov eax, dword [edi + 8]
lea edx, [esp + 0x29c]
sub edx, eax
jmp 0x469ae0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x469ae0
xor eax, eax
movzx ecx, word [eax + 0x4c4c24]
mov word [esp + eax + 0x4c], cx
add eax, 2
test cx, cx
jne 0x469af1
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469b10
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.0049f415
add esp, 0xc
push ebp
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x2a8]
push eax
push str._s_s__s__s.snp
mov edx, esi
call fcn.0040a1c0
add esp, 0x14
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x2a0]
push edx
push str._s_s.foe
lea edx, [esp + 0x4a8]
call fcn.0040a1c0
add esp, 0xc
push ebx
call fcn.0049081d
add esp, 4
push ebp
call fcn.0049081d
add esp, 4
cmp dword [edi + 0x1c], 0
jne 0x469bc6
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebx
cmp eax, 0xffffffff
jne 0x469bfd
lea eax, [esp + 0x49c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x469bfd
mov ecx, dword [0x4ee750]
push 1
push str.JOB_ERROR
mov dword [esp + 0x1c], 1
call fcn.0046c980
test esi, esi
je 0x469bd3
push esi
call fcn.0049081d
add esp, 4
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c4], 1
jns 0x469ca8
push str.ahhh_r_n
call fcn.00477b80
add esp, 4
jmp 0x469ca8
mov eax, dword [edi + 8]
push 0x104
push eax
push esi
call fcn.0049f415
mov edi, dword [edi + 4]
add esp, 0xc
push 0x11
lea ecx, [esp + 0x74]
push edi
push ecx
call fcn.0049f415
add esp, 0xc
push 4
lea edx, [esp + 0x74]
push 0x4c40d0
push edx
call fcn.0049f45f
add esp, 0xc
push 1
push 0x4c395c
push esi
call fcn.0049f45f
add esp, 0xc
push 0x15
lea eax, [esp + 0x74]
push eax
push esi
call fcn.0049f45f
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
add esp, 0xc
mov dword [ecx + edx*4], esi
jmp 0x469bd3
mov ecx, dword [0x4ee750]
mov eax, dword [ecx + 0x1c]
add eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c8], ebp
jns 0x469c8e
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
mov ecx, dword [0x4ee750]
push 3
push str.JOB_ERROR
mov dword [esp + 0x1c], 3
call fcn.0046c980
fild dword [esp + 0x30]
inc dword [esp + 0x18]
mov ecx, dword [0x4ee750]
fnstcw word [esp + 0x1c]
fdivr qword [0x4d3008]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x44], eax
fimul dword [esp + 0x18]
fsubr qword [0x4d3000]
fldcw word [esp + 0x44]
fistp qword [esp + 0x44]
mov edx, dword [esp + 0x44]
push edx
push str.UPGRADEJOB_PERCENT
fldcw word [esp + 0x24]
call fcn.0046c980
cmp dword [esp + 0x20], 0
mov ebp, dword [esp + 0x24]
jne 0x469961
mov eax, dword [esp + 0x34]
push eax
call fcn.0049081d
mov eax, dword [ebp + 0x2c]
xor ecx, ecx
add esp, 4
mov dword [ebp + 0x74], ecx
mov dword [esp + 0x18], ecx
cmp eax, ecx
je 0x469ff9
jmp 0x469d34
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x14], 0
jne 0x469ff9
mov ecx, dword [eax]
mov edi, dword [eax + 8]
mov edx, dword [0x4ee750]
mov eax, dword [edx + 0x1c]
add eax, 0x64
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4ee750]
mov ecx, dword [edi + 0xc]
mov eax, dword [eax + 0x1c]
inc dword [0x4ee7c8]
push ecx
push eax
call fcn.004823b0
mov esi, eax
lea ebx, [esi + 0x1c0]
mov dword [esp + 0x1c], esi
test ebx, ebx
je 0x469d90
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x4ee7c4]
mov edx, dword [0x4ee750]
mov eax, dword [edx + 0x1c]
add eax, 0x64
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c8], 1
jns 0x469db9
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
mov esi, dword [esi + 0x1b4]
test esi, esi
je 0x469de4
cmp dword [esi + 0x10], 0
setne al
test al, al
je 0x469de4
mov edx, dword [edi + 0xc]
mov ecx, dword [0x4ee750]
mov eax, dword [edi]
mov esi, dword [ecx + 0x1c]
push edx
push 1
push eax
xor ecx, ecx
jmp 0x469df7
mov edx, dword [edi + 0xc]
mov eax, dword [0x4ee750]
mov ecx, dword [edi + 0x18]
mov esi, dword [eax + 0x1c]
push edx
push 0
push 0
call fcn.00482530
movzx eax, al
test eax, eax
jne 0x469e10
mov dword [esp + 0x14], 2
jmp 0x469f80
cmp dword [edi + 0x1c], 0
je 0x469e1d
xor eax, eax
jmp 0x469f75
push str.messageScreen
lea ecx, [esp + 0x28]
call fcn.004019b0
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x6b8], 0
mov ecx, dword [0x4ee74c]
push eax
call fcn.0043de40
mov esi, eax
mov dword [esp + 0x6b4], 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 0x469e75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x469f80
push str.messageEditor
lea ecx, [esp + 0x2c]
call fcn.004019b0
push 1
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov dword [esp + 0x6bc], 1
call fcn.0043de40
mov edi, eax
mov dword [esp + 0x6b4], 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 0x469ed1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x469f80
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ecx*4]
mov edx, dword [edi]
mov edx, dword [edx + 0x64]
push 0
push eax
push 0x63
mov ecx, edi
call edx
mov ecx, dword [0x4ee750]
push 0
push str.USBPRINT
call fcn.0046c980
mov eax, dword [edi]
mov edx, dword [eax + 0x64]
push 0
push 0
push 0x8e
mov ecx, edi
call edx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 1
sub dword [0x4ee7c4], esi
jns 0x469f37
push str.ahhh_r_n
call fcn.00477b80
add esp, 4
push ebp
call fcn.0046aab0
test ebx, ebx
je 0x469f4e
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x4ee7c4], esi
cmp dword [ebp + 0x74], 0
je 0x469f5e
mov dword [esp + 0x14], 4
jmp 0x469f80
push 0
call fcn.00432100
test eax, eax
jne 0x469f73
mov dword [esp + 0x14], 5
jmp 0x469f80
mov eax, esi
mov esi, dword [esp + 0x1c]
push 1
call fcn.0047f180
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 1
sub dword [0x4ee7c4], esi
jns 0x469fa1
push str.ahhh_r_n
call fcn.00477b80
add esp, 4
fild dword [esp + 0x30]
add dword [esp + 0x18], esi
fld qword [0x4d3008]
mov ecx, dword [0x4ee750]
fld st(0)
fdivrp st(2)
fild dword [esp + 0x18]
fnstcw word [esp + 0x1c]
fmulp st(2)
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x34], eax
fsubrp st(1)
fldcw word [esp + 0x34]
fistp qword [esp + 0x34]
mov eax, dword [esp + 0x34]
push eax
push str.UPGRADEJOB_PERCENT
fldcw word [esp + 0x24]
call fcn.0046c980
cmp dword [esp + 0x20], 0
jne 0x469d30
push ebp
call fcn.0046aff0
mov esi, ebp
call fcn.0046a140
mov edi, dword [esp + 0x2c]
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0x34], ebx
jle 0x46a029
mov eax, dword [edi + esi*4]
cmp eax, ebx
je 0x46a023
push eax
call fcn.0049081d
add esp, 4
inc esi
cmp esi, dword [ebp + 0x34]
jl 0x46a013
push edi
call fcn.0049081d
add esp, 4
cmp dword [ebp + 0x64], ebx
je 0x46a056
cmp dword [esp + 0x14], ebx
jne 0x46a056
push ebx
mov eax, str.PRINTER_JOB_SUCCESS
mov ebx, 0xd
call fcn.0040dea0
mov edi, dword [esp + 0x40]
jmp 0x46a0ef
mov edi, dword [esp + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0x34], ebx
jle 0x46a0d8
jmp 0x46a070
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x46a139
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov dword [ebp + 0x2c], ecx
cmp ecx, ebx
je 0x46a08c
mov dword [ecx + 4], ebx
jmp 0x46a08f
mov dword [ebp + 0x30], ebx
mov ecx, dword [ebp + 0x38]
mov dword [eax], ecx
add dword [ebp + 0x34], 0xffffffff
mov dword [ebp + 0x38], eax
jne 0x46a0c1
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x46a0aa
mov eax, dword [eax]
cmp eax, ebx
jne 0x46a0a4
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x38], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x2c], ebx
call fcn.00499511
mov dword [ebp + 0x3c], ebx
cmp esi, ebx
je 0x46a0d3
call fcn.00468d30
push esi
call fcn.0049081d
add esp, 4
cmp dword [ebp + 0x34], ebx
jg 0x46a070
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov eax, str.PRINTER_JOB_ERROR
mov ebx, 0xd
call fcn.0040dea0
mov ecx, dword [0x4ee750]
push 0
push str.LOADING_JOBS
call fcn.0046c980
push edi
mov dword [ebp + 0x64], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x6ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x690]
xor ecx, esp
call fcn.0049dc2a
add esp, 0x6a4
ret 4
call fcn.00499100
int3