Function at 0x140004ad0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov rax, qword [0x14021a328]
xor rax, rsp
mov qword [rbp + 0x980], rax
lea rax, str..dv.tmp
xor edx, edx
mov qword [rbp + 0x300], rax
lea rcx, [rbp + 0x650]
lea rax, str..dv.temp
mov r8d, 0x104
mov qword [rbp + 0x308], rax
lea rax, str..dvx.tmp
mov qword [rbp + 0x310], rax
lea rax, str..dvx.temp
mov qword [rbp + 0x318], rax
call fcn.1400ae310
xor edx, edx
lea rcx, [rbp + 0x870]
mov r8d, 0x104
call fcn.1400ae310
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov edx, 0x104
lea rcx, [rbp + 0x650]
lea r8d, [r9 + 2]
call fcn.140013c70
lea rcx, [rbp + 0x650]
call fcn.1400053d0
xor esi, esi
lea r14, [rbp + 0x300]
lea r15, [0x1401277ec]
lea r12, str.Recover_Temp_REPO__s__result_d__n
lea r13, str.Rollback_Temp_REPO__s__result_d__n
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x80]
mov r8d, 0x104
call fcn.1400ae310
mov r9, qword [r14]
lea r8, [0x140127834]
lea rdx, [rbp + 0x870]
mov ecx, 0x104
call fcn.140005670
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x140
call fcn.1400ae310
lea rax, [rbp + 0x870]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x650]
lea r8, [0x1401277f0]
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x430]
call fcn.140005670
mov ecx, pe_nt_image_headers64
call fcn.1400bb768
mov rdi, rax
test rax, rax
je 0x140004c53
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rcx, rax
call fcn.1400ae310
test rdi, rdi
je 0x14000509f
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140004d81
nop dword [rax + rax]
lea rax, [rsp + 0x6c]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x650]
lea r8, [0x1401277f0]
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x430]
call fcn.140005670
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004d20
bt eax, 0xa
jae 0x140004d20
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004d0e
bt eax, 0xa
jae 0x140004d0e
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004d02
test al, 0x10
je 0x140004d02
lea rcx, [rbp + 0x430]
call fcn.1400d95ec
jmp 0x140004d0e
lea rcx, [rbp + 0x430]
call fcn.1400bd14c
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x140
call fcn.1400ae310
cmp byte [rsp + 0x6c], 0
jne 0x140004d48
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x140004c80
cmp byte [rsp + 0x6c], 0
je 0x140005081
lea rcx, [rdi + 8]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x650]
mov edx, 0x104
call fcn.1400bb838
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.1400bb838
cmp byte [rsp + 0x6c], 0
je 0x140005081
nop dword [rax]
xor edx, edx
lea rcx, [rbp + 0x760]
mov r8d, 0x104
call fcn.1400ae310
xor edx, edx
lea rcx, [rbp + 0x320]
mov r8d, 0x104
call fcn.1400ae310
cmp dword [0x14021ca80], 0
jne 0x1400050e0
lea r9, [rbp + 0x80]
mov qword [rsp + 0x20], 0
mov edx, 0x104
lea rcx, [rbp + 0x760]
mov r8d, 2
call fcn.140013c70
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x760]
mov edx, 0x104
lea rcx, [rbp + 0x320]
call fcn.1400bb838
mov edx, 0x2e
lea rcx, [rbp + 0x320]
call fcn.1400aea18
mov rbx, rax
test rax, rax
je 0x140004f65
mov edx, 0x2e
lea rcx, [rbp + 0x80]
call fcn.1400aea18
test rax, rax
je 0x140004f65
lea rdx, str..temp
mov byte [rbx], 0
mov rcx, rax
call fcn.1400d53d8
test eax, eax
jne 0x140004f0a
lea rcx, [rbp + 0x320]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004ea8
bt eax, 0xa
jae 0x140004ea8
lea rcx, [rbp + 0x320]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004e98
test al, 0x10
je 0x140004e98
lea rcx, [rbp + 0x320]
call fcn.1400d95ec
jmp 0x140004ea4
lea rcx, [rbp + 0x320]
call fcn.1400bd14c
test eax, eax
jne 0x140004ebf
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x320]
call fcn.1400d90a4
test eax, eax
je 0x140004f0a
lea rdx, [rbp + 0x320]
lea rcx, [rbp + 0x760]
call fcn.1400bce68
cmp dword [0x140213620], 3
jl 0x140004f65
test dword [0x140213684], 0x400000
je 0x140004f65
mov dword [rsp + 0x38], eax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x1b4
jmp 0x140004f48
lea rcx, [rbp + 0x760]
call fcn.1400bd14c
cmp dword [0x140213620], 3
jl 0x140004f65
test dword [0x140213684], 0x400000
je 0x140004f65
mov dword [rsp + 0x38], eax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x1b9
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_LIBSourcesesif_lib_databank.c
mov edx, 3
lea r8, str.DataBank_RollbackRepos
mov ecx, 0x400000
call fcn.140079050
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x140
call fcn.1400ae310
xor edx, edx
lea rcx, [rbp + 0x540]
mov r8d, 0x104
call fcn.1400ae310
nop dword [rax]
mov rcx, qword [rdi]
lea rdx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
jne 0x140005059
lea rax, [rbp + 0x1ec]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rdi + 8]
lea r8, [0x1401277f0]
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x540]
call fcn.140005670
lea rcx, [rbp + 0x540]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000504a
bt eax, 0xa
jae 0x14000504a
lea rcx, [rbp + 0x540]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005036
bt eax, 0xa
jae 0x140005036
lea rcx, [rbp + 0x540]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000502a
test al, 0x10
je 0x14000502a
lea rcx, [rbp + 0x540]
call fcn.1400d95ec
jmp 0x140005036
lea rcx, [rbp + 0x540]
call fcn.1400bd14c
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x140
call fcn.1400ae310
cmp byte [rbp + 0x1ec], 0
je 0x140004f90
jmp 0x14000505d
test eax, eax
je 0x140005081
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x1ec]
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.1400bb838
jmp 0x140004d90
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140005097
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400bb754
inc esi
add r14, 8
cmp esi, 4
jb 0x140004bc0
xor eax, eax
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.1400ac830
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x1400050f6
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400bb754
cmp dword [0x140213620], 3
jl 0x140005144
test dword [0x140213684], 0x400000
je 0x140005144
lea rax, str.Pausing_DV_loading_n
mov edx, 3
mov qword [rsp + 0x28], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_LIBSourcesesif_lib_databank.c
lea r8, str.DataBank_RollbackRepos
mov dword [rsp + 0x20], 0x1a6
mov ecx, 0x400000
call fcn.140079050
mov eax, 0x68
jmp 0x1400050b0