Function at 0x4251f5
Capabilities:
Copy file
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push 0x658
mov eax, 0x48f63a
call fcn.00458f67
mov esi, ecx
mov edx, dword [esi + 0xc]
mov ecx, edx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x660], ebx
test edx, edx
je 0x425246
mov eax, dword [0x4c12e0]
test eax, eax
je 0x425275
cmp dword [0x4c3630], 0
je 0x42524f
mov eax, dword [edx]
push str.In_CInfFile::_RenameMoveFileEx__
push edx
call dword [eax + 0x10]
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x425275
mov eax, dword [0x4c12e0]
test eax, eax
je 0x425275
cmp dword [0x4c3630], 0
je 0x425275
push dword [ebp + 0x14]
mov eax, dword [ecx]
push edi
push dword [ebp - 0x65c]
push ebx
push str._RenameMoveFileEx:_Trying_to_rename_move_file__s__s_to__s__insType__0x_x
push ecx
call dword [eax + 0x10]
add esp, 0x18
push ebx
push dword [ebp - 0x65c]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x628]
push 0x494bc0
push eax
call ebx
push edi
call fcn.00461890
add esp, 0x14
cmp eax, 3
jbe 0x425341
cmp byte [edi + eax - 4], 0x2e
jne 0x425341
push edi
mov ebx, 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00465df5
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004662f3
add esp, 0x14
test eax, eax
je 0x4252d8
mov byte [eax], 0
lea eax, [ebp - 0x218]
push eax
call fcn.004101af
mov edx, eax
pop ecx
cmp edx, 0xb7
je 0x42531f
test edx, edx
je 0x42531f
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4257f9
cmp dword [0x4c12e0], 0
je 0x4257f9
mov eax, dword [ecx]
push edx
push str._RenameMoveFileEx:_Failed_to_call_SHCreateDirectory__error_code___d
push ecx
call dword [eax + 0x14]
add esp, 0xc
jmp 0x4257f9
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00465df5
push 0x5c
push edi
call fcn.004662f3
add esp, 0x14
test eax, eax
je 0x42536e
mov byte [eax], 0
jmp 0x42536e
push edi
call fcn.004101af
mov edx, eax
pop ecx
cmp edx, 0xb7
je 0x425356
test edx, edx
jne 0x4252f3
push dword [ebp - 0x660]
lea eax, [ebp - 0x218]
push edi
push 0x494bc0
push eax
call ebx
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 8
mov dword [ebp - 0x664], eax
jne 0x42546c
test byte [ebp + 0x14], 0x10
jne 0x42546c
lea eax, [ebp - 0x218]
push eax
call fcn.00444f03
pop ecx
test eax, eax
je 0x425466
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4253f1
cmp dword [0x4c12e0], 0
je 0x4253f1
cmp dword [0x4c3630], 0
je 0x4253f1
mov eax, dword [ecx]
lea edx, [ebp - 0x218]
push edx
push str._RenameMoveFileEx:_dest_file__s_exists
push ecx
call dword [eax + 0x10]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x425466
call ebx
mov edx, dword [esi + 0xc]
test edx, edx
je 0x425423
cmp dword [0x4c12e0], 0
je 0x425423
mov ecx, dword [edx]
push eax
push str._RenameMoveFileEx:_DeleteFile_fails__Error:__d_
push edx
call dword [ecx + 0x18]
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0
push dword [ebp - 0x660]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x420]
push 1
push eax
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x42550d
push 4
push 0
lea eax, [ebp - 0x420]
push eax
call edi
mov eax, dword [ebp - 0x664]
cmp byte [esi + 0x17c], 0
jne 0x42547d
test eax, eax
jne 0x42566b
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4254b2
cmp dword [0x4c12e0], 0
je 0x4254b2
cmp dword [0x4c3630], 0
je 0x4254b2
mov eax, dword [ecx]
lea edx, [ebp - 0x218]
push edx
lea edx, [ebp - 0x628]
push edx
push str._RenameMoveFileEx:_Copy_file_from__s_to__s
push ecx
call dword [eax + 0x10]
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x42566b
cmp dword [ebp + 0x14], 1
jne 0x42566b
call ebx
mov edx, dword [esi + 0xc]
test edx, edx
je 0x4257f9
cmp dword [0x4c12e0], 0
je 0x4257f9
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
push str...Reduce_restart:_Failed_to_CopyFile_from__s_to__s__error_code___d
jmp 0x4255ca
call ebx
mov edx, dword [esi + 0xc]
test edx, edx
je 0x42553c
cmp dword [0x4c12e0], 0
je 0x42553c
mov ecx, dword [edx]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push str._RenameMoveFileEx:_Failed_to_rename_file__s_to__s__error_code___d
push edx
call dword [ecx + 0x14]
add esp, 0x14
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x425582
call ebx
mov edx, dword [esi + 0xc]
test edx, edx
je 0x4257f9
cmp dword [0x4c12e0], 0
je 0x4257f9
mov ecx, dword [edx]
push eax
lea eax, [ebp - 0x218]
push eax
push str._RenameMoveFileEx:_Failed_to_call_MoveFileEx_to_remove_file__s_on_restart__error_code___d
push edx
call dword [ecx + 0x14]
add esp, 0x10
jmp 0x4257f9
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4255d8
call ebx
mov edx, dword [esi + 0xc]
test edx, edx
je 0x4257f9
cmp dword [0x4c12e0], 0
je 0x4257f9
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
push str._RenameMoveFileEx:_Failed_to_CopyFile_from__s_to__s__error_code___d
mov ecx, dword [edx]
push edx
call dword [ecx + 0x14]
add esp, 0x14
jmp 0x4257f9
push 4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
jne 0x42561e
call ebx
mov edx, dword [esi + 0xc]
test edx, edx
je 0x4257f9
cmp dword [0x4c12e0], 0
je 0x4257f9
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
push str._RenameMoveFileEx:_Failed_to_call_MoveFileEx_to_copy_file_from__s_to__s_on_restart__error_code___d
jmp 0x4255ca
push 1
push 1
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00420165
test eax, eax
je 0x425642
push 0xe
mov ecx, esi
call fcn.00426f44
jmp 0x4257f9
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x425667
cmp dword [0x4c12e0], 0
je 0x425667
mov eax, dword [ecx]
lea edx, [ebp - 0x218]
push edx
push str.REBOOT_REQUIRED:_copy_of_file_to___s__delayed_until_reboot
push ecx
call dword [eax + 0x14]
add esp, 0xc
push 1
jmp 0x425636
mov eax, dword [ebp + 0x14]
and al, 0x11
cmp al, 1
jne 0x425693
push 0
push 1
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00420165
test eax, eax
je 0x425693
push 0xe
mov ecx, esi
call fcn.00426f44
test byte [ebp + 0x14], 0x10
je 0x4257f9
mov ebx, dword [ebp - 0x65c]
mov ecx, ebx
mov eax, dword [esi]
and dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 0xf
mov byte [ebp - 0x658], 0
lea edx, [ecx + 1]
mov edi, dword [eax + 0x68]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4256c5
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x658]
call fcn.0040a9d0
mov ebx, dword [ebp - 0x660]
xor eax, eax
mov ecx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x425701
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x640]
call fcn.0040a9d0
lea eax, [ebp - 0x658]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x640]
mov ecx, esi
push eax
call edi
mov eax, dword [ebp - 0x62c]
mov edi, 0x1000
cmp eax, 0x10
jb 0x42577e
mov ecx, dword [ebp - 0x640]
inc eax
mov dword [ebp - 0x660], eax
mov dword [ebp - 0x65c], ecx
cmp eax, edi
jb 0x425775
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x65c]
push eax
call fcn.00403184
mov eax, dword [ebp - 0x660]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x65c]
push eax
push ecx
call fcn.00458ecf
pop ecx
pop ecx
and dword [ebp - 0x630], 0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x644]
mov byte [ebp - 0x640], 0
push 0xf
pop ebx
mov dword [ebp - 0x62c], ebx
cmp eax, 0x10
jb 0x4257e5
mov ecx, dword [ebp - 0x658]
inc eax
mov dword [ebp - 0x660], eax
mov dword [ebp - 0x65c], ecx
cmp eax, edi
jb 0x4257dc
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x65c]
push eax
call fcn.00403184
mov eax, dword [ebp - 0x660]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x65c]
push eax
push ecx
call fcn.00458ecf
pop ecx
pop ecx
and dword [ebp - 0x648], 0
mov dword [ebp - 0x644], ebx
mov byte [ebp - 0x658], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x425822
cmp dword [0x4c12e0], 0
je 0x425822
cmp dword [0x4c3630], 0
je 0x425822
mov eax, dword [ecx]
push 0
push str.CInfFile::_RenameMoveFileEx___returns__d
push ecx
call dword [eax + 0x10]
add esp, 0xc
xor eax, eax
call fcn.00458f11
ret 0x10