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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0x10257b34
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x10257b4c]
cmp eax, 0x2710
jbe 0x1005d728
call esi
push ecx
mov dword [0x10257b4c], eax
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10209664
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x1005d537
push 0xb
push 0x10209664
mov ecx, esi
call fcn.10003740
lea eax, [ebp - 4]
push eax
call fcn.100daf60
mov eax, dword [ebp - 4]
add esp, 8
mov ecx, 0x10202940
jmp 0x1005d550
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1005d576
test dx, dx
je 0x1005d572
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1005d576
add eax, 4
add ecx, 4
test dx, dx
jne 0x1005d550
xor eax, eax
jmp 0x1005d57b
sbb eax, eax
or eax, 1
or esi, 0xffffffff
test eax, eax
jne 0x1005d60d
push 0x10209664
lea eax, [ebp - 0x10]
push 0x10202944
push eax
call fcn.100db670
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10007f40
add esp, 0xc
push eax
lea eax, [ebp - 8]
push eax
call fcn.10007f40
add esp, 0xc
lea ecx, [ebp - 4]
push eax
call fcn.10002790
mov edx, dword [ebp - 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005d5d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005d5f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005d60d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call fcn.100dacc0
add esp, 8
test eax, eax
je 0x1005d62f
mov eax, dword [ebp - 0x14]
cmp dword [edi + 0x1c], eax
je 0x1005d710
mov dword [edi + 0x1c], eax
mov ecx, edi
call fcn.1005e790
push 0x1023cf18
push dword [ebp - 4]
mov ecx, edi
mov dword [edi + 0x18], 0
mov dword [edi + 0x10], 0
call fcn.1005e4d0
mov dword [edi + 0x18], eax
test eax, eax
je 0x1005d710
call fcn.100dd960
test eax, eax
je 0x1005d710
push ecx
mov ecx, esp
push str.LibDefaEx.dat
call fcn.10002490
lea eax, [ebp - 8]
push eax
call fcn.100daf60
lea eax, [ebp - 8]
push 0x10202940
push eax
call fcn.1005b7e0
add esp, 0x10
test al, al
je 0x1005d6e7
push str.LibDefaEx.dat
lea eax, [ebp - 0x18]
push 0x10202944
push eax
call fcn.100db670
add esp, 4
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10007f40
add esp, 0xc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10007f40
add esp, 0xc
lea ecx, [ebp - 8]
push eax
call fcn.10002790
lea ecx, [ebp - 0x10]
call fcn.10007e10
lea ecx, [ebp - 0xc]
call fcn.10007e10
lea ecx, [ebp - 0x18]
call fcn.10007e10
push 0x1023cf20
push dword [ebp - 8]
mov ecx, edi
call fcn.1005e4d0
mov edx, dword [ebp - 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1005d710
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1005d728
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10257b34
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret