Function at 0x140146c50
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 [0x1402d9040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rcx + 0x20]
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rax + 0x628]
cmp dword [rdi], 0
mov rcx, qword [rdi + 0x10]
sete r8b
xor edx, edx
call fcn.140107410
test rax, rax
jns 0x140146d41
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 0x140147021
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.140125250
mov edx, eax
test eax, eax
jle 0x140146d08
movzx ecx, word [rsp + 0x3a]
mov eax, 0x303
test ax, cx
mov edx, 0x404
mov eax, ebp
setne al
and cx, dx
mov edx, eax
or edx, 4
test cx, cx
cmove edx, eax
cmp edx, 0xffffffff
jne 0x140146ec3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.1400f5c00
mov r8, rax
lea rdx, [0x1402a6310]
mov rcx, rbx
call fcn.140115830
mov dword [rdi + 0xc], 5
jmp 0x140147021
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 0x140146caa
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.1401466b0
test eax, eax
jne 0x140147023
cmp dword [rdi], 3
sete al
mov byte [rsi], al
jne 0x140147021
cmp byte [rbx + 0x1f2], 0
mov edx, 0xffffffff
mov rcx, qword [rbx + 0x20]
je 0x140146dba
mov r8, qword [rbx + 0x168]
test r8, r8
je 0x140146dba
mov rax, qword [r8 + 0x18]
cmp qword [r8 + 0x10], rax
jae 0x140146dba
mov al, 1
jmp 0x140146dbc
xor al, al
cmp byte [rcx + 0x356], 0
jne 0x140146dd2
cmp byte [rcx + 0x774], 0x14
jae 0x140146dd2
test al, al
je 0x140146dd9
xor ebp, ebp
test al, al
cmovne edx, ebp
mov qword [rcx + 0x388], 0xffffffffffffffff
mov qword [rcx + 0x380], 0xffffffffffffffff
mov byte [rbx + 0x1ef], 0
mov qword [rbx + 0xf0], 0xffffffffffffffff
mov byte [rbx + 0x1e1], 0
cmp byte [rbx + 0x1f0], 0
jne 0x140147021
cmp edx, 0xffffffff
je 0x140147021
cmp byte [rbx + 0x1303], 0
je 0x14014701a
mov rax, qword [rcx + 0x360]
test dword [rax + 0x84], 0xc0000003
je 0x140147010
cmp byte [0x1402dbf21], 0
mov dword [rbx + 0x150], 1
je 0x140146e92
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x20]
mov r8, qword [0x1402dbf18]
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 0x140146fec
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 0x140146fec
test edx, edx
je 0x140147021
mov rcx, rbx
call fcn.1401469d0
test eax, eax
jne 0x140147023
mov edx, dword [rdi + 0xc]
mov rcx, rdi
call fcn.1401466b0
test eax, eax
jne 0x140147023
cmp dword [rdi], 3
sete al
mov byte [rsi], al
jne 0x140147021
mov edx, 0xffffffff
mov rcx, qword [rbx + 0x20]
cmp byte [rbx + 0x1f2], bpl
je 0x140146f28
mov r8, qword [rbx + 0x168]
test r8, r8
je 0x140146f28
mov rax, qword [r8 + 0x18]
cmp qword [r8 + 0x10], rax
jae 0x140146f28
mov al, 1
jmp 0x140146f2a
xor al, al
cmp byte [rcx + 0x356], bpl
jne 0x140146f40
cmp byte [rcx + 0x774], 0x14
jae 0x140146f40
test al, al
je 0x140146f45
test al, al
cmovne edx, ebp
mov qword [rcx + 0x388], 0xffffffffffffffff
mov qword [rcx + 0x380], 0xffffffffffffffff
mov byte [rbx + 0x1ef], bpl
mov qword [rbx + 0xf0], 0xffffffffffffffff
mov byte [rbx + 0x1e1], bpl
cmp byte [rbx + 0x1f0], bpl
jne 0x140147021
cmp edx, 0xffffffff
je 0x140147021
cmp byte [rbx + 0x1303], bpl
je 0x14014701a
mov rax, qword [rcx + 0x360]
test dword [rax + 0x84], 0xc0000003
je 0x140147010
cmp byte [0x1402dbf21], bpl
mov dword [rbx + 0x150], 1
jne 0x140146e55
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 + 0x140], xmm0
movsxd rdx, dword [rbx + 0xa3c]
call fcn.140105a50
jmp 0x140147021
mov dword [rbx + 0x150], 2
or dword [rbx + 0x13c], 2
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14016b380
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret