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

Disassembly:
sub esp, 0x80
cmp dword [0x4eb710], 0
push ebx
push ebp
push esi
jg 0x403b16
mov ecx, dword [0x4e88cc]
cmp byte [ecx + 0xcd], 0
je 0x403b16
mov eax, dword [0x4eb724]
cmp eax, dword [0x4e88c8]
jge 0x403b16
cmp dword [0x4e88c4], 0
je 0x403b16
cmp dword [0x4eb624], 0
jne 0x403b16
cmp byte [ecx + 0xcc], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x40392f
cmp byte [ecx + 0xce], 0
jne 0x403922
cmp dword [ecx + 0xc0], 0xffffffff
jle 0x403922
call ebp
mov ecx, dword [0x4e88cc]
sub eax, dword [ecx + 0xbc]
cmp eax, dword [ecx + 0xc0]
jb 0x403922
mov byte [ecx + 0xcc], 1
cmp byte [ecx + 0xcc], 0
je 0x403b16
mov esi, dword [0x4ede20]
xor ebx, ebx
test esi, esi
je 0x403b16
push edi
cmp byte [esi + 0x11], 0
je 0x403968
cmp byte [esi + 0x10], 0
ja 0x403968
mov eax, dword [esi + 0xc]
cmp eax, dword [ecx + 0x2c]
jl 0x403968
call ebp
mov edi, eax
mov ecx, edi
sub ecx, dword [esi + 8]
cmp ecx, dword [esi + 4]
jae 0x40398f
mov ecx, dword [0x4e88cc]
mov edi, dword [esi + 0x14]
mov esi, edi
test edi, edi
jne 0x403940
pop edi
test ebx, ebx
je 0x403b16
lea ecx, [esp + 0xc]
call fcn.00404190
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x80
ret
test ebx, ebx
jne 0x4039ce
mov ecx, dword [0x4eb720]
mov ebx, 1
push 0
push ebx
call fcn.00401550
push 0x7f
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004ba990
inc dword [0x4eb724]
add esp, 0xc
add dword [0x4e88cc], 0xe8
mov byte [esp + 0x8f], 0
cmp byte [esi + 0x12], 0
mov dword [esi + 8], edi
je 0x403a21
mov byte [esi + 0x11], 0
sub dword [0x4ede2c], 1
jne 0x403a21
cmp dword [0x4eb740], 0
jne 0x403a21
cmp dword [0x4ec1ec], 0
jne 0x403a21
cmp byte [0x4eb61a], 0
je 0x403a21
push 9
push dword [0x4eb73c]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4eb61a]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4eb61a], cl
mov eax, dword [0x50f4fc]
mov dword [0x4ede7c], edi
mov edx, dword [esi]
test al, 1
jne 0x403a48
push 0
or eax, 1
mov ecx, 0x50f500
push 0
mov dword [0x50f4fc], eax
call fcn.00422370
mov eax, dword [0x4edbc0]
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x403a5b
cmp ecx, dword [0x50f500]
jne 0x403a66
mov eax, dword [edx + 8]
test eax, eax
je 0x403a66
mov al, byte [eax]
jmp 0x403a68
xor al, al
mov ecx, dword [esi + 0xc]
xor dl, dl
push eax
push 0
call fcn.00404080
mov eax, dword [0x4e88cc]
push 0
push 0
push 0
mov dword [eax + 0xa0], esi
inc byte [esi + 0x10]
mov ecx, dword [esi]
mov edx, ecx
push 0
push str.call
call fcn.0048cb70
dec byte [esi + 0x10]
add esp, 0x1c
cmp byte [esi + 0x12], 0
mov edi, dword [esi + 0x14]
je 0x403afa
cmp byte [esi + 0x11], 0
jne 0x403afa
mov edx, dword [esi]
test edx, edx
je 0x403afa
mov eax, dword [0x50f4fc]
mov ecx, edx
test al, 1
jne 0x403ad7
push 0
or eax, 1
mov ecx, 0x50f500
push 0
mov dword [0x50f4fc], eax
call fcn.00422370
mov ecx, dword [esi]
mov eax, dword [0x4edbc0]
mov edx, dword [edx]
cmp edx, dword [eax]
je 0x403afa
cmp edx, dword [0x50f500]
je 0x403afa
test ecx, ecx
je 0x403af4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], 0
cmp dword [esi], 0
jne 0x403b0b
push 0
mov ecx, 0x4ed830
call fcn.004286d0
mov ecx, dword [0x4e88cc]
jmp 0x40396b
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x80
ret