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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
test r8, r8
lea r12, [0x1400255f0]
mov esi, 0x8000
mov edi, r9d
cmovne esi, r9d
mov r15, r8
xor ebx, ebx
mov r13, rdx
test r8, r8
cmovne r12, r8
test ecx, ecx
js 0x140003795
mov edx, dword [0x1400367f4]
xor r9d, r9d
add edx, ecx
xor r8d, r8d
mov rcx, qword [0x14000d020]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x14000d020]
lea rdx, [rbp + 0x67]
mov r8d, 4
call fcn.1400078d0
test eax, eax
je 0x14000399b
mov eax, dword [rbp + 0x67]
test eax, eax
jns 0x14000392f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, dword [rbp + 0x67]
and dword [0x14000ff48], ebx
and dword [0x14000ff44], ebx
mov dword [rbp + 0x7f], eax
and r13d, 0x7fffffff
lea rax, [0x1400115cc]
mov dword [0x14000fa20], 8
mov qword [0x1400195e0], rax
mov edx, r13d
mov qword [0x1400195d8], rax
lea rax, [0x1400195cc]
mov qword [0x1400195d0], rax
mov dword [rbp + 0x67], edx
jbe 0x140003924
lea r14, [0x1400215f0]
mov rcx, qword [0x14000d020]
mov edi, 0x4000
cmp edx, edi
cmovl edi, edx
mov rdx, r14
mov r8d, edi
call fcn.1400078d0
test eax, eax
je 0x14000399b
sub dword [rbp + 0x67], edi
mov qword [0x14000fa00], r14
mov dword [0x14000fa08], edi
lea rcx, [0x14000fa00]
mov qword [0x14000fa10], r12
mov dword [0x14000fa18], esi
call fcn.140008300
mov dword [rbp - 0x79], eax
test eax, eax
js 0x140003928
mov edi, dword [0x14000fa10]
sub edi, r12d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x140036894], 1
mov edx, dword [rbp + 0x67]
mov dword [rbp + 0x77], eax
je 0x1400038e0
mov ecx, eax
sub ecx, dword [rbp + 0x7f]
cmp ecx, 0xc8
ja 0x1400038a5
test edx, edx
jne 0x1400038e0
mov ecx, r13d
mov r8d, r13d
sub ecx, edx
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov r8d, eax
lea rdx, str....__d__
lea rcx, [rbp - 0x69]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rbp - 0x69]
xor ecx, ecx
call fcn.140006b30
mov eax, dword [rbp + 0x77]
mov edx, dword [rbp + 0x67]
mov dword [rbp + 0x7f], eax
test edi, edi
je 0x14000391c
test r15, r15
jne 0x140003906
mov rcx, qword [rbp + 0x6f]
mov r8d, edi
mov rdx, r12
call fcn.1400079bc
test eax, eax
jne 0x14000390f
mov eax, 0xfffffffe
jmp 0x1400039a0
mov r12, qword [0x14000fa10]
sub esi, edi
add ebx, edi
cmp dword [rbp - 0x79], 1
je 0x140003924
jmp 0x140003852
test edx, edx
jg 0x14000381e
mov eax, ebx
jmp 0x1400039a0
mov eax, 0xfffffffc
jmp 0x1400039a0
test r15, r15
jne 0x14000397e
test eax, eax
jle 0x140003924
lea r14, [0x1400215f0]
mov rcx, qword [0x14000d020]
cmp eax, esi
mov edi, esi
mov rdx, r14
cmovl edi, eax
mov r8d, edi
call fcn.1400078d0
test eax, eax
je 0x14000399b
mov r8d, edi
mov rdx, r14
mov rcx, r13
call fcn.1400079bc
test eax, eax
je 0x1400038fc
mov eax, dword [rbp + 0x67]
add ebx, edi
sub eax, edi
mov dword [rbp + 0x67], eax
test eax, eax
jg 0x14000393f
jmp 0x140003924
mov rcx, qword [0x14000d020]
cmp eax, edi
mov ebx, edi
mov rdx, r15
cmovl ebx, eax
mov r8d, ebx
call fcn.1400078d0
test eax, eax
jne 0x140003924
mov eax, 0xfffffffd
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret