Function at 0x100021c0
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
cmp dword [ebp + 0x10], 0
jne 0x100021d6
mov eax, 0x3f5
jmp 0x100027bb
xor eax, eax
mov al, byte [0x1001f9a1]
test eax, eax
je 0x1000228e
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
push 0x1001f9a4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10002212
mov eax, 0x3eb
jmp 0x100027bb
push 2
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10002252
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x3ed
jmp 0x100027bb
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
je 0x1000226e
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x3ed
jmp 0x100027bb
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov cl, byte [0x1001f9a0]
test ecx, ecx
jne 0x1000228e
mov eax, 0x3e8
jmp 0x100027bb
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
sub eax, 1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 7
ja case.default.0x100022aa
mov ecx, dword [ebp - 0x44]
jmp dword [ecx*4 + 0x100027bf]
mov dword [ebp - 0x14], 0
jmp 0x100022c3
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
jge 0x10002361
call fcn.1000edf1
and eax, 0xff
test eax, eax
je 0x100022e7
mov eax, 0x3ea
jmp 0x100027bb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
cmp dword [0x10017068], 0x3e8
jle 0x1000230a
mov ecx, dword [ebp - 0xc]
add ecx, dword [0x10017068]
mov dword [ebp - 4], ecx
jmp 0x10002316
mov edx, dword [ebp - 0xc]
add edx, 0x3e8
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jle 0x10002339
call fcn.1000ede5
and eax, 0xff
test eax, eax
jne 0x1000232e
jmp 0x10002339
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
jmp 0x10002316
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jl 0x1000234b
mov eax, 0x3f2
jmp 0x100027bb
push 1
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
push edx
call fcn.1000eeb5
add esp, 8
jmp 0x100022ba
jmp 0x100027b6
mov dword [ebp - 0x18], 0
jmp 0x10002378
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0xc]
jge 0x100023b7
push 0
lea edx, [ebp - 8]
push edx
push 1
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18]
push eax
mov ecx, dword [0x10017050]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100023ab
cmp dword [ebp - 8], 1
je 0x100023b5
mov eax, 0x3e9
jmp 0x100027bb
jmp 0x1000236f
jmp 0x100027b6
mov edx, dword [0x10024b20]
add edx, dword [ebp + 0xc]
cmp edx, 0x5000
jl 0x10002413
mov eax, dword [0x10024b20]
push eax
push 0x1001fb1c
push 0
mov ecx, dword [0x1001705c]
push ecx
call dword [0x10029b44]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
cmp edx, dword [0x10024b20]
je 0x10002409
mov dword [0x10024b20], 0
mov eax, 0x3e9
jmp 0x100027bb
mov dword [0x10024b20], 0
cmp dword [0x10024b1c], 0
jne 0x1000244b
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x10024b20]
add edx, 0x1001fb1c
push edx
call fcn.1000efc0
add esp, 0xc
mov eax, dword [0x10024b20]
add eax, dword [ebp + 0xc]
mov dword [0x10024b20], eax
jmp 0x100024cf
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x10024b20]
add eax, 0x1001fb1c
push eax
call fcn.1000efc0
add esp, 0xc
mov ecx, dword [0x10024b20]
add ecx, dword [ebp + 0xc]
mov dword [0x10024b20], ecx
mov edx, dword [0x10024b20]
push edx
push 0x1001fb1c
push 0
mov eax, dword [0x1001705c]
push eax
call dword [0x10029b44]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [0x10024b20]
je 0x100024bb
mov dword [0x10024b1c], 0
mov dword [0x10024b20], 0
mov eax, 0x3e9
jmp 0x100027bb
mov dword [0x10024b1c], 0
mov dword [0x10024b20], 0
jmp 0x100027b6
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x10017058]
push edx
call sub.WINSPOOL.DRV_WritePrinter
test eax, eax
jne 0x100024fa
mov eax, 0x3f1
jmp 0x100027bb
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x1000250c
mov eax, 0x3f1
jmp 0x100027bb
jmp 0x100027b6
mov ecx, dword [0x10024b20]
add ecx, dword [ebp + 0xc]
cmp ecx, 0x5000
jl 0x10002560
mov edx, dword [0x10024b20]
push edx
push 0x1001fb1c
call dword [0x10029b54]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [0x10024b20]
je 0x10002556
mov dword [0x10024b20], 0
mov eax, 0x3e9
jmp 0x100027bb
mov dword [0x10024b20], 0
cmp dword [0x10024b1c], 0
jne 0x10002595
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x10024b20]
add eax, 0x1001fb1c
push eax
call fcn.1000efc0
add esp, 0xc
mov ecx, dword [0x10024b20]
add ecx, dword [ebp + 0xc]
mov dword [0x10024b20], ecx
jmp 0x10002612
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x10024b20]
add ecx, 0x1001fb1c
push ecx
call fcn.1000efc0
add esp, 0xc
mov edx, dword [0x10024b20]
add edx, dword [ebp + 0xc]
mov dword [0x10024b20], edx
mov eax, dword [0x10024b20]
push eax
push 0x1001fb1c
call dword [0x10029b54]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [0x10024b20]
je 0x100025fe
mov dword [0x10024b1c], 0
mov dword [0x10024b20], 0
mov eax, 0x3e9
jmp 0x100027bb
mov dword [0x10024b1c], 0
mov dword [0x10024b20], 0
jmp 0x100027b6
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x10017054]
push edx
call fcn.1000d867
add esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3e8
je 0x10002648
mov eax, 0x3e9
jmp 0x100027bb
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp + 0xc]
je 0x1000265a
mov eax, 0x3e9
jmp 0x100027bb
jmp 0x100027b6
mov ecx, dword [0x10029b28]
add ecx, dword [ebp + 0xc]
cmp ecx, 0x5000
jl 0x100026bd
mov edx, dword [0x1001706c]
push edx
mov eax, dword [0x10029b28]
push eax
push 0x10024b24
mov ecx, dword [0x10017060]
push ecx
call fcn.1000d3a1
add esp, 0x10
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
cmp edx, dword [0x10029b28]
je 0x100026b3
mov dword [0x10029b28], 0
mov eax, 0x3e9
jmp 0x100027bb
mov dword [0x10029b28], 0
cmp dword [0x10029b24], 0
jne 0x100026f5
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x10029b28]
add edx, 0x10024b24
push edx
call fcn.1000efc0
add esp, 0xc
mov eax, dword [0x10029b28]
add eax, dword [ebp + 0xc]
mov dword [0x10029b28], eax
jmp 0x1000277d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x10029b28]
add eax, 0x10024b24
push eax
call fcn.1000efc0
add esp, 0xc
mov ecx, dword [0x10029b28]
add ecx, dword [ebp + 0xc]
mov dword [0x10029b28], ecx
mov edx, dword [0x1001706c]
push edx
mov eax, dword [0x10029b28]
push eax
push 0x10024b24
mov ecx, dword [0x10017060]
push ecx
call fcn.1000d3a1
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
cmp edx, dword [0x10029b28]
je 0x10002769
mov dword [0x10029b24], 0
mov dword [0x10029b28], 0
mov eax, 0x3e9
jmp 0x100027bb
mov dword [0x10029b24], 0
mov dword [0x10029b28], 0
jmp 0x100027b6
mov eax, dword [0x1001706c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x10017064]
push eax
call fcn.1000d3a1
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp + 0xc]
je 0x100027ad
mov eax, 0x3e9
jmp 0x100027bb
jmp 0x100027b6
mov eax, 0x3e9
jmp 0x100027bb
mov eax, 0x3e8
mov esp, ebp
pop ebp
ret