Function at 0x40e716
Capabilities:
Copy file

Disassembly:
mov eax, 0x41d824
call fcn.0041baa0
sub esp, 0x1a8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x4c]
lea ebx, [esi + 0x4c]
cmp dword [eax - 8], 0
je 0x40e8b7
push eax
call fcn.004183bb
lea edi, [esi + 0x48]
pop ecx
mov ecx, esi
mov byte [ebp - 0xd], al
push dword [edi]
push 0x73
call fcn.0040e5ab
test al, al
mov byte [ebp - 0x15], al
jne 0x40e772
cmp byte [ebp - 0xd], al
jne 0x40e7a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x73
push str.Err_Ext__d:__d
jmp 0x40e8ac
mov eax, dword [edi]
lea ecx, [ebp - 0x140]
push ecx
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x40e7a5
mov eax, 0x46f8110d
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov eax, dword [edi]
push ecx
push eax
call sub.MFC42.DLL_CFile::SetStatus
mov ecx, esi
call fcn.0040e648
test al, al
jne 0x40e87f
lea eax, [ebp - 0x1b4]
mov byte [ebp - 0xe], 1
push eax
call fcn.004184ee
test eax, eax
pop ecx
je 0x40e7d2
cmp byte [ebp - 0x143], 7
jae 0x40e7d6
and byte [ebp - 0xe], 0
mov esi, dword [esi + 0x50]
lea eax, [ebp - 0x128]
push eax
push esi
call fcn.004156be
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
jg 0x40e826
call esi
cmp eax, 0xb7
je 0x40e826
cmp byte [ebp - 0xe], 0
jne 0x40e80a
cmp dword [ebp - 0x20], 0xffffffff
je 0x40e826
lea eax, [ebp - 0x128]
push eax
push str.ErrCDFUP:__s
push dword [ebp + 8]
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40e8b7
cmp byte [ebp - 0x15], 0
je 0x40e85f
mov eax, dword [ebx]
mov ecx, dword [edi]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40e85f
call esi
cmp byte [ebp - 0xd], 0
jne 0x40e85f
push dword [edi]
push dword [ebx]
call esi
push eax
push str.ErrCDWN__d___s__s
push dword [ebp + 8]
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x40e8b7
mov edi, dword [edi]
cmp dword [edi - 8], 0
je 0x40e878
mov ecx, dword [0x42bd2c]
push 0x429ea8
push edi
call fcn.00408900
mov al, 1
jmp 0x40eabf
mov eax, dword [esi + 0x44]
cmp dword [eax - 8], 0
je 0x40e8b7
mov ecx, dword [edi]
cmp dword [ecx - 8], 0
je 0x40e8b7
push eax
push 0x74
mov ecx, esi
call fcn.0040e5ab
test al, al
jne 0x40e8be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x74
push str.Err_Ext_VP__d:__d
push dword [ebp + 8]
call sub.MFC42.DLL_CString::Format
add esp, 0x10
xor al, al
jmp 0x40eabf
mov eax, dword [0x42bd2c]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [eax + 0x104]
push 0x428200
push 0x4282e0
push 0x4282d4
call edi
push dword [esi + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0x30]
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x42bd2c]
push dword [eax + 0x104]
push 0x429ea8
push 0x4282e0
push 0x4282d4
call edi
push dword [esi + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
call edi
push dword [esi + 0x30]
call edi
mov eax, dword [esi + 0x34]
test eax, eax
je 0x40e936
push eax
call edi
push str._t:_
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
and dword [ebp - 4], 0
lea eax, [esi + 0x48]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push str.___d:_
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x4c]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator
push str.___i:_
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [0x42bd2c]
lea ecx, [ebp - 0x14]
add eax, 0x104
push eax
call sub.MFC42.DLL_CString::operator
push 0x428308
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ebx, [esi + 0x44]
lea eax, [ebp - 0x28]
push ebx
push 0x428308
push eax
call sub.MFC42.DLL_operator
push 0x428cc4
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx]
push 0
push 1
push 0
push 0x28
push dword [ebp - 0x14]
push eax
call fcn.00419eca
add esp, 0x18
test eax, eax
jne 0x40ea22
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RunProxyX__d___s
push dword [ebp + 8]
call sub.MFC42.DLL_CString::Format
add esp, 0x10
xor bl, bl
jmp 0x40eaa5
push 0xea60
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40ea3e
push dword [ebx]
push eax
push str.TOProxyX__d___s
jmp 0x40ea10
push dword [esi + 0x2c]
call edi
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
push 0x428408
mov byte [ebp - 4], 6
call fcn.0040e69d
test al, al
je 0x40ea84
push dword [esi + 0x4c]
lea edi, [esi + 0x4c]
call fcn.004183bb
test al, al
pop ecx
je 0x40ea7b
mov byte [esi + 0x56], 1
mov bl, 1
jmp 0x40ea99
push dword [edi]
push str.DownloaderNai__s_
jmp 0x40ea8c
push dword [ebp - 0x1c]
push str.BadProxyIn__s_
push dword [ebp + 8]
call sub.MFC42.DLL_CString::Format
add esp, 0xc
xor bl, bl
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4