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

Disassembly:
push 0xffffffffffffffff
push 0x451e5f
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0x29c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2b4]
mov eax, dword [esp + 0x2bc]
mov esi, dword [esp + 0x2ac]
mov ebx, dword [esp + 0x2b0]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2a4], eax
cmp byte [ecx + 0x3c], al
je 0x41d418
mov dword [esp + 0x2b8], eax
mov ecx, 0xbb8
call fcn.00434620
push esi
push str.__Copying_file__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push 0x20000
push esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41d472
lea eax, [esp + 0x34]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 2
jne 0x41d4c7
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d6f0
push str.__File_exists__skipping
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov eax, dword [esp + 0x30]
add esp, 8
test eax, eax
je 0x41d4c0
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
push ecx
call fcn.00411400
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call fcn.00439059
add esp, 4
xor eax, eax
jmp 0x41da0a
cmp ebp, 1
jne 0x41d6f0
mov ecx, esi
call fcn.00426300
mov ecx, ebx
mov ebp, eax
mov edi, edx
call fcn.00426300
mov ecx, ebp
or ecx, edi
mov dword [esp + 0x3c], eax
mov esi, edx
jne 0x41d69c
or eax, esi
jne 0x41d69c
lea edi, [esp + 0x84]
mov eax, ebx
call fcn.00426100
lea eax, [esp + 0x34]
call fcn.00426270
push eax
push str.__Source_file_time:__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
mov eax, edi
call fcn.00426270
push eax
push str.__Dest_file_time:__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0xc
mov edx, edi
push edx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
test eax, eax
jne 0x41d6ec
push str.__File_skipped__destination_file_is_same_or_newer
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 8
cmp dword [esp + 0x2b8], 0
je 0x41d68c
mov edx, 0x458908
lea eax, [esp + 0x48]
call fcn.00402b10
push eax
lea esi, [esp + 0x6c]
mov byte [esp + 0x2a8], 1
call fcn.004105f0
add esp, 4
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0x2a8], 2
call fcn.0040d140
lea esi, [esp + 0x68]
call fcn.0042d5a0
lea esi, [esp + 0x48]
mov byte [esp + 0x2a4], 0
call fcn.0042d5a0
mov edx, str.usequence
lea eax, [esp + 0x48]
call fcn.00402b10
mov ebx, dword [esp + 0x64]
push eax
lea esi, [esp + 0x6c]
mov byte [esp + 0x2a8], 3
call fcn.004105f0
add esp, 4
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0x2a8], 4
call fcn.0040d140
lea esi, [esp + 0x68]
call fcn.0042d5a0
lea esi, [esp + 0x48]
mov byte [esp + 0x2a4], 0
call fcn.0042d5a0
mov edx, str.group
lea eax, [esp + 0x48]
call fcn.00402b10
mov byte [esp + 0x2a4], 5
mov ebx, dword [esp + 0x1c]
push eax
lea esi, [esp + 0x6c]
call fcn.004105f0
add esp, 4
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0x2a8], 6
call fcn.0040d140
lea esi, [esp + 0x68]
call fcn.0042d5a0
lea esi, [esp + 0x48]
mov byte [esp + 0x2a4], 0
call fcn.0042d5a0
mov edx, dword [esp + 0x18]
push str.File
push edx
lea ecx, [esp + 0x2c]
call fcn.0041da40
lea esi, [esp + 0x24]
call fcn.0040cec0
xor eax, eax
jmp 0x41da0a
push edi
push ebp
call fcn.00426200
push eax
push str.__Source_version:__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov ecx, dword [esp + 0x50]
add esp, 0x14
push esi
push ecx
call fcn.00426200
push eax
push str.__Dest_version:__s
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0x14
cmp esi, edi
jl 0x41d6ec
jg 0x41d562
cmp dword [esp + 0x3c], ebp
jae 0x41d562
mov esi, dword [esp + 0x20]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d726
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41d726
push str.__Destination_file_is_read_only__clearing_attributes
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 8
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x3c], 0
xor ebp, ebp
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41d812
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x3c], 0
jne 0x41d812
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
sub eax, 2
je 0x41d789
sub eax, 1
je 0x41d7a5
sub eax, 0x1d
je 0x41d7dd
push esi
push ebp
push str.__Copy_file_error__0X_X__on_source___s._Trying_again.
push 0x4676a0
xor eax, eax
call fcn.0042cad0
add esp, 0x10
push 0xfa
call edi
test ebp, ebp
je 0x41d81d
mov eax, dword [esp + 0x3c]
mov ecx, eax
add eax, 1
cmp ecx, 3
mov dword [esp + 0x3c], eax
jl 0x41d734
jmp 0x41d81d
push ebx
lea ecx, [esp + 0x90]
push 0x104
push ecx
call fcn.00439323
add esp, 0xc
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea eax, [esp + 0x90]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
jmp 0x41d791
push str.__File_in_use__setting_copy_on_boot
push 0x4676a0
xor eax, eax
call fcn.0042cad0
mov ecx, dword [esp + 0x28]
add esp, 8
push ebx
lea esi, [esp + 0x38]
call fcn.0041d230
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov dword [edx + 0x34], 1
xor ebp, ebp
jmp 0x41d81d
lea edi, [esp + 0x34]
mov eax, ebx
call fcn.00426150
cmp dword [esp + 0x3c], 5
jne 0x41d83c
push esi
push str.Copy_file_error_on_source___s__aborting
push 0x4676a0
mov eax, 2
call fcn.0042cad0
add esp, 0xc
test ebp, ebp
jne 0x41d9e2
cmp dword [esp + 0x2b8], ebp
je 0x41d9e2
mov edx, 0x458908
lea eax, [esp + 0x68]
call fcn.00402b10
push eax
lea esi, [esp + 0x4c]
mov byte [esp + 0x2a8], 7
call fcn.004105f0
add esp, 4
mov ebx, 8
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0x2a8], bl
call fcn.0040d140
cmp dword [esp + 0x60], ebx
jb 0x41d89d
mov eax, dword [esp + 0x4c]
push eax
call fcn.00439059
add esp, 4
xor eax, eax
mov byte [esp + 0x2a4], al
cmp dword [esp + 0x80], ebx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], eax
mov word [esp + 0x4c], ax
jb 0x41d8cd
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00439059
add esp, 4
mov edx, str.usequence
lea eax, [esp + 0x68]
call fcn.00402b10
mov ebx, dword [esp + 0x64]
push eax
lea esi, [esp + 0x4c]
mov byte [esp + 0x2a8], 9
call fcn.004105f0
add esp, 4
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0x2a8], 0xa
call fcn.0040d140
mov esi, 8
cmp dword [esp + 0x60], esi
jb 0x41d91e
mov edx, dword [esp + 0x4c]
push edx
call fcn.00439059
add esp, 4
xor eax, eax
mov byte [esp + 0x2a4], al
cmp dword [esp + 0x80], esi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], eax
mov word [esp + 0x4c], ax
jb 0x41d94e
mov eax, dword [esp + 0x6c]
push eax
call fcn.00439059
add esp, 4
mov edx, str.group
lea eax, [esp + 0x68]
call fcn.00402b10
mov byte [esp + 0x2a4], 0xb
mov ebx, dword [esp + 0x1c]
push eax
lea esi, [esp + 0x4c]
call fcn.004105f0
add esp, 4
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0x2a8], 0xc
call fcn.0040d140
mov esi, 8
cmp dword [esp + 0x60], esi
jb 0x41d99f
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00439059
add esp, 4
xor eax, eax
mov byte [esp + 0x2a4], al
cmp dword [esp + 0x80], esi
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], eax
mov word [esp + 0x4c], ax
jb 0x41d9cf
mov edx, dword [esp + 0x6c]
push edx
call fcn.00439059
add esp, 4
mov eax, dword [esp + 0x18]
push str.File
push eax
lea ecx, [esp + 0x2c]
call fcn.0041da40
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41da08
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
push ecx
call fcn.00411400
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call fcn.00439059
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x29c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0043782a
add esp, 0x294
ret 0x14