Function at 0x41bc40
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45180f
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x468744]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28c], eax
xor eax, eax
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x288], edx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 4], eax
cmp byte [ecx + 0x40], al
je 0x41bca8
mov dword [ebp + 0x14], eax
mov edi, ebx
mov ecx, 0xbb8
call fcn.00435690
push esi
push str.__Copying_file__s
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0xc
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push 0x20000
push esi
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41bd0a
lea eax, [ebp - 0x284]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x41bd3c
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bf9a
push str.__File_exists__skipping
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 8
xor eax, eax
jmp 0x41c34d
cmp eax, 1
jne 0x41bf9a
mov ecx, esi
call fcn.004246d0
mov ecx, ebx
mov dword [ebp - 0x26c], eax
mov edi, edx
call fcn.004246d0
mov ecx, dword [ebp - 0x26c]
or ecx, edi
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], edx
jne 0x41bf30
or eax, edx
jne 0x41bf30
lea edi, [ebp - 0x294]
mov eax, ebx
call fcn.00424520
lea edx, [ebp - 0x284]
push edx
call fcn.00424630
add esp, 4
push eax
push str.__Source_file_time:__s
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov eax, edi
add esp, 0xc
push eax
call fcn.00424630
add esp, 4
push eax
push str.__Dest_file_time:__s
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0xc
mov ecx, edi
push ecx
lea edx, [ebp - 0x284]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
dec eax
neg eax
sbb eax, eax
inc eax
test eax, eax
jne 0x41bf9a
push str.__File_skipped__destination_file_is_same_or_newer
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x41bf29
mov eax, 0x458b08
lea ecx, [ebp - 0x238]
call fcn.00406670
push eax
mov eax, ebx
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.00421fc0
add esp, 4
mov ecx, eax
lea ebx, [ebp - 0x27c]
mov byte [ebp - 4], 2
call fcn.0040d610
lea esi, [ebp - 0x254]
call fcn.0042dc30
lea esi, [ebp - 0x238]
mov byte [ebp - 4], 0
call fcn.0042dc30
mov eax, str.usequence
lea ecx, [ebp - 0x238]
call fcn.00406670
push eax
mov eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 3
call fcn.00421fc0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040d610
lea esi, [ebp - 0x254]
call fcn.0042dc30
lea esi, [ebp - 0x238]
mov byte [ebp - 4], 0
call fcn.0042dc30
mov eax, str.group
lea ecx, [ebp - 0x238]
call fcn.00406670
push eax
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 5
call fcn.00421fc0
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.0040d610
lea esi, [ebp - 0x254]
call fcn.0042dc30
lea esi, [ebp - 0x238]
mov byte [ebp - 4], 0
call fcn.0042dc30
mov ecx, dword [ebp - 0x258]
push ecx
mov edx, ebx
mov ecx, str.File
call fcn.0041c370
mov esi, dword [ebp - 0x27c]
test esi, esi
je 0x41bf29
mov edi, dword [ebp - 0x278]
mov eax, esi
call fcn.0040d800
push esi
call fcn.00439b10
add esp, 4
xor eax, eax
jmp 0x41c34d
mov eax, dword [ebp - 0x26c]
push edi
push eax
call fcn.004245c0
push eax
push str.__Source_version:__s
push 0x4699d4
xor eax, eax
call fcn.0042d020
mov ecx, dword [ebp - 0x260]
mov edx, dword [ebp - 0x264]
add esp, 0x14
push ecx
push edx
call fcn.004245c0
push eax
push str.__Dest_version:__s
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0x14
cmp dword [ebp - 0x260], edi
jl 0x41bf9a
jg 0x41bdec
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x264], eax
jae 0x41bdec
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41bfd0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41bfd0
push str.__Destination_file_is_read_only__clearing_attributes
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 8
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x260], 0
lea ebx, [ebx]
push 0
push ebx
push esi
mov dword [ebp - 0x268], 0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41c0d9
mov edx, dword [ebp - 0x258]
cmp byte [edx + 0x40], al
jne 0x41c0d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
sub eax, 2
mov dword [ebp - 0x268], edi
je 0x41c047
dec eax
je 0x41c069
sub eax, 0x1d
je 0x41c09e
push esi
push edi
push str.__Copy_file_error__0X_X__on_source___s._Trying_again.
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 0x10
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x41c0e6
mov eax, dword [ebp - 0x260]
mov ecx, eax
inc eax
mov dword [ebp - 0x260], eax
cmp ecx, 3
jl 0x41bfe0
jmp 0x41c0e6
push ebx
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0043a483
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
jmp 0x41c04f
push str.__File_in_use__setting_copy_on_boot
push 0x4699d4
xor eax, eax
call fcn.0042d020
add esp, 8
push ebx
lea edx, [ebp - 0x284]
mov ecx, esi
call fcn.0041bac0
mov edx, dword [ebp - 0x258]
mov dword [edx + 0x38], 1
mov dword [ebp - 0x268], 0
jmp 0x41c0e6
lea edi, [ebp - 0x284]
mov eax, ebx
call fcn.00424570
cmp dword [ebp - 0x260], 5
jne 0x41c107
push esi
push str.Copy_file_error_on_source___s__aborting
push 0x4699d4
mov eax, 2
call fcn.0042d020
add esp, 0xc
cmp dword [ebp - 0x268], 0
jne 0x41c347
cmp dword [ebp + 0x14], 0
je 0x41c347
xor eax, eax
mov word [ebp - 0x238], ax
push 5
mov eax, 0x458b08
lea esi, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
call fcn.00406580
mov ecx, esi
push ecx
mov eax, ebx
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 7
call fcn.00421fc0
add esp, 4
mov ecx, eax
lea ebx, [ebp - 0x27c]
mov byte [ebp - 4], 8
call fcn.0040d610
mov esi, 8
cmp dword [ebp - 0x240], esi
jb 0x41c191
mov edx, dword [ebp - 0x254]
push edx
call fcn.00439b10
add esp, 4
xor ebx, ebx
xor eax, eax
mov edi, 7
mov byte [ebp - 4], bl
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], ax
cmp dword [ebp - 0x224], esi
jb 0x41c1c7
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00439b10
add esp, 4
xor edx, edx
push 0xa
mov eax, str.usequence
lea esi, [ebp - 0x238]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
call fcn.00406580
mov eax, esi
push eax
mov eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 9
call fcn.00421fc0
add esp, 4
mov ecx, eax
lea ebx, [ebp - 0x27c]
mov byte [ebp - 4], 0xa
call fcn.0040d610
mov esi, 8
cmp dword [ebp - 0x240], esi
jb 0x41c236
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.00439b10
add esp, 4
xor ebx, ebx
xor edx, edx
mov edi, 7
mov byte [ebp - 4], bl
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], dx
cmp dword [ebp - 0x224], esi
jb 0x41c26c
mov eax, dword [ebp - 0x238]
push eax
call fcn.00439b10
add esp, 4
xor ecx, ecx
push 6
mov eax, str.group
lea esi, [ebp - 0x238]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], cx
call fcn.00406580
mov eax, dword [ebp - 0x288]
mov edx, esi
push edx
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0xb
call fcn.00421fc0
add esp, 4
mov ecx, eax
lea ebx, [ebp - 0x27c]
mov byte [ebp - 4], 0xc
call fcn.0040d610
mov esi, 8
cmp dword [ebp - 0x240], esi
jb 0x41c2db
mov eax, dword [ebp - 0x254]
push eax
call fcn.00439b10
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov byte [ebp - 4], bl
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], cx
cmp dword [ebp - 0x224], esi
jb 0x41c310
mov edx, dword [ebp - 0x238]
push edx
call fcn.00439b10
add esp, 4
mov eax, dword [ebp - 0x258]
push eax
lea edx, [ebp - 0x27c]
mov ecx, str.File
call fcn.0041c370
mov esi, dword [ebp - 0x27c]
cmp esi, ebx
je 0x41c347
mov edi, dword [ebp - 0x278]
mov eax, esi
call fcn.0040d800
push esi
call fcn.00439b10
add esp, 4
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00438786
mov esp, ebp
pop ebp
ret 0x14