Function at 0x487d30
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x898
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x487d84
mov edx, dword [ebp + 0xc]
push edx
call fcn.00532e80
add esp, 4
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
jne 0x487d84
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x56b5ec
lea edx, [ebp - 0x408]
push edx
call fcn.00532706
add esp, 0x10
jmp 0x487da0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x56b5f4
lea edx, [ebp - 0x408]
push edx
call fcn.00532706
add esp, 0x10
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x487de1
mov edx, dword [ebp + 0x10]
push edx
call fcn.00532e80
add esp, 4
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
jne 0x487de1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x56b5fc
lea edx, [ebp - 0x750]
push edx
call fcn.00532706
add esp, 0x10
jmp 0x487dfd
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x56b604
lea edx, [ebp - 0x750]
push edx
call fcn.00532706
add esp, 0x10
lea eax, [ebp - 0x898]
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x754], eax
cmp dword [ebp - 0x754], 0xffffffff
jne 0x487e27
xor eax, eax
jmp 0x48806e
mov edx, dword [ebp - 0x754]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x14], 1
jne 0x487ea8
lea eax, [ebp - 0x548]
push eax
lea ecx, [ebp - 0x750]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x754], eax
cmp dword [ebp - 0x754], 0xffffffff
je 0x487ea8
mov edx, dword [ebp - 0x754]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x530]
cmp eax, dword [ebp - 0x880]
jbe 0x487e82
mov eax, 1
jmp 0x48806e
mov ecx, dword [ebp - 0x530]
cmp ecx, dword [ebp - 0x880]
jne 0x487ea8
mov edx, dword [ebp - 0x534]
cmp edx, dword [ebp - 0x884]
jne 0x487ea8
mov eax, 1
jmp 0x48806e
mov eax, dword [0x56df78]
mov dword [0x5f94cc], eax
cmp dword [0x56a5e0], 1
je 0x487ee8
cmp dword [0x56a5e0], 2
je 0x487ee8
cmp dword [0x56a5e0], 3
je 0x487ee8
cmp dword [0x56a5e0], 6
je 0x487ee8
cmp dword [0x56a5e0], 7
je 0x487ee8
cmp dword [0x55c710], 1
jne 0x487f06
push 0
lea ecx, [ebp - 0x750]
push ecx
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x54c], eax
jmp 0x487f2b
push 0
push 0
push 0
push 0x487ca0
lea eax, [ebp - 0x750]
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov dword [ebp - 0x54c], eax
cmp dword [ebp - 0x54c], 0
je 0x487f61
lea edx, [ebp - 0x408]
push edx
push 5
call fcn.00436500
add esp, 8
push 0x80
lea eax, [ebp - 0x750]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
jmp 0x48806e
push 0x80
lea ecx, [ebp - 0x750]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [0x56a5e0], 1
je 0x487fa9
cmp dword [0x56a5e0], 2
je 0x487fa9
cmp dword [0x56a5e0], 3
je 0x487fa9
cmp dword [0x56a5e0], 6
je 0x487fa9
cmp dword [0x56a5e0], 7
je 0x487fa9
cmp dword [0x55c710], 1
jne 0x487fc7
push 0
lea edx, [ebp - 0x750]
push edx
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x54c], eax
jmp 0x487fec
push 0
push 0
push 0
push 0x487ca0
lea ecx, [ebp - 0x750]
push ecx
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov dword [ebp - 0x54c], eax
cmp dword [ebp - 0x54c], 0
je 0x48801f
lea eax, [ebp - 0x408]
push eax
push 5
call fcn.00436500
add esp, 8
push 0x80
lea ecx, [ebp - 0x750]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
jmp 0x48806e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x750]
push eax
lea ecx, [ebp - 0x408]
push ecx
push str.source:_s__destin:_s__error_d_
lea edx, [ebp - 0x208]
push edx
call fcn.00532706
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
push 0x5f9d14
push 0x56b62c
push str.MSG_Message_ErrorCopyingFiles
call fcn.00422b80
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret