Function at 0x1400516b4
Capabilities:
Resume thread

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov sil, dl
mov rbx, rcx
lea r15, str.base_stor_vssincworker.hxx
mov qword [rsp + 0x30], r15
lea r12, str.CVssWorkerThread::Terminate
mov qword [rsp + 0x38], r12
lea r13, str.INCWORKH
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0x1f7
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x50], 0xff
xor edi, edi
mov dword [rbp - 0x30], 0x1000000
xor edx, edx
lea r8d, [rdi + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400bec34
nop
cmp qword [rbx + 0x10], rdi
je 0x140051946
mov byte [rbx + 9], 1
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x1400f7e80]
test sil, sil
je 0x140051848
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ResumeThread]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140051848
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0x20a
lea esi, [rdi + 0xb]
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x50], 0xff
mov dword [rbp - 0x30], 0x1000000
xor edx, edx
lea r8d, [rdi + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
mov eax, dword [rbx + 0x1c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9, qword [rbx + 0x10]
lea r8, str.ResumeThread__p____1__GetLastError____0x_08lx__m_eThreadState___d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400c132c
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0x20d
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x50], 0xff
mov dword [rbp - 0x30], 0x1000000
xor edx, edx
lea r8d, [rdi + 0x78]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.ResumeThread_failed._Error:_0x_08lx._State:__d
jmp 0x140051922
or edx, 0xffffffff
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140051946
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0x219
mov esi, reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x50], 0xff
mov dword [rbp - 0x30], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x6d]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
mov eax, dword [rbx + 0x1c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9, qword [rbx + 0x10]
lea r8, str.WaitForSingleObject__p_INFINITE___WAIT_FAILED__GetLastError____0x_08lx__m_eThreadState___d
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.1400c132c
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], 0x21c
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x50], 0xff
mov dword [rbp - 0x30], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x6d]
lea rcx, [rsp + 0x58]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.WaitForSingleObject_failed._Error:_0x_08lx._State:__d
mov r9d, eax
mov eax, dword [rbx + 0x1c]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x20]
call fcn.140009fb0
mov dword [rbx + 0x1c], 5
mov edi, 0x8000ffff
lea rcx, [rbp - 0x20]
call fcn.140009990
mov eax, edi
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret