Function at 0x401080
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1804]
mov eax, 0x1804
call fcn.00416960
push 0xffffffffffffffff
push 0x430690
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x43e270]
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 edi, dword [ebp + 0x1810]
mov dword [ebp - 4], 0
test esi, esi
je 0x4013db
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4010e0
sub eax, edx
sar eax, 1
je 0x4013db
test edi, edi
je 0x4013db
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401102
sub eax, edx
sar eax, 1
je 0x4013db
push edi
push esi
call fcn.0040c7e8
add esp, 8
test eax, eax
jne 0x401140
push edi
push esi
push str.Copy_File____s____s_____Same_File
mov ecx, 0x440628
call fcn.00403b70
add esp, 0xc
xor eax, eax
jmp 0x401420
push 0x800
push 0
lea eax, [ebp + 0x800]
push eax
call fcn.0040d9a0
push 0x800
push 0
lea ecx, [ebp + 0x1000]
push ecx
call fcn.0040d9a0
mov ecx, 0x4345d0
lea edx, [ebp + 0x800]
call fcn.0040a150
mov ecx, 0x4345d0
lea edx, [ebp + 0x800]
call fcn.0040a300
mov ecx, 0x4345d0
lea edx, [ebp + 0x1000]
call fcn.0040a150
mov ecx, 0x4345d0
lea edx, [ebp + 0x1000]
call fcn.0040a300
push esi
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.0040ca8c
push edi
push 0x400
lea eax, [ebp + 0x1000]
push eax
call fcn.0040ca8c
add esp, 0x30
mov ecx, dword [ebp + 0x1818]
push ecx
lea edx, [ebp + 0x1000]
push edx
lea eax, [ebp + 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401139
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, dword [ebp + 0x181c]
jne 0x401236
lea ecx, [ebp + 0x1000]
push ecx
lea edx, [ebp + 0x800]
push edx
push str.Copy_File____s____s_
mov ecx, edi
mov edx, 0x440628
call fcn.00403a30
add esp, 0xc
mov dword [ebp - 0x1c], edi
push 0x43b558
lea eax, [ebp - 0x1c]
push eax
call fcn.0040eef8
lea eax, [edi - 3]
cmp eax, 0x4d
ja case.0x401249.4
movzx ecx, byte [eax + 0x40145c]
jmp dword [ecx*4 + 0x401448]
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp + 0x800]
call fcn.00402870
add esp, 4
test eax, eax
je 0x40127d
lea esi, [ebp - 0x54]
lea ecx, [ebp + 0x1000]
call fcn.004026e0
test eax, eax
je 0x40127d
cmp eax, 3
jne 0x401293
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp + 0x800]
push ecx
call fcn.00402730
add esp, 8
cmp eax, 2
jne 0x4012d4
push 0x80
lea edx, [ebp + 0x1000]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push 0
mov eax, dword [ebp + 0x1814]
push eax
lea ecx, [ebp + 0x1000]
push ecx
lea edx, [ebp + 0x800]
push edx
call fcn.00401080
add esp, 0x14
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x4013bc
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp + 0x800]
push ecx
push str.Copy_File____s____s_____Destination_File_is_same_or_newer_then_Source_file
mov ecx, 0x440628
call fcn.00403b70
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x14], edi
jmp 0x4013c0
lea edx, [ebp + 0x1000]
lea ecx, [ebp + 0x800]
call fcn.00401f80
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x4013bc
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.0040d9a0
push 0x5c
lea ecx, [ebp + 0x1000]
push ecx
call fcn.0040c87b
add esp, 0x14
test eax, eax
je 0x4013bc
lea edx, [ebp + 0x1000]
sub eax, edx
sar eax, 1
push eax
mov eax, edx
push eax
push 0x400
lea ecx, [ebp]
push ecx
call fcn.0040cafb
add esp, 0x10
lea edx, [ebp]
call fcn.00402350
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x4013d2
push 3
push 1
mov edx, dword [ebp + 0x1814]
push edx
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp + 0x800]
push ecx
call fcn.00401080
add esp, 0x14
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x4013bc
lea edx, [ebp + 0x1000]
push edx
lea eax, [ebp + 0x800]
push eax
push str.Copy_File____s____s_
mov ecx, edi
mov edx, 0x440628
call fcn.00403a30
add esp, 0xc
test edi, edi
jne 0x4013d2
push 0x80
lea ecx, [ebp + 0x1000]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
jmp 0x40141e
mov eax, 0x57
jmp 0x401420
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.0040c641
add ebp, 0x1804
mov esp, ebp
pop ebp
ret