Function at 0x5b8fcc
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 0x5b924d
push 0x1391
mov edx, esi
mov cl, 2
mov eax, ebx
call fcn.005baa20
test al, al
jne 0x5b9249
mov ecx, 7
mov edx, dword [ebx + 0x380]
mov eax, ebx
call fcn.005bae60
test al, al
je 0x5b924d
mov eax, dword [ebx + 0x380]
push eax
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x24]
mov eax, ebx
call fcn.00611a38
test al, al
je 0x5b924d
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebx + 0x3fc]
cmp eax, dword [ebx + 0xb60]
jle 0x5b9243
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.0060aa6c
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.00612ef8
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.0060aa6c
mov eax, dword [ebx + 0x380]
mov eax, dword [eax + 0x24]
mov edx, eax
sub edx, 2
add eax, 2
sub eax, edx
jl 0x5b923c
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 0x5b922e
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.0066dba0
test al, al
je 0x5b9220
mov eax, dword [esp + 0x14]
cmp dword [eax + 4], 0
je 0x5b9220
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x5b9220
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 0x5b9212
cmp byte [eax], 1
jne 0x5b9212
mov esi, dword [eax + 1]
test esi, esi
je 0x5b9212
cmp byte [esi + 0x2e4], 0
jne 0x5b9212
cmp byte [esi + 0x2ec], 0
jne 0x5b9212
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
test al, al
je 0x5b9212
cmp byte [esi + 0x319], 0
je 0x5b91bc
cmp byte [ebx + 0x31b], 0
je 0x5b9212
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 0x5b91f6
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 0x5b915f
inc dword [esp + 0xc]
dec dword [esp + 0x1c]
jne 0x5b9111
inc dword [esp + 8]
dec dword [esp + 0x18]
jne 0x5b90ef
mov eax, ebx
call fcn.0060f4c4
mov byte [esp], 1
jmp 0x5b924d
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x24
pop esi
pop ebx
ret