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

Disassembly:
push ebp
push dword [ebp - 4]
mov ebp, esp
add ebp, 4
push ebp
sub esp, 0x86c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov byte [ebp - 9], 0
jmp 0x498216
rol dword [0x5cb780], 1
test byte [0x5cb780], 1
je 0x497a3c
rol dword [0x5cb784], 1
test byte [0x5cb784], 1
je 0x497a3c
call fcn.0040f884
jmp 0x497a3e
mov al, 0
test al, al
je 0x497a4e
mov ecx, dword [ebp - 4]
mov byte [ecx - 5], 1
jmp 0x498212
push 0
call fcn.0049520e
test al, al
jne 0x497a7e
mov edx, dword [ebp - 4]
mov eax, dword [edx - reloc.gdi32.dll_AbortDoc]
cmp eax, dword [edx + 8]
jb 0x498212
cmp word [ebx], 0
jne 0x498212
mov byte [edx - 6], 0
jmp 0x498229
cmp word [ebx], 0x3b
je 0x497ab9
push 0
call fcn.0049520e
test al, al
jne 0x497a98
jmp 0x497ab1
push 1
call fcn.0049529e
mov edi, dword [ebp - 4]
mov ecx, dword [edi + 0xc]
mov esi, dword [edi - reloc.gdi32.dll_AbortDoc]
cmp word [ecx + esi*2], 0x3b
je 0x497a91
cmp esi, dword [edi + 8]
setbe al
test al, al
je 0x498212
push dword [ebp + 0xc]
push ebx
call fcn.00494e7f
test al, al
je 0x497aee
push dword [ebp + 0xc]
push ebx
call fcn.0056e571
push eax
call fcn.0049529e
cmp word [ebx], 0
jne 0x497ae2
mov ecx, dword [ebp - 4]
mov byte [ecx - 6], 0
cmp byte [ebp - 9], 0
sete al
jmp 0x49822b
push 4
push 0x5a8dba
call fcn.00494e7f
test al, al
jne 0x498229
push 5
push 0x5a8dc4
call fcn.00494e7f
test al, al
je 0x497b26
push 5
call fcn.0049529e
mov byte [ebp + 0x10], 1
mov byte [ebp - 9], 1
jmp 0x498216
push 7
push 0x5a8dd0
call fcn.00494e7f
test al, al
push 5
je 0x497b3f
push 7
jmp 0x497eec
push 0x5a8de0
call fcn.00494e7f
test al, al
je 0x497b54
push 4
jmp 0x497ebe
push 6
push 0x5a8dec
call fcn.00494e7f
test al, al
je 0x497b68
push 6
jmp 0x497ba8
push 5
push 0x5a8dfa
call fcn.00494e7f
test al, al
je 0x497b7f
push 7
jmp 0x497ebe
push 5
push 0x5a8e06
call fcn.00494e7f
test al, al
je 0x497b96
push 8
jmp 0x497ebe
push 6
push 0x5a8e12
call fcn.00494e7f
test al, al
je 0x497baf
push 0
push 6
jmp 0x497eec
push 5
push 0x5a8e20
call fcn.00494e7f
test al, al
je 0x497bc6
push 3
jmp 0x497ebe
push 5
push 0x5a8e2c
call fcn.00494e7f
test al, al
push 5
je 0x497bfc
call fcn.0049529e
call fcn.00493f43
test al, al
jne 0x497bf2
push 0
call fcn.00494c54
jmp 0x498216
call fcn.00494042
jmp 0x498216
push 0x5a8e38
call fcn.00494e7f
test al, al
jne 0x497c1a
push 5
push 0x5a8e44
call fcn.00494e7f
test al, al
je 0x497c21
push 9
jmp 0x497ebe
push 4
push 0x5a8e50
call fcn.00494e7f
test al, al
je 0x497c49
push 4
call fcn.0049529e
push 0x64
push 0x2ee
call fcn.0056ec24
jmp 0x498216
push 3
push 0x5a8e5a
call fcn.00494e7f
test al, al
je 0x497c63
call fcn.00497078
jmp 0x498216
push 2
push 0x5a8e62
call fcn.00494e7f
test al, al
je 0x497c7d
call fcn.004971d8
jmp 0x498216
push 5
push 0x5a6d60
call fcn.00494e7f
test al, al
je 0x497c97
call fcn.00496e41
jmp 0x498216
push 2
push 0x5a8e68
call fcn.00494e7f
test al, al
je 0x497cb1
call fcn.00496f45
jmp 0x498216
push 4
push 0x5a8e6e
call fcn.00494e7f
test al, al
je 0x497d34
push 4
call fcn.0049529e
push 1
push 0x5a4d5c
call fcn.00494e7f
test al, al
je 0x497ce8
push 1
call fcn.0049529e
mov dword [ebp - 0x18], 0x7d
jmp 0x497cef
mov dword [ebp - 0x18], 0x3b
mov ecx, dword [ebp - 4]
mov eax, dword [ecx - reloc.gdi32.dll_AbortDoc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [ecx - reloc.gdi32.dll_AbortDoc], eax
push 0
push 3
lea eax, [ebp - 0x18]
push eax
call fcn.004979f8
test al, al
je 0x498216
mov eax, dword [ebp - 4]
cmp byte [eax - 6], 0
jne 0x498216
cmp byte [eax - 5], 0
je 0x497cfb
jmp 0x498216
push 3
push 0x5a8e78
call fcn.00494e7f
test al, al
je 0x497d4e
call fcn.004969cb
jmp 0x498216
push 9
push 0x5a8e80
call fcn.00494e7f
test al, al
je 0x497d67
push 0xa
push 9
jmp 0x497eec
push 9
push 0x5a8e94
call fcn.00494e7f
test al, al
je 0x497d7b
push 1
jmp 0x497dc9
push 9
push 0x5a8ea8
call fcn.00494e7f
test al, al
je 0x497d8f
push 2
jmp 0x497dc9
push 5
push 0x5a8ebc
call fcn.00494e7f
test al, al
je 0x497da3
push 3
jmp 0x497dc9
push 6
push 0x5a8ec8
call fcn.00494e7f
test al, al
je 0x497db7
push 4
jmp 0x497dc9
push 7
push 0x5a8ed6
call fcn.00494e7f
test al, al
je 0x497dd3
push 5
call fcn.0049600f
jmp 0x498216
push 7
push 0x5a8ee6
call fcn.00494e7f
test al, al
je 0x497e78
push 7
call fcn.0049529e
push 0x107
lea eax, reloc.gdi32.dll_AbortDoc
push eax
call fcn.0049532e
cmp byte [ebp + 0x10], 0
jne 0x498216
push 0x7fff
push 0x7fffffff
push 0x107
lea eax, reloc.gdi32.dll_AbortDoc
push eax
push 0x107
sub eax, 0x210
push eax
call fcn.004ef640
fstp qword [ebp - 0x20]
push 0x107
lea eax, reloc.gdi32.dll_AbortDoc
push eax
call fcn.0056e571
cmp eax, 0
jle 0x498216
xor edi, edi
mov esi, edi
dec eax
mov dword [ebp - 0x24], eax
jmp 0x497e6e
mov ax, word [ebp + edi - 0x450]
push eax
call fcn.00405708
add edi, 2
inc esi
jo 0x498216
cmp esi, dword [ebp - 0x24]
jle 0x497e56
jmp 0x498216
push 8
push 0x5a8ef6
call fcn.00494e7f
test al, al
je 0x497eac
push 8
call fcn.0049529e
cmp byte [ebp + 0x10], 0
jne 0x498216
push 0xd
call fcn.00405708
push 0xa
call fcn.00405708
jmp 0x498216
push 5
push 0x5a8f08
call fcn.00494e7f
test al, al
je 0x497ec2
push 1
push 5
jmp 0x497eec
push 2
push 0x5a8f14
call fcn.00494e7f
test al, al
je 0x497ed8
push 1
push 2
jmp 0x497eec
push 3
push 0x5a8f1a
call fcn.00494e7f
test al, al
je 0x497ef6
push 2
push 3
call fcn.00495b68
jmp 0x498216
push 0x11
push 0x5a8f22
call fcn.00494e7f
test al, al
je 0x497f17
push 0x11
call fcn.0049529e
call fcn.00493d73
jmp 0x498216
push 4
push 0x5a8f46
call fcn.00494e7f
test al, al
je 0x497f2b
push 0
jmp 0x497f53
push 6
push 0x5a8f50
call fcn.00494e7f
test al, al
je 0x497f41
push 2
push 6
jmp 0x497f6b
push 4
push 0x5a8f5e
call fcn.00494e7f
test al, al
je 0x497f57
push 1
push 4
jmp 0x497f6b
push 5
push 0x5a8f68
call fcn.00494e7f
test al, al
je 0x497f75
push 3
push 5
call fcn.004965e0
jmp 0x498216
push 5
push 0x5a8f74
call fcn.00494e7f
test al, al
je 0x49801d
mov ecx, dword [ebp - 4]
add dword [ecx - reloc.gdi32.dll_AbortDoc], 5
push 0x596b30
push 0x107
lea eax, reloc.gdi32.dll_AbortDoc
push eax
call fcn.004953eb
cmp byte [ebp + 0x10], 0
jne 0x498216
lea eax, reloc.gdi32.dll_AbortDoc
push eax
call fcn.0049594f
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
cmp byte [ecx - 6], 0
jne 0x498216
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x2c], eax
rol dword [0x5cb780], 1
test byte [0x5cb780], 1
je 0x497ffc
rol dword [0x5cb784], 1
test byte [0x5cb784], 1
je 0x497ffc
call fcn.0040f884
jmp 0x497ffe
mov al, 0
test al, al
jne 0x4980bd
call fcn.0040c77c
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
jbe 0x497fd7
jmp 0x498216
push 6
push 0x5a8f80
call fcn.00494e7f
test al, al
je 0x498031
push 0
jmp 0x498059
push 5
push 0x5a8e2c
call fcn.00494e7f
test al, al
je 0x498047
push 1
push 5
jmp 0x49805b
push 6
push 0x5a8f8e
call fcn.00494e7f
test al, al
je 0x498065
push 2
push 6
call fcn.00496729
jmp 0x498216
push 3
push 0x5a8f9c
call fcn.00494e7f
test al, al
je 0x49807b
push 5
push 3
jmp 0x4980a3
push 4
push 0x5a8fa4
call fcn.00494e7f
test al, al
push 6
je 0x498091
push 4
jmp 0x4980a3
push 0x5a8fae
call fcn.00494e7f
test al, al
je 0x4980ad
push 7
push 6
call fcn.004959c3
jmp 0x498216
push 4
push 0x5a8fbc
call fcn.00494e7f
test al, al
je 0x4980c9
mov ecx, dword [ebp - 4]
mov byte [ecx - 5], 1
jmp 0x498216
push 4
push 0x5a8fc6
call fcn.00494e7f
test al, al
je 0x4980f6
mov ecx, dword [ebp - 4]
mov byte [ecx - 5], 1
push 0
push 0
push 0x10
push dword [0x5cbb00]
call sub.user32.dll_SendMessageW
jmp 0x498216
push 8
push 0x5a8fd0
call fcn.00494e7f
test al, al
je 0x498114
push 0
push 8
call fcn.004978f3
jmp 0x498216
mov edx, dword [ebp - 4]
cmp byte [edx + 0x10], al
jne 0x49816a
mov eax, dword [edx - reloc.gdi32.dll_AbortDoc]
cmp eax, 0
jge 0x49812d
mov byte [edx - 6], 1
jmp 0x49816a
push eax
call fcn.00406e7e
mov ecx, dword [ebp - 4]
push dword [ecx - 0x220]
lea eax, reloc.gdi32.dll_AbortDoc
push eax
call fcn.00406ddc
mov byte [ebp - 0xa], al
test al, al
je 0x498164
push 0x107
lea eax, reloc.gdi32.dll_AbortDoc
push eax
call fcn.00494e7f
test al, al
je 0x498133
cmp byte [ebp - 0xa], 0
jne 0x49816e
mov al, 0
jmp 0x4981bf
push 0x107
lea eax, reloc.gdi32.dll_AbortDoc
push eax
call fcn.0056e571
push eax
call fcn.0049529e
mov edx, dword [ebp - 4]
mov eax, dword [edx - reloc.gdi32.dll_AbortDoc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - reloc.gdi32.dll_AbortDoc]
mov dword [edx - reloc.gdi32.dll_AbortDoc], eax
push 0
push 1
push 0x5a8fe2
call fcn.004979f8
mov edx, dword [ebp - 4]
cmp byte [edx - 6], 0
jne 0x4981bd
mov eax, dword [ebp - 0x30]
mov dword [edx - reloc.gdi32.dll_AbortDoc], eax
mov al, 1
test al, al
jne 0x498216
push 2
push 0x596b24
call fcn.00494e7f
test al, al
je 0x4981f6
push 2
call fcn.0049529e
push 2
push 0x596b24
push 2
push 0x596b2a
push 2
push 0x596b2a
call fcn.00495088
jmp 0x498216
push 0
call fcn.00497615
test al, al
jne 0x498216
push 0
call fcn.0049529e
push 0x3e7
call fcn.00494cf4
mov al, 0
jmp 0x49822b
mov eax, dword [ebp - 4]
cmp byte [eax - 6], 0
jne 0x498229
cmp byte [eax - 5], 0
je 0x497a17
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc