Function at 0x419a40
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x42adcf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x150], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 1
call sub.MFC42.DLL_CString::CString_2
push 0x440b68
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 2
call fcn.004284f2
push 0x440b68
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 3
call fcn.004284f2
mov eax, dword [esp + 0x158]
push 0
mov byte [esp + 0x154], 4
lea edi, [eax + 0x14]
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::ProcessFontFile__m_strTargetFile___s
push 2
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
mov eax, dword [esi + 0x94]
add esp, 0x10
add eax, 0x19c
lea ecx, [esp + 0x24]
push str._fonts
push eax
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x150], 4
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::ProcessFontFile__strFontDir___s
push 2
mov eax, dword [edx + 0xd0]
push eax
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x10]
push edi
call sub.MFC42.DLL_CString::operator
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jl 0x419ba5
inc eax
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x150], 4
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jle 0x419c02
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x150], 4
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::ProcessFontFile__strFontFile___s
push 2
mov eax, dword [edx + 0xd0]
push eax
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push 0x435084
push ecx
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
mov bl, 8
push eax
push edx
mov byte [esp + 0x15c], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x150], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x150], 4
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x94]
push str.CXSyncExeDlg::ProcessFontFile__strDstFile___s
push 2
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x2c]
push 0x440b68
call fcn.004284f2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push edx
push 0x43cb34
push eax
mov byte [esp + 0x15c], 0xa
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, esi
call fcn.004198e0
lea ecx, [esp + 0x30]
push ecx
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.MFC42.DLL_CFile::GetStatus
cmp eax, 1
push 0
lea ecx, [esp + 0x18]
jne 0x419eb1
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::ProcessFontFile__Previous_Font__s__is_Already_Exist
push 2
mov eax, dword [edx + 0xd0]
push eax
call fcn.00407c90
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
jg 0x419d9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::ProcessFontFile__AddFontRecource__s__Fail__ErrCode___d
push 2
mov eax, dword [edx + 0xd0]
push eax
call fcn.00407c90
mov edx, dword [esi + 0x94]
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edx + 0xd0]
call fcn.00407370
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
jmp 0x41a202
push eax
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x94]
push str.CXSyncExeDlg::ProcessFontFile__AddFontRecource__s__Success._nRet___d
push 2
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
mov ebp, dword [esp + 0x174]
add esp, 0x14
xor edi, edi
mov eax, dword [ebp + 8]
test eax, eax
jle 0x419e10
lea edx, [esp + 0x18]
push edi
push edx
mov ecx, ebp
call fcn.00406600
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x41a202
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x419dd4
push 0
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::ProcessFontFile__Try_SetRegistryValue__s_s_
push 2
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
add esp, 0x10
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 0xa
call fcn.0041a290
mov ecx, dword [esp + 0x160]
push eax
call fcn.0041a290
push eax
push 0x80000002
mov ecx, esi
call fcn.0041ee70
push eax
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::ProcessFontFile__SetRegistryValue__s_s__Success._nRet___d
push 2
mov edx, dword [ecx + 0xd0]
push edx
jmp 0x41a1fa
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x94]
push str.CXSyncExeDlg::ProcessFontFile__Font__s__is_not_Exist
push 2
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
mov edx, dword [esp + 0x20]
add esp, 0x10
push edx
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
test eax, eax
push 0
lea ecx, [esp + 0x14]
jne 0x419f2b
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x94]
push str.CXSyncExeDlg::ProcessFontFile__Fail_to_Remove_Previous_Font__s__Reource
push 2
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
mov eax, dword [esi + 0x94]
add esp, 0x10
lea edx, [esp + 0x18]
mov ecx, dword [eax + 0xd0]
push edx
call fcn.00407370
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
jmp 0x419f4d
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::ProcessFontFile__Success_to_Remove_Previous_Font__s__Reource
push 2
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
add esp, 0x10
mov eax, dword [esp + 0x14]
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x41a01f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x94]
push eax
push ecx
mov eax, dword [edx + 0xd0]
push str.CXSyncExeDlg::ProcessFontFile__CopyFile__s__Fail__ErrCode___d
push 4
push eax
call fcn.00407c90
mov edx, dword [esi + 0x94]
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [edx + 0xd0]
call fcn.00407370
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x150], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffffe
jmp 0x41a26d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x94]
push str.CXSyncExeDlg::ProcessFontFile__CopyFile__s__Success
push 4
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
mov edx, dword [esp + 0x28]
add esp, 0x14
push edx
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
jne 0x41a120
call edi
push eax
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x94]
push str.CXSyncExeDlg::ProcessFontFile__AddFontRecource__s__Fail__ErrCode___d
push 4
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
mov eax, dword [esi + 0x94]
add esp, 0x14
lea edx, [esp + 0x18]
mov ecx, dword [eax + 0xd0]
push edx
call fcn.00407370
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x150], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffffd
jmp 0x41a26d
push eax
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::ProcessFontFile__AddFontRecource__s__Success__nRet___d
push 2
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
mov ebp, dword [esp + 0x174]
add esp, 0x14
xor edi, edi
mov eax, dword [ebp + 8]
test eax, eax
jle 0x41a191
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, ebp
call fcn.00406600
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x41a202
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x41a159
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 0xa
call fcn.0041a290
mov ecx, dword [esp + 0x160]
push eax
call fcn.0041a290
push eax
push 0x80000002
mov ecx, esi
call fcn.0041ee70
push eax
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x94]
push str.CXSyncExeDlg::ProcessFontFile__SetRegistryValue__s_s__Success._nRet___d
push 2
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
add esp, 0x18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x150], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x144
ret 0xc