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

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov ebx, edx
mov edi, eax
mov byte [esp], 0
cmp dword [edi + 0x380], 0
je 0x5b7b1e
call sub.kernel32.dll_GetTickCount_1
cmp eax, dword [edi + 0xc28]
jbe 0x5b7903
call sub.kernel32.dll_GetTickCount_1
add eax, 0x7d0
mov dword [edi + 0xc28], eax
mov eax, 0xa
call fcn.00403484
cmp eax, 3
jge 0x5b7903
push 1
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x2e0]
call fcn.0066fd60
test eax, eax
jle 0x5b7903
mov byte [edi + 0x2c], bl
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x3fc], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x384], eax
push 0
push 0
push 0
push 0
push 0
xor ecx, ecx
mov dx, 0xe9
mov eax, edi
call fcn.0060aa6c
mov eax, 0x10
call fcn.00403484
sub eax, 8
add eax, dword [edi + 0x24]
mov dword [esp + 8], eax
mov eax, 0x10
call fcn.00403484
sub eax, 8
add eax, dword [edi + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
push eax
push 2
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x2e0]
mov eax, edi
call fcn.00617f30
mov byte [esp], 1
jmp 0x5b7b1e
mov ecx, dword [edi + 0x1b0]
mov edx, dword [edi + 0x380]
mov eax, edi
call fcn.005bae60
test al, al
je 0x5b7af1
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [edi + 0x3fc]
cmp eax, dword [edi + 0xb60]
jle 0x5b7aeb
mov byte [edi + 0x2c], bl
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x3fc], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [edi + 0x384], eax
movzx eax, byte [edi + 0x2c]
push eax
mov eax, dword [edi + 0x24]
push eax
mov eax, dword [edi + 0x28]
push eax
mov cx, 0x1391
mov dx, 0x9a
mov eax, edi
call fcn.0060f9fc
push 1
mov ecx, dword [edi + 0x112]
shr ecx, 0x10
movzx eax, word [edi + 0x112]
sub cx, ax
movsx ecx, cx
movzx edx, ax
mov eax, edi
call fcn.00612ef8
mov dword [esp + 4], eax
mov eax, dword [edi + 0x380]
mov eax, dword [eax + 0x24]
mov edx, eax
dec edx
inc eax
sub eax, edx
jl 0x5b7ac0
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 8], edx
mov eax, dword [edi + 0x380]
mov eax, dword [eax + 0x28]
mov edx, eax
dec edx
inc eax
sub eax, edx
jl 0x5b7ab2
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 [edi + 0x2e0]
call fcn.0066dba0
test al, al
je 0x5b7aa4
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], 0
je 0x5b7aa4
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5b7aa4
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.0041fbfc
test eax, eax
je 0x5b7a96
cmp byte [eax], 1
jne 0x5b7a96
mov esi, dword [eax + 1]
test esi, esi
je 0x5b7a96
cmp byte [esi + 0x2e4], 0
jne 0x5b7a96
cmp byte [esi + 0x2ec], 0
jne 0x5b7a96
mov edx, esi
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x68]
test al, al
je 0x5b7a96
cmp byte [esi + 0x319], 0
je 0x5b7a6b
cmp byte [edi + 0x31b], 0
je 0x5b7a96
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
push 0x1f4
mov cx, 0xdc
mov edx, edi
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x18]
inc dword [esp + 0x10]
dec dword [esp + 0x20]
jne 0x5b7a1a
inc dword [esp + 0xc]
dec dword [esp + 0x1c]
jne 0x5b79cc
inc dword [esp + 8]
dec dword [esp + 0x18]
jne 0x5b79ae
mov eax, dword [edi + 0x380]
mov edx, dword [eax + 0x24]
push edx
mov eax, dword [eax + 0x28]
push eax
push 0xc
push 0
push 0x168
xor ecx, ecx
mov dx, 0xc9
mov eax, edi
call fcn.0060aa6c
mov eax, edi
call fcn.0060f4c4
mov byte [esp], 1
jmp 0x5b7b1e
mov eax, dword [edi + 0x380]
mov edx, dword [eax + 0x2e0]
cmp edx, dword [edi + 0x2e0]
jne 0x5b7b17
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x24]
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x84]
jmp 0x5b7b1e
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x74]
movzx eax, byte [esp]
add esp, 0x24
pop edi
pop esi
pop ebx
ret