Function at 0x406410
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44038b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x56211c]
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 dword [ebp - 0xd4], ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esi + 0x10], 0
mov dword [ebp - 0xd0], eax
je 0x406575
cmp dword [esi + 0x14], 8
jb 0x40646d
mov eax, dword [esi]
jmp 0x40646f
mov eax, esi
push eax
call ebx
cmp eax, 0xffffffff
je 0x406482
shr eax, 4
and al, 1
jne 0x406575
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x4064f6
cmp dword [edi + 0x14], 8
jb 0x406493
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40649b
mov esi, dword [esi]
mov eax, dword [ebp + 0x10]
movzx eax, al
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406817
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0xc5]
push eax
push str.FileSystem.cpp_701__:_System::FileSystem::copy
call fcn.00408ab0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x88]
call fcn.0041f420
push 0x55e414
lea eax, [ebp - 0x88]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], 2
cmp dword [edi + 0x14], 8
jb 0x406515
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40651d
mov esi, dword [esi]
push 0
push 0
lea eax, [ebp - 0xcc]
push eax
push 0x404780
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x40655e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0xc5]
push eax
push str.FileSystem.cpp_715__:_System::FileSystem::copy
call fcn.00408ab0
mov byte [ebp - 4], 3
jmp 0x4064d5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.004046e0
jmp 0x406817
cmp dword [edi + 0x10], 0
jne 0x40657f
mov al, 1
jmp 0x40659c
cmp dword [edi + 0x14], 8
jb 0x406589
mov eax, dword [edi]
jmp 0x40658b
mov eax, edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x406597
xor al, al
jmp 0x40659c
shr eax, 4
and al, 1
test al, al
jne 0x40669e
push str.FileSystem.cpp_828__:_System::FileSystem::copy
lea ecx, [ebp - 0x28]
call fcn.00422c20
mov dword [ebp - 4], 4
push str.:_Throwing_System::Path::Exception__Destination_is_not_a_directory___dstPath__r_n
push str.FileSystem.cpp_828__:_System::FileSystem::copy
push str._s_s
push eax
call fcn.00422d30
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x4065f9
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [ebp - 0xc5]
mov dword [ebp - 0x14], 0xf
push eax
push str.Destination_is_not_a_directory
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00408ab0
mov dword [ebp - 4], 7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x84]
call fcn.004093d0
mov byte [ebp - 4], 0xa
push str.FileSystem.cpp_828__:_System::FileSystem::copy
push eax
call fcn.0040d060
add esp, 8
lea ecx, [ebp - 0xc4]
push eax
call fcn.00403a30
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xc4], vtable.System::BasicPath_class_System::Win32::PathTraits_::Exception.0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xc4]
push 0x55e424
jmp 0x4064f0
push 0x2c4
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0xd8], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x4066cf
push dword [ebp - 0xd0]
mov ecx, eax
push esi
call fcn.0041ddb0
mov ebx, eax
jmp 0x4066d1
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0xcc]
call fcn.0041e880
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebx + 0x38]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
cmp ecx, dword [eax + 0x38]
je 0x4067e8
lea eax, [ebp - 0x48]
mov dword [ebp - 0xdc], eax
jmp 0x406720
mov dword [ebp - 0xd0], 0
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0xc5]
push eax
push 0x44faf4
lea ecx, [ebp - 0x28]
call fcn.00408e30
mov esi, eax
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0041eb50
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, dword [ebp - 0xd4]
push esi
push dword [ebp + 0x10]
push edi
push eax
call fcn.00406410
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x34], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40678b
push dword [ebp - 0x48]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x14], 8
jb 0x4067b1
push dword [ebp - 0x28]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x10
mov ecx, ebx
mov dword [ebp - 0xd0], eax
call fcn.0041e3e0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebx + 0x38]
cmp ecx, dword [eax + 0x38]
jne 0x406720
mov byte [ebp - 4], 0xf
mov edi, dword [ebp - 0xcc]
test edi, edi
je 0x406803
mov ecx, edi
call fcn.0041e310
push edi
call esi
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.0041e310
push ebx
call esi
add esp, 4
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.0043babe
mov esp, ebp
pop ebp
ret 0x14