Function at 0x41e4a0
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a1fa
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4640b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x60], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x68], eax
cmp dword [edi + 0x18], ebx
je 0x41e501
lea eax, [ebx + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445a43
mov esp, ebp
pop ebp
ret 4
call fcn.0040df00
mov ecx, eax
test ecx, ecx
je 0x41eab3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x78], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x41e546
push 0x104
lea ecx, [ebp - 0x78]
call fcn.00409fe0
mov esi, dword [ebp - 0x78]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esi - 8]
mov dword [ebp - 0x6c], eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x41eaa9
cmp eax, dword [esi - 8]
jg 0x41eaa9
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x6c], ecx
jne 0x41e625
push 0x2c
call sub.mfc140u.dll_operator_2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x41e5ae
push 1
mov ecx, ebx
call dword [sym.imp.SystemToolsCPP.dll_public:_void___thiscall_gmg::SystemTools::WinOS::SystemErrorStatusMessage::constructor_enum_gmg::SystemTools::StatusMessage::Severity_]
mov dword [ebx], vtable.gmg::SystemTools::WinOS::SystemErrorStatusMessage.0
jmp 0x41e5b0
xor ebx, ebx
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0
call dword [sym.imp.SystemToolsCPP.dll_public:_class_std::shared_ptr_class_gmg::SystemTools::StatusMessageCollector____thiscall_gmg::SystemTools::TaskFace::GetStatusMessageCollector_void_]
mov edi, dword [eax]
sub esp, 8
mov ecx, esp
mov byte [ebp - 4], 2
push dword [ebp - 0x5c]
mov dword [ecx], 0
push ebx
mov dword [ecx + 4], 0
call fcn.00422310
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x41e7b1
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x41e7b1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x41e7b1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor edi, edi
jmp 0x41ea83
mov ecx, dword [edi + 0x38]
add edi, 0x38
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x104
or eax, edx
jge 0x41e64d
push 0x104
mov ecx, edi
call fcn.00409fe0
mov ecx, dword [edi]
push ecx
push 0
push 0x44fa80
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [edi]
mov dword [ebp - 0x6c], eax
test ecx, ecx
je 0x41e67c
push dword [ecx - 8]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41eaa9
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x41eaa9
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x6c], edx
jne 0x41e70a
push 0x2c
call sub.mfc140u.dll_operator_2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x41e6c0
push 1
mov ecx, ebx
call dword [sym.imp.SystemToolsCPP.dll_public:_void___thiscall_gmg::SystemTools::WinOS::SystemErrorStatusMessage::constructor_enum_gmg::SystemTools::StatusMessage::Severity_]
mov dword [ebx], vtable.gmg::SystemTools::WinOS::SystemErrorStatusMessage.0
jmp 0x41e6c2
xor ebx, ebx
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0
call dword [sym.imp.SystemToolsCPP.dll_public:_class_std::shared_ptr_class_gmg::SystemTools::StatusMessageCollector____thiscall_gmg::SystemTools::TaskFace::GetStatusMessageCollector_void_]
mov edi, dword [eax]
sub esp, 8
mov ecx, esp
mov byte [ebp - 4], 4
push dword [ebp - 0x5c]
mov dword [ecx], 0
push ebx
mov dword [ecx + 4], 0
call fcn.00422310
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x64]
call fcn.00409240
xor edi, edi
jmp 0x41ea83
mov eax, dword [ebp - 0x60]
add eax, 0x10
push 0
push dword [edi]
mov dword [ebp - 0x5c], eax
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41e797
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
cmp eax, 2
je 0x41e797
push 0x2c
call sub.mfc140u.dll_operator_2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 5
test ebx, ebx
je 0x41e75d
push dword [ebp - 0x6c]
mov ecx, ebx
push 1
call dword [sym.imp.SystemToolsCPP.dll_public:_void___thiscall_gmg::SystemTools::WinOS::SystemErrorStatusMessage::constructor_enum_gmg::SystemTools::StatusMessage::Severity__unsigned_long_int_]
mov dword [ebx], vtable.gmg::SystemTools::WinOS::SystemErrorStatusMessage.0
jmp 0x41e75f
xor ebx, ebx
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0
call dword [sym.imp.SystemToolsCPP.dll_public:_class_std::shared_ptr_class_gmg::SystemTools::StatusMessageCollector____thiscall_gmg::SystemTools::TaskFace::GetStatusMessageCollector_void_]
mov edi, dword [eax]
sub esp, 8
mov ecx, esp
mov byte [ebp - 4], 6
push ebx
call fcn.00421ec0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x64]
call fcn.00409240
xor edi, edi
jmp 0x41ea83
push edi
mov edi, dword [ebp - 0x60]
lea ecx, [edi + 0x14]
call fcn.004090e0
push dword [ebp - 0x68]
mov ecx, edi
call fcn.00421770
test eax, eax
jne 0x41e7b8
xor edi, edi
jmp 0x41ea83
mov ecx, edi
call fcn.00423ed0
test eax, eax
jne 0x41ea7e
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
push 0x1c
mov byte [ebp - 4], 7
call sub.mfc140u.dll_operator_2
mov edi, eax
add esp, 4
mov dword [ebp - 0x60], edi
mov byte [ebp - 4], 8
test edi, edi
je 0x41e81f
mov ecx, dword [ebp - 0x5c]
call fcn.00422af0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ea20
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 9
mov ebx, 1
mov ecx, edi
push eax
mov dword [ebp - 0x74], ebx
call dword [sym.imp.SystemToolsCPP.dll_public:_void___thiscall_gmg::SystemTools::StringFormattable::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [edi], vtable.gmg::SystemTools::StringFormattable.0
jmp 0x41e821
xor edi, edi
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xa
call fcn.00421e90
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0xb
call fcn.00422bf0
lea ecx, [ebp - 0x70]
call fcn.00409240
mov dword [ebp - 4], 7
test bl, 1
je 0x41e89a
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffe
mov dword [ebp - 0x74], ebx
cmp edx, 8
jb 0x41e89a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e890
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e890
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
push 0x64
call sub.mfc140u.dll_operator_2
mov edi, eax
add esp, 4
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 0xc
test edi, edi
je 0x41e915
push str.gmg.GMGSharedLegacy.SpotColorDB.OpenDBFailed
lea ecx, [ebp - 0x28]
call fcn.0040ea20
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x40]
or ebx, 0xe
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x74], ebx
push eax
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push 2
call dword [sym.imp.SystemToolsCPP.dll___0LocalizableStatusMessage_SystemTools_gmg__QAE_W4Severity_StatusMessage_12_ABV__basic_string__WU__cha]
mov dword [edi], vtable.gmg::SystemTools::LocalizableStatusMessage.0
jmp 0x41e91c
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 4], 0x12
call dword [sym.imp.SystemToolsCPP.dll_public:_class_std::shared_ptr_class_gmg::SystemTools::StatusMessageCollector____thiscall_gmg::SystemTools::TaskFace::GetStatusMessageCollector_void_]
mov edi, dword [eax]
sub esp, 8
mov ecx, esp
mov dword [ebp - 4], 0x13
push dword [ebp - 0x60]
call fcn.00421e60
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x70]
call fcn.00409240
mov dword [ebp - 4], 0x11
test bl, 8
je 0x41e9b4
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x41e9a0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e996
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e996
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0x10
test bl, 4
je 0x41ea13
mov edx, dword [ebp - 0x44]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x41e9ff
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41e9f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41e9f5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], 7
test bl, 2
je 0x41ea6f
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41ea5b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ea51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41ea51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x84]
call fcn.00422490
xor edi, edi
jmp 0x41ea83
mov edi, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41eaa2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x41e4e3
push 0x80070057
call fcn.0040ea90
push 0x80004005
call fcn.0040ea90
int3