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

Disassembly:
sub esp, 0x10c
cmp dword [0x4e97e8], 0
push ebx
push ebp
push esi
push edi
jg 0x404253
mov ecx, dword [0x4e7024]
cmp byte [ecx + 0xed], 0
je 0x404253
mov eax, dword [0x4e97fc]
cmp eax, dword [0x4e7020]
jge 0x404253
cmp dword [0x4e701c], 0
je 0x404253
cmp dword [0x4e96dc], 0
jne 0x404253
cmp byte [ecx + 0xec], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x404060
cmp byte [ecx + 0xee], 0
jne 0x404053
cmp dword [ecx + 0xe0], 0xffffffff
jle 0x404053
call ebp
mov ecx, dword [0x4e7024]
sub eax, dword [ecx + 0xdc]
cmp eax, dword [ecx + 0xe0]
jb 0x404053
mov byte [ecx + 0xec], 1
cmp byte [ecx + 0xec], 0
je 0x404253
mov esi, dword [0x4ec448]
xor ebx, ebx
test esi, esi
je 0x404253
cmp byte [esi + 0x11], 0
je 0x404098
cmp byte [esi + 0x10], 0
ja 0x404098
mov eax, dword [esi + 0xc]
cmp eax, dword [ecx + 0x2c]
jl 0x404098
call ebp
mov edi, eax
mov ecx, edi
sub ecx, dword [esi + 8]
cmp ecx, dword [esi + 4]
jae 0x4040bf
mov ecx, dword [0x4e7024]
mov edi, dword [esi + 0x14]
mov esi, edi
test edi, edi
jne 0x404070
test ebx, ebx
je 0x404253
lea ecx, [esp + 0x18]
call fcn.004048d0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
test ebx, ebx
jne 0x404101
mov ecx, dword [0x4e97f8]
mov ebx, 1
push 0
push ebx
call fcn.004014f0
push 0x7f
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
inc dword [0x4e97fc]
xor eax, eax
add esp, 0xc
mov word [esp + 0x116], ax
add dword [0x4e7024], 0x108
cmp byte [esi + 0x12], 0
mov dword [esi + 8], edi
je 0x404154
mov byte [esi + 0x11], 0
sub dword [0x4ec454], 1
jne 0x404154
cmp dword [0x4e9818], 0
jne 0x404154
cmp dword [0x4ea364], 0
jne 0x404154
cmp byte [0x4e96d2], 0
je 0x404154
push 9
push dword [0x4e9814]
call dword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x4e96d2]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [0x4e96d2], cl
mov eax, dword [0x4edc84]
mov dword [0x4ec4a4], edi
mov edx, dword [esi]
test al, 1
jne 0x40417b
push 0
or eax, 1
mov ecx, 0x4edc88
push 0
mov dword [0x4edc84], eax
call fcn.00422ad0
mov eax, dword [0x4ebfe0]
mov ecx, dword [edx]
cmp ecx, dword [eax]
je 0x40418e
cmp ecx, dword [0x4edc88]
jne 0x40419d
mov eax, dword [edx + 8]
test eax, eax
je 0x40419d
mov al, byte [eax]
mov byte [esp + 0x14], al
jmp 0x4041a2
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
xor dl, dl
push 0
call fcn.004047c0
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 0x4bfc08
call fcn.0048dde0
dec byte [esi + 0x10]
add esp, 0x1c
cmp byte [esi + 0x12], 0
mov edi, dword [esi + 0x14]
je 0x404237
cmp byte [esi + 0x11], 0
jne 0x404237
mov edx, dword [esi]
test edx, edx
je 0x404237
mov eax, dword [0x4edc84]
mov ecx, edx
test al, 1
jne 0x404214
push 0
or eax, 1
mov ecx, 0x4edc88
push 0
mov dword [0x4edc84], eax
call fcn.00422ad0
mov ecx, dword [esi]
mov eax, dword [0x4ebfe0]
mov edx, dword [edx]
cmp edx, dword [eax]
je 0x404237
cmp edx, dword [0x4edc88]
je 0x404237
test ecx, ecx
je 0x404231
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], 0
cmp dword [esi], 0
jne 0x404248
push 0
mov ecx, 0x4eb990
call fcn.00428620
mov ecx, dword [0x4e7024]
jmp 0x40409b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10c
ret