Function at 0x653f80
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x742878
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x653fb9
mov eax, dword [ebx]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x654021
mov eax, dword [0x87d0dc]
test eax, eax
je 0x653ff6
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x32
call eax
add esp, 0x18
xor al, al
jmp 0x6542dc
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x654049
mov eax, dword [ecx]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push str.FileUtils
push 0x799430
push 0x32
push ecx
call dword [eax + 0x34]
add esp, 0x14
xor al, al
jmp 0x6542dc
cmp byte [ebp + 8], 0
je 0x654050
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x654031
mov eax, dword [edi]
push eax
call esi
test eax, eax
je 0x654050
push ecx
mov dl, 1
mov ecx, edi
call fcn.00653dc0
add esp, 4
test al, al
jne 0x654050
xor al, al
jmp 0x6542dc
push edi
lea ecx, [ebp - 0x28]
call fcn.00449230
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00651ab0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00652e10
add esp, 4
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x65407e
mov ecx, dword [edi]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x654088
mov eax, dword [ebx]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x654278
cmp byte [ebp + 0xc], al
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x654192
call eax
cmp eax, 5
jne 0x65418d
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x30], edi
jb 0x6540c1
mov eax, dword [edi]
mov dword [ebp - 0x30], eax
push 0x44
push 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x6541d6
lea eax, [ebp - 0x2c]
push eax
push esi
push 0
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x654109
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
sub esp, 0x14
push esi
call fcn.0054f900
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x34], 0
jne 0x6541d6
mov eax, dword [0x87d0dc]
test eax, eax
je 0x654145
push str.Trying_to_copy_file_after_setting_permissions
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x1e
call eax
add esp, 0x18
jmp 0x654169
mov ecx, dword [0x87d0e0]
test ecx, ecx
je 0x654169
mov eax, dword [ecx]
push str.Trying_to_copy_file_after_setting_permissions
push str.FileUtils
push 0x799430
push 0x1e
push ecx
call dword [eax + 0x34]
add esp, 0x14
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x654173
mov eax, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x65417b
mov ebx, dword [ebx]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x654278
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x87d0dc], 0
je 0x65423f
cmp dword [edi + 0x14], 8
jb 0x6541a7
mov edi, dword [edi]
call eax
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x87d0dc]
add esp, 0x20
xor bl, bl
jmp 0x6542d2
cmp dword [0x87d0dc], 0
je 0x65421b
cmp dword [ebx + 0x14], 8
jb 0x6541e7
mov ebx, dword [ebx]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push ebx
push str.Failed_to_set_permissions_for_path__s._LastError:__d
push 0x799430
push 0x799430
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x87d0dc]
add esp, 0x20
xor bl, bl
jmp 0x6542d2
mov esi, dword [0x87d0e0]
test esi, esi
je 0x654274
cmp dword [ebx + 0x14], 8
jb 0x65422d
mov ebx, dword [ebx]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi]
call eax
push eax
push ebx
push str.Failed_to_set_permissions_for_path__s._LastError:__d
jmp 0x65425c
mov esi, dword [0x87d0e0]
test esi, esi
je 0x654274
cmp dword [edi + 0x14], 8
jb 0x654251
mov edi, dword [edi]
mov esi, dword [esi]
call eax
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push str.FileUtils
push 0x799430
push 0x32
push dword [0x87d0e0]
call dword [esi + 0x34]
add esp, 0x1c
xor bl, bl
jmp 0x6542d2
cmp byte [ebp + 0x10], 0
je 0x6542bc
cmp dword [edi + 0x10], 0
je 0x6542bc
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x65428e
mov eax, dword [edi]
push 0
push 0xa0000080
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x6542bc
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x14], 8
jb 0x6542c4
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00426ce0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret