Function at 0x412547
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c9fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x130]
call fcn.00402030
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
push str.CSyncEngine::ProcessFontFile__m_strTargetFile___s
push 2
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
push str._fonts
push 0x4767b0
lea eax, [ebp - 0x140]
push eax
call sub.MFC42.DLL_operator_4
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x168], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x168]
push edx
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x13c]
push eax
push str.CSyncEngine::ProcessFontFile__strFontDir___s
push 2
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::operator
push 0x5c
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x4126b3
mov eax, dword [ebp - 0x14]
add eax, 1
push eax
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::Mid
mov dword [ebp - 0x16c], eax
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x170], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x170]
push eax
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x144]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x134]
push ecx
push str.CSyncEngine::ProcessFontFile__strFontFile___s
push 2
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
lea eax, [ebp - 0x134]
push eax
push 0x470d0c
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x148]
push edx
call sub.MFC42.DLL_operator_4
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x178]
push ecx
lea edx, [ebp - 0x14c]
push edx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x138]
push edx
push str.CSyncEngine::ProcessFontFile__strDstFile___s
push 2
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x138]
call fcn.004020c0
push eax
call sub.MFC42.DLL_CFile::GetStatus
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x41286d
mov edx, dword [ebp - 0x138]
push edx
push str.CSyncEngine::ProcessFontFile__Previous_Font__s__is_Already_Exist
push 2
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
lea ecx, [ebp - 0x134]
call fcn.004020c0
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x412807
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
push 0x470d84
push 2
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x14
mov ecx, dword [0x476a9c]
call fcn.004092d8
jmp 0x412828
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
push str.CSyncEngine::ProcessFontFile__AddFontRecource__s__Success._nRet___d
push 2
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x14
mov dword [ebp - 0x150], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x150]
jmp 0x412a98
mov eax, dword [ebp - 0x138]
push eax
push str.CSyncEngine::ProcessFontFile__Font__s__is_not_Exist
push 2
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
lea ecx, [ebp - 0x134]
call fcn.004020c0
push eax
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4128ce
mov edx, dword [ebp - 0x134]
push edx
push str.CSyncEngine::ProcessFontFile__Fail_to_Remove_Previous_Font__s__Reource
push 2
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
mov ecx, dword [0x476a9c]
call fcn.004092d8
jmp 0x4128eb
mov ecx, dword [ebp - 0x134]
push ecx
push str.CSyncEngine::ProcessFontFile__Success_to_Remove_Previous_Font__s__Reource
push 2
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
push 0
lea ecx, [ebp - 0x138]
call fcn.004020c0
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x412988
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x138]
push eax
push str.CSyncEngine::ProcessFontFile__CopyFile__s__Fail__ErrCode___d
push 4
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x14
mov ecx, dword [0x476a9c]
call fcn.004092d8
mov dword [ebp - 0x154], 0xfffffffe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x154]
jmp 0x412a98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x138]
push edx
push str.CSyncEngine::ProcessFontFile__CopyFile__s__Success
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x14
lea ecx, [ebp - 0x134]
call fcn.004020c0
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x412a37
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
push str.CSyncEngine::ProcessFontFile__AddFontRecource__s__Fail__ErrCode___d
push 4
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x14
mov ecx, dword [0x476a9c]
call fcn.004092d8
mov dword [ebp - 0x158], 0xfffffffd
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x158]
jmp 0x412a98
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
push str.CSyncEngine::ProcessFontFile__AddFontRecource__s__Success__nRet___d
push 2
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x14
mov dword [ebp - 0x15c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4