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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esi + 8]
shl eax, 2
mov ebx, dword [eax + 0x1026644]
mov edi, dword [eax + 0x1003a68]
mov dword [ebp - 0xc], ecx
sub ecx, dword [esi + 0xc]
cmp ebx, edi
jae 0x1004842
test ebx, ebx
ja 0x1004c89
mov eax, dword [esi + 8]
cmp ecx, dword [eax*4 + 0x1003a68]
jae 0x1007feb
mov eax, dword [esi + 8]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx*4 + 0x1026644]
lea eax, [eax*4 + 0x1003a68]
cmp ecx, dword [eax]
jae 0x1007feb
pop edi
mov byte [esi + 0x14], 0
pop esi
pop ebx
leave
ret 8
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0xc]
sub edi, eax
mov ebx, edi
jmp 0x1004842
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
cmp eax, 0xffffffff
jne 0x1014582
cmp dword [esi + 0x20], ecx
je 0x1008117
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100801f
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x14], eax
test ebx, ebx
je 0x100486e
mov ecx, esi
call fcn.0100f359
test al, al
jne 0x100486e
cmp dword [0x10262bc], 0
je 0x100812f
mov al, byte [0x10262c0]
cmp al, 4
jb 0x1014599
mov eax, dword [0x10262a8]
mov ecx, dword [0x10262ac]
mov edi, 0x400001
mov ebx, 0x80000000
and eax, edi
and ecx, ebx
or eax, ecx
jne 0x10145a6
push 0x4ff
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x10262bc], 0
mov ebx, eax
je 0x10080c4
mov al, byte [0x10262c0]
cmp al, 4
jb 0x1008139
mov eax, dword [0x10262a8]
mov ecx, dword [0x10262ac]
and eax, edi
and ecx, 0x80000000
or eax, ecx
jne 0x10145e9
mov eax, dword [esi + 8]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx*4 + 0x1026644]
lea eax, [eax*4 + 0x1003a68]
cmp ecx, dword [eax]
mov eax, dword [esi + 8]
jae 0x101462e
sub ebx, dword [esi + 0xc]
shl eax, 2
mov edx, dword [eax + 0x1026644]
test edx, edx
je 0x1008143
mov ecx, dword [eax + 0x1003a68]
mov eax, ecx
sub eax, edx
xor edx, edx
div dword [ebp + 0xc]
sub ecx, eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp ebx, eax
jae 0x100486e
jmp 0x1014637
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [esi + 0x1c]
call fcn.01001ee0
jmp 0x100800e
mov edi, 0x400001
jmp 0x1008071
test al, al
je 0x10080a9
jmp 0x10080c4
xor ecx, ecx
jmp 0x1008104
cmp eax, ecx
je 0x1008005
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
jmp 0x1008005
test al, al
je 0x1008050
jmp 0x100812f
mov eax, dword [0x10262b0]
mov edx, dword [0x10262b4]
mov ecx, eax
and ecx, edi
and edx, ebx
cmp ecx, eax
jne 0x1008071
cmp edx, dword [0x10262b4]
jne 0x1008071
push dword [ebp - 8]
push 0x1014678
push dword [0x10261bc]
push dword [0x10261b8]
call fcn.01018730
jmp 0x1008071
mov eax, dword [0x10262b0]
mov ecx, eax
and ecx, edi
mov edi, dword [0x10262b4]
mov edx, edi
and edx, 0x80000000
cmp ecx, eax
jne 0x10080c4
cmp edx, edi
jne 0x10080c4
push dword [ebp - 0xc]
push 0x1014688
push dword [0x10261bc]
push dword [0x10261b8]
call fcn.01018730
jmp 0x10080c4
mov eax, dword [eax*4 + 0x1026644]
jmp 0x101463c
mov eax, dword [ebp - 8]
sub eax, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0x102
je 0x1014662
cmp dword [ebp - 4], eax
jbe 0x101465c
mov ecx, dword [ebp + 8]
cmp dword [ebp + eax*4 - 0x14], ecx
jne 0x1014662
jmp 0x100486e
jne 0x100486e
cmp dword [ebp - 8], 0
jne 0x1008027
jmp 0x100486e