Function at 0x416880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x6aae14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x30f]
push ebx
push eax
mov byte [ebp - 0x310], bl
call fcn.005dfd60
push 0x103
lea ecx, [ebp - 0x413]
push ebx
push ecx
mov byte [ebp - 0x414], bl
call fcn.005dfd60
push 0x103
lea edx, [ebp - 0x107]
push ebx
push edx
mov byte [ebp - 0x108], bl
call fcn.005dfd60
add esp, 0x24
mov dword [ebp - 0x620], ebx
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x628], ebx
xor edi, edi
call fcn.0052b840
test eax, eax
jne 0x416b63
push 0x104
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x310]
push ecx
call fcn.004e24e0
lea eax, [ebp - 0x310]
add esp, 4
dec eax
jmp 0x416930
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x416930
mov edx, dword [str.driversetc]
mov ecx, dword [0x613720]
mov dword [eax], edx
mov edx, dword [0x613724]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x414]
push str._shosts
push ecx
call fcn.005dfb23
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x108]
push str._sesbak.hosts
push eax
call fcn.005dfb23
add esp, 0x18
call fcn.004d96c0
test eax, eax
je 0x41699f
lea ecx, [ebp - 0x628]
push ecx
call fcn.004f77e0
add esp, 4
mov edi, eax
push esi
push ebx
push ebx
push ebx
lea edx, [ebp - 0x620]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.004ec5a0
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x624]
push ecx
lea edx, [ebp - 0x108]
push edx
mov esi, eax
call fcn.004ec5a0
add esp, 0x28
cmp esi, ebx
pop esi
jne 0x416a96
mov eax, dword [ebp - 0x620]
cmp eax, 5
jbe 0x416aa3
cmp dword [ebp - 0x624], eax
je 0x416a96
push ebx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.004edd70
add esp, 0xc
test eax, eax
je 0x416a34
mov edx, dword [ebp - 0x620]
push edx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x61c]
push str._HOSTS__Created_Hosts_Backup:__s__Size:_u_
push ecx
call fcn.005dfb23
add esp, 0x10
jmp 0x416a7f
push 0x103
lea edx, [ebp - 0x20b]
push ebx
push edx
mov byte [ebp - 0x20c], bl
call fcn.005dfd60
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004d8c20
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x61c]
push str._HOSTS__Failed_to_Create_Hosts_Backup__s__Reason:_s
push eax
call fcn.005dfb23
add esp, 0x24
push ebx
push 1
lea ecx, [ebp - 0x61c]
push ecx
push 0x6aec98
call fcn.004311c0
add esp, 0x10
cmp dword [ebp - 0x620], 5
ja 0x416b50
cmp dword [ebp - 0x624], ebx
jbe 0x416b50
push ebx
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.004edd70
add esp, 0xc
test eax, eax
je 0x416aee
mov ecx, dword [ebp - 0x624]
push ecx
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x61c]
push str._HOSTS__Restored_from_Hosts_Backup:__s__Size:_u_
push eax
call fcn.005dfb23
add esp, 0x10
jmp 0x416b39
push 0x103
lea ecx, [ebp - 0x20b]
push ebx
push ecx
mov byte [ebp - 0x20c], bl
call fcn.005dfd60
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.004d8c20
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x61c]
push str._HOSTS__Failed_to_Restore_from_Hosts_Backup__s__Reason:_s
push edx
call fcn.005dfb23
add esp, 0x24
push ebx
push 1
lea eax, [ebp - 0x61c]
push eax
push 0x6aec98
call fcn.004311c0
add esp, 0x10
cmp edi, ebx
je 0x416b63
mov ecx, dword [ebp - 0x628]
push ecx
call fcn.004f7860
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret