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

Disassembly:
sub esp, 0x104
cmp dword [0x4e97c8], 0
push ebx
push ebp
push esi
push edi
jg 0x404299
mov ecx, dword [0x4e7024]
cmp byte [ecx + 0xed], 0
je 0x404299
mov eax, dword [0x4e97dc]
cmp eax, dword [0x4e7020]
jge 0x404299
cmp dword [0x4e701c], 0
je 0x404299
cmp dword [0x4e96bc], 0
jne 0x404299
cmp byte [ecx + 0xec], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x4040b0
cmp byte [ecx + 0xee], 0
jne 0x4040a3
cmp dword [ecx + 0xe0], 0xffffffff
jle 0x4040a3
call ebp
mov ecx, dword [0x4e7024]
sub eax, dword [ecx + 0xdc]
cmp eax, dword [ecx + 0xe0]
jb 0x4040a3
mov byte [ecx + 0xec], 1
cmp byte [ecx + 0xec], 0
je 0x404299
mov esi, dword [0x4ec410]
xor ebx, ebx
test esi, esi
je 0x404299
cmp byte [esi + 0x11], 0
je 0x4040e8
cmp byte [esi + 0x10], 0
ja 0x4040e8
mov eax, dword [esi + 0xc]
cmp eax, dword [ecx + 0x2c]
jl 0x4040e8
call ebp
mov edi, eax
mov ecx, edi
sub ecx, dword [esi + 8]
cmp ecx, dword [esi + 4]
jae 0x40410f
mov ecx, dword [0x4e7024]
mov edi, dword [esi + 0x14]
mov esi, edi
test edi, edi
jne 0x4040c0
test ebx, ebx
je 0x404299
lea ecx, [esp + 0x10]
call fcn.00404920
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
test ebx, ebx
jne 0x404151
mov ecx, dword [0x4e97d8]
mov ebx, 1
push 0
push ebx
call fcn.00401520
push 0x7f
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
inc dword [0x4e97dc]
xor eax, eax
add esp, 0xc
mov word [esp + 0x10e], ax
add dword [0x4e7024], 0x108
cmp byte [esi + 0x12], 0
mov dword [esi + 8], edi
je 0x4041a4
mov byte [esi + 0x11], 0
sub dword [0x4ec41c], 1
jne 0x4041a4
cmp dword [0x4e97f8], 0
jne 0x4041a4
cmp dword [0x4ea32c], 0
jne 0x4041a4
cmp byte [0x4e96b2], 0
je 0x4041a4
push 9
push dword [0x4e97f4]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4e96b2]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4e96b2], cl
mov eax, dword [0x4edc4c]
mov dword [0x4ec46c], edi
mov edx, dword [esi]
test al, 1
jne 0x4041cb
push 0
or eax, 1
mov ecx, 0x4edc50
push 0
mov dword [0x4edc4c], eax
call fcn.00422a80
mov eax, dword [0x4ebfa8]
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x4041de
cmp ecx, dword [0x4edc50]
jne 0x4041e9
mov eax, dword [edx + 8]
test eax, eax
je 0x4041e9
mov al, byte [eax]
jmp 0x4041eb
xor al, al
mov ecx, dword [esi + 0xc]
xor dl, dl
push eax
push 0
call fcn.00404810
mov eax, dword [0x4e7024]
push 0
push 0
push 0
mov dword [eax + 0xc0], esi
inc byte [esi + 0x10]
mov ecx, dword [esi]
mov edx, ecx
push 0
push 0x4bfc18
call fcn.0048def0
dec byte [esi + 0x10]
add esp, 0x1c
cmp byte [esi + 0x12], 0
mov edi, dword [esi + 0x14]
je 0x40427d
cmp byte [esi + 0x11], 0
jne 0x40427d
mov edx, dword [esi]
test edx, edx
je 0x40427d
mov eax, dword [0x4edc4c]
mov ecx, edx
test al, 1
jne 0x40425a
push 0
or eax, 1
mov ecx, 0x4edc50
push 0
mov dword [0x4edc4c], eax
call fcn.00422a80
mov ecx, dword [esi]
mov eax, dword [0x4ebfa8]
mov edx, dword [edx]
cmp edx, dword [eax]
je 0x40427d
cmp edx, dword [0x4edc50]
je 0x40427d
test ecx, ecx
je 0x404277
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], 0
cmp dword [esi], 0
jne 0x40428e
push 0
mov ecx, 0x4eb958
call fcn.00428650
mov ecx, dword [0x4e7024]
jmp 0x4040eb
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x104
ret