Function at 0x10024bf0
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10094e3f
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x100c3384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x850], 0
lea ecx, [ebp - 0x840]
call fcn.1000f0b0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push eax
push str.ex_ary_file__s
lea ecx, [ebp - 0x840]
push ecx
call fcn.10012be0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x10024c69
cmp dword [ebp + 0xc], 0
jne 0x10024c6e
jmp 0x10025043
lea ecx, [ebp - 0x834]
call fcn.1000f0b0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x844]
call fcn.10003d50
mov byte [ebp - 4], 3
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x844]
push ecx
call fcn.10013460
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x844]
call fcn.100054b0
lea ecx, [ebp - 0x834]
call fcn.10015240
movzx edx, al
test edx, edx
je 0x10024cdb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x834]
call fcn.100054b0
jmp 0x10025043
lea ecx, [ebp - 0x838]
call fcn.1000f0b0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x848]
call fcn.10003d50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x838]
push ecx
lea edx, [ebp - 0x848]
push edx
call fcn.10013460
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x848]
call fcn.100054b0
lea ecx, [ebp - 0x838]
call fcn.10006150
push eax
lea ecx, [ebp - 0x834]
call fcn.10006150
push eax
call fcn.10022e40
add esp, 8
mov dword [ebp - 0x854], eax
cmp dword [ebp - 0x854], 0
jg 0x10024d7e
mov dword [ebp - 0x83c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x838]
call fcn.100054b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x834]
call fcn.100054b0
jmp 0x10025043
mov dword [ebp - 0x850], 1
push 0
push 0
push 1
lea ecx, [ebp - 0x840]
call fcn.10006150
push eax
push str.hf_replace_start
call fcn.100078e0
mov ecx, eax
call fcn.1005c2c0
mov dword [ebp - 0x84c], 0
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.1006c6b0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
lea edx, [ebp - 0x420]
push edx
call fcn.10025600
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x420]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10024e6e
push 0x208
push 0
lea eax, [ebp - 0x628]
push eax
call fcn.1006c6b0
add esp, 0xc
lea ecx, [ebp - 0x628]
push ecx
push 0
push 0x1009f1ec
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x628]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10024e6e
push 4
push 0
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10024f57
mov edx, dword [ebp + 0xc]
push edx
call fcn.10022f50
add esp, 4
test eax, eax
jne 0x10024f57
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.1006c6b0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0x1009f1ec
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x10024efa
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x10024f57
push 0
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x84c], 1
mov dword [ebp - 0x83c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x838]
call fcn.100054b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x834]
call fcn.100054b0
jmp 0x10025043
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10025013
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x85c], eax
push 0x208
push 0
lea ecx, [ebp - 0x830]
push ecx
call fcn.1006c6b0
add esp, 0xc
lea edx, [ebp - 0x830]
push edx
push 0
push 0x1009f1ec
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x830]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea edx, [ebp - 0x830]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x830]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x84c], 1
mov dword [ebp - 0x83c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x838]
call fcn.100054b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x834]
call fcn.100054b0
jmp 0x10025043
mov dword [ebp - 0x83c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x838]
call fcn.100054b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x834]
call fcn.100054b0
xor eax, eax
jne 0x10024c5d
cmp dword [ebp - 0x83c], 0
je 0x10025078
cmp dword [ebp - 0x850], 0
je 0x10025078
push 0
push 0
push 1
lea ecx, [ebp - 0x840]
call fcn.10006150
push eax
push str.hf_replace_succ
call fcn.100078e0
mov ecx, eax
call fcn.1005c2c0
mov ecx, dword [ebp - 0x83c]
mov dword [ebp - 0x858], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x840]
call fcn.100054b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.100054b0
mov eax, dword [ebp - 0x858]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005dfd5
mov esp, ebp
pop ebp
ret