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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10192f78
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101f62b4]
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 0x100ffe09
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100ffe81
mov esi, dword [0x101fc274]
test esi, esi
je 0x100ffe4d
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x101ace0c
push 0x101ace0c
push str.FileUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x18
xor al, al
jmp 0x10100107
mov eax, dword [0x101fc278]
test eax, eax
je 0x100ffea8
mov esi, dword [eax]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push str.FileUtils
push 0x101ace0c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x32
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x14
xor al, al
jmp 0x10100107
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100ffe8b
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100ffeaf
push 0
mov dl, 1
mov ecx, edi
call fcn.100ffab0
add esp, 4
test al, al
jne 0x100ffeaf
xor al, al
jmp 0x10100107
push edi
lea ecx, [ebp - 0x28]
call fcn.10002700
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.100fd870
push ecx
lea ecx, [ebp - 0x28]
call fcn.100fe260
add esp, 4
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x100ffedd
mov ecx, dword [edi]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100ffee7
mov eax, dword [ebx]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x101000b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100fffa8
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x100fff12
mov ecx, dword [edi]
push ecx
call fcn.101002e0
add esp, 4
test al, al
je 0x100ffffa
mov esi, dword [0x101fc274]
test esi, esi
je 0x100fff57
push str.Trying_to_copy_file_after_setting_permissions
push 0x101ace0c
push 0x101ace0c
push str.FileUtils
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x18
jmp 0x100fff84
mov eax, dword [0x101fc278]
test eax, eax
je 0x100fff84
mov esi, dword [eax]
push str.Trying_to_copy_file_after_setting_permissions
push str.FileUtils
push 0x101ace0c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x1e
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x14
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100fff8e
mov eax, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x100fff96
mov ebx, dword [ebx]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x101000b2
cmp dword [0x101fc274], 0
je 0x1010006b
cmp dword [edi + 0x14], 8
jb 0x100fffbd
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x101fc274]
mov ecx, esi
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x101ace0c
push 0x101ace0c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x1019a4f8]
call esi
add esp, 0x20
xor bl, bl
jmp 0x101000cf
cmp dword [0x101fc274], 0
je 0x10100048
cmp dword [ebx + 0x14], 8
jb 0x1010000b
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x101fc274]
mov ecx, esi
push eax
push ebx
push str.Failed_to_set_permissions_for_path__s._LastError:__d
push 0x101ace0c
push 0x101ace0c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x1019a4f8]
call esi
add esp, 0x20
xor bl, bl
jmp 0x101000cf
mov esi, dword [0x101fc278]
test esi, esi
je 0x101000ae
cmp dword [ebx + 0x14], 8
jb 0x1010005a
mov ebx, dword [ebx]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Failed_to_set_permissions_for_path__s._LastError:__d
jmp 0x1010008c
mov esi, dword [0x101fc278]
test esi, esi
je 0x101000ae
cmp dword [edi + 0x14], 8
jb 0x1010007d
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.FileUtils
push 0x101ace0c
push 0x32
push dword [0x101fc278]
call dword [0x1019a4f8]
call esi
add esp, 0x1c
xor bl, bl
jmp 0x101000cf
mov ecx, edi
call fcn.10100130
cmp dword [edi + 0x14], 8
jb 0x101000c1
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10100105
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x101000fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10100123
push edx
push ecx
call fcn.1015cbd5
add esp, 8
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.1015c875
mov esp, ebp
pop ebp
ret
call fcn.101686f5
int3