Function at 0x1400c7080
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 [0x1403ceac0]
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.1400ec170
nop
lea r8, str.SoftwareMcAfeeMcClientAnalytics
mov qword [rsp + 0x58], r8
mov rdx, 0xffffffff80000002
mov r9d, 0x2001f
lea rcx, [rbp - 0x28]
call fcn.1400e74a0
test eax, eax
je 0x1400c717a
lea ecx, [r12 + 1]
call fcn.1400de610
test eax, eax
je 0x1400c713f
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:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
lea ecx, [r12 + 1]
call fcn.1400308b0
nop
lea rcx, [rbp - 0x28]
call fcn.1400ec210
mov qword [r15], r12
mov qword [r15 + 8], r12
mov rax, r15
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.140296f70
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.1400e74c0
test eax, eax
jne 0x1400c713f
cmp dword [rbp - 0x30], 1
sete bl
lea rcx, [rbp - 0x28]
call fcn.1400ec210
test bl, bl
je 0x1400c7148
mov ecx, 1
call fcn.1400de610
test eax, eax
je 0x1400c71de
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:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
mov ecx, 1
call fcn.140028a20
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 0x1400c7200
lea rcx, [rbp - 0x50]
call fcn.14002b640
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], 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.1400e8d80
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x10]
call fcn.1400ebaf0
test al, al
jne 0x1400c72a3
mov ecx, 5
call fcn.1400de610
test eax, eax
je 0x1400c7297
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, DllRegisterServer
lea r8, str.Intel::Analytics::CAnalyticsLoggerHelper::GetStream
lea rdx, str.E:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
mov ecx, 5
call fcn.1400308b0
mov qword [r15], r12
mov qword [r15 + 8], r12
jmp 0x1400c737d
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 0x1400c732f
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.1400de610
test eax, eax
je 0x1400c732f
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:BT550b508a_48fa_453d_94fa_eec8802a9742ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
call fcn.1400b08f0
mov qword [rbp], r12
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r12w
mov ecx, dword [rdi]
test ecx, ecx
je 0x1400c73dc
sub ecx, 1
je 0x1400c73cd
cmp ecx, 1
je 0x1400c73be
mov ecx, 5
call fcn.1400de610
test eax, eax
je 0x1400c736c
mov qword [rsp + 0x28], rdi
call fcn.1400c9870
mov qword [r15], r12
mov qword [r15 + 8], r12
lea rcx, [rbp - 0x10]
call fcn.14002ce60
nop
mov rdi, qword [rbp + 0x20]
test rdi, rdi
je 0x1400c7624
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400c7624
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400c7624
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400c7624
lea rdx, str.ErrorLog.txt
mov r8d, recv
jmp 0x1400c73e9
lea rdx, str.RawTrackLog.txt
mov r8d, select
jmp 0x1400c73e9
lea rdx, str.TransportsLog.txt
mov r8d, reloc.WS2_32.dll_recvfrom
lea rcx, [rbp - 0x10]
call fcn.14002b640
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x40]
sub rax, rcx
cmp rax, 1
jb 0x1400c7632
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r9, qword [rbp - 0x50]
mov qword [rsp + 0x30], 1
lea rax, [0x1403484fc]
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.140030d00
nop
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
lea rcx, [rbp - 0x70]
call fcn.140030de0
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x48], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
lea rcx, [rbp - 0x70]
call fcn.14002ce60
mov ecx, 0x118
call fcn.140296fc8
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, [0x140371f58]
mov qword [rsi], rax
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
movsxd rax, dword [0x140371f5c]
lea rcx, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rax + rsi], rcx
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.14002a490
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.14002a810
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 [0x1403e3a08]
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 + 0x38]
mov rcx, rsi
call fcn.1400c91f0
mov qword [r15], rsi
mov qword [r15 + 8], r14
lea rcx, [rbp + 0x38]
call fcn.14002ce60
nop
lea rcx, [rbp - 0x10]
call fcn.14002ce60
nop
mov rdi, qword [rbp + 0x20]
test rdi, rdi
je 0x1400c7624
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400c7624
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1400c7624
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x50]
call fcn.14002ce60
jmp 0x1400c714f
call fcn.14002c880
int3