Function at 0x14008a090
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov rdi, r8
mov r15, rdx
mov qword [rsp + 0x48], rdx
xor r12d, r12d
mov dword [rsp + 0x54], r12d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x28]
call fcn.140098e10
nop
lea r8, str.SoftwareMcAfeeMcClientAnalytics
mov qword [rsp + 0x58], r8
mov rdx, 0xffffffff80000002
mov r9d, 0x2001f
lea rcx, [rbp - 0x28]
call fcn.140098a60
test eax, eax
je 0x14008a18a
lea ecx, [r12 + 1]
call fcn.140096b00
test eax, eax
je 0x14008a14f
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, str.Unable_to_open_regKey__s
mov qword [rsp + 0x20], rax
mov r9d, 0x15f
lea r8, str.Intel::Analytics::CAnalyticsLoggerHelper::IsLegacyAutomationLogEnabled
lea rdx, str.E:BT_f8b799d6_918f_4a8b_891d_64cf6ddaa9f4ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
lea ecx, [r12 + 1]
call fcn.14003ad30
nop
lea rcx, [rbp - 0x28]
call fcn.140098eb0
mov qword [r15], r12
mov qword [r15 + 8], r12
mov rax, r15
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.140269300
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea r8, [rbp - 0x30]
lea rdx, str.enableLegacyAutomationLogs
lea rcx, [rbp - 0x28]
call fcn.140098aa0
test eax, eax
jne 0x14008a14f
cmp dword [rbp - 0x30], 1
sete bl
lea rcx, [rbp - 0x28]
call fcn.140098eb0
test bl, bl
je 0x14008a158
mov ecx, 1
call fcn.140096b00
test eax, eax
je 0x14008a1ee
lea rax, str.LegacyAutomationLogging_is_enabled
mov qword [rsp + 0x20], rax
mov r9d, 0x89
lea r8, str.Intel::Analytics::CAnalyticsLoggerHelper::GetStream
lea rdx, str.E:BT_f8b799d6_918f_4a8b_891d_64cf6ddaa9f4ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
mov ecx, 1
call fcn.1400262e0
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r12w
mov rdx, qword [str.__FOLDERID_ProgramData_McAfeeClientAnalytics]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x14008a214
lea rcx, [rbp - 0x50]
call fcn.140025e70
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.1400afd90
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x10]
call fcn.1400b6830
test al, al
jne 0x14008a2fc
mov ecx, 5
call fcn.140096b00
test eax, eax
je 0x14008a2af
lea rax, str.__FOLDERID_ProgramData_McAfeeClientAnalytics
mov qword [rsp + 0x28], rax
lea rax, str.Couldnt_resolve_place_holder_for:__s
mov qword [rsp + 0x20], rax
mov r9d, 0x91
lea r8, str.Intel::Analytics::CAnalyticsLoggerHelper::GetStream
lea rdx, str.E:BT_f8b799d6_918f_4a8b_891d_64cf6ddaa9f4ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
mov ecx, 5
call fcn.14003ad30
mov qword [r15], r12
mov qword [r15 + 8], r12
mov rdi, qword [rbp]
test rdi, rdi
je 0x14008a66a
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14008a66a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400ac8a1.0]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x14008a66a
mov rax, qword [rdi]
mov rax, qword [rax + 8]
jmp 0x14008a660
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14008a388
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rsp + 0x50], eax
mov ecx, 1
call fcn.140096b00
test eax, eax
je 0x14008a388
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, str.CreateDirectory_for__s__result:__d
mov qword [rsp + 0x20], rax
mov r9d, 0x98
lea r8, str.Intel::Analytics::CAnalyticsLoggerHelper::GetStream
lea rdx, str.E:BT_f8b799d6_918f_4a8b_891d_64cf6ddaa9f4ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
call fcn.14008c9a0
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], r12w
mov ecx, dword [rdi]
test ecx, ecx
je 0x14008a3f8
sub ecx, 1
je 0x14008a3e9
cmp ecx, 1
je 0x14008a3da
mov ecx, 5
call fcn.140096b00
test eax, eax
je 0x14008a3c5
mov qword [rsp + 0x28], rdi
call fcn.14008ca10
mov qword [r15], r12
mov qword [r15 + 8], r12
lea rcx, [rbp + 0x38]
call fcn.140025de0
jmp 0x14008a2b6
lea rdx, str.ErrorLog.txt
mov r8d, recv
jmp 0x14008a405
lea rdx, str.RawTrackLog.txt
mov r8d, select
jmp 0x14008a405
lea rdx, str.TransportsLog.txt
mov r8d, reloc.WS2_32.dll_recvfrom
lea rcx, [rbp + 0x38]
call fcn.140025e70
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x40]
sub rax, rcx
cmp rax, 1
jb 0x14008a678
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], 1
lea rax, [0x1402f7cc4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x50]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140032730
nop
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.1400323f0
mov qword [rbp + 8], r12
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp + 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x18], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
lea rcx, [rbp - 0x70]
call fcn.140025de0
mov ecx, 0x118
call fcn.1402695b8
mov r14, rax
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t___.0
mov qword [r14], rax
lea rsi, [r14 + 0x10]
mov qword [rbp - 0x78], rsi
lea rax, [0x140311090]
mov qword [rsi], rax
mov qword [rsi + 0xb0], r12
mov qword [rsi + 0xd8], r12
mov qword [rsi + 0xe0], r12
mov qword [rsi + 0xe8], r12
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsi + 0xa8], rax
mov dword [rsp + 0x54], reloc.WS2_32.dll_shutdown
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rcx + rsi], rax
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rcx + rsi - 4], edx
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
lea rdi, [rsi + 8]
xor r8d, r8d
mov rdx, rdi
call fcn.14005d7d0
nop
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rcx + rsi], rax
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rcx + rsi - 4], edx
mov qword [rbp + 0x28], rdi
mov rcx, rdi
call fcn.14005d740
lea rax, vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rdi], rax
mov byte [rdi + 0x7c], 0
mov byte [rdi + 0x72], 0
lea r10, [rdi + 8]
mov qword [rdi + 0x18], r10
lea r8, [rdi + 0x10]
mov qword [rdi + 0x20], r8
lea r9, [rdi + 0x28]
mov qword [rdi + 0x38], r9
lea rcx, [rdi + 0x30]
mov qword [rdi + 0x40], rcx
lea rdx, [rdi + 0x48]
mov qword [rdi + 0x50], rdx
lea rax, [rdi + 0x4c]
mov qword [rdi + 0x58], rax
mov qword [r8], r12
mov qword [rcx], r12
mov dword [rax], r12d
mov qword [r10], r12
mov qword [r9], r12
mov dword [rdx], r12d
mov qword [rdi + 0x80], r12
mov rax, qword [0x14036fef8]
mov qword [rdi + 0x74], rax
mov qword [rdi + 0x68], r12
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], r14
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
mov rcx, rsi
call fcn.14008c6d0
mov qword [r15], rsi
mov qword [r15 + 8], r14
lea rcx, [rbp + 8]
call fcn.140025de0
nop
lea rcx, [rbp + 0x38]
call fcn.140025de0
nop
mov rdi, qword [rbp]
test rdi, rdi
je 0x14008a66a
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14008a66a
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400ac8a1.0]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x14008a66a
mov rdx, qword [rdi]
mov rax, qword [rdx + 8]
mov rcx, rdi
call qword [case.0x1400ac8a1.0]
nop
lea rcx, [rbp - 0x50]
call fcn.140025de0
jmp 0x14008a15f
call fcn.1400255b0
int3