Function at 0x475320
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588e36
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x61094c]
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]
push 0
push eax
call fcn.005561e0
add esp, 0xc
lea eax, [ebp - 0x114]
xor esi, esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4756b1
push str.driversetchosts
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.005699e2
add esp, 0xc
test eax, eax
jne 0x4756b1
push ecx
lea ecx, [ebp - 0x1ec]
call fcn.00476e00
mov dword [ebp - 4], esi
cmp dword [ebp - 0x190], esi
jne 0x475451
push 0x40
lea eax, [ebp - 0x114]
push 1
push eax
call fcn.00541d0a
add esp, 0xc
test eax, eax
je 0x475451
push 1
push eax
lea ecx, [ebp - 0x1dc]
call fcn.00477640
mov eax, dword [ebp - 0x1a8]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x130], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 1
push eax
call fcn.00477b50
add esp, 4
lea ecx, [ebp - 0x1dc]
push eax
call fcn.004774e0
mov byte [ebp - 4], 0
test esi, esi
je 0x475431
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, eax
test ecx, ecx
je 0x475431
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x1ec]
xor edx, edx
mov eax, dword [eax + 4]
add ecx, eax
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x475474
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x1ec]
mov eax, dword [eax + 4]
add ecx, eax
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.00422180
mov eax, dword [ebp - 0x1ec]
mov eax, dword [eax + 4]
mov eax, dword [ebp + eax - 0x1e0]
shr eax, 2
test al, 1
jne 0x4756a4
cmp dword [ebp - 0x190], 0
je 0x4756a4
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
mov byte [ebp - 4], 2
mov ebx, 0x1a
lea edx, [ebp - 0x12c]
lea ecx, [ebp - 0x1ec]
call fcn.00477a80
push 0x5c6d3c
lea ecx, [ebp - 0x12c]
call fcn.00477260
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
mov edi, dword [ebp - 0x11c]
mov edx, str.0.0.0.1_tmssplus.mcafee.com
cmovae eax, dword [ebp - 0x12c]
mov esi, edi
cmp edi, ebx
cmova esi, ebx
sub esi, 4
jb 0x475531
nop
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x475536
add eax, 4
add edx, 4
sub esi, 4
jae 0x475520
cmp esi, 0xfffffffc
je 0x47556a
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x475563
cmp esi, 0xfffffffd
je 0x47556a
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x475563
cmp esi, 0xfffffffe
je 0x47556a
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x475563
cmp esi, 0xffffffff
je 0x47556a
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x47556a
sbb eax, eax
or eax, 1
jmp 0x47556c
xor eax, eax
test eax, eax
jne 0x475576
cmp edi, ebx
jb 0x475576
jbe 0x475591
mov eax, dword [ebp - 0x1ec]
xor esi, esi
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1e0], 1
je 0x4754d2
jmp 0x475596
mov esi, 1
lea ecx, [ebp - 0x1dc]
call fcn.00477730
test eax, eax
jne 0x4755d0
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x1ec]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00422180
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x47560e
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x475604
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4756cf
push edx
push ecx
call fcn.005541c2
add esp, 8
mov eax, dword [ebp - 0x1ec]
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 - 0x1ec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1f0], eax
lea ecx, [ebp - 0x1dc]
call fcn.00476d50
mov eax, dword [ebp - 0x1ec]
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 - 0x1ec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1f0], eax
lea eax, [ebp - 0x17c]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0053f1d7
add esp, 4
jmp 0x4756b1
lea ecx, [ebp - 0x1ec]
call fcn.004756e0
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.00553d2a
mov esp, ebp
pop ebp
ret
call fcn.0055eb97
int3