Function at 0x449fd9
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f371
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push edi
mov dword [ebp - 0x470], ecx
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
push 1
push 0x4734ac
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x44a063
mov ecx, dword [str.XStudioSyncVTRun1.exe]
push ecx
push 0x476aa0
push 0x4734b0
lea edx, [ebp - 0x134]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x44a082
mov eax, dword [str.XStudioSyncVTRun2.exe]
push eax
push 0x476aa0
push 0x4734b8
lea ecx, [ebp - 0x134]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [ebp - 0x470]
mov eax, dword [edx + 0xd4]
push eax
push 0x476aa0
push 0x4734c0
lea ecx, [ebp - 0x130]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x128]
call fcn.00402030
lea edx, [ebp - 0x128]
push edx
lea ecx, [ebp - 0x130]
call fcn.004020c0
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x44a14a
lea ecx, [ebp - 0x24c]
call fcn.00402030
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x134]
call fcn.004020c0
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x44a14a
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 0x240]
jne 0x44a14a
push ecx
mov ecx, esp
mov dword [ebp - 0x45c], esp
lea edx, [ebp - 0x248]
push edx
call fcn.00415f20
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x124]
call fcn.00415f60
mov ecx, eax
call fcn.00415ed0
push eax
call sub.MSVCRT.dll_abs
add esp, 4
cmp eax, 0x3c
jg 0x44a14a
mov dword [ebp - 0x12c], 1
cmp dword [ebp - 0x12c], 0
jne 0x44a179
push 0
lea ecx, [ebp - 0x134]
call fcn.004020c0
push eax
lea ecx, [ebp - 0x130]
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x44a2e2
lea ecx, [ebp - 0x454]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
mov byte [ebp - 0x44c], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x44b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x458], eax
push 0
push 0x200
lea ecx, [ebp - 0x44c]
push ecx
push 0x400
mov edx, dword [ebp - 0x458]
push edx
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jne 0x44a20d
mov eax, dword [ebp - 0x458]
push eax
push 0x4734c8
lea ecx, [ebp - 0x454]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x44a23d
mov edx, dword [ebp - 0x450]
mov byte [ebp + edx - 0x44c], 0
lea eax, [ebp - 0x44c]
push eax
mov ecx, dword [ebp - 0x458]
push ecx
push 0x473528
lea edx, [ebp - 0x454]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
cmp dword [ebp - 0x458], 2
jne 0x44a28b
mov dword [ebp - 0x464], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x454]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x464]
jmp 0x44a355
push 0
push 0
lea ecx, [ebp - 0x454]
call fcn.004020c0
push eax
call sub.MFC42.DLL_AfxMessageBox_1
mov dword [ebp - 0x468], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x454]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x468]
jmp 0x44a355
mov ecx, dword [ebp - 0x470]
call fcn.0044a366
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 5
jle 0x44a30e
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x134]
push ecx
mov ecx, dword [ebp - 0x470]
call fcn.0044a445
jmp 0x44a324
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x470]
call fcn.0044a594
mov dword [ebp - 0x46c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x46c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4