Function at 0x4b35f0
Capabilities:
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e56b1
mov eax, dword fs:[0]
push eax
mov eax, 0x104c
call fcn.005b8630
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x1018], 0
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1018], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x1014], 7
mov word [ebp - 0x1028], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b3684
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1028]
call fcn.00409060
push 1
push 0x618ac4
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 0
call fcn.00409220
push 0x11
push str.driversetchosts
lea ecx, [ebp - 0x1028]
call fcn.00409220
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
push 0x80
cmovae eax, dword [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0xf
mov byte [ebp - 0x1040], 0
lea eax, [ebp - 0x1040]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x1028]
mov ecx, esi
call fcn.004b3080
add esp, 4
cmp dword [ebp - 0x1030], 0
je 0x4b3883
xor eax, eax
mov dword [ebp - 0x1048], 0
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1048], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x1044], 7
mov word [ebp - 0x1058], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b3786
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1058]
call fcn.00409060
push 1
push 0x618ac4
lea ecx, [ebp - 0x1058]
mov byte [ebp - 4], 0xb
call fcn.00409220
push 0x11
push str.driversetchosts
lea ecx, [ebp - 0x1058]
call fcn.00409220
push 4
push 0x627cb4
lea ecx, [ebp - 0x1058]
call fcn.00409220
lea edx, [ebp - 0x1058]
lea ecx, [ebp - 0x1028]
call fcn.004de1b0
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
push 0x627cb0
cmovae eax, dword [ebp - 0x1028]
push eax
call fcn.005bfd4c
mov esi, eax
add esp, 8
test esi, esi
je 0x4b3858
cmp dword [ebp - 0x102c], 0x10
lea ecx, [ebp - 0x1040]
push esi
push dword [ebp - 0x1030]
cmovae ecx, dword [ebp - 0x1040]
push 1
push ecx
call fcn.005c0a8f
add esp, 0x10
test eax, eax
jne 0x4b3858
lea edx, [ebp - 0x1028]
lea ecx, [ebp - 0x1058]
call fcn.004de050
jmp 0x4b3863
lea ecx, [ebp - 0x1058]
call fcn.004de3b0
test esi, esi
je 0x4b3870
push esi
call fcn.005bfe20
add esp, 4
lea ecx, [ebp - 0x1058]
mov byte [ebp - 4], 0xc
call fcn.00408ff0
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x102c]
cmp edx, 0x10
jb 0x4b38bd
mov ecx, dword [ebp - 0x1040]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b38b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b390b
push edx
push ecx
call fcn.005b7992
add esp, 8
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0xf
mov byte [ebp - 0x1040], 0
lea ecx, [ebp - 0x1028]
mov dword [ebp - 4], 0x14
call fcn.00408ff0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
call fcn.005c00b0
int3