Function at 0x401df0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x409920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x24], ebp
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x148], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x148], 4
call fcn.00409160
push edi
lea eax, [esp + 0x14]
mov bl, 5
push 0x25
push eax
mov byte [esp + 0x154], bl
call fcn.00401830
add esp, 0xc
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push ecx
push str._sdriversetchosts
push edx
mov byte [esp + 0x154], 6
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
push eax
call fcn.00401d80
add esp, 4
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push ecx
push str._shosts.tx
push edx
mov byte [esp + 0x154], 7
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push 0x40e220
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402056
mov ecx, dword [esp + 0x20]
push edi
push 0x9001
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::Open
test byte [esi + 0xc], 0x10
jne 0x401f9c
mov ebp, dword [sym.imp.MSVCRT.dll_fgets]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
push esi
lea edx, [esp + 0x40]
push 0x103
rep stosd dword es:[edi], eax
push edx
call ebp
lea eax, [esp + 0x48]
push str.gongfubb.com
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x14
test eax, eax
jne 0x401f92
cmp byte [esp + 0x3c], 0x23
je 0x401f92
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x14c], 8
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
test byte [esi + 0xc], 0x10
je 0x401f28
mov ebp, dword [esp + 0x24]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea edx, [esp + 0x150]
push 0x7c
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00409130
mov ecx, ebp
call fcn.00401730
mov edi, eax
lea eax, [ebp + 8]
push eax
lea ecx, [esp + 0x20]
call fcn.0040913c
cmp edi, 1
jle 0x402039
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
lea esi, [ebp + 0xc]
dec edi
mov eax, dword [esi]
push 0x40e20c
push eax
call ebx
add esp, 8
test eax, eax
jne 0x40200b
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push str._s_tgongfubb.com_r_n
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x402025
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_t_s.gongfubb.com_r_n
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CStdioFile::WriteString
add esi, 4
dec edi
jne 0x401fe1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStdioFile::Close
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x148], 4
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x150]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x140]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x13c
ret 4