Function at 0x4857ec
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.004a98b0
mov eax, dword [0x4dd52c]
and word [ebp - 0x1004], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x1f7a4]
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x3ff
lea edi, [ebp - 0x1002]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
inc edi
cmp dword [ebp + 0xc], edi
jne 0x485855
push esi
call fcn.0048b57c
cmp eax, edi
jne 0x485855
cmp word [esi + 0x976a], di
je 0x485851
mov eax, dword [esi + 0x1f7a4]
cmp dword [eax + 0x1e068], edi
jne 0x485855
and dword [esi + 0x10], 0xffffffe6
or dword [esi + 0xc], 2
cmp dword [esi + 0x8168], edi
mov eax, dword [esi + 0x3ea8]
jne 0x485868
dec eax
test ebx, ebx
mov dword [esi + 0x816c], eax
je 0x4859a4
cmp dword [ebx + 0x1dfa8], edi
jne 0x4859a4
mov eax, dword [ebx + 0x1dfac]
test eax, eax
je 0x4859a4
cmp eax, 3
jb 0x4859a4
and word [ebp - 0x2004], 0
push dword [esi + 0x816c]
xor eax, eax
mov ecx, 0x3ff
lea edi, [ebp - 0x2002]
rep stosd dword es:[edi], eax
push 0x4134b0
stosw word es:[edi], ax
lea eax, [ebp - 0x2004]
push 0x800
push eax
call fcn.00431bde
add esp, 0x10
cmp dword [ebx + 0x1dfa8], 1
jne 0x4859a1
mov eax, dword [ebx + 0x1dfac]
test eax, eax
je 0x4859a1
cmp eax, 3
jb 0x4859a1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ecx, 0x400
lea edi, [ebp - 0x1004]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2004]
push eax
movzx eax, word [ebp - 0x2006]
push 0x412d3c
push eax
movzx eax, word [ebp - 0x2008]
push eax
movzx eax, word [ebp - 0x200a]
push eax
movzx eax, word [ebp - 0x200c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [ebx + 0x1dfa0], 1
lea eax, [ebp - 0x1004]
push eax
jne 0x485983
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4859a1
lea edi, [ebx + 0x1dfa4]
push 0x4060a8
push dword [edi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [edi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
xor edi, edi
inc edi
cmp word [esi + 0x8f54], 2
jne 0x485aac
push dword [esi + 0x8170]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 6
push 0
push 0
push dword [esi + 8]
push dword [esi + 4]
call sub.WINSPOOL.DRV_SetJobW
test ebx, ebx
je 0x485dfd
cmp dword [ebx + 0x1dfa8], edi
jne 0x485dfd
mov eax, dword [ebx + 0x1dfac]
test eax, eax
je 0x485dfd
cmp eax, 2
jb 0x485dfd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x4133d8
mov ecx, 0x400
lea edi, [ebp - 0x1004]
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x2006]
push 0x40dee0
push eax
movzx eax, word [ebp - 0x2008]
push eax
movzx eax, word [ebp - 0x200a]
push eax
movzx eax, word [ebp - 0x200c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [ebx + 0x1dfa0], 1
lea eax, [ebp - 0x1004]
push eax
jne 0x485a89
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x485dfd
lea esi, [ebx + 0x1dfa4]
push 0x4060a8
push dword [esi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [esi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
jmp 0x485dfd
mov eax, dword [esi + 0x10]
test al, 2
je 0x485b1c
cmp word [esi + 0x8fb6], 2
jne 0x485ae4
cmp word [esi + 0x976a], di
push dword [esi + 4]
push esi
jne 0x485ad4
call fcn.004895ed
jmp 0x485dfd
mov dword [esi + 0x1c750], edi
call fcn.0049c1f4
jmp 0x485dfd
cmp word [esi + 0x8f56], 2
jne 0x485dfd
cmp word [esi + 0x976a], di
push dword [esi + 8]
push dword [esi + 4]
push esi
jne 0x485b0c
call fcn.004890db
jmp 0x485dfd
mov dword [esi + 0x1c750], edi
call fcn.0049bcd4
jmp 0x485dfd
test al, 1
je 0x485b96
push 0x8d
push esi
call fcn.004a5917
cmp eax, edi
jne 0x485b7c
cmp dword [esi + 0x816c], edi
jle 0x485b61
cmp word [esi + 0x976a], di
push dword [esi + 8]
push dword [esi + 4]
push esi
jne 0x485b51
call fcn.0048ae37
jmp 0x485dfd
mov dword [esi + 0x1c750], edi
call fcn.0049ac61
jmp 0x485dfd
cmp word [esi + 0x976a], di
push dword [esi + 4]
push esi
jne 0x485dc6
call fcn.00486fd6
jmp 0x485dfd
cmp word [esi + 0x976a], di
push dword [esi + 8]
push dword [esi + 4]
push esi
jne 0x485b51
call fcn.0048a9d7
jmp 0x485dfd
test al, 0x20
je 0x485bc2
cmp word [esi + 0x976a], di
push eax
push dword [esi + 4]
push esi
jne 0x485bb2
call fcn.0048c9a9
jmp 0x485dfd
mov dword [esi + 0x1c750], edi
call fcn.0049af73
jmp 0x485dfd
test al, 8
je 0x485bf2
cmp word [esi + 0x976a], di
jne 0x485bde
push eax
push dword [esi + 4]
push esi
call fcn.00486654
jmp 0x485dfd
push dword [esi + 4]
mov dword [esi + 0x1c750], edi
push esi
call fcn.004996e2
jmp 0x485dfd
test al, 0x10
je 0x485dd3
cmp word [esi + 0x976a], di
jne 0x485cea
test ebx, ebx
je 0x485cdc
cmp dword [ebx + 0x1dfa8], edi
jne 0x485cdc
mov eax, dword [ebx + 0x1dfac]
test eax, eax
je 0x485cdc
cmp eax, 3
jb 0x485cdc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x413390
mov ecx, 0x400
lea edi, [ebp - 0x1004]
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x2006]
push 0x412a74
push eax
movzx eax, word [ebp - 0x2008]
push eax
movzx eax, word [ebp - 0x200a]
push eax
movzx eax, word [ebp - 0x200c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [ebx + 0x1dfa0], 1
lea eax, [ebp - 0x1004]
push eax
jne 0x485cbe
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x485cdc
lea edi, [ebx + 0x1dfa4]
push 0x4060a8
push dword [edi]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [edi]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
push dword [esi + 4]
push esi
call fcn.004873b1
jmp 0x485dfd
test ebx, ebx
je 0x485dc2
cmp dword [ebx + 0x1dfa8], edi
jne 0x485dc2
mov eax, dword [ebx + 0x1dfac]
test eax, eax
je 0x485dc2
cmp eax, 3
jb 0x485dc2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x413348
mov ecx, 0x400
lea edi, [ebp - 0x1004]
rep stosd dword es:[edi], eax
movzx eax, word [ebp - 0x2006]
push 0x412a74
push eax
movzx eax, word [ebp - 0x2008]
push eax
movzx eax, word [ebp - 0x200a]
push eax
movzx eax, word [ebp - 0x200c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4065a0
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.00431bde
add esp, 0x2c
cmp word [ebx + 0x1dfa0], 1
lea eax, [ebp - 0x1004]
push eax
jne 0x485da1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x485dbf
add ebx, 0x1dfa4
push 0x4060a8
push dword [ebx]
call dword [sym.imp.msvcrt.dll_fwprintf]
push dword [ebx]
call dword [sym.imp.msvcrt.dll_fflush]
add esp, 0x10
xor edi, edi
inc edi
push dword [esi + 4]
push esi
mov dword [esi + 0x1c750], edi
call fcn.0049a617
jmp 0x485dfd
test ah, 1
je 0x485de9
push dword [esi + 4]
mov dword [esi + 0x1c750], edi
push esi
call fcn.004855fe
jmp 0x485dfd
test ah, 2
je 0x485dfd
push dword [esi + 4]
mov dword [esi + 0x1c750], edi
push esi
call fcn.00481a81
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 8