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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642549
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6d3438]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], esi
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0
call fcn.0049cf10
push 0x2001f
push str.SoftwareMcAfeeMcClientAnalytics
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x70], str.SoftwareMcAfeeMcClientAnalytics
call fcn.0049a8d0
test eax, eax
je 0x4820c7
push 1
call fcn.0049dcb0
add esp, 4
test eax, eax
je 0x482093
lea eax, [ebp - 0x70]
mov edx, str.E:BT3ee744b7_78e2_4d9e_b7ee_63935aebafd6ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
push eax
push str.Unable_to_open_regKey__s
push 0x15f
push str.Intel::Analytics::CAnalyticsLoggerHelper::IsLegacyAutomationLogEnabled
mov ecx, 1
call fcn.004392a0
add esp, 0x10
lea ecx, [ebp - 0x3c]
call fcn.0049cfc0
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, esi
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.00608185
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x14]
push eax
push str.enableLegacyAutomationLogs
lea ecx, [ebp - 0x3c]
call fcn.0049a930
test eax, eax
jne 0x482093
cmp dword [ebp - 0x14], 1
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
sete byte [ebp - 0x71]
call fcn.0049cfc0
cmp byte [ebp - 0x71], 0
je 0x48209b
push 1
call fcn.0049dcb0
add esp, 4
test eax, eax
je 0x482128
push str.LegacyAutomationLogging_is_enabled
push 0x89
push str.Intel::Analytics::CAnalyticsLoggerHelper::GetStream
mov edx, str.E:BT3ee744b7_78e2_4d9e_b7ee_63935aebafd6ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
mov ecx, 1
call fcn.00438de0
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 0x482151
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.0042e850
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.00492e40
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.00498600
test al, al
jne 0x482207
push 5
call fcn.0049dcb0
add esp, 4
test eax, eax
je 0x4821f5
push 0x6d592c
push str.Couldnt_resolve_place_holder_for:__s
push 0x91
push str.Intel::Analytics::CAnalyticsLoggerHelper::GetStream
mov edx, str.E:BT3ee744b7_78e2_4d9e_b7ee_63935aebafd6ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
mov ecx, 5
call fcn.004392a0
add esp, 0x10
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x4824de
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 0x482274
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.0049dcb0
add esp, 4
test eax, eax
je 0x482274
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
mov edx, str.E:BT3ee744b7_78e2_4d9e_b7ee_63935aebafd6ClientAnalyticsCommon_srcCAUtilitiesAnalyticsLogger.cpp
cmovae eax, dword [ebp - 0x30]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x70]
push eax
push str.CreateDirectory_for__s__result:__d
push 0x98
push str.Intel::Analytics::CAnalyticsLoggerHelper::GetStream
call fcn.004832f0
add esp, 0x14
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 3
mov eax, dword [edi]
sub eax, 0
je 0x4822e8
sub eax, 1
je 0x4822dc
sub eax, 1
je 0x4822d0
push 5
call fcn.0049dcb0
add esp, 4
test eax, eax
je 0x4822be
push edi
sub esp, 0xc
call fcn.00483330
add esp, 0x10
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x4824d6
mov eax, str.ErrorLog.txt
mov ecx, 0xc
jmp 0x4822f2
mov eax, str.RawTrackLog.txt
mov ecx, 0xf
jmp 0x4822f2
mov eax, str.TransportsLog.txt
mov ecx, 0x11
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.0042e850
mov ecx, dword [ebp - 0x20]
mov eax, accept
sub eax, ecx
cmp eax, 1
jb 0x482532
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 1
cmovae eax, dword [ebp - 0x30]
push 0x68e7fc
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x94]
call fcn.0042cf70
mov byte [ebp - 4], 4
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x94]
push dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.0042a330
mov dword [ebp - 0x6c], 0
xor ecx, ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 6
call fcn.0042f900
push 0xc0
call fcn.0060862c
add esp, 4
mov dword [ebp - 0x70], eax
lea edi, [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 [edi], 0x6a4a20
mov dword [ebp - 0x14], edi
mov dword [edi + 0x70], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 8
lea esi, [edi + 4]
mov eax, dword [edi]
push 0
push esi
mov dword [ebp - 0x7c], 0x16
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0042ba80
mov dword [ebp - 4], 0xa
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x68]
mov ecx, esi
mov dword [edx + edi - 4], eax
call fcn.0042b510
mov eax, dword [ebp - 0x70]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
lea ecx, [edi + 4]
push 0x40
cmovae eax, dword [ebp - 0x6c]
push 0xa
push eax
call fcn.0042b3d0
test eax, eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
je 0x4824a7
add ecx, edi
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x4824bb
add ecx, edi
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.0042e7d0
mov esi, dword [ebp - 0x78]
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
mov dword [esi], edi
mov dword [esi + 4], eax
call fcn.0042f900
lea ecx, [ebp - 0x48]
call fcn.0042f900
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x70], ecx
test ecx, ecx
je 0x482525
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x482525
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x659730]
mov ecx, dword [ebp - 0x70]
call esi
mov eax, dword [ebp - 0x70]
lock xadd dword [eax + 8], edi
dec edi
jne 0x482522
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x659730]
mov ecx, dword [ebp - 0x70]
call esi
mov esi, dword [ebp - 0x78]
lea ecx, [ebp - 0x30]
call fcn.0042f900
jmp 0x4820a8
call fcn.0042f3b0
int3