Function at 0x140018740
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x2f8]
sub rsp, 0x3f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov ebx, 0x80004005
and dword [rsp + 0x54], 0
call fcn.140018658
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_void___cdecl_CRegApi::constructor_void____ptr64]
nop
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
xor r9d, r9d
lea r8, str.SoftwareIntelWirelessEvTraceEng_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CreateKey_struct_HKEY______ptr64__char_const____ptr64__unsigned_long_int__unsigned_long_int__unsigned_long_int____ptr64____ptr64]
test eax, eax
jne 0x140018941
lea r9, str.XXXXX
lea r8d, [rax + 1]
lea rdx, str.SnapShotFile
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::SetValue_char_const____ptr64__unsigned_long_int__char_const____ptr64____ptr64]
test eax, eax
jne 0x140018935
mov r8d, Ordinal_262
lea r14, [0x1400a3b40]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140018935
xor eax, eax
mov word [rsp + 0x50], ax
mov byte [rsp + 0x52], al
mov edi, 0x100
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0xe0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x20]
mov r8d, 3
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__splitpath_s]
lea rax, [0x14006c10f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
lea r8, [rsp + 0x50]
mov edi, Ordinal_262
mov edx, edi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__makepath_s]
mov edx, edi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140019284]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400a3dd8], rax
test rax, rax
je 0x140018935
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400190d8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400a3e08], rax
test rax, rax
je 0x140018935
mov ecx, 3
call sub.TraceAPI.DLL_EvtInitialize
mov ebx, eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CloseKey_void____ptr64]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public_virtual:_void___cdecl_CRegApi::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.14005d930
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret