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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x18]
cmp ecx, 1
jne 0x101051cb
jmp 0x10105469
push 0xffffffffffffffff
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x30]
mov byte [ecx + 0x18], 1
mov dword [ebp - 4], 0
jmp 0x101051f3
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x30]
call fcn.10011b40
cmp dword [ebp - 4], eax
jae 0x10105455
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x1010528a
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10105244
push 1
mov ecx, dword [ebp - 8]
call fcn.100115c0
mov dword [ebp - 0x34], eax
jmp 0x1010524b
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.1001f0d0
mov ecx, eax
call fcn.1002e100
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.10011be0
jmp 0x10105450
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
movzx edx, byte [eax + 5]
test edx, edx
jne 0x10105450
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
add eax, 8
mov ecx, eax
call fcn.10003d40
test eax, eax
jbe 0x10105316
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
add eax, 8
mov ecx, eax
call fcn.10003d40
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
add eax, 8
mov ecx, eax
call fcn.10003950
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov ecx, dword [eax]
add ecx, 8
call fcn.10011710
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
add eax, 8
mov ecx, eax
call fcn.10011690
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
movzx eax, byte [eax + 6]
cmp eax, 1
jne 0x1010536d
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov byte [eax + 5], 1
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov byte [eax + 6], 0
jmp 0x10105450
push 4
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov ecx, dword [eax]
call fcn.100f9b80
movzx ecx, al
test ecx, ecx
je 0x101053bd
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov byte [eax + 5], 1
jmp 0x10105450
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov ecx, dword [eax]
call fcn.1002d590
test eax, eax
jne 0x101053f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov ecx, dword [eax]
call fcn.10011510
jmp 0x10105450
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov ecx, dword [eax]
call fcn.1002d590
cmp eax, 0xffffffff
je 0x10105450
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov ecx, dword [eax]
call fcn.1002d590
sub esi, eax
cmp esi, 0xea60
jbe 0x10105450
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov ecx, dword [eax]
call fcn.100fa020
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.1002df80
mov byte [eax + 5], 1
jmp 0x101051ea
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x18], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov esp, ebp
pop ebp
ret