Function at 0x404880
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x4c6018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x20b]
push ebx
push ecx
mov dword [ebp - 0x31c], eax
mov byte [ebp - 0x20c], 0
call sub.MSVCR100.dll_memset
push 0x103
lea edx, [ebp - 0x30f]
push ebx
push edx
mov byte [ebp - 0x310], bl
call sub.MSVCR100.dll_memset
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x24
cmp dword [esi + 4], ebx
je 0x404922
xor edi, edi
cmp dword [esi + 8], ebx
jle 0x404912
jmp 0x404900
mov ecx, dword [esi + 4]
lea ecx, [ecx + edi*4]
call dword [sym.imp.mfc100.dll_Ordinal_901]
inc edi
cmp edi, dword [esi + 8]
jl 0x404900
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 4], ebx
push 0x104
lea eax, [ebp - 0x108]
push eax
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x404951
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449013
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.driversetchosts
lea eax, [ebp - 0x108]
push eax
call esi
push str.driversetchosts_bak
lea ecx, [ebp - 0x20c]
push ecx
call esi
mov edi, dword [sym.imp.MSVCR100.dll_fopen]
lea edx, [ebp - 0x108]
push 0x4b9d34
push edx
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4049cf
lea eax, [ebp - 0x108]
push eax
push str.Open_source_file:__s_failed_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449013
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20c]
push 0x4b9d58
push ecx
call edi
mov edi, eax
add esp, 8
mov dword [ebp - 0x318], edi
cmp edi, ebx
jne 0x404a1e
lea edx, [ebp - 0x20c]
push edx
push str.Create_source_file:__s_failed_n
call dword [sym.imp.MSVCR100.dll_printf]
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449013
mov esp, ebp
pop ebp
ret 4
push esi
mov dword [ebp - 0x314], ebx
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
jne 0x404aae
mov edi, dword [sym.imp.MSVCR100.dll_fgets]
mov ebx, dword [sym.imp.MSVCR100.dll_strstr]
mov edi, edi
push 0x104
lea eax, [ebp - 0x310]
push 0
push eax
call sub.MSVCR100.dll_memset
push esi
lea ecx, [ebp - 0x310]
push 0x104
push ecx
call edi
mov edx, dword [ebp - 0x31c]
push edx
lea eax, [ebp - 0x310]
push eax
call ebx
add esp, 0x20
test eax, eax
jne 0x404a92
mov ecx, dword [ebp - 0x318]
push ecx
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.MSVCR100.dll_fputs]
add esp, 8
jmp 0x404a98
inc dword [ebp - 0x314]
push esi
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
je 0x404a40
mov edi, dword [ebp - 0x318]
xor ebx, ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll_fclose]
call esi
push edi
call esi
add esp, 8
cmp dword [ebp - 0x314], ebx
jle 0x404ae9
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x404af6
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00449013
mov esp, ebp
pop ebp
ret 4