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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esi + 0x18]
xor ebx, ebx
add edi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
test eax, eax
je 0x68a2f7f0
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 8]
test edx, edx
jns 0x68a2f7e1
mov eax, dword [ecx + 4]
cmp eax, 1
mov dword [ebp - 0x14], 1
cmovb eax, dword [ebp - 0x14]
add eax, dword [ecx]
cmp dword [ebp - 0xc], eax
jae 0x68a2f7de
mov ebx, edx
mov dword [ebp - 8], ebx
jmp 0x68a2f7e1
mov dword [ecx + 0xc], ebx
mov eax, dword [esi + 0x20]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
test ebx, ebx
js 0x68a2f901
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x68a2f901
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
cmp ebx, edi
jae 0x68a2f914
cmp ebx, dword [ebp - 0xc]
jb 0x68a2f914
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xe7
jne 0x68a2f860
mov ecx, dword [ebp - 4]
sub ecx, ebx
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x68a2f892
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
jmp 0x68a2f7f0
cmp edi, 2
jne 0x68a2f8d1
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x68a2f8d5
mov eax, dword [ebp - 4]
sub eax, ebx
cmp ecx, eax
cmovb eax, ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x68a2f8d5
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
jmp 0x68a2f7f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
movzx ebx, di
or ebx, 0x80070000
test ebx, ebx
jns 0x68a2f901
mov eax, dword [esi + 0x20]
test eax, eax
je 0x68a2f901
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp edi, 5
jne 0x68a2f8e6
mov eax, dword [esi + 0x20]
inc dword [eax + 0xc]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0xc]
cmp eax, dword [ecx + 0x10]
jae 0x68a2f8e9
jmp 0x68a2f8f4
test edi, edi
je 0x68a2f90a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
test edi, edi
jg 0x68a2f89b
mov ebx, edi
jmp 0x68a2f8a4
mov ecx, dword [esi + 0x20]
mov dword [ecx + 8], ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x20]
mov edi, eax
test ecx, ecx
je 0x68a2f949
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x20]
mov dword [ecx + 8], 0x800700e7
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 0x800700e7
pop ebx
mov esp, ebp
pop ebp
ret