Function at 0x14004c764
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rdi, r9
mov r12, r8
mov rsi, rdx
mov r15, qword [0x1400a33b0]
xor r14d, r14d
mov dword [rsp + 0x50], r14d
mov ebx, r14d
mov byte [rbp + 0x67], r14b
lea r8, str.CVdsCallbackObject::Advise__
lea r13d, [r14 + 0x5e]
mov edx, r13d
lea rcx, [rbp + 0xf]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
xor edx, edx
lea r8d, [r14 + 0x58]
lea rcx, [rbp - 0x59]
call sub.msvcrt.dll_memset
lea rax, [r15 + 0x78]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.vdsutil.dll_public:_class_CRtlListIter___cdecl_CRtlList::End_void____ptr64]
nop dword [rax + rax]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x79], xmm0
lea rax, [r15 + 0x48]
mov qword [rbp - 0x69], rax
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
test rsi, rsi
je 0x14004cd51
test r12, r12
je 0x14004cd51
test rdi, rdi
je 0x14004cd51
mov dword [rdi], r14d
mov ecx, 0x3a98
call fcn.140053df0
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14004c88c
xor edx, edx
mov r8d, 0x3840
mov rcx, rax
call sub.msvcrt.dll_memset
or eax, 0xffffffff
mov dword [rdi + 0x3a20], eax
mov dword [rdi + 0x3a24], eax
mov qword [rdi + 0x3a90], r14
mov qword [rdi + 0x3a28], r14
mov qword [rdi + 0x3a30], r14
jmp 0x14004c88f
mov rdi, r14
mov qword [rbp - 0x49], rdi
test rdi, rdi
jne 0x14004c8c5
mov ebx, 0x8007000e
mov r9d, ebx
lea r8, str.CVdsCallbackObject::Advise__2_error_lX
xor edx, edx
mov ecx, r13d
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov r14, qword [rbp - 0x39]
mov r13, qword [rbp - 0x41]
jmp 0x14004cd99
lea r8, str.CVdsMessageQueue::Initialize__
mov edx, r13d
lea rcx, [rsp + 0x40]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
lea rcx, [rdi + 0x3a40]
call qword [sym.imp.vdsutil.dll_VdsInitializeCriticalSection]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x14004c90d
lea rcx, [rsp + 0x40]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
jmp 0x14004c94e
mov dword [rdi + 0x3a90], 1
lea rcx, [rdi + 0x3a68]
call qword [sym.imp.vdsutil.dll_VdsInitializeCriticalSection]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x14004c8fa
mov dword [rdi + 0x3a94], 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov esi, r14d
test esi, esi
je 0x14004c9dd
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
mov r9d, ebx
lea r8, str.CVdsCallbackObject::Advise__3_error_lX
xor edx, edx
mov ecx, r13d
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov r14, qword [rbp - 0x39]
mov r13, qword [rbp - 0x41]
mov rsi, qword [rbp + 0x6f]
test ebx, ebx
jns 0x14004ce5b
cmp dword [rsp + 0x50], 1
jne 0x14004cd99
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.vdsutil.dll_public:_class_CRtlEntry____ptr64___cdecl_CRtlListIter::GetEntry_void____ptr64]
nop dword [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
test rax, rax
jne 0x14004cd91
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CRtlList::Remove_class_CRtlListIter____ptr64____ptr64]
nop dword [rax + rax]
jmp 0x14004cd99
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov r13, rax
mov qword [rbp - 0x41], rax
test rax, rax
jne 0x14004ca3d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
lea r8, str.CVdsCallbackObject::Advise__4_error_lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov r14, qword [rbp - 0x39]
jmp 0x14004c987
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov r14, rax
mov qword [rbp - 0x39], rax
test rax, rax
jne 0x14004ca99
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsCallbackObject::Advise__5_error_lX
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r9d, ebx
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x14004c987
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rbp - 0x29], rax
test rax, rax
jne 0x14004cacd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsCallbackObject::Advise__6_error_lX
jmp 0x14004ca72
mov qword [rbp - 0x59], r12
mov eax, dword [r15 + 0x98]
mov dword [rbp - 0x51], eax
mov dword [rbp - 0x21], 0x80004005
mov qword [rbp - 0x19], r15
and dword [rbp - 0x11], 0
mov rcx, qword [rbp + 0x6f]
mov qword [rbp - 9], rcx
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140059ce0]
mov byte [rbp + 0x67], 1
lea rdx, [rbp - 0x59]
lea rcx, [r15 + 0x78]
call fcn.14004c2e0
lea rdx, [rsp + 0x40]
lea rcx, [r15 + 0x78]
call qword [sym.imp.vdsutil.dll_public:_class_CRtlListIter___cdecl_CRtlList::End_void____ptr64]
nop dword [rax + rax]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x79], xmm0
lea rcx, [rbp - 0x79]
call qword [sym.imp.vdsutil.dll_public:_class_CRtlListIter____ptr64___cdecl_CRtlListIter::Prev_void____ptr64]
nop dword [rax + rax]
mov dword [rsp + 0x50], 1
lea rcx, [rbp - 0x79]
call qword [sym.imp.vdsutil.dll_public:_void____ptr64___cdecl_CRtlListIter::GetEntryPointer_void____ptr64]
nop dword [rax + rax]
mov rsi, rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14004c430]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
mov qword [rsi + 0x28], rax
test rax, rax
jne 0x14004cba0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsCallbackObject::Advise__7_error_lX
jmp 0x14004ca72
or edx, 0xffffffff
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x14004cc1d
cmp eax, 0x80
je 0x14004cbea
mov esi, 0x102
cmp eax, esi
je 0x14004cbe1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov r9d, eax
lea r8, str.CVdsCallbackObject::Advise__8__error_ld
jmp 0x14004cbf9
lea r8, str.CVdsCallbackObject::Advise__10__state_ld
jmp 0x14004cbf6
mov esi, 0x2df
lea r8, str.CVdsCallbackObject::Advise__9__state_ld
mov r9d, esi
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14004c987
cmp dword [rsi + 0x38], 0
jge 0x14004ccf8
mov ebx, dword [rsi + 0x38]
mov r9d, ebx
lea r8, str.CVdsCallbackObject::Advise__11_error_lX
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
test eax, eax
jne 0x14004cc70
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.CVdsCallbackObject::Advise__12_error_lX
jmp 0x14004ca72
or edx, 0xffffffff
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x14004c987
cmp eax, 0x80
je 0x14004ccbf
mov esi, 0x102
cmp eax, esi
je 0x14004ccb6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov r15d, eax
mov r9d, eax
lea r8, str.CVdsCallbackObject::Advise__13__error_ld
jmp 0x14004ccd1
lea r8, str.CVdsCallbackObject::Advise__15__state_ld
jmp 0x14004cccb
mov esi, 0x2df
lea r8, str.CVdsCallbackObject::Advise__14__state_ld
mov r9d, esi
mov r15d, esi
xor edx, edx
lea ecx, [rdx + 0x5e]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
movzx ebx, r15w
or ebx, 0x80070000
test r15d, r15d
cmovle ebx, r15d
jmp 0x14004c987
mov rcx, qword [rsi + 0x30]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004cd17
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
and qword [rsi + 0x30], 0
mov eax, dword [r15 + 0x98]
mov dword [rsi + 8], eax
mov eax, dword [r15 + 0x98]
mov rcx, qword [rbp + 0x7f]
mov dword [rcx], eax
call qword [sym.imp.msvcrt.dll_rand]
nop dword [rax + rax]
add dword [r15 + 0x98], eax
mov rax, qword [r12]
mov rcx, r12
mov rax, qword [rax + 8]
jmp 0x14004ce54
mov ebx, 0x80070057
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea r8, str.CVdsCallbackObject::Advise__1_error_lX__pService_p__pSink_p__pulCookie_p
xor edx, edx
mov ecx, r13d
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov r14, qword [rbp - 0x39]
mov r13, qword [rbp - 0x41]
mov rdi, qword [rbp - 0x49]
jmp 0x14004c98b
mov r8, rax
call fcn.14004c3ac
test rdi, rdi
je 0x14004cdde
cmp dword [rdi + 0x3a90], 1
jne 0x14004cdba
lea rcx, [rdi + 0x3a40]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_DeleteCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0x3a94], 1
jne 0x14004cdd6
lea rcx, [rdi + 0x3a68]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_DeleteCriticalSection]
nop dword [rax + rax]
mov rcx, rdi
call fcn.140053de4
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004cdf7
mov rcx, r13
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
lea rax, [r14 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004ce10
mov rcx, r14
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x29]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004ce2a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x31]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004ce44
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
cmp byte [rbp + 0x67], 1
jne 0x14004ce5b
mov rdx, qword [rsi]
mov rcx, rsi
mov rax, qword [rdx + 0x10]
call qword [0x140059ce0]
nop
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
nop
lea rcx, [rbp + 0xf]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret