Function at 0x14003e6e0
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.14009f130
sub rsp, rax
movaps xmmword [rsp + 0xa250], xmm6
movaps xmmword [rsp + 0xa240], xmm7
movaps xmmword [rsp + 0xa230], xmm8
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0xa220], rax
movaps xmm6, xmm1
mov rsi, 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 r14, [rsi + 0x7dc58]
mov qword [rsp + 0x50], r14
test rsi, rsi
je 0x14003f0d2
test r14, r14
je 0x14003f0d2
mov rax, qword [rsi + 0x7dd28]
test rax, rax
je 0x14003f0d2
mov qword [rsp + 0xa110], rax
mov qword [rsp + 0xa118], 0
cmp dword [rsi + 0x7dc20], 1
jne 0x14003e7ea
lea rdx, [0x1400d7e80]
mov rcx, rsi
call fcn.140016fe0
lea rdx, [0x1400d7e20]
mov rcx, rsi
call fcn.140017150
mov dword [rsi + 0x20888], 1
mov dword [rsi + 0x2088c], 1
cmp qword [r14 + 0x28], 0
je 0x14003e847
mov dword [rsp + 0x38], 0
xor ecx, ecx
nop
cmp ecx, dword [r14 + 0x24]
jae 0x14003e847
mov rdx, qword [r14 + 0x28]
test rdx, rdx
je 0x14003e83f
mov r8, qword [rdx + rcx*8]
test r8, r8
je 0x14003e83f
mov dword [r8], 1
inc ecx
mov dword [rsp + 0x38], ecx
jmp 0x14003e820
movsd qword [rsp + 0x40], xmm6
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003f0d0
cmp qword [rsp + 0x70], 0
je 0x14003f0d0
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003f0d2
xor r15d, r15d
mov dword [rsp + 0x38], r15d
xor eax, eax
lea rbx, [0x1400d78f0]
movsd xmm7, qword [0x1400a6ec8]
xorps xmm8, xmm8
nop
cmp eax, dword [r14 + 0x14]
jae 0x14003f0c5
mov rdx, qword [r14 + 0x18]
test rdx, rdx
je 0x14003e92f
imul rdi, rax, 0x1d0
add rdi, rdx
mov qword [rsp + 0x48], rdi
jne 0x14003e8d1
inc r15d
mov dword [rsp + 0x38], r15d
mov eax, r15d
jmp 0x14003e8a0
lea rax, [rdi + 8]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa120]
test rax, rax
je 0x14003e906
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea r9, [0x1400d15d8]
call fcn.140001030
jmp 0x14003e917
mov dword [rsp + 0x20], r15d
lea r9, [0x1400d1528]
call fcn.140001030
mov byte [rsp + 0xa21e], 0
lea rdx, [rsp + 0xa120]
mov rcx, rsi
call fcn.140017150
test rdi, rdi
je 0x14003ef83
mov ecx, dword [rdi]
test ecx, ecx
je 0x14003ee8b
sub ecx, 1
je 0x14003ed30
sub ecx, 1
je 0x14003ebd0
cmp ecx, 1
jne 0x14003ef83
cmp qword [rdi + 0x108], 0
je 0x14003eb97
cmp qword [rdi + 0x118], 0
je 0x14003eb97
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 0x14003ea07
mov eax, dword [rdi + 0x124]
mov dword [rsp + 0x90], eax
cmp dword [rdi + 0x128], 1
jne 0x14003e9f7
lea rax, [rdi + 0x12c]
test rax, rax
jne 0x14003e9ec
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 0x14003ea1a
mov dword [rsp + 0x90], 1
mov byte [rsp + 0xfd], 0x58
mov edx, 2
mov rcx, rsi
call fcn.1400458f0
mov rcx, rsi
test eax, eax
je 0x14003ea3a
lea rdx, [0x1400d7ac0]
jmp 0x14003efc4
lea rdx, [0x1400d7a48]
call fcn.140017150
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
lea r8, [rsp + 0x90]
mov rdx, qword [rsi + 0x7db40]
mov rcx, rsi
call fcn.140046c10
mov rcx, rsi
test eax, eax
je 0x14003ea81
lea rdx, [0x1400d7a00]
jmp 0x14003efc4
mov edx, 2
call fcn.140047120
test eax, eax
je 0x14003ea9b
lea rdx, [0x1400d7990]
jmp 0x14003efc1
movsd qword [rsp + 0x20], xmm6
lea r9, [0x1400d7950]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa120]
call fcn.140001030
mov byte [rsp + 0xa21e], 0
lea rdx, [rsp + 0xa120]
mov rcx, rsi
call fcn.140017150
mov rcx, qword [rdi + 0x118]
test rcx, rcx
je 0x14003eaf2
cvttsd2si rdx, xmm6
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14003eb10
mov rcx, qword [rdi + 0x108]
test rcx, rcx
je 0x14003eb0b
cvttsd2si rdx, xmm6
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14003eb10
mov eax, 0xffffffff
mov dword [rsp + 0x3c], eax
test eax, 0xffffff7f
je 0x14003eb8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x14003eb8b
mov rdx, qword [rdi + 0x108]
test rdx, rdx
je 0x14003ef83
mov qword [rsp + 0x20], rbx
mov r9d, 5
xor r8d, r8d
mov rcx, rsi
call fcn.14007a020
mov ebx, eax
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x108], 0
cmp ebx, 1
jne 0x14003ef62
lea rdx, [0x1400d78b0]
mov rcx, rsi
call fcn.140016e10
inc r13d
mov dword [rsp + 0x34], r13d
jmp 0x14003ef83
lea rdx, [0x1400d15b8]
jmp 0x14003ef73
mov rcx, qword [rdi + 0x170]
cmp rcx, 0xffffffffffffffff
je 0x14003ef83
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 0x14003ef83
cmp qword [rdi + 0x108], 0
je 0x14003ef83
cmp qword [rdi + 0x168], 0
je 0x14003ef83
lea rdx, [0x1400d7b08]
mov rcx, rsi
call fcn.140017150
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 0x14003ec25
test ebx, ebx
jne 0x14003ec25
lea rdx, [0x1400d46e8]
jmp 0x14003efc1
movsd qword [rsp + 0x20], xmm6
lea r9, [0x1400d7be0]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa120]
call fcn.140001030
mov byte [rsp + 0xa21e], 0
lea rdx, [rsp + 0xa120]
mov rcx, rsi
call fcn.140017150
mov rax, qword [rdi + 0x118]
test rax, rax
je 0x14003ef83
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 0x14003f0c5
cmp eax, 1
je 0x14003ef7b
cmp eax, 0xffffffff
jne 0x14003ed1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x14003ed23
cmp dword [rsi + 0x2088c], 0
jne 0x14003ed1e
mov rdx, qword [rdi + 0x108]
test rdx, rdx
je 0x14003ed1e
lea rax, [0x1400d7b80]
mov qword [rsp + 0x20], rax
mov r9d, 5
xor r8d, r8d
mov rcx, rsi
call fcn.14007a020
mov ebx, eax
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x108], 0
cmp ebx, 1
jne 0x14003ed16
lea rdx, [0x1400d7a78]
mov rcx, rsi
call fcn.140016e10
inc r13d
mov dword [rsp + 0x34], r13d
jmp 0x14003f0ae
inc r12d
mov dword [rsp + 0x30], r12d
jmp 0x14003f0ae
cmp qword [rdi + 0x108], 0
je 0x14003ef83
lea rdx, [0x1400d7d08]
mov rcx, rsi
call fcn.140017150
mov rcx, qword [rdi + 0x158]
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rdi + 0x160]
test rcx, rcx
jne 0x14003ed6a
mov ecx, 0xffff
call qword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
jne 0x14003ed88
lea rdx, [0x1400d7cc0]
mov rcx, rsi
call fcn.140017150
jmp 0x14003efc9
movsd qword [rsp + 0x20], xmm6
lea r9, [0x1400d7c80]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa120]
call fcn.140001030
mov byte [rsp + 0xa21e], 0
lea rdx, [rsp + 0xa120]
mov rcx, rsi
call fcn.140017150
mov rcx, qword [rdi + 0x118]
test rcx, rcx
je 0x14003eddf
cvttsd2si rdx, xmm6
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14003edfd
mov rcx, qword [rdi + 0x108]
test rcx, rcx
je 0x14003edf8
cvttsd2si rdx, xmm6
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14003edfd
mov eax, 0xffffffff
mov dword [rsp + 0x3c], eax
test eax, 0xffffff7f
je 0x14003ee7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x14003ee7f
mov rdx, qword [rdi + 0x108]
test rdx, rdx
je 0x14003ef83
lea rax, [0x1400d7c20]
mov qword [rsp + 0x20], rax
mov r9d, 5
xor r8d, r8d
mov rcx, rsi
call fcn.14007a020
mov ebx, eax
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x108], 0
cmp ebx, 1
jne 0x14003ef62
lea rdx, [0x1400d7b38]
mov rcx, rsi
call fcn.140016e10
inc r13d
mov dword [rsp + 0x34], r13d
jmp 0x14003ef83
lea rdx, [0x1400d1728]
jmp 0x14003ef73
cmp qword [rdi + 0x108], 0
je 0x14003ef83
movsd qword [rsp + 0x20], xmm6
lea r9, [0x1400d7de0]
mov edx, 0xff
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xa120]
call fcn.140001030
mov byte [rsp + 0xa21e], 0
lea rdx, [rsp + 0xa120]
mov rcx, rsi
call fcn.140017150
mov rcx, qword [rdi + 0x118]
cvttsd2si rdx, xmm6
test rcx, rcx
jne 0x14003eeef
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x3c], eax
test eax, 0xffffff7f
je 0x14003ef6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x14003ef6c
mov rdx, qword [rdi + 0x108]
test rdx, rdx
je 0x14003ef83
lea rax, [0x1400d7d80]
mov qword [rsp + 0x20], rax
mov r9d, 5
xor r8d, r8d
mov rcx, rsi
call fcn.14007a020
mov ebx, eax
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x108], 0
cmp ebx, 1
jne 0x14003ef62
lea rdx, [0x1400d7d38]
mov rcx, rsi
call fcn.140016e10
inc r13d
mov dword [rsp + 0x34], r13d
jmp 0x14003ef83
lea rdx, [0x1400d17d8]
mov rcx, rsi
call fcn.140017150
inc r12d
mov dword [rsp + 0x30], r12d
lea rdx, [0x1400d7870]
mov rcx, rsi
call fcn.140017150
test rdi, rdi
je 0x14003efc9
mov rcx, qword [rdi + 0x118]
test rcx, rcx
je 0x14003efc9
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
je 0x14003efc9
test ebx, ebx
jne 0x14003efc9
lea rdx, [0x1400d44c8]
mov rcx, rsi
call fcn.140016e10
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003f0d2
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 0x14003f0d2
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
lea rdx, [rsp + 0xa120]
mov rcx, rsi
call fcn.140017150
xor edx, edx
mov rcx, qword [rsp + 0xa110]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14003f0c5
cmp eax, 0x102
jne 0x14003f0d2
mov r15d, dword [rsp + 0x38]
mov r12d, dword [rsp + 0x30]
mov r13d, dword [rsp + 0x34]
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
lea rbx, [0x1400d78f0]
inc r15d
mov dword [rsp + 0x38], r15d
mov eax, r15d
jmp 0x14003e8a0
xor eax, eax
jmp 0x14003f0de
jmp 0x14003f0d2
mov eax, 1
jmp 0x14003f0de
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