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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595bda
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.004e8f80
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.004e8a50
test eax, eax
je 0x4d5ff3
push 1
call fcn.004dec10
add esp, 4
test eax, eax
je 0x4d5fbf
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.00428b00
add esp, 0x10
lea ecx, [ebp - 0x3c]
call fcn.004e9030
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.00553daa
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x14]
push eax
push str.enableLegacyAutomationLogs
lea ecx, [ebp - 0x3c]
call fcn.004e8ab0
test eax, eax
jne 0x4d5fbf
cmp dword [ebp - 0x14], 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
sete byte [ebp - 0x89]
call fcn.004e9030
cmp byte [ebp - 0x89], 0
je 0x4d5fc7
push 1
call fcn.004dec10
add esp, 4
test eax, eax
je 0x4d605a
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.00428b40
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 0x4d6083
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.00425810
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.004f5e30
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.004fb590
test al, al
jne 0x4d6139
push 5
call fcn.004dec10
add esp, 4
test eax, eax
je 0x4d6127
push 0x613198
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.00428b00
add esp, 0x10
mov dword [edi], 0
mov dword [edi + 4], 0
jmp 0x4d6213
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 0x4d61ac
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.004dec10
add esp, 4
test eax, eax
je 0x4d61ac
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.004d8140
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 0x4d6272
sub eax, 1
je 0x4d6266
sub eax, 1
je 0x4d625a
push 5
call fcn.004dec10
add esp, 4
test eax, eax
je 0x4d61fe
push esi
sub esp, 0xc
call fcn.004d8180
add esp, 0x10
lea ecx, [ebp - 0x6c]
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004257b0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x4d6619
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x4d6619
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x4d6619
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
lea ecx, [ebp - 0x30]
call fcn.004257b0
jmp 0x4d5fd4
mov eax, str.ErrorLog.txt
mov ecx, 0xc
jmp 0x4d627c
mov eax, str.RawTrackLog.txt
mov ecx, 0xf
jmp 0x4d627c
mov eax, str.TransportsLog.txt
mov ecx, 0x11
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00425810
mov ecx, dword [ebp - 0x20]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 1
jb 0x4d6626
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 1
cmovae eax, dword [ebp - 0x30]
push 0x5bd3e8
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x90]
lea ecx, [ebp - 0x48]
call fcn.00434560
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.00425920
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.004257b0
push 0xc0
call fcn.00553fc1
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], 0x5be14c
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.004256b0
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.004255e0
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 0x4d659d
push 0x40
push 0xa
push eax
call fcn.00541d93
mov edx, eax
add esp, 0xc
test edx, edx
je 0x4d659d
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.004d8980
add esp, 4
lea ecx, [edi + 4]
push eax
call fcn.004d7eb0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4d6587
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x4d6587
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 0x4d65b6
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.00422200
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.004257b0
lea ecx, [ebp - 0x6c]
call fcn.004257b0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x90], ecx
test ecx, ecx
je 0x4d6619
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x4d6619
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0x90]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x4d6619
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
lea ecx, [ebp - 0x30]
call fcn.004257b0
jmp 0x4d5fd4
call fcn.00421430
int3