Function at 0x140054f30
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xa260
call fcn.1400ae240
sub rsp, rax
movaps xmmword [rsp + 0xa250], xmm6
movaps xmmword [rsp + 0xa240], xmm7
movaps xmmword [rsp + 0xa230], xmm8
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0xa220], rax
movaps xmm6, xmm1
mov r14, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xor r13d, r13d
mov dword [rsp + 0x34], r13d
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0xa120]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa110], xmm0
xor edx, edx
mov r8d, 0xa080
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memset
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x78], rdi
lea rsi, [r14 + 0x7dc70]
mov qword [rsp + 0x50], rsi
test r14, r14
je 0x140055986
test rsi, rsi
je 0x140055986
mov rax, qword [r14 + 0x7dd40]
test rax, rax
je 0x140055986
mov qword [rsp + 0xa110], rax
mov qword [rsp + 0xa118], 0
cmp dword [r14 + 0x7dc38], 1
jne 0x140055041
mov r8d, 2
lea rdx, [0x1400e59c0]
mov rcx, r14
call fcn.14000c1e0
mov r8d, 1
lea rdx, [0x1400e5970]
mov rcx, r14
call fcn.14000c1e0
mov dword [r14 + 0x20888], 1
mov dword [r14 + 0x2088c], 1
cmp qword [rsi + 0x28], 0
je 0x1400550a6
mov dword [rsp + 0x38], 0
xor ecx, ecx
nop dword [rax]
cmp ecx, dword [rsi + 0x24]
jae 0x1400550a6
mov rdx, qword [rsi + 0x28]
test rdx, rdx
je 0x14005509e
mov r8, qword [rdx + rcx*8]
test r8, r8
je 0x14005509e
mov dword [r8], 1
inc ecx
mov dword [rsp + 0x38], ecx
jmp 0x140055080
movsd qword [rsp + 0x40], xmm6
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140055984
cmp qword [rsp + 0x70], 0
je 0x140055984
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140055986
xor r15d, r15d
mov dword [rsp + 0x38], r15d
xor eax, eax
lea rbx, [0x1400e54c0]
movsd xmm7, qword [0x1400b6f60]
xorps xmm8, xmm8
nop
cmp eax, dword [rsi + 0x14]
jae 0x140055979
mov rdx, qword [rsi + 0x18]
test rdx, rdx
je 0x140055198
imul rdi, rax, 0x1d0
add rdi, rdx
mov qword [rsp + 0x48], rdi
jne 0x140055134
inc r15d
mov dword [rsp + 0x38], r15d
mov eax, r15d
jmp 0x140055100
lea rax, [rdi + 8]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa120]
test rax, rax
je 0x140055169
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea r9, [0x1400e5948]
call fcn.140001030
jmp 0x14005517a
mov dword [rsp + 0x20], r15d
lea r9, [0x1400e5918]
call fcn.140001030
mov byte [rsp + 0xa21e], 0
mov r8d, 1
lea rdx, [rsp + 0xa120]
mov rcx, r14
call fcn.14000c1e0
test rdi, rdi
je 0x140055825
mov ecx, dword [rdi]
test ecx, ecx
je 0x14005571d
sub ecx, 1
je 0x1400555ba
sub ecx, 1
je 0x140055449
cmp ecx, 1
jne 0x140055825
cmp qword [rdi + 0x108], 0
je 0x140055410
cmp qword [rdi + 0x118], 0
je 0x140055410
lea rax, [rsp + 0x90]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x60], rax
xor edx, edx
mov r8d, 0xa080
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memset
cmp dword [rdi + 0x120], 1
jne 0x140055270
mov eax, dword [rdi + 0x124]
mov dword [rsp + 0x90], eax
cmp dword [rdi + 0x128], 1
jne 0x140055260
lea rax, [rdi + 0x12c]
test rax, rax
jne 0x140055255
mov dword [rsp + 0xa0], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], reloc.WS2_32.dll_shutdown
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov dword [rsp + 0xa0], 1
movzx eax, byte [rdi + 0x151]
mov byte [rsp + 0xfd], al
jmp 0x140055283
mov dword [rsp + 0x90], 1
mov byte [rsp + 0xfd], 0x58
mov edx, 2
mov rcx, r14
call fcn.14005ba60
mov rcx, r14
test eax, eax
je 0x1400552a3
lea rdx, [0x1400e55b0]
jmp 0x14005586c
mov r8d, 1
lea rdx, [0x1400e5590]
call fcn.14000c1e0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
lea r8, [rsp + 0x90]
mov rdx, qword [r14 + 0x7db58]
mov rcx, r14
call fcn.14005cd80
mov rcx, r14
test eax, eax
je 0x1400552f0
lea rdx, [0x1400e5558]
jmp 0x14005586c
mov edx, 2
call fcn.14005d290
test eax, eax
je 0x14005530a
lea rdx, [0x1400e5520]
jmp 0x140055869
movsd qword [rsp + 0x20], xmm6
lea r9, [0x1400e5488]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa120]
call fcn.140001030
mov byte [rsp + 0xa21e], 0
mov r8d, 1
lea rdx, [rsp + 0xa120]
mov rcx, r14
call fcn.14000c1e0
mov rcx, qword [rdi + 0x118]
test rcx, rcx
je 0x140055367
cvttsd2si rdx, xmm6
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140055385
mov rcx, qword [rdi + 0x108]
test rcx, rcx
je 0x140055380
cvttsd2si rdx, xmm6
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140055385
mov eax, 0xffffffff
mov dword [rsp + 0x3c], eax
test eax, 0xffffff7f
je 0x140055404
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x140055404
mov rdx, qword [rdi + 0x108]
test rdx, rdx
je 0x140055825
mov qword [rsp + 0x20], rbx
mov r9d, 5
xor r8d, r8d
mov rcx, r14
call fcn.140091f20
mov ebx, eax
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x108], 0
cmp ebx, 1
jne 0x1400557fe
lea r8d, [rbx + 4]
lea rdx, [0x1400e5458]
mov rcx, r14
call fcn.14000c1e0
inc r13d
mov dword [rsp + 0x34], r13d
jmp 0x140055825
lea rdx, [0x1400e5440]
jmp 0x14005580f
mov rcx, qword [rdi + 0x170]
cmp rcx, 0xffffffffffffffff
je 0x140055825
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rdi + 0x170]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x170], 0xffffffffffffffff
jmp 0x140055825
cmp qword [rdi + 0x108], 0
je 0x140055825
cmp qword [rdi + 0x168], 0
je 0x140055825
mov r8d, 1
lea rdx, [0x1400e56e0]
mov rcx, r14
call fcn.14000c1e0
mov rcx, qword [rdi + 0x168]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x1400554a4
test ebx, ebx
jne 0x1400554a4
lea rdx, [0x1400e56b0]
jmp 0x140055869
movsd qword [rsp + 0x20], xmm6
lea r9, [0x1400e5618]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa120]
call fcn.140001030
mov byte [rsp + 0xa21e], 0
mov r8d, 1
lea rdx, [rsp + 0xa120]
mov rcx, r14
call fcn.14000c1e0
mov rax, qword [rdi + 0x118]
test rax, rax
je 0x140055825
mov qword [rsp + 0xa118], rax
cvttsd2si r8, xmm6
xor r9d, r9d
lea rdx, [rsp + 0xa110]
lea ecx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140055979
cmp eax, 1
je 0x14005581d
cmp eax, 0xffffffff
jne 0x1400555a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x1400555ad
cmp dword [r14 + 0x2088c], 0
jne 0x1400555a8
mov rdx, qword [rdi + 0x108]
test rdx, rdx
je 0x1400555a8
lea rax, [0x1400e5650]
mov qword [rsp + 0x20], rax
mov r9d, 5
xor r8d, r8d
mov rcx, r14
call fcn.140091f20
mov ebx, eax
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x108], 0
cmp ebx, 1
jne 0x1400555a0
lea r8d, [rbx + 4]
lea rdx, [0x1400e55e8]
mov rcx, r14
call fcn.14000c1e0
inc r13d
mov dword [rsp + 0x34], r13d
jmp 0x140055962
inc r12d
mov dword [rsp + 0x30], r12d
jmp 0x140055962
cmp qword [rdi + 0x108], 0
je 0x140055825
mov r8d, 1
lea rdx, [0x1400e5818]
mov rcx, r14
call fcn.14000c1e0
mov rcx, qword [rdi + 0x158]
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rdi + 0x160]
test rcx, rcx
jne 0x1400555fa
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
jne 0x140055610
lea rdx, [0x1400e57e0]
jmp 0x140055869
movsd qword [rsp + 0x20], xmm6
lea r9, [0x1400e5748]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa120]
call fcn.140001030
mov byte [rsp + 0xa21e], 0
mov r8d, 1
lea rdx, [rsp + 0xa120]
mov rcx, r14
call fcn.14000c1e0
mov rcx, qword [rdi + 0x118]
test rcx, rcx
je 0x14005566d
cvttsd2si rdx, xmm6
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14005568b
mov rcx, qword [rdi + 0x108]
test rcx, rcx
je 0x140055686
cvttsd2si rdx, xmm6
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14005568b
mov eax, 0xffffffff
mov dword [rsp + 0x3c], eax
test eax, 0xffffff7f
je 0x140055711
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x140055711
mov rdx, qword [rdi + 0x108]
test rdx, rdx
je 0x140055825
lea rax, [0x1400e5780]
mov qword [rsp + 0x20], rax
mov r9d, 5
xor r8d, r8d
mov rcx, r14
call fcn.140091f20
mov ebx, eax
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x108], 0
cmp ebx, 1
jne 0x1400557fe
lea r8d, [rbx + 4]
lea rdx, [0x1400e5718]
mov rcx, r14
call fcn.14000c1e0
inc r13d
mov dword [rsp + 0x34], r13d
jmp 0x140055825
lea rdx, [0x1400e5700]
jmp 0x14005580f
cmp qword [rdi + 0x108], 0
je 0x140055825
movsd qword [rsp + 0x20], xmm6
lea r9, [0x1400e58e0]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa120]
call fcn.140001030
mov byte [rsp + 0xa21e], 0
mov r8d, 1
lea rdx, [rsp + 0xa120]
mov rcx, r14
call fcn.14000c1e0
mov rcx, qword [rdi + 0x118]
cvttsd2si rdx, xmm6
test rcx, rcx
jne 0x140055787
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x3c], eax
test eax, 0xffffff7f
je 0x140055808
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x140055808
mov rdx, qword [rdi + 0x108]
test rdx, rdx
je 0x140055825
lea rax, [0x1400e5880]
mov qword [rsp + 0x20], rax
mov r9d, 5
xor r8d, r8d
mov rcx, r14
call fcn.140091f20
mov ebx, eax
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x108], 0
cmp ebx, 1
jne 0x1400557fe
lea r8d, [rbx + 4]
lea rdx, [0x1400e5850]
mov rcx, r14
call fcn.14000c1e0
inc r13d
mov dword [rsp + 0x34], r13d
jmp 0x140055825
lea rdx, [0x1400e5838]
mov r8d, 1
mov rcx, r14
call fcn.14000c1e0
inc r12d
mov dword [rsp + 0x30], r12d
mov r8d, 1
lea rdx, [0x1400e5410]
mov rcx, r14
call fcn.14000c1e0
test rdi, rdi
je 0x140055877
mov rcx, qword [rdi + 0x118]
test rcx, rcx
je 0x140055877
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x140055877
test ebx, ebx
jne 0x140055877
lea rdx, [0x1400e53e0]
mov rcx, r14
mov r8d, 5
call fcn.14000c1e0
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140055986
mov rax, qword [rsp + 0x78]
sub rax, qword [rsp + 0x80]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
mulsd xmm1, xmm7
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x70]
divsd xmm1, xmm0
movsd qword [rsp + 0x68], xmm1
subsd xmm6, xmm1
movsd qword [rsp + 0x40], xmm6
comisd xmm8, xmm6
jae 0x140055986
lfence
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0xa120]
call sub.VCRUNTIME140.dll_memset
movsd xmm6, qword [rsp + 0x40]
movsd qword [rsp + 0x20], xmm6
lea r9, str.Watchdog_Remaining_Grace_Time_Is___f__ms.__WATCHDOG_
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa120]
call fcn.140001030
mov byte [rsp + 0xa21e], 0
mov r8d, 1
lea rdx, [rsp + 0xa120]
mov rcx, r14
call fcn.14000c1e0
xor edx, edx
mov rcx, qword [rsp + 0xa110]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140055979
cmp eax, 0x102
jne 0x140055986
mov r15d, dword [rsp + 0x38]
mov r12d, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x34]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
lea rbx, [0x1400e54c0]
inc r15d
mov dword [rsp + 0x38], r15d
mov eax, r15d
jmp 0x140055100
xor eax, eax
jmp 0x140055992
jmp 0x140055986
mov eax, 1
jmp 0x140055992
mov rcx, qword [rsp + 0xa220]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0xa260]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret