Function at 0x140058440
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 [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rcx + 0x20]
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rax + 0x360]
cmp dword [rdi], 0
mov rcx, qword [rdi + 0x10]
sete r8b
xor edx, edx
call fcn.14000a760
test rax, rax
jns 0x140058531
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 0x14005881b
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.140047a60
mov edx, eax
test eax, eax
jle 0x1400584f8
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 0x1400586ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0x60]
call fcn.140053f40
mov r8, rax
lea rdx, [0x14006a64c]
mov rcx, rbx
call fcn.140013150
mov dword [rdi + 0xc], 5
jmp 0x14005881b
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 0x14005849a
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.140057dd0
test eax, eax
jne 0x14005881d
cmp dword [rdi], 3
sete al
mov byte [rsi], al
jne 0x14005881b
mov rcx, qword [rbx + 0x20]
mov edx, 0xffffffff
mov r8, qword [rbx + 0x198]
mov rax, qword [rcx + 0x2c8]
test byte [rax + 0x84], 3
je 0x1400585a9
cmp dword [r8 + 0x38], 1
jne 0x1400585a9
mov al, 1
jmp 0x1400585ab
xor al, al
cmp byte [rcx + 0x2bf], 0
jne 0x1400585c1
cmp byte [rcx + 0x4ac], 0x14
jae 0x1400585c1
test al, al
je 0x1400585c8
xor ebp, ebp
test al, al
cmovne edx, ebp
mov qword [rcx + 0x2f0], 0xffffffffffffffff
mov qword [rcx + 0x2e8], 0xffffffffffffffff
mov byte [rbx + 0x1c5], 0
mov qword [rbx + 0xf0], 0xffffffffffffffff
mov byte [rbx + 0x1bb], 0
cmp byte [rbx + 0x1c7], 0
jne 0x14005881b
cmp edx, 0xffffffff
je 0x14005881b
cmp byte [rbx + 0x137b], 0
je 0x140058814
mov rax, qword [rcx + 0x2c8]
test byte [rax + 0x84], 3
je 0x14005880a
cmp dword [r8 + 0x38], 2
jne 0x14005880a
cmp byte [0x14007eb28], 0
mov dword [rbx + 0x158], 1
je 0x140058689
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x20]
mov r8, qword [0x14007eb20]
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 0x1400587e6
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 0x1400587e6
test edx, edx
je 0x14005881b
mov rcx, rbx
call fcn.1400580e0
test eax, eax
jne 0x14005881d
mov edx, dword [rdi + 0xc]
mov rcx, rdi
call fcn.140057dd0
test eax, eax
jne 0x14005881d
cmp dword [rdi], 3
sete al
mov byte [rsi], al
jne 0x14005881b
mov rcx, qword [rbx + 0x20]
mov edx, 0xffffffff
mov r8, qword [rbx + 0x198]
mov rax, qword [rcx + 0x2c8]
test byte [rax + 0x84], 3
je 0x14005871e
cmp dword [r8 + 0x38], 1
jne 0x14005871e
mov al, 1
jmp 0x140058720
xor al, al
cmp byte [rcx + 0x2bf], bpl
jne 0x140058736
cmp byte [rcx + 0x4ac], 0x14
jae 0x140058736
test al, al
je 0x14005873b
test al, al
cmovne edx, ebp
mov qword [rcx + 0x2f0], 0xffffffffffffffff
mov qword [rcx + 0x2e8], 0xffffffffffffffff
mov byte [rbx + 0x1c5], bpl
mov qword [rbx + 0xf0], 0xffffffffffffffff
mov byte [rbx + 0x1bb], bpl
cmp byte [rbx + 0x1c7], bpl
jne 0x14005881b
cmp edx, 0xffffffff
je 0x14005881b
cmp byte [rbx + 0x137b], bpl
je 0x140058814
mov rax, qword [rcx + 0x2c8]
test byte [rax + 0x84], 3
je 0x14005880a
cmp dword [r8 + 0x38], 2
jne 0x14005880a
cmp byte [0x14007eb28], bpl
mov dword [rbx + 0x158], 1
jne 0x14005864c
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 + 0x148], xmm0
movsxd rdx, dword [rbx + 0xa0c]
call fcn.14003fcb0
jmp 0x14005881b
mov dword [rbx + 0x158], 2
or dword [rbx + 0x144], 2
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140065250
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret