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

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
mov esi, edx
mov ebx, eax
mov byte [esp], 0
cmp dword [ebx + 0x380], 0
je 0x5e86a9
push 0x1391
mov edx, esi
mov cl, 2
mov eax, ebx
call fcn.005e9e7c
test al, al
jne 0x5e86a5
mov ecx, 7
mov edx, dword [ebx + 0x380]
mov eax, ebx
call fcn.005ea2bc
test al, al
je 0x5e86a9
mov eax, dword [ebx + 0x380]
push eax
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x24]
mov eax, ebx
call fcn.0066a398
test al, al
je 0x5e86a9
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x3fc]
cmp eax, dword [ebx + 0xb60]
jle 0x5e869f
mov eax, esi
mov byte [ebx + 0x2c], al
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x3fc], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebx + 0x384], eax
push 0
push 0
mov eax, dword [ebx + 0x380]
push eax
push 0
push 0
mov ecx, esi
mov dx, 0xc0
mov eax, ebx
call fcn.006633cc
push 1
mov ecx, dword [ebx + 0x112]
shr ecx, 0x10
movzx eax, word [ebx + 0x112]
sub cx, ax
movsx ecx, cx
movzx edx, ax
mov eax, ebx
call fcn.0066b858
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x380]
push eax
mov eax, dword [ebx + 0x24]
push eax
mov eax, dword [ebx + 0x28]
push eax
push 0
push 0x190
mov cx, 4
mov dx, 0xea
mov eax, ebx
call fcn.006633cc
mov eax, dword [ebx + 0x380]
mov eax, dword [eax + 0x24]
mov edx, eax
sub edx, 2
add eax, 2
sub eax, edx
jl 0x5e8698
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x380]
mov eax, dword [eax + 0x28]
mov edx, eax
sub edx, 2
add eax, 2
sub eax, edx
jl 0x5e868a
inc eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], edx
lea eax, [esp + 0x14]
push eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [ebx + 0x2e0]
call fcn.00673738
test al, al
je 0x5e867c
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], 0
je 0x5e867c
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5e867c
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x10]
call fcn.0041fbf0
test eax, eax
je 0x5e866e
cmp byte [eax], 1
jne 0x5e866e
mov esi, dword [eax + 1]
test esi, esi
je 0x5e866e
cmp byte [esi + 0x2e4], 0
jne 0x5e866e
cmp byte [esi + 0x2ec], 0
jne 0x5e866e
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
test al, al
je 0x5e866e
cmp byte [esi + 0x319], 0
je 0x5e8618
cmp byte [ebx + 0x31b], 0
je 0x5e866e
movzx eax, word [esp + 4]
push eax
movzx eax, word [esi + 0x24]
movzx edx, word [esi + 0x28]
shl edx, 0x10
or eax, edx
push eax
push 3
push esi
push 0
mov eax, dword [esi + 0x24]
sub eax, dword [ebx + 0x24]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0x28]
sub eax, dword [ebx + 0x28]
cdq
xor eax, edx
sub eax, edx
add ecx, eax
sar ecx, 1
jns 0x5e8652
adc ecx, 0
mov eax, ecx
add eax, eax
add eax, eax
lea eax, [eax + eax*4]
add eax, 0x320
push eax
mov cx, 0xdc
mov edx, ebx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x18]
inc dword [esp + 0x10]
dec dword [esp + 0x20]
jne 0x5e85bb
inc dword [esp + 0xc]
dec dword [esp + 0x1c]
jne 0x5e856d
inc dword [esp + 8]
dec dword [esp + 0x18]
jne 0x5e854b
mov eax, ebx
call fcn.00667e24
mov byte [esp], 1
jmp 0x5e86a9
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x24
pop esi
pop ebx
ret