Function at 0x4cf438
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x654b34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
push 8
pop esi
cmp dword [edi + 0x14], esi
jb 0x4cf460
mov eax, dword [edi]
mov ecx, ebx
cmp dword [ebx + 0x14], esi
jb 0x4cf469
mov ecx, dword [ebx]
push eax
push ecx
push str.filesystem__ForceCopyFile__from_s__to_s
call fcn.004d159b
push edi
push ebx
call fcn.004d0843
add esp, 0x14
test eax, eax
je 0x4cf49f
cmp dword [ebx + 0x14], esi
jb 0x4cf48a
mov ebx, dword [ebx]
push ebx
push str.filesystem__ForceCopyFile_file_path_are_same:_s
call fcn.004d15b8
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4cf66b
mov eax, edi
cmp dword [edi + 0x14], esi
jb 0x4cf4a8
mov eax, dword [edi]
mov ecx, ebx
cmp dword [ebx + 0x14], esi
jb 0x4cf4b1
mov ecx, dword [ebx]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
test esi, esi
jne 0x4cf669
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x4cf500
cmp eax, 5
je 0x4cf500
cmp dword [edi + 0x14], 8
jb 0x4cf4dd
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x4cf4e5
mov ebx, dword [ebx]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.filesystem__ForceCopyFile_failed_error_d_from_s__target_s
call fcn.004d157e
add esp, 0x10
jmp 0x4cf669
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4cf50a
mov eax, dword [edi]
push eax
push str.filesystem__ForceCopyFile_first_try_failed__try_rename_existing_from_s
call fcn.004d15b8
pop ecx
xor esi, esi
pop ecx
mov dword [ebp - 0x210], esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056dc10
add esp, 0xc
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4cf53f
mov eax, dword [edi]
push esi
push eax
push str._s._d.tmp
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.0046640b
add esp, 0x14
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4cf564
mov eax, dword [edi]
push 1
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
mov dword [ebp - 0x218], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], 8
mov ecx, edi
mov dword [ebp - 0x214], eax
jb 0x4cf592
mov ecx, dword [edi]
lea eax, [ebp - 0x20c]
push eax
push ecx
push esi
push str.filesystem__ForceCopyFile_rename_result_d_from_s_to_s
call fcn.004d159b
add esp, 0x10
test esi, esi
jne 0x4cf622
cmp dword [ebp - 0x214], 5
jne 0x4cf5e5
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00417c00
lea eax, [ebp - 0x230]
push eax
call fcn.004d03a7
pop ecx
lea ecx, [ebp - 0x230]
mov esi, eax
call fcn.00417a51
test esi, esi
je 0x4cf5fb
mov esi, dword [ebp - 0x210]
inc esi
mov dword [ebp - 0x210], esi
cmp esi, 0x64
jl 0x4cf51f
cmp dword [edi + 0x14], 8
jb 0x4cf603
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x4cf60b
mov ebx, dword [ebx]
push edi
push ebx
push str.filesystem__ForceCopyFile_rename_failed_copy_failed_from_s_to_s
call fcn.004d157e
mov esi, dword [ebp - 0x218]
add esp, 0xc
jmp 0x4cf669
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4cf62c
mov ecx, dword [edi]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4cf636
mov eax, dword [ebx]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [edi + 0x14], 8
mov esi, eax
jb 0x4cf64a
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x4cf652
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push ebx
push esi
push str.filesystem__ForceCopyFile_final_result_d_from_s_to_s_error_d
call fcn.004d15b8
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056ac5f
leave
ret