Function at 0x140061308
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x518], rax
mov rdi, r8
mov rsi, rdx
mov qword [rsp + 0x60], rdx
mov r13, rcx
xor edx, edx
mov r8d, 0x2c8
lea rcx, [rbp + 0x70]
call sub.msvcrt.dll_memset
mov dword [rbp + 0x78], 0x2c0
mov dword [rbp + 0xa4], 0x20000
mov dword [rbp + 0xec], 0x78
mov dword [rbp + 0xe8], 0xb8
mov dword [rbp + 0xb8], 0x100
mov dword [rbp + 0xbc], 1
cmp qword [rdi + 0x18], 8
jb 0x14006139f
mov r8, qword [rdi]
jmp 0x1400613a2
mov r8, rdi
xor r14d, r14d
test r8, r8
je 0x140061a0f
cmp word [r8], r14w
je 0x140061a0f
lea edx, [r14 + 0x20]
lea rcx, [rbp + 0xf0]
call fcn.140001d48
mov ebx, eax
test eax, eax
jns 0x1400613ea
mov rcx, qword [rbp + 0x558]
mov r9d, eax
lea r8, str.onecoreuap_adminwebbutilsetwtracesession.cpp
lea edx, [r14 + 0x22]
call fcn.140003684
jmp 0x1400613ed
mov ebx, r14d
test ebx, ebx
js 0x140061a2f
cmp word [rbp + 0xf0], r14w
jne 0x140061421
mov rcx, qword [rbp + 0x558]
mov ebx, 0x8000ffff
mov r9d, ebx
lea r8, str.onecoreuap_adminwebbutilsetwtracesession.cpp
mov edx, 0x30
call fcn.140003684
jmp 0x14006149c
lea r8, [rbp + 0x78]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x70]
call qword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_StartTraceW]
cmp eax, 0xb7
jne 0x14006148a
lea r8, [rbp + 0x78]
lea rdx, [rbp + 0xf0]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_StopTraceW]
test eax, eax
je 0x140061475
mov edx, 0x38
lea r8, str.onecoreuap_adminwebbutilsetwtracesession.cpp
mov r9d, eax
mov rcx, qword [rbp + 0x558]
call fcn.140008688
mov ebx, eax
jmp 0x140061498
lea r8, [rbp + 0x78]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x70]
call qword [sym.imp.api_ms_win_eventing_controller_l1_1_0.dll_StartTraceW]
test eax, eax
je 0x140061495
mov edx, 0x3b
jmp 0x14006145b
mov ebx, r14d
test ebx, ebx
jns 0x1400614a6
mov edx, 0x10e
jmp 0x140061a34
mov rbx, qword [rdi + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r14
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x80]
call fcn.14000db88
nop
cmp qword [rdi + 0x18], 8
jb 0x1400614ce
mov rdi, qword [rdi]
mov r8, rdi
lea rdx, [rbx + 1]
mov r12, qword [rbp - 0x80]
mov rcx, r12
call fcn.140001d48
mov ebx, eax
test eax, eax
jns 0x140061507
mov rcx, qword [rbp + 0x558]
mov r9d, eax
lea r8, str.onecoreuap_adminwebbwindowsrestetwrecorder.cpp
mov edx, 0x112
call fcn.140003684
jmp 0x14006197f
or qword [rbp + 0x340], 0xffffffffffffffff
xor edx, edx
mov r8d, 0x1c0
lea rcx, [rbp + 0x348]
call sub.msvcrt.dll_memset
nop
mov qword [rbp + 0x350], r12
mov dword [rbp + 0x364], 0x10000100
lea rax, [0x1400656f0]
mov qword [rbp + 0x4f0], rax
mov qword [rbp + 0x500], r13
cmp qword [rbp + 0x340], 0xffffffffffffffff
je 0x140061576
mov rcx, qword [rbp + 0x558]
mov ebx, 0x8000ffff
mov r9d, ebx
lea r8, str.onecoreuap_adminwebbutilsetwtraceprocessor.cpp
mov edx, 0x24
call fcn.140003684
jmp 0x1400615b1
lea rcx, [rbp + 0x348]
call qword [sym.imp.api_ms_win_eventing_consumer_l1_1_0.dll_OpenTraceW]
mov qword [rbp + 0x340], rax
cmp rax, 0xffffffffffffffff
jne 0x1400615aa
mov rcx, qword [rbp + 0x558]
lea r8, str.onecoreuap_adminwebbutilsetwtraceprocessor.cpp
lea edx, [rax + 0x28]
call fcn.1400036b8
mov ebx, eax
jmp 0x1400615ad
mov ebx, r14d
test ebx, ebx
jns 0x1400615d1
mov rcx, qword [rbp + 0x558]
mov r9d, ebx
lea r8, str.onecoreuap_adminwebbwindowsrestetwrecorder.cpp
mov edx, 0x11c
call fcn.140003684
jmp 0x140061951
lea rdi, [0x1400f0e30]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
lea r9, [rbp + 0x340]
lea r8, [0x140065680]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CreateThread]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
cmp rax, rcx
je 0x14006162c
test rcx, rcx
je 0x140061624
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140061ab1
mov rcx, rbx
mov qword [rsp + 0x40], rbx
test rcx, rcx
jne 0x140061650
mov rcx, qword [rbp + 0x558]
lea r8, str.onecoreuap_adminwebbwindowsrestetwrecorder.cpp
mov edx, 0x127
call fcn.1400036b8
mov ebx, eax
jmp 0x14006192f
lea rax, [rbp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x48]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x50], 1
mov qword [rsp + 0x48], r14
mov rax, qword [rsi]
lea rdx, [rsp + 0x48]
mov rcx, rsi
mov rax, qword [rax + 0x38]
call qword [0x1400f5e38]
mov qword [rsp + 0x30], r14
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
lea rdx, [0x1400fd900]
mov rax, qword [rax]
call qword [0x1400f5e38]
mov ebx, eax
test eax, eax
jns 0x1400616d3
mov rcx, qword [rbp + 0x558]
mov r9d, eax
lea r8, str.onecoreuap_adminwebbwindowsrestetwrecorder.cpp
mov edx, 0x133
call fcn.140003684
jmp 0x1400618dd
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x40], r14
mov word [rbp + 0x30], r14w
mov qword [rbp + 0x68], 7
mov qword [rbp + 0x60], r14
mov word [rbp + 0x50], r14w
jmp 0x140061711
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x50]
mov rcx, r13
call fcn.14006204c
mov ebx, eax
test eax, eax
js 0x140061996
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rbp + 0x50]
mov rax, qword [rax + 0x18]
call qword [0x1400f5e38]
test al, al
jne 0x1400616f7
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r14
mov rcx, r13
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_EnterCriticalSection]
nop
lea rcx, [r13 + 0x28]
mov rbx, r14
mov rdi, r14
lea rax, [rsp + 0x68]
cmp rax, rcx
je 0x140061789
mov rdi, qword [rcx]
mov rsi, rdi
mov qword [rsp + 0x68], rdi
mov qword [rcx], r14
mov rbx, qword [rcx + 8]
mov r14, rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
mov qword [rcx + 8], rdx
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x78], rax
mov qword [rcx + 0x10], rdx
jmp 0x140061793
mov r14, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
sub rbx, rdi
sar rbx, 4
test r13, r13
je 0x1400617a8
mov rcx, r13
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140061849
lea rcx, [rbp - 0x30]
call fcn.1400109b0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x48]
call fcn.14003f628
mov r8, rax
lea rdx, str.Events
lea rcx, [rbp - 0x30]
call fcn.14003d694
mov dword [rsp + 0x58], 0x989680
lea r8, [rsp + 0x58]
lea rdx, str.Frequency
lea rcx, [rbp - 0x30]
call fcn.140051bac
xor ecx, ecx
mov qword [rbp + 0x40], rcx
cmp qword [rbp + 0x48], 8
mov rax, qword [rbp + 0x30]
jae 0x14006180e
lea rax, [rbp + 0x30]
mov word [rax], cx
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.14003d950
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
mov rax, qword [rax + 0x18]
call qword [0x1400f5e38]
mov ebx, eax
test eax, eax
js 0x1400619b3
lea rcx, [rbp - 0x30]
call fcn.140012ad4
jmp 0x140061855
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_Sleep]
nop
test rsi, rsi
je 0x14006186f
mov r8, r14
mov rdx, rsi
call fcn.140011b80
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
cmp qword [rbp + 0x68], 8
jb 0x140061880
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x1400f5e38]
xor r14d, r14d
test al, al
jne 0x1400618b1
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1400616e4
mov ebx, r14d
cmp qword [rbp + 0x48], 8
jb 0x1400618c5
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x40], r14
mov word [rbp + 0x30], r14w
lea rdi, [0x1400f0e30]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400618fa
mov qword [rsp + 0x30], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400f5e38]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140061917
mov qword [rsp + 0x48], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400f5e38]
nop
lea rcx, [rbp + 0x70]
call fcn.1400b5960
or edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_WaitForSingleObject]
nop
mov qword [rsp + 0x38], rdi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140061951
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140061a96
mov qword [rsp + 0x40], r14
mov rcx, qword [rbp + 0x340]
cmp rcx, 0xffffffffffffffff
je 0x14006197f
call qword [sym.imp.api_ms_win_eventing_consumer_l1_1_0.dll_CloseTrace]
mov rcx, qword [rbp + 0x558]
test eax, eax
je 0x140061977
mov r9d, eax
call fcn.1400b5ae4
or qword [rbp + 0x340], 0xffffffffffffffff
test r12, r12
je 0x140061a4b
mov rcx, r12
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x140061a4b
mov rcx, qword [rbp + 0x558]
mov r9d, eax
lea r8, str.onecoreuap_adminwebbwindowsrestetwrecorder.cpp
mov edx, 0x13d
call fcn.140003684
jmp 0x1400619f5
mov rcx, qword [rbp + 0x558]
mov r9d, eax
lea r8, str.onecoreuap_adminwebbwindowsrestetwrecorder.cpp
mov edx, 0x151
call fcn.140003684
nop
lea rcx, [rbp - 0x30]
call fcn.140012ad4
nop
test rdi, rdi
je 0x1400619f2
mov r8, r14
mov rdx, rsi
call fcn.140011b80
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
xor r14d, r14d
cmp qword [rbp + 0x68], 8
jb 0x1400618b4
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x1400618b4
mov rcx, qword [rbp + 0x558]
mov ebx, 0x80070057
mov r9d, ebx
lea r8, str.onecoreuap_adminwebbutilsetwtracesession.cpp
mov edx, 0x21
call fcn.140003684
mov edx, 0x10d
mov r9d, ebx
lea r8, str.onecoreuap_adminwebbwindowsrestetwrecorder.cpp
mov rcx, qword [rbp + 0x558]
call fcn.140003684
nop
lea rcx, [rbp + 0x70]
call fcn.1400b5960
test eax, eax
jns 0x140061a73
mov rcx, qword [rbp + 0x558]
mov r9d, eax
lea r8, str.onecoreuap_adminwebbutilsetwtracesession.cpp
mov edx, 0x1c
call fcn.1400606dc
mov eax, ebx
mov rcx, qword [rbp + 0x518]
xor rcx, rsp
call fcn.1400c20a0
add rsp, 0x620
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14002953c
nop
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14002953c
int3