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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rcx + 0x18]
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rax + 0x610]
cmp dword [rdi], 0
mov rcx, qword [rdi + 0x10]
sete r8b
xor edx, edx
call fcn.1400f82c0
test rax, rax
jns 0x140131251
mov dword [rdi + 8], 0xffffff9d
mov dword [rdi], 3
mov rax, rsi
mov byte [rax], 0
mov rax, qword [rdi + 0x18]
cmp rax, 0xffffffffffffffff
je 0x140131553
xor ebp, ebp
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x700
lea rcx, [rsp + 0x30]
lea edx, [rbp + 1]
call fcn.1401144f0
mov edx, eax
test eax, eax
jle 0x140131218
movzx ecx, word [rsp + 0x3a]
mov eax, 0x303
test ax, cx
mov edx, 0x604
mov eax, ebp
setne al
and cx, dx
mov edx, eax
or edx, 4
test cx, cx
cmove edx, eax
cmp edx, 0xffffffff
jne 0x1401313e6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.1400e7750
mov r8, rax
lea rdx, [0x14028a6ac]
mov rcx, rbx
call fcn.140105f20
mov dword [rdi + 0xc], 5
jmp 0x140131553
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
movsxd rax, dword [rdi + 0x24]
lea rcx, [rdi + 0x30]
add rax, qword [rcx]
cmp qword [rsp + 0x20], rax
jle 0x1401311ba
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov edx, 7
mov byte [rsi], 0
mov rcx, rdi
call fcn.140130bb0
test eax, eax
jne 0x140131555
cmp dword [rdi], 3
sete al
mov byte [rsi], al
jne 0x140131553
mov rcx, qword [rbx + 0x18]
mov edx, 0xffffffff
mov r8, qword [rbx + 0x1b0]
mov rax, qword [rcx + 0x328]
test dword [rax + 0x84], 0xc0000003
je 0x1401312cf
cmp dword [r8 + 0x200], 1
jne 0x1401312cf
mov al, 1
jmp 0x1401312d1
xor al, al
cmp byte [rcx + 0x31f], 0
jne 0x1401312e7
cmp byte [rcx + 0x73f], 0x14
jae 0x1401312e7
test al, al
je 0x1401312ee
xor ebp, ebp
test al, al
cmovne edx, ebp
mov qword [rcx + 0x350], 0xffffffffffffffff
mov qword [rcx + 0x348], 0xffffffffffffffff
mov byte [rbx + 0x1c9], 0
mov qword [rbx + 0xe8], 0xffffffffffffffff
mov byte [rbx + 0x1c1], 0
cmp byte [rbx + 0x1cb], 0
jne 0x140131553
cmp edx, 0xffffffff
je 0x140131553
cmp byte [rbx + 0x12d7], 0
je 0x14013154c
mov rax, qword [rcx + 0x328]
test dword [rax + 0x84], 0xc0000003
je 0x140131542
cmp dword [r8 + 0x200], 2
jne 0x140131542
cmp byte [0x1402bcc60], 0
mov dword [rbx + 0x170], 1
je 0x1401313b5
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x20]
mov r8, qword [0x1402bcc58]
mov rax, rcx
cqo
idiv r8
mov qword [rsp + 0x20], rax
mov rax, rcx
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x14013151e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov eax, 0x10624dd3
mul r9d
shr edx, 6
mov r8d, edx
imul edx, edx, 0x3e8
mov qword [rsp + 0x20], r8
sub r9d, edx
imul eax, r9d, 0x3e8
jmp 0x14013151e
test edx, edx
je 0x140131553
mov rcx, rbx
call fcn.140130ef0
test eax, eax
jne 0x140131555
mov edx, dword [rdi + 0xc]
mov rcx, rdi
call fcn.140130bb0
test eax, eax
jne 0x140131555
cmp dword [rdi], 3
sete al
mov byte [rsi], al
jne 0x140131553
mov rcx, qword [rbx + 0x18]
mov edx, 0xffffffff
mov r8, qword [rbx + 0x1b0]
mov rax, qword [rcx + 0x328]
test dword [rax + 0x84], 0xc0000003
je 0x140131450
cmp dword [r8 + 0x200], 1
jne 0x140131450
mov al, 1
jmp 0x140131452
xor al, al
cmp byte [rcx + 0x31f], bpl
jne 0x140131468
cmp byte [rcx + 0x73f], 0x14
jae 0x140131468
test al, al
je 0x14013146d
test al, al
cmovne edx, ebp
mov qword [rcx + 0x350], 0xffffffffffffffff
mov qword [rcx + 0x348], 0xffffffffffffffff
mov byte [rbx + 0x1c9], bpl
mov qword [rbx + 0xe8], 0xffffffffffffffff
mov byte [rbx + 0x1c1], bpl
cmp byte [rbx + 0x1cb], bpl
jne 0x140131553
cmp edx, 0xffffffff
je 0x140131553
cmp byte [rbx + 0x12d7], bpl
je 0x14013154c
mov rax, qword [rcx + 0x328]
test dword [rax + 0x84], 0xc0000003
je 0x140131542
cmp dword [r8 + 0x200], 2
jne 0x140131542
cmp byte [0x1402bcc60], bpl
mov dword [rbx + 0x170], 1
jne 0x140131378
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov ecx, edx
mov qword [rsp + 0x20], rcx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x28], eax
xor r8d, r8d
movups xmm0, xmmword [rsp + 0x20]
mov rcx, rbx
movups xmmword [rbx + 0x160], xmm0
movsxd rdx, dword [rbx + 0xa30]
call fcn.1400f75c0
jmp 0x140131553
mov dword [rbx + 0x170], 2
or dword [rbx + 0x15c], 2
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401526c0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret