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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x10044b51
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb0]
push edi
push 0x10048224
push esi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10009ea9
push esi
call fcn.1000e120
add esp, 4
test eax, eax
je 0x10009ea9
mov eax, dword [0x10054f08]
mov ecx, 0x10054f08
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0xac], 0
mov dword [esp + 0x20], ecx
call dword [0x1005310c]
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.10004310
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push eax
mov byte [esp + 0xb4], 1
call fcn.1000f460
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
add esp, 8
cmp eax, ecx
mov byte [esp + 0xac], 0
je 0x10009bcc
push eax
call fcn.1003633d
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 0xc]
lea eax, [eax + eax + 2]
push eax
call fcn.100377f5
mov ecx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [ecx - 0xc]
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x3b
push ebp
call fcn.1003657c
mov esi, eax
mov eax, dword [ebx + 0x6a0]
add esp, 8
test eax, eax
je 0x10009c33
lea ecx, [ebx + 0x688]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x10009e31
push ebp
mov word [esi], 0
call fcn.10037859
add esi, 2
push 0x3b
push esi
mov ebp, eax
call fcn.1003657c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10009c64
mov word [edi], 0
add edi, 2
push esi
call fcn.10037859
mov dword [ebx + 0x684], eax
mov eax, dword [ebx + 0x67c]
lea esi, [ebx + 0x67c]
push edi
push eax
call fcn.100369f4
add esp, 0xc
test eax, eax
jne 0x10009cc9
cmp dword [ebx + 0x680], eax
je 0x10009ca5
cmp ebp, eax
jne 0x10009e31
mov dword [ebx + 0x680], eax
jmp 0x10009e31
cmp ebp, eax
je 0x10009cbe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x64
div ecx
cmp edx, ebp
sbb eax, eax
neg eax
mov dword [ebx + 0x680], eax
jmp 0x10009e31
test ebp, ebp
jne 0x10009cd1
xor eax, eax
jmp 0x10009ce6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x64
div ecx
cmp edx, ebp
sbb eax, eax
neg eax
push edi
mov ecx, esi
mov dword [ebx + 0x680], eax
call fcn.10008600
lea ecx, [ebx + 0x66c]
mov dword [ebx + 0x678], 0
call fcn.10006660
test edi, edi
je 0x10009e31
mov edx, dword [0x10054f08]
mov ecx, 0x10054f08
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
push 0x3d
push edi
mov byte [esp + 0xb4], 2
mov dword [esp + 0x1c], 0
call fcn.1003657c
mov esi, eax
add esp, 8
test esi, esi
je 0x10009e0f
push edi
mov word [esi], 0
call fcn.10037859
add esi, 2
push 0x3b
push esi
mov dword [esp + 0x20], eax
call fcn.1003657c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10009d73
mov word [edi], 0
test esi, esi
jne 0x10009d7b
xor eax, eax
jmp 0x10009d84
push esi
call fcn.10036536
add esp, 4
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.10005c00
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x10009dc5
push 0x10048214
push esi
call fcn.10036a26
add esp, 8
test eax, eax
je 0x10009dc5
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x10009dc5
lea eax, [esp + 0x14]
push eax
lea ecx, [ebx + 0x66c]
call fcn.10007c90
test edi, edi
mov byte [esp + 0xac], 0
je 0x10009df8
lea eax, [esi - 0x10]
add edi, 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009dee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
jne 0x10009d11
jmp 0x10009e31
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10009e31
mov ecx, dword [esi]
push esi
jmp 0x10009e2c
lea eax, [ebp - 0x10]
mov byte [esp + 0xac], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009e31
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebx + 0x6a0]
test eax, eax
je 0x10009e48
lea eax, [ebx + 0x688]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x680]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
je 0x10009e61
mov ecx, dword [ebx + 0x644]
push ecx
call esi
mov edx, dword [esp + 0x1c]
push edx
call fcn.100363ae
mov eax, dword [ebx + 0x648]
add esp, 4
push eax
call esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0xac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009f25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x10009f25
mov eax, dword [ebx + 0x6a0]
xor ebp, ebp
cmp eax, ebp
je 0x10009ec2
lea eax, [ebx + 0x688]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, ebp
lea edi, [ebx + 0x67c]
jne 0x10009ed0
xor eax, eax
jmp 0x10009ed9
push esi
call fcn.10036536
add esp, 4
push eax
push esi
mov ecx, edi
call fcn.10005c00
lea ecx, [ebx + 0x66c]
mov dword [ebx + 0x680], ebp
mov dword [ebx + 0x678], ebp
call fcn.10006660
cmp dword [ebx + 0x6a0], ebp
je 0x10009f0e
lea ecx, [ebx + 0x688]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebx + 0x648]
push edx
mov dword [ebx + 0x684], 0xe10
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa0
ret 4