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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov ebp, r9d
mov rbx, r8
mov qword [rsp + 0x30], rdx
test r8, r8
mov esi, 0x8000
cmovne esi, r9d
lea r14, [0x140026ad0]
cmovne r14, r8
test ecx, ecx
js 0x140003f92
mov edx, ecx
add edx, dword [0x140022ac4]
mov rcx, qword [0x140018020]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x140018020]
lea rdx, [rsp + 0x24]
mov r8d, 4
call fcn.140007e8f
mov edi, 0xfffffffd
test eax, eax
je 0x1400041e0
mov r15d, dword [rsp + 0x24]
test r15d, r15d
js 0x140003fef
test rbx, rbx
je 0x140004181
cmp r15d, ebp
cmovl ebp, r15d
mov rcx, qword [0x140018020]
mov rdx, rbx
mov r8d, ebp
call fcn.140007e8f
test eax, eax
jne 0x1400041de
jmp 0x1400041e0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x28], eax
mov dword [0x14002eaf0], 8
mov qword [0x14002f014], 0
lea rax, [0x14003069c]
mov qword [0x1400386b0], rax
mov qword [0x1400386a8], rax
lea rax, [0x14003869c]
mov qword [0x1400386a0], rax
mov r15d, 0x7fffffff
and r15d, dword [rsp + 0x24]
mov dword [rsp + 0x24], r15d
je 0x1400041da
xor edi, edi
mov eax, 0x4000
lea rbp, [0x140022ad0]
mov dword [rsp + 0x2c], r15d
mov qword [rsp + 0x38], rbx
cmp r15d, eax
cmovge r15d, eax
mov rcx, qword [0x140018020]
mov rdx, rbp
mov r8d, r15d
call fcn.140007e8f
test eax, eax
je 0x140004204
mov qword [0x14002ead0], rbp
mov dword [0x14002ead8], r15d
sub dword [rsp + 0x24], r15d
mov qword [0x14002eae0], r14
mov dword [0x14002eae8], esi
lea rcx, [0x14002ead0]
call fcn.1400087c4
test eax, eax
js 0x1400041f6
mov r15d, eax
mov r12d, dword [0x14002eae0]
sub r12d, r14d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
mov rax, qword [0x14000b2b8]
test byte [rax + 0x34], 1
je 0x14000412f
mov ecx, r13d
sub ecx, dword [rsp + 0x28]
mov eax, dword [rsp + 0x24]
cmp ecx, 0xc8
ja 0x1400040ee
test eax, eax
jne 0x14000412f
mov r8d, dword [rsp + 0x2c]
mov ecx, r8d
sub ecx, eax
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_MulDiv]
lea rbx, [rsp + 0x40]
mov rcx, rbx
lea rdx, str....__d__
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
xor ecx, ecx
mov rdx, rbx
mov rbx, qword [rsp + 0x38]
call fcn.140006fb8
mov dword [rsp + 0x28], r13d
test r12d, r12d
je 0x14000416c
test rbx, rbx
je 0x140004145
sub esi, r12d
mov r14, qword [0x14002eae0]
jmp 0x14000415d
mov rcx, qword [rsp + 0x30]
mov rdx, r14
mov r8d, r12d
call fcn.140007ec5
test eax, eax
je 0x1400041fd
add edi, r12d
cmp r15d, 1
jne 0x140004093
jmp 0x1400041e0
mov r15d, dword [rsp + 0x24]
test r15d, r15d
mov eax, 0x4000
jg 0x14000405f
jmp 0x1400041dc
xor ebp, ebp
test r15d, r15d
je 0x1400041de
lea rbx, [0x140022ad0]
mov r14, qword [rsp + 0x30]
cmp r15d, esi
cmovge r15d, esi
mov rcx, qword [0x140018020]
mov rdx, rbx
mov r8d, r15d
call fcn.140007e8f
test eax, eax
je 0x1400041e0
mov rcx, r14
mov rdx, rbx
mov r8d, r15d
call fcn.140007ec5
test eax, eax
je 0x1400041fd
add ebp, r15d
mov eax, dword [rsp + 0x24]
sub eax, r15d
mov dword [rsp + 0x24], eax
mov r15d, eax
test eax, eax
jg 0x140004194
jmp 0x1400041de
xor edi, edi
mov ebp, edi
mov edi, ebp
mov eax, edi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, 0xfffffffc
jmp 0x1400041e0
mov edi, 0xfffffffe
jmp 0x1400041e0
mov edi, 0xfffffffd
jmp 0x1400041e0