Function at 0x140006740
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x18], 0
jne 0x14000676e
mov eax, 0x8000ffff
jmp 0x1400069f0
mov rdi, qword [rsp + 0x80]
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x40], 0
jne 0x140006840
mov rax, qword [rsp + 0x80]
add rax, 0x44
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx + 0x18]
mov qword [rsp + 0x40], rdx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov r9, qword [rsp + 0x80]
mov r8d, dword [rsp + 0x88]
mov rdx, rax
mov rax, qword [rsp + 0x40]
mov rcx, rax
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x14000683b
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x18]
jmp 0x1400069ec
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x28]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
cmp eax, 5
jae 0x14000686a
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000689c
mov eax, 0x8007000e
jmp 0x1400069f0
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x28], eax
jae 0x1400069a3
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [rsp + 0x24], 1
mov rax, qword [rsp + 0x30]
or rax, 1
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x18], rax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + rax + 0x44]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x18]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx + 0x18]
mov qword [rsp + 0x50], rdx
mov rcx, qword [rcx]
mov qword [rsp + 0x58], rcx
mov r9, qword [rsp + 0x80]
mov r8d, dword [rsp + 0x24]
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, rax
mov rax, qword [rsp + 0x58]
call qword [rax + 0x18]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x140006932
jmp 0x1400069a3
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax]
call qword [rax + 0x28]
mov r9d, 1
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14000697d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140003c40
mov dword [rsp + 0x20], eax
jmp 0x1400069a3
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x14000689c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x28], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rax]
mov r9d, dword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
xor edx, edx
call qword [rax + 8]
mov eax, dword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret