Function at 0x46cd68
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0x29], 0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 1
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 8]
push eax
call sub.winspool.drv_EnumJobsA
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x14], 0
je 0x46ce4b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
call fcn.0040270c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x46ce44
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 1
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 8]
push eax
call sub.winspool.drv_EnumJobsA
test eax, eax
je 0x46ce2e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jb 0x46ce2e
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x18], 0
jne 0x46ce22
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x1c]
and eax, 0x10
cmp eax, 0x10
jne 0x46ce22
mov byte [ebp - 0x29], 1
add dword [ebp - 0x28], 0x40
inc dword [ebp - 0x20]
dec dword [ebp - 0x3c]
jne 0x46ce07
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ce4b
mov eax, dword [ebp - 0x24]
call fcn.00402724
ret
cmp byte [ebp - 0x29], 0
jne 0x46ce76
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.winspool.drv_GetPrinterDataA
mov dword [ebp - 0x10], eax
jmp 0x46cf8f
mov dword [ebp - 0x10], 0xa0001004
mov byte [ebp - 0x31], 0
xor eax, eax
mov dword [ebp - 0x38], eax
jmp 0x46cf7f
inc dword [ebp - 0x38]
mov byte [ebp - 0x31], 1
push 0
push 0
push 0
push 4
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x46ceb5
mov dword [ebp - 0x10], 0xa0001004
jmp 0x46cef4
xor eax, eax
push ebp
push 0x46ceed
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x18]
call fcn.004075e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cef4
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
cmp dword [ebp - 0x10], 0
jne 0x46cf7f
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0x124
jl 0x46cf7f
mov eax, dword [ebp + 0x18]
cmp word [eax + 0x104], 1
sete byte [ebp - 0x31]
cmp byte [ebp - 0x31], 0
je 0x46cf78
mov eax, dword [ebp + 0x18]
mov word [eax + 0x104], 0
xor eax, eax
push ebp
push 0x46cf71
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.004075e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cf7f
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
push 0x7d
call sub.kernel32.dll_Sleep
cmp byte [ebp - 0x31], 0
jne 0x46cf8f
cmp dword [ebp - 0x38], 0x14
jb 0x46ce8b
cmp byte [ebp - 0x29], 0
jne 0x46cf9f
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dword [eax + 0x78], edx
jmp 0x46cfb1
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0x7c
jl 0x46cfb1
mov eax, dword [ebp + 0x18]
mov dword [eax + 0x78], 0xfffffffd
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x18