Function at 0x45d0a0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1804]
mov eax, 0x1804
call fcn.004ab4d0
push 0xffffffffffffffff
push 0x4c9a20
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x1800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x180c]
mov ebx, dword [ebp + 0x1810]
mov eax, dword [ebp + 0x1814]
mov dword [ebp - 0x18], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x45d493
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d107
sub eax, edx
sar eax, 1
je 0x45d493
test ebx, ebx
je 0x45d493
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d130
sub eax, edx
sar eax, 1
je 0x45d493
push ebx
push esi
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x45d16e
push ebx
push esi
push str.Copy_File____s____s_____Same_File
mov ecx, 0x527b30
call fcn.00449000
add esp, 0xc
xor eax, eax
jmp 0x45d4d8
push 0x800
push 0
lea ecx, [ebp + 0x800]
push ecx
call fcn.004ab450
push 0x800
push 0
lea edx, [ebp + 0x1000]
push edx
call fcn.004ab450
mov ecx, 0x4dbd14
lea edx, [ebp + 0x800]
call fcn.00442540
mov ecx, 0x4dbd14
lea edx, [ebp + 0x800]
call fcn.004426f0
mov ecx, 0x4dbd14
lea edx, [ebp + 0x1000]
call fcn.00442540
mov ecx, 0x4dbd14
lea edx, [ebp + 0x1000]
call fcn.004426f0
push esi
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.004a9ecb
push ebx
push 0x400
lea ecx, [ebp + 0x1000]
push ecx
call fcn.004a9ecb
add esp, 0x30
mov esi, dword [ebp + 0x181c]
push esi
lea edx, [ebp + 0x1000]
push edx
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x45d25e
test esi, esi
je 0x45d478
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x45d478
mov eax, dword [ebp + 0x1818]
cmp eax, 1
je 0x45d241
cmp eax, 2
je 0x45d241
xor al, al
jmp 0x45d246
mov eax, 1
push 1
push eax
push 0
lea edx, [ebp + 0x1000]
call fcn.004576a0
add esp, 0xc
jmp 0x45d478
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, dword [ebp + 0x1820]
jne 0x45d2a4
lea ecx, [ebp + 0x1000]
push ecx
lea edx, [ebp + 0x800]
push edx
push str.Copy_File____s____s_
mov ecx, edi
mov edx, 0x527b30
call fcn.00448ec0
add esp, 0xc
mov dword [ebp - 0x20], edi
push 0x5042a0
lea eax, [ebp - 0x20]
push eax
call fcn.004abd6e
lea eax, [edi - 3]
cmp eax, 0x4d
ja case.0x45d2b7.4
movzx ecx, byte [eax + 0x45d514]
jmp dword [ecx*4 + 0x45d500]
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp + 0x800]
call fcn.0045e9a0
add esp, 4
test eax, eax
je 0x45d2eb
lea esi, [ebp - 0x58]
lea ecx, [ebp + 0x1000]
call fcn.0045e810
test eax, eax
je 0x45d2eb
cmp eax, 3
jne 0x45d301
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp + 0x800]
push ecx
call fcn.0045e860
add esp, 8
cmp eax, 2
jne 0x45d346
push 0x80
lea edx, [ebp + 0x1000]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push 0
mov eax, dword [ebp + 0x1818]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp + 0x1000]
push edx
lea eax, [ebp + 0x800]
push eax
call fcn.0045d0a0
add esp, 0x18
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x45d474
lea ecx, [ebp + 0x1000]
push ecx
lea edx, [ebp + 0x800]
push edx
push str.Copy_File____s____s_____Destination_File_is_same_or_newer_then_Source_file
mov ecx, 0x527b30
call fcn.00449000
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x14], edi
jmp 0x45d478
push 0x80
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push 0
mov ecx, dword [ebp + 0x1818]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp + 0x800]
push ecx
call fcn.0045d0a0
add esp, 0x18
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x45d474
lea edx, [ebp + 0x1000]
lea ecx, [ebp + 0x800]
call fcn.0045e070
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x45d474
push 0x800
push 0
lea edx, [ebp]
push edx
call fcn.004ab450
push 0x5c
lea eax, [ebp + 0x1000]
push eax
call fcn.004a9ce4
add esp, 0x14
test eax, eax
je 0x45d474
lea ecx, [ebp + 0x1000]
sub eax, ecx
sar eax, 1
push eax
mov edx, ecx
push edx
push 0x400
lea eax, [ebp]
push eax
call fcn.004a9be0
mov esi, dword [ebp + 0x1818]
push esi
mov ebx, dword [ebp - 0x18]
push ebx
lea edx, [ebp]
call fcn.0045e440
add esp, 0x18
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x45d48a
push 3
push 1
push esi
push ebx
lea ecx, [ebp + 0x1000]
push ecx
lea edx, [ebp + 0x800]
push edx
call fcn.0045d0a0
add esp, 0x18
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x45d474
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp + 0x800]
push ecx
push str.Copy_File____s____s_
mov ecx, edi
mov edx, 0x527b30
call fcn.00448ec0
add esp, 0xc
test edi, edi
jne 0x45d48a
push 0x80
lea edx, [ebp + 0x1000]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
jmp 0x45d4d6
mov eax, 0x57
jmp 0x45d4d8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1800]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x1804
mov esp, ebp
pop ebp
ret