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

Disassembly:
push 0xffffffffffffffff
push 0x4bd946
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x49c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4ac]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0x44]
push eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x44], eax
call ebx
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 edi, edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
call ebx
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, edi
je 0x46a2a8
lea edi, [eax + 0x1c0]
test edi, edi
je 0x46a28b
push edi
call ebx
inc dword [0x4ee7c4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c4], 1
jns 0x46a2a8
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 dword [ebp + 0x78], eax
xor eax, eax
add esp, 4
cmp dword [ebp + 0x34], eax
jle 0x46a2e0
mov edi, edi
mov ecx, dword [ebp + 0x78]
mov dword [ecx + eax*4], 0
inc eax
cmp eax, dword [ebp + 0x34]
jl 0x46a2d0
mov ecx, dword [0x4ee750]
push 0
push str.JOB_ERROR
call fcn.0046c980
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 0x46a31b
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
test esi, esi
je 0x46a693
jmp 0x46a334
mov esi, dword [esp + 0x24]
cmp dword [esp + 0x14], 0
jne 0x46a693
mov edx, dword [0x4ee750]
mov ecx, dword [esi]
mov eax, esi
mov edi, dword [eax + 8]
mov eax, dword [edx + 0x1c]
add eax, 0x64
push eax
mov dword [esp + 0x28], ecx
call ebx
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 ebx, eax
test ebx, ebx
je 0x46a5f4
lea eax, [ebx + 0x1c0]
mov dword [esp + 0x28], eax
test eax, eax
je 0x46a396
push eax
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 0x46a3bf
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
mov eax, dword [ebx + 0x1b4]
test eax, eax
je 0x46a410
cmp dword [eax + 0x10], 0
setne al
test al, al
je 0x46a410
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
call fcn.00482530
test al, al
jne 0x46a44b
mov ecx, dword [0x4ee750]
push 2
push str.JOB_ERROR
mov dword [esp + 0x1c], 2
call fcn.0046c980
jmp 0x46a5d1
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
test al, al
jne 0x46a44b
mov ecx, dword [0x4ee750]
push 2
push str.JOB_ERROR
mov dword [esp + 0x1c], 2
call fcn.0046c980
jmp 0x46a5d1
push 0x208
call fcn.00490828
mov esi, eax
mov eax, dword [edi + 4]
lea edx, [esp + 0x98]
add esp, 4
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x46a466
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 + 8]
lea edx, [esp + 0x294]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x46a4a0
xor eax, eax
movzx ecx, word [eax + 0x4c4c24]
mov word [esp + eax + 0x44], cx
add eax, 2
test cx, cx
jne 0x46a4b1
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46a4d0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.0049f415
add esp, 0xc
push ebp
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x2a0]
push eax
push str._s_s__s__s.snp
mov edx, esi
call fcn.0040a1c0
add esp, 0x14
push ebx
call fcn.0049081d
add esp, 4
push ebp
call fcn.0049081d
add esp, 4
cmp dword [edi + 0x1c], 0
jne 0x46a5c0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46a5a6
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 + 0x6c]
push edi
push ecx
call fcn.0049f415
add esp, 0xc
push 4
lea edx, [esp + 0x6c]
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 + 0x6c]
push eax
push esi
call fcn.0049f45f
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x78]
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [edx + eax*4], esi
mov ebp, ecx
jmp 0x46a5d1
mov ecx, dword [0x4ee750]
push 1
push str.JOB_ERROR
mov dword [esp + 0x1c], 1
call fcn.0046c980
test esi, esi
je 0x46a5cd
push esi
call fcn.0049081d
add esp, 4
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub dword [0x4ee7c4], 1
jns 0x46a637
push str.ahhh_r_n
call fcn.00477b80
add esp, 4
jmp 0x46a637
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 0x46a61d
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 + 0x2c], eax
fimul dword [esp + 0x18]
fsubr qword [0x4d3000]
fldcw word [esp + 0x2c]
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 + 0x24], 0
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jne 0x46a330
mov eax, dword [ebp + 0x2c]
xor ecx, ecx
mov dword [ebp + 0x74], ecx
mov dword [esp + 0x18], ecx
cmp eax, ecx
je 0x46a968
jmp 0x46a6ba
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x14], 0
jne 0x46a968
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 + 0x28], ecx
call ebx
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 ebp, eax
lea ebx, [ebp + 0x1c0]
mov dword [esp + 0x1c], ebp
test ebx, ebx
je 0x46a712
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 0x46a73b
push str.Ahh..._r_n
call fcn.00477b80
add esp, 4
mov eax, dword [ebp + 0x1b4]
test eax, eax
je 0x46a766
cmp dword [eax + 0x10], 0
setne al
test al, al
je 0x46a766
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 0x46a779
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
cmp dword [edi + 0x1c], 0
je 0x46a78f
push 1
xor eax, eax
mov esi, ebp
jmp 0x46a8e6
push str.messageScreen
lea ecx, [esp + 0x30]
call fcn.004019b0
push 1
lea eax, [esp + 0x30]
mov dword [esp + 0x4a8], 0
mov ecx, dword [0x4ee74c]
push eax
call fcn.0043de40
or ebp, 0xffffffff
mov esi, eax
mov dword [esp + 0x4a4], ebp
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46a7e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x46a8eb
push str.messageEditor
lea ecx, [esp + 0x2c]
call fcn.004019b0
push 1
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov dword [esp + 0x4ac], 1
call fcn.0043de40
mov edi, eax
mov dword [esp + 0x4a4], ebp
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x46a83a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x46a8eb
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x78]
mov ecx, dword [esp + 0x18]
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 ebp, 1
sub dword [0x4ee7c4], ebp
jns 0x46a8a3
push str.ahhh_r_n
call fcn.00477b80
add esp, 4
push esi
call fcn.0046aab0
test ebx, ebx
je 0x46a8ba
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x4ee7c4], ebp
cmp dword [esi + 0x74], 0
je 0x46a8ca
mov dword [esp + 0x14], 4
jmp 0x46a8eb
push 0
call fcn.00432100
test eax, eax
jne 0x46a8df
mov dword [esp + 0x14], 5
jmp 0x46a8eb
mov esi, dword [esp + 0x1c]
push ebp
mov eax, ebp
call fcn.0047f180
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 1
sub dword [0x4ee7c4], esi
jns 0x46a90c
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 + 0x24], 0
mov ebp, dword [esp + 0x20]
jne 0x46a6b0
mov esi, ebp
call fcn.0046a140
xor esi, esi
cmp dword [ebp + 0x34], esi
jle 0x46a993
mov ecx, dword [ebp + 0x78]
cmp dword [ecx + esi*4], 0
lea eax, [ecx + esi*4]
je 0x46a98d
mov edx, dword [eax]
push edx
call fcn.0049081d
add esp, 4
inc esi
cmp esi, dword [ebp + 0x34]
jl 0x46a976
mov eax, dword [ebp + 0x78]
push eax
call fcn.0049081d
add esp, 4
cmp dword [esp + 0x14], 0
push 0
mov ebx, 0xd
mov eax, str.PRINTER_JOB_SUCCESS
je 0x46a9b7
mov eax, str.PRINTER_JOB_ERROR
call fcn.0040dea0
mov ecx, dword [0x4ee750]
push 0
push str.LOADING_JOBS
call fcn.0046c980
mov esi, ebp
mov dword [ebp + 0x64], 0
call fcn.0046a140
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x49c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.0049dc2a
add esp, 0x494
ret 4