Function at 0x522a5c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x522a64
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405bbc
xor eax, eax
push ebp
push 0x522e37
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0xc
call fcn.00403b7c
mov dword [ebp - 0x28], 0xf000c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00405bcc
push eax
call sub.winspool.drv_OpenPrinterA
test eax, eax
je 0x522e12
xor eax, eax
push ebp
push 0x522e0b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 8]
push eax
call sub.winspool.drv_EnumJobsA
mov eax, dword [ebp - 0x14]
call fcn.00402f38
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x522ded
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 - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 8]
push eax
call sub.winspool.drv_EnumJobsA
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
jbe 0x522c4e
mov edi, dword [ebp - 0x18]
dec edi
test edi, edi
jb 0x522c4e
inc edi
mov dword [ebp - 0x1c], 0
cmp byte [esi + 0x3b1], 0
je 0x522c30
mov eax, dword [esi + 0x3b4]
mov edx, 1
call fcn.0054ae64
lea ecx, [ebp - 0x34]
mov eax, dword [0x55a778]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x522e50
call fcn.00486174
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 0x3b4]
call fcn.0054aae8
lea ecx, [ebp - 0x3c]
mov eax, dword [0x55a778]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x522e84
call fcn.00486174
push dword [ebp - 0x3c]
push 0x522e94
push 0x522ea0
push dword [ebp - 4]
push 0x522eac
lea ecx, [ebp - 0x40]
mov eax, dword [0x55a778]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x522ec0
call fcn.00486174
push dword [ebp - 0x40]
push 0x522e94
push 0x522ecc
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.0040b0b0
push dword [ebp - 0x44]
push 0x522ed8
lea eax, [ebp - 0x48]
mov edx, dword [ebx + 0x10]
call fcn.00405934
push dword [ebp - 0x48]
lea eax, [ebp - 0x38]
mov edx, 0xb
call fcn.00405ad0
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x3b4]
call fcn.0054ac2c
mov eax, 0x5dc
xor edx, edx
div dword [ebp - 0x18]
push eax
call sub.kernel32.dll_Sleep_2
push 5
push ebx
push 2
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.winspool.drv_SetJobA
add ebx, 0x68
inc dword [ebp - 0x1c]
dec edi
jne 0x522b45
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x24], eax
jmp 0x522dbe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 8]
push eax
call sub.winspool.drv_EnumJobsA
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
jbe 0x522db4
mov edi, dword [ebp - 0x18]
dec edi
test edi, edi
jb 0x522db4
inc edi
mov dword [ebp - 0x1c], 0
cmp byte [esi + 0x3b1], 0
je 0x522d96
mov eax, dword [esi + 0x3b4]
mov edx, 1
call fcn.0054ae64
lea ecx, [ebp - 0x4c]
mov eax, dword [0x55a778]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x522ee8
call fcn.00486174
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi + 0x3b4]
call fcn.0054aae8
lea eax, [ebp - 0x54]
push eax
mov eax, dword [0x55a778]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
push eax
mov edx, 0x522e84
pop eax
pop ecx
call fcn.00486174
push dword [ebp - 0x54]
push 0x522e94
push 0x522ea0
push dword [ebp - 4]
push 0x522eac
mov edx, 0x522ec0
lea ecx, [ebp - 0x58]
mov eax, dword [0x55a778]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00486174
push dword [ebp - 0x58]
push 0x522e94
push 0x522ecc
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x5c]
call fcn.0040b0b0
push dword [ebp - 0x5c]
push 0x522ed8
lea eax, [ebp - 0x60]
mov edx, dword [ebx + 0x10]
call fcn.00405934
push dword [ebp - 0x60]
lea eax, [ebp - 0x50]
mov edx, 0xb
call fcn.00405ad0
mov edx, dword [ebp - 0x50]
mov eax, dword [esi + 0x3b4]
call fcn.0054ac2c
mov eax, 0x5dc
xor edx, edx
div dword [ebp - 0x18]
push eax
call sub.kernel32.dll_Sleep_2
push 5
push ebx
push 2
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.winspool.drv_SetJobA
add ebx, 0x68
inc dword [ebp - 0x1c]
dec edi
jne 0x522ca7
push 0x3e8
call sub.kernel32.dll_Sleep_2
cmp dword [ebp - 0x20], 0
jbe 0x522dd7
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x24]
cmp eax, 0x61a8
jb 0x522c61
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x522df4
mov eax, dword [ebp - 0xc]
call fcn.00402f54
ret
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x522e3e
lea eax, [ebp - 0x60]
mov edx, 0xc
call fcn.00405760
lea eax, [ebp - 4]
call fcn.0040573c
ret