Function at 0x40d0f0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e740
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1854
call fcn.00429090
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp - 0x18], 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 + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1824], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x40d495
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d147
sub eax, edx
sar eax, 1
je 0x40d495
test ebx, ebx
je 0x40d495
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d170
sub eax, edx
sar eax, 1
je 0x40d495
push ebx
push esi
call fcn.004273ec
add esp, 8
test eax, eax
je 0x40d4e6
push 0x800
push 0
lea ecx, [ebp - 0x101c]
push ecx
call fcn.00428ee0
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x81c]
push edx
call fcn.00428ee0
add esp, 0xc
lea ecx, [ebp - 0x101c]
call fcn.0040f080
mov ecx, 0x446288
lea edx, [ebp - 0x101c]
call fcn.0040f230
lea ecx, [ebp - 0x81c]
call fcn.0040f080
mov ecx, 0x446288
lea edx, [ebp - 0x81c]
call fcn.0040f230
push 0x3ff
push esi
push 0x400
lea eax, [ebp - 0x101c]
push eax
call fcn.00426b21
push 0x3ff
push ebx
push 0x400
lea ecx, [ebp - 0x81c]
push ecx
call fcn.00426b21
add esp, 0x20
mov esi, dword [ebp + 0x18]
push esi
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40d275
test esi, esi
je 0x40d47a
mov ecx, dword [ebp - 0x1824]
test ecx, ecx
je 0x40d47a
mov edx, dword [ebp + 0x14]
push edx
push 0
lea edx, [ebp - 0x81c]
call fcn.0040f4e0
add esp, 8
jmp 0x40d47a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x1820], edi
cmp edi, dword [ebp + 0x1c]
jne 0x40d2c1
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x101c]
push ecx
push str.Copy_File____s____s_
mov ecx, edi
mov edx, 0x463520
call fcn.0040be20
add esp, 0xc
mov dword [ebp - 0x182c], edi
push 0x44d030
lea edx, [ebp - 0x182c]
push edx
call fcn.0042903a
lea eax, [edi - 3]
cmp eax, 0x4d
ja case.0x40d2d4.4
movzx eax, byte [eax + 0x40d518]
jmp dword [eax*4 + 0x40d504]
lea ecx, [ebp - 0x1864]
push ecx
lea ecx, [ebp - 0x101c]
call fcn.0040eab0
add esp, 4
test eax, eax
je 0x40d30e
lea esi, [ebp - 0x1864]
lea ecx, [ebp - 0x81c]
call fcn.0040e920
test eax, eax
je 0x40d30e
cmp eax, 3
jne 0x40d324
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x101c]
push eax
call fcn.0040e970
add esp, 8
mov esi, dword [ebp + 0x20]
test esi, esi
jne 0x40d33d
cmp eax, 2
je 0x40d33d
xor edi, edi
mov dword [ebp - 0x1820], edi
jmp 0x40d47a
push 0x80
lea ecx, [ebp - 0x81c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push edi
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x1824]
push eax
lea ecx, [ebp - 0x81c]
push ecx
lea edx, [ebp - 0x101c]
push edx
call fcn.0040d0f0
add esp, 0x1c
mov edi, eax
mov dword [ebp - 0x1820], edi
jmp 0x40d476
push 0x80
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0x20]
push ecx
jmp 0x40d350
lea edx, [ebp - 0x81c]
lea ecx, [ebp - 0x101c]
call fcn.0040e340
mov edi, eax
mov dword [ebp - 0x1820], edi
jmp 0x40d476
push 0x800
push 0
lea eax, [ebp - 0x181c]
push eax
call fcn.00428ee0
add esp, 0xc
push 0x5c
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004275d1
add esp, 8
test eax, eax
je 0x40d476
lea edx, [ebp - 0x81c]
sub eax, edx
sar eax, 1
push eax
mov eax, edx
push eax
push 0x400
lea ecx, [ebp - 0x181c]
push ecx
call fcn.00426b21
mov esi, dword [ebp + 0x14]
push esi
mov ebx, dword [ebp - 0x1824]
push ebx
lea edx, [ebp - 0x181c]
call fcn.0040e6f0
add esp, 0x18
mov edi, eax
mov dword [ebp - 0x1820], edi
test edi, edi
jne 0x40d48c
mov edx, dword [ebp + 0x20]
push edx
push 3
push 1
push esi
push ebx
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x101c]
push ecx
call fcn.0040d0f0
add esp, 0x1c
mov edi, eax
mov dword [ebp - 0x1820], edi
jmp 0x40d476
lea edx, [ebp - 0x81c]
push edx
lea eax, [ebp - 0x101c]
push eax
push str.Copy_File____s____s_
mov ecx, edi
mov edx, 0x463520
call fcn.0040be20
add esp, 0xc
test edi, edi
jne 0x40d48c
push 0x80
lea ecx, [ebp - 0x81c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], 0xffffffff
jmp 0x40d4e4
mov eax, 0x57
jmp 0x40d4e6
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 - 0x18]
xor ecx, ebp
call fcn.0042683e
mov esp, ebp
pop ebp
ret