Function at 0x1400a57e0
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 [0x14039bc30]
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.1400b4c10
nop
lea r8, str.SoftwareMcAfeeMcClientAnalytics
mov qword [rsp + 0x58], r8
mov rdx, 0xffffffff80000002
mov r9d, 0x2001f
lea rcx, [rbp - 0x28]
call fcn.1400b4860
test eax, eax
je 0x1400a58da
lea ecx, [r12 + 1]
call fcn.1400b2690
test eax, eax
je 0x1400a589f
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:BT00963e81_18e2_43e3_9fe0_5ac3a01b920eClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
lea ecx, [r12 + 1]
call fcn.140029750
nop
lea rcx, [rbp - 0x28]
call fcn.1400b4cb0
mov qword [r15], r12
mov qword [r15 + 8], r12
mov rax, r15
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.14013af80
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.1400b48a0
test eax, eax
jne 0x1400a589f
cmp dword [rbp - 0x30], 1
sete bl
lea rcx, [rbp - 0x28]
call fcn.1400b4cb0
test bl, bl
je 0x1400a58a8
mov ecx, 1
call fcn.1400b2690
test eax, eax
je 0x1400a593e
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:BT00963e81_18e2_43e3_9fe0_5ac3a01b920eClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
mov ecx, 1
call fcn.1400297c0
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 0x1400a5964
lea rcx, [rbp - 0x50]
call fcn.140032810
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.1400b07c0
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x10]
call fcn.1400b1cd0
test al, al
jne 0x1400a5a4c
mov ecx, 5
call fcn.1400b2690
test eax, eax
je 0x1400a59ff
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:BT00963e81_18e2_43e3_9fe0_5ac3a01b920eClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
mov ecx, 5
call fcn.140029750
mov qword [r15], r12
mov qword [r15 + 8], r12
mov rdi, qword [rbp]
test rdi, rdi
je 0x1400a5dba
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400a5dba
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400c6d28.0]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400a5dba
mov rax, qword [rdi]
mov rax, qword [rax + 8]
jmp 0x1400a5db0
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 0x1400a5ad8
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.1400b2690
test eax, eax
je 0x1400a5ad8
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:BT00963e81_18e2_43e3_9fe0_5ac3a01b920eClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
call fcn.1400a81a0
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 0x1400a5b48
sub ecx, 1
je 0x1400a5b39
cmp ecx, 1
je 0x1400a5b2a
mov ecx, 5
call fcn.1400b2690
test eax, eax
je 0x1400a5b15
mov qword [rsp + 0x28], rdi
call fcn.1400a8210
mov qword [r15], r12
mov qword [r15 + 8], r12
lea rcx, [rbp + 0x38]
call fcn.140033a90
jmp 0x1400a5a06
lea rdx, str.ErrorLog.txt
mov r8d, 0xc
jmp 0x1400a5b55
lea rdx, str.RawTrackLog.txt
mov r8d, 0xf
jmp 0x1400a5b55
lea rdx, str.TransportsLog.txt
mov r8d, 0x11
lea rcx, [rbp + 0x38]
call fcn.140032810
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x40]
sub rax, rcx
cmp rax, 1
jb 0x1400a5dc8
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], 1
lea rax, [0x14032ca58]
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.140034f00
nop
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.14003a4f0
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.140033a90
mov ecx, 0x118
call fcn.14013afa8
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, [0x14034a090]
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], 0x16
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.140042260
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.1400421d0
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 [0x1403b6fe8]
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.1400a7ed0
mov qword [r15], rsi
mov qword [r15 + 8], r14
lea rcx, [rbp + 8]
call fcn.140033a90
nop
lea rcx, [rbp + 0x38]
call fcn.140033a90
nop
mov rdi, qword [rbp]
test rdi, rdi
je 0x1400a5dba
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400a5dba
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x1400c6d28.0]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400a5dba
mov rdx, qword [rdi]
mov rax, qword [rdx + 8]
mov rcx, rdi
call qword [case.0x1400c6d28.0]
nop
lea rcx, [rbp - 0x50]
call fcn.140033a90
jmp 0x1400a58af
call fcn.140026750
int3