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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59571a
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x61094c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], edi
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0
call fcn.004e8e70
push 0x2001f
push str.SoftwareMcAfeeMcClientAnalytics
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x88], str.SoftwareMcAfeeMcClientAnalytics
call fcn.004e8940
test eax, eax
je 0x4d5ee3
push 1
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4d5eaf
lea eax, [ebp - 0x88]
mov edx, str.E:BT5a34f070_108c_442c_81a8_adb208410955ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
push eax
push str.Unable_to_open_regKey__s
push 0x15f
push str.Intel::Analytics::CAnalyticsLoggerHelper::IsLegacyAutomationLogEnabled
mov ecx, 1
call fcn.00428a80
add esp, 0x10
lea ecx, [ebp - 0x3c]
call fcn.004e8f20
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00553cca
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x14]
push eax
push str.enableLegacyAutomationLogs
lea ecx, [ebp - 0x3c]
call fcn.004e89a0
test eax, eax
jne 0x4d5eaf
cmp dword [ebp - 0x14], 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
sete byte [ebp - 0x89]
call fcn.004e8f20
cmp byte [ebp - 0x89], 0
je 0x4d5eb7
push 1
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4d5f4a
push str.LegacyAutomationLogging_is_enabled
push 0x89
push str.Intel::Analytics::CAnalyticsLoggerHelper::GetStream
mov edx, str.E:BT5a34f070_108c_442c_81a8_adb208410955ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
mov ecx, 1
call fcn.00428ac0
add esp, 0xc
mov edx, dword [str.__FOLDERID_ProgramData_McAfeeClientAnalytics]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x30], 0
mov word [ebp - 0x30], ax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d5f73
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00425790
sub esp, 8
mov dword [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x54]
movq qword [ebp - 0x54], xmm0
sub esp, 8
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.004f5d20
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.004fb480
test al, al
jne 0x4d6029
push 5
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4d6017
push 0x613150
push str.Couldnt_resolve_place_holder_for:__s
push 0x91
push str.Intel::Analytics::CAnalyticsLoggerHelper::GetStream
mov edx, str.E:BT5a34f070_108c_442c_81a8_adb208410955ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
mov ecx, 5
call fcn.00428a80
add esp, 0x10
mov dword [edi], 0
mov dword [edi + 4], 0
jmp 0x4d6103
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d609c
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
mov dword [ebp - 0x14], eax
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4d609c
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
mov edx, str.E:BT5a34f070_108c_442c_81a8_adb208410955ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
cmovae eax, dword [ebp - 0x30]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x88]
push eax
push str.CreateDirectory_for__s__result:__d
push 0x98
push str.Intel::Analytics::CAnalyticsLoggerHelper::GetStream
call fcn.004d8030
add esp, 0x14
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov byte [ebp - 4], 3
mov eax, dword [esi]
sub eax, 0
je 0x4d6162
sub eax, 1
je 0x4d6156
sub eax, 1
je 0x4d614a
push 5
call fcn.004deaf0
add esp, 4
test eax, eax
je 0x4d60ee
push esi
sub esp, 0xc
call fcn.004d8070
add esp, 0x10
lea ecx, [ebp - 0x6c]
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00425730
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x4d6509
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x4d6509
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x4d6509
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
lea ecx, [ebp - 0x30]
call fcn.00425730
jmp 0x4d5ec4
mov eax, str.ErrorLog.txt
mov ecx, 0xc
jmp 0x4d616c
mov eax, str.RawTrackLog.txt
mov ecx, 0xf
jmp 0x4d616c
mov eax, str.TransportsLog.txt
mov ecx, 0x11
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00425790
mov ecx, dword [ebp - 0x20]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x4d6516
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 1
cmovae eax, dword [ebp - 0x30]
push 0x5bd2c8
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x90]
lea ecx, [ebp - 0x48]
call fcn.004344d0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
lea ecx, [ebp - 0x48]
push dword [ebp - 0x5c]
cmovae eax, dword [ebp - 0x6c]
push eax
call fcn.004258a0
mov dword [ebp - 0x84], 0
xor ecx, ecx
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x74], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00425730
push 0xc0
call fcn.00553ee1
add esp, 4
mov dword [ebp - 0x88], eax
lea esi, [eax + 0x10]
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_class_std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t___.0
mov dword [esi], 0x5be02c
mov dword [ebp - 0x14], esi
mov dword [esi + 0x70], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 8
lea edi, [esi + 4]
mov eax, dword [esi]
push 0
push edi
mov dword [ebp - 0x94], 0x16
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.00425630
mov dword [ebp - 4], 0xa
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov ecx, edi
mov dword [ebp - 0x34], edi
call fcn.00425560
mov dword [edi], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
lea eax, [edi + 4]
mov dword [edi + 0xc], eax
lea esi, [edi + 8]
mov eax, dword [ebp - 0x88]
xorps xmm0, xmm0
mov dword [edi + 0x10], esi
lea ecx, [eax + 0x2c]
mov byte [edi + 0x48], 0
lea edx, [eax + 0x38]
mov byte [edi + 0x3e], 0
add edi, 0x14
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], ecx
mov dword [eax + 0x40], edx
add eax, 0x3c
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x88]
movlpd qword [ebp - 0x38], xmm0
mov dword [edi + 0x44], eax
mov dword [esi], 0
mov esi, edi
mov edi, dword [ebp - 0x14]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [esi + 0x18], 0
mov dword [edi], 0
lea edi, [esi + 0x10]
mov dword [edx], 0
mov dword [edi + 0x50], 0
mov eax, dword [0x622ea0]
mov ecx, dword [0x622ea4]
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], ecx
mov dword [edi + 0x3c], 0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x70], 8
cmovae eax, dword [ebp - 0x84]
cmp dword [edi + 0x50], 0
jne 0x4d648d
push 0x40
push 0xa
push eax
call fcn.00541cb3
mov edx, eax
add esp, 0xc
test edx, edx
je 0x4d648d
lea eax, [edi + 8]
mov byte [edi + 0x4c], 1
mov dword [edi + 0x10], eax
lea ecx, [edi + 0xc]
lea eax, [edi + 0x18]
mov byte [edi + 0x42], 0
mov dword [edi + 0x20], eax
lea eax, [edi + 0x1c]
mov dword [edi + 0x24], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
lea eax, [edi + 0x2c]
mov dword [edi + 0x34], eax
mov dword [edi + 0x14], ecx
mov dword [ecx], 0
mov eax, dword [edi + 0x24]
mov dword [eax], 0
mov eax, dword [edi + 0x34]
mov dword [eax], 0
mov eax, dword [edi + 0x10]
mov dword [eax], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov dword [edi + 0x50], edx
mov eax, dword [0x622ea0]
mov ecx, dword [0x622ea4]
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0x38]
mov dword [edi + 0x48], ecx
mov dword [edi + 0x3c], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xc
push eax
call fcn.004d8870
add esp, 4
lea ecx, [edi + 4]
push eax
call fcn.004d7da0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4d6477
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x4d6477
mov eax, dword [ecx]
push 1
mov eax, dword [eax]
call eax
mov eax, dword [edi]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
add ecx, edi
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x4d64a6
mov eax, dword [edi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, edi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.00422180
mov ecx, dword [ebp - 0x88]
mov edi, dword [ebp - 0x90]
lea eax, [ecx + 0x10]
mov dword [edi + 4], ecx
lea ecx, [ebp - 0x84]
mov dword [edi], eax
call fcn.00425730
lea ecx, [ebp - 0x6c]
call fcn.00425730
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x90], ecx
test ecx, ecx
je 0x4d6509
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x4d6509
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0x90]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x4d6509
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
lea ecx, [ebp - 0x30]
call fcn.00425730
jmp 0x4d5ec4
call fcn.004213b0
int3