Function at 0x411c20
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x42a501
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x33c], ebx
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [esp + 0x344]
mov byte [esp + 0x33c], 1
mov esi, 0x437798
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x411c96
cmp cl, bl
je 0x411c92
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x411c96
add eax, 2
add esi, 2
cmp cl, bl
jne 0x411c72
xor eax, eax
jmp 0x411c9b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x411cb6
mov eax, dword [str.XSyncExeRun.exe]
lea ecx, [esp + 0x10]
push eax
push 0x440fd8
push str._s_s
push ecx
jmp 0x411ccc
mov edx, dword [str.XSyncExeNew.exe]
lea eax, [esp + 0x10]
push edx
push 0x440fd8
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [0x436e54]
add esp, 0x10
lea edx, [esp + 0x18]
push ecx
push 0x440fd8
push str._s_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.004122a0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x21c]
push ecx
push edx
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x411d6f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x411d6f
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x411d6f
push ecx
mov ecx, dword [esp + 0x24]
mov eax, esp
mov dword [esp + 0x18], esp
lea edx, [esp + 0x18]
mov dword [eax], ecx
push edx
lea ecx, [esp + 0x228]
call fcn.0040c350
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3c
jle 0x411e7a
push ebx
push ebx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, ebx
jne 0x411e7a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0x33c], 2
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
lea eax, [esp + 0x20]
push 0x200
push eax
push 0x400
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp eax, ebx
jne 0x411df7
push esi
lea ecx, [esp + 0x18]
push 0x439704
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x411e13
lea edx, [esp + 0x1c]
mov byte [esp + eax + 0x1c], bl
push edx
push esi
lea eax, [esp + 0x1c]
push 0x43969c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
cmp esi, 2
jne 0x411e55
lea ecx, [esp + 0x14]
mov byte [esp + 0x33c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x33c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x411ed9
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x33c], 1
call sub.MFC42.DLL_CString::CString
jmp 0x411eb3
mov ecx, edi
call fcn.0040ef20
cmp eax, 5
jle 0x411e9b
push ebp
push ebx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, edi
call fcn.00411f00
jmp 0x411eb3
push 0x436d94
push ebp
push ebx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, edi
call fcn.00412090
lea ecx, [esp + 0x18]
mov byte [esp + 0x33c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x330
ret 4