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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007ec28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097060]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x597dc]
cmp ecx, 4
je 0x1005bd14
xor eax, eax
jmp 0x1005c016
mov edi, dword [eax + 0x59774]
xor esi, esi
cmp edi, esi
je 0x1005c011
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x597e0], 4
je 0x1005bd55
mov ecx, dword [0x1009a210]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov dword [edi + 0xfc], esi
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
cmp dword [edi + 0xa4], esi
jne 0x1005c008
cmp dword [edi + 0xa8], esi
jne 0x1005c008
mov eax, dword [ebp + 0x2c]
cmp eax, esi
jne 0x1005be26
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x1008b1ec
call fcn.10001a30
lea edx, [esp + 0x14]
push edx
lea ecx, [ebp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov ebx, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [ebx], eax
call fcn.10001590
mov ebx, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.1001f1f0
cmp ebx, esi
je 0x1005be1a
cmp dword [ebx + 0x14], esi
jne 0x1005be1a
mov esi, dword [ebx]
call fcn.10064990
test eax, eax
je 0x1005be1a
mov eax, ebx
call fcn.1002a6c0
test eax, eax
jne 0x1005be1a
call fcn.1005bb50
test eax, eax
jne 0x1005be1a
call fcn.1005aba0
cmp eax, 2
jb 0x1005be1a
mov ecx, dword [ebx]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, edi
call edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x3e8
mov dword [ebp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x2c], 1
jmp 0x1005c011
cmp eax, 1
jne 0x1005bfab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 0x30]
cmp eax, 0x3e8
jbe 0x1005c011
call fcn.10066330
test eax, eax
je 0x1005bfa2
cmp dword [edi + 0x1b8], esi
je 0x1005be64
cmp dword [edi + 0x144], esi
jne 0x1005bfa2
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x298]
cmp eax, 1
jne 0x1005bf06
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x1008a83c
call fcn.10001a30
lea edx, [esp + 0x14]
push edx
lea ecx, [ebp + 0x34]
mov dword [esp + 0x2c], 1
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov ebx, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [ebx], eax
call fcn.10001590
mov ebx, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.1001f1f0
cmp ebx, esi
je 0x1005bfa2
cmp dword [ebx + 0x14], esi
jne 0x1005bfa2
mov esi, dword [ebx]
call fcn.10064990
test eax, eax
je 0x1005bfa2
mov eax, ebx
call fcn.1002a6c0
test eax, eax
jne 0x1005bfa2
mov eax, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [eax + 0x14]
push ecx
jmp 0x1005bf8a
cmp eax, 2
jne 0x1005bfa2
lea eax, [esp + 0x14]
push eax
mov ecx, 0x1008a84c
call fcn.10001a30
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0x34]
mov dword [esp + 0x2c], 2
call fcn.10005150
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x1c], esp
mov ebx, esp
call fcn.10001cb0
add eax, 0x10
mov ecx, ebp
mov dword [ebx], eax
call fcn.10001590
mov ebx, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.1001f1f0
cmp ebx, esi
je 0x1005bfa2
cmp dword [ebx + 0x14], esi
jne 0x1005bfa2
mov esi, dword [ebx]
call fcn.10064990
test eax, eax
je 0x1005bfa2
mov eax, ebx
call fcn.1002a6c0
test eax, eax
jne 0x1005bfa2
mov edx, dword [edi]
mov eax, dword [ebx]
mov edx, dword [edx + 0x14]
push eax
mov ecx, edi
call edx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x2c], 2
jmp 0x1005c011
cmp eax, 2
jne 0x1005bfd8
mov eax, dword [ebp + 0x14]
add eax, 0x18
push eax
mov ecx, edi
call fcn.10035f10
test eax, eax
je 0x1005bfcf
push edi
call fcn.10004080
mov eax, ebp
call fcn.10051da0
mov dword [ebp + 0x2c], 3
jmp 0x1005c011
mov ecx, ebp
call fcn.10051f70
test eax, eax
je 0x1005c011
call fcn.10025340
mov eax, dword [ebp + 0x14]
add eax, 0x597e8
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], 4
call fcn.100053d0
mov dword [eax], esi
mov dword [ebp + 0x2c], esi
jmp 0x1005c011
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 0x30], eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4