Function at 0x41c640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b40d3
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x4f0108]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 0x154], 0
push 0
push eax
call fcn.0047fc40
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x41c6d4
mov ecx, dword [0x4fbb50]
test ecx, ecx
je 0x41ccf7
push str.IsMssHostEntryPresent___GetSystemDirectory_failed.
push 0x225
mov eax, dword [ecx]
push str.McCommonHelper::IsMssHostEntryPresent
push str.E:BT79ab498f_9f9b_4ba1_9055_25cb00f80951Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push ecx
call dword [eax + 0x14]
add esp, 0x14
jmp 0x41ccf7
push str.driversetchosts
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00489fa2
add esp, 0xc
test eax, eax
je 0x41c70b
mov ecx, dword [0x4fbb50]
test ecx, ecx
je 0x41ccf7
push str.IsMssHostEntryPresent___Appending_hosts_file_name_failed.
push 0x22c
jmp 0x41c6bc
mov dword [ebp - 0x214], 0x4d538c
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x204]
mov dword [ebp - 0x154], 1
lea ecx, [ebp - 0x214]
push eax
call fcn.0041df00
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x214]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x218], eax
lea ecx, [ebp - 0x204]
call fcn.0041e490
mov ecx, dword [0x4feb44]
lea eax, [ebp - 0x200]
mov dword [ebp - 0x1f8], eax
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x1f4], eax
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x1e8], eax
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x1e4], eax
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x1d8], eax
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1d4], eax
mov eax, dword [0x4feb40]
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x1bc], 0
mov byte [ebp - 0x1c7], 0
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1c0], ecx
mov dword [ebp - 0x1cc], 0
push 0x40
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 2
push 1
push eax
call fcn.0047bb10
add esp, 0xc
test eax, eax
jne 0x41c8cc
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x1dc], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x208]
and eax, 0x17
mov dword [ebp + ecx - 0x208], eax
mov ecx, dword [ebp + ecx - 0x204]
and ecx, eax
jne 0x41cd17
jmp 0x41c970
push 1
push eax
lea ecx, [ebp - 0x204]
call fcn.0041dd40
mov eax, dword [ebp - 0x1d0]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x158], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 3
push eax
call fcn.0041e780
add esp, 4
lea ecx, [ebp - 0x204]
push eax
call fcn.0041dbe0
mov byte [ebp - 4], 2
test esi, esi
je 0x41c92a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x41c92a
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x214]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [ebp + ecx - 0x1dc], edx
cmovne eax, edx
mov dword [ebp + ecx - 0x208], eax
test dword [ebp + ecx - 0x204], eax
je 0x41c970
lea eax, [ebp - 0x15c]
push 1
push eax
call fcn.00405b6f
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x41cd46
mov eax, dword [ebp - 0x214]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x208]
shr eax, 2
test al, 1
jne 0x41ccc5
cmp dword [ebp - 0x1b8], 0
je 0x41ccc5
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x12c]
lea ecx, [ebp - 0x214]
call fcn.0041e6d0
push str.__t_r_n_v
lea ecx, [ebp - 0x150]
call fcn.0041e340
mov ebx, dword [ebp - 0x118]
lea esi, [ebp - 0x12c]
mov edi, dword [ebp - 0x12c]
cmp ebx, 0x10
mov ecx, dword [ebp - 0x11c]
cmovae esi, edi
mov dword [ebp - 0x154], ecx
nop word [eax + eax]
cmp ebx, 0x10
lea eax, [ebp - 0x12c]
cmovae eax, edi
add eax, ecx
cmp esi, eax
je 0x41ca71
mov al, byte [esi]
movsx ecx, al
test al, al
lea edx, [ecx + 0x100]
cmovns edx, ecx
mov eax, edx
and edx, 7
shr eax, 3
mov ecx, edx
movzx edi, byte [ebp + eax - 0x150]
mov eax, 1
shl eax, cl
and edi, eax
setne al
cmp byte [ebp - 0x130], 0
je 0x41ca5e
test edi, edi
sete al
mov edi, dword [ebp - 0x12c]
test al, al
je 0x41ca71
mov ecx, dword [ebp - 0x154]
inc esi
jmp 0x41ca10
cmp ebx, 0x10
lea eax, [ebp - 0x12c]
cmovae eax, edi
cmp esi, eax
je 0x41cad6
cmp ebx, 0x10
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x12c]
cmovae ecx, edi
cmovae eax, edi
mov edx, ecx
sub esi, ecx
sub edx, eax
lea ecx, [ebp - 0x12c]
mov eax, dword [ebp - 0x154]
sub eax, edx
cmp eax, esi
cmovb esi, eax
mov eax, dword [ebp - 0x154]
cmp ebx, 0x10
cmovae ecx, edi
sub eax, esi
mov dword [ebp - 0x11c], eax
add ecx, edx
sub eax, edx
inc eax
push eax
lea eax, [ecx + esi]
push eax
push ecx
call fcn.0047e460
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0041e0d0
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
mov edi, dword [ebp - 0x11c]
mov ecx, 0x1a
cmovae eax, dword [ebp - 0x12c]
mov esi, edi
cmp edi, 0x1a
mov edx, str.0.0.0.1_tmssplus.mcafee.com
cmova esi, ecx
sub esi, 4
jb 0x41cb31
nop dword [eax]
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x41cb36
add eax, 4
add edx, 4
sub esi, 4
jae 0x41cb20
cmp esi, 0xfffffffc
je 0x41cb6a
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x41cb63
cmp esi, 0xfffffffd
je 0x41cb6a
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x41cb63
cmp esi, 0xfffffffe
je 0x41cb6a
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x41cb63
cmp esi, 0xffffffff
je 0x41cb6a
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x41cb6a
sbb eax, eax
or eax, 1
jmp 0x41cb6c
xor eax, eax
test eax, eax
jne 0x41cb77
cmp edi, 0x1a
jb 0x41cb77
jbe 0x41cb92
mov eax, dword [ebp - 0x214]
xor esi, esi
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x208], 1
je 0x41c9c1
jmp 0x41cb97
mov esi, 1
lea ecx, [ebp - 0x204]
call fcn.0041de30
test eax, eax
jne 0x41cbf1
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x1dc], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0x208]
and eax, 0x17
mov dword [ebp + ecx - 0x208], eax
mov ecx, dword [ebp + ecx - 0x204]
and ecx, eax
je 0x41cbf1
test cl, 4
je 0x41cd23
mov esi, str.ios_base::badbit_set
jmp 0x41cd33
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x41cc2f
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41cc25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41cd62
push edx
push ecx
call fcn.0047940e
add esp, 8
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x218], eax
lea ecx, [ebp - 0x204]
call fcn.0041da40
mov eax, dword [ebp - 0x214]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x218], eax
lea eax, [ebp - 0x1a4]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0047aa7a
add esp, 4
jmp 0x41ccf9
mov ecx, dword [0x4fbb50]
test ecx, ecx
je 0x41ccec
mov eax, dword [ecx]
push str.IsMssHostEntryPresent___Open_hosts_file_failed.
push 0x239
push str.McCommonHelper::IsMssHostEntryPresent
push str.E:BT79ab498f_9f9b_4ba1_9055_25cb00f80951Freetools_srcMcEventsTrackerMcCommonHelper.cpp
push ecx
call dword [eax + 0x14]
add esp, 0x14
lea ecx, [ebp - 0x214]
call fcn.0041cd70
xor esi, esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00478c0a
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x41cd23
mov esi, str.ios_base::badbit_set
jmp 0x41cd33
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x15c]
push 1
push eax
call fcn.00405b6f
add esp, 8
push eax
push esi
lea ecx, [ebp - 0x144]
call fcn.00406318
push 0x4ed494
lea eax, [ebp - 0x144]
push eax
call fcn.0048029b
call fcn.00487359
int3