Function at 0x1004899
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 + 0x1003aa0]
mov dword [ebp - 0xc], ecx
sub ecx, dword [esi + 0xc]
cmp ebx, edi
jae 0x10048d2
test ebx, ebx
ja 0x1004cf4
mov eax, dword [esi + 8]
cmp ecx, dword [eax*4 + 0x1003aa0]
jae 0x100eebc
mov eax, dword [esi + 8]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx*4 + 0x1026644]
lea eax, [eax*4 + 0x1003aa0]
cmp ecx, dword [eax]
jae 0x100eebc
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 0x10048d2
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [esi + 0x1c]
call fcn.01001d35
jmp 0x100eedf
mov edi, 0x400001
jmp 0x100ef42
test al, al
je 0x100ef7a
jmp 0x100ef95
xor ecx, ecx
jmp 0x100efd9
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 0x1014459
cmp dword [esi + 0x20], ecx
je 0x100ec5e
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100eef0
mov ecx, dword [ebp - 4]
inc dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x14], eax
test ebx, ebx
je 0x10048fe
mov ecx, esi
call fcn.0100f4a9
test al, al
jne 0x10048fe
cmp dword [0x10262bc], 0
je 0x100ec76
mov al, byte [0x10262c0]
cmp al, 4
jb 0x1014470
mov eax, dword [0x10262a8]
mov ecx, dword [0x10262ac]
mov edi, 0x400001
mov ebx, 0x80000000
and eax, edi
and ecx, ebx
or eax, ecx
jne 0x101447d
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 0x100ef95
mov al, byte [0x10262c0]
cmp al, 4
jb 0x100ec80
mov eax, dword [0x10262a8]
mov ecx, dword [0x10262ac]
and eax, edi
and ecx, 0x80000000
or eax, ecx
jne 0x10144c0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx*4 + 0x1026644]
lea eax, [eax*4 + 0x1003aa0]
cmp ecx, dword [eax]
mov eax, dword [esi + 8]
jae 0x1014505
sub ebx, dword [esi + 0xc]
shl eax, 2
mov edx, dword [eax + 0x1026644]
test edx, edx
je 0x100ec8d
mov ecx, dword [eax + 0x1003aa0]
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 0x10048fe
jmp 0x101450e
cmp eax, ecx
je 0x100eed6
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
jmp 0x100eed6
test al, al
je 0x100ef21
jmp 0x100ec76
mov eax, dword [0x10262b0]
mov edx, dword [0x10262b4]
mov ecx, eax
and ecx, edi
and edx, ebx
cmp ecx, eax
jne 0x100ef42
cmp edx, dword [0x10262b4]
jne 0x100ef42
push dword [ebp - 8]
push 0x1014548
push dword [0x10261bc]
push dword [0x10261b8]
call fcn.01018668
jmp 0x100ef42
mov eax, dword [0x10262b0]
mov ecx, eax
and ecx, edi
mov edi, dword [0x10262b4]
mov edx, edi
and edx, 0x80000000
cmp ecx, eax
jne 0x100ef95
cmp edx, edi
jne 0x100ef95
push dword [ebp - 0xc]
push 0x1014558
push dword [0x10261bc]
push dword [0x10261b8]
call fcn.01018668
jmp 0x100ef95
mov eax, dword [eax*4 + 0x1026644]
jmp 0x1014513
mov eax, dword [ebp - 8]
sub eax, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0x102
je 0x1014539
cmp dword [ebp - 4], eax
jbe 0x1014533
mov ecx, dword [ebp + 8]
cmp dword [ebp + eax*4 - 0x14], ecx
jne 0x1014539
jmp 0x10048fe
jne 0x10048fe
cmp dword [ebp - 8], 0
jne 0x100eef8
jmp 0x10048fe