Function at 0x140004af0
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 [0x140214ec8]
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.1400ad590
xor edx, edx
lea rcx, [rbp + 0x870]
mov r8d, 0x104
call fcn.1400ad590
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov edx, 0x104
lea rcx, [rbp + 0x650]
lea r8d, [r9 + 2]
call fcn.140013cf0
lea rcx, [rbp + 0x650]
call fcn.1400053f0
xor esi, esi
lea r14, [rbp + 0x300]
lea r15, [0x14012779c]
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.1400ad590
mov r9, qword [r14]
lea r8, [0x1401277e4]
lea rdx, [rbp + 0x870]
mov ecx, 0x104
call fcn.140005690
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x140
call fcn.1400ad590
lea rax, [rbp + 0x870]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x650]
lea r8, [0x1401277a0]
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x430]
call fcn.140005690
mov ecx, 0x110
call fcn.1400bb268
mov rdi, rax
test rax, rax
je 0x140004c73
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call fcn.1400ad590
test rdi, rdi
je 0x1400050bf
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140004da1
nop dword [rax + rax]
lea rax, [rsp + 0x6c]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x650]
lea r8, [0x1401277a0]
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x430]
call fcn.140005690
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004d40
bt eax, 0xa
jae 0x140004d40
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004d2e
bt eax, 0xa
jae 0x140004d2e
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004d22
test al, 0x10
je 0x140004d22
lea rcx, [rbp + 0x430]
call fcn.1400d8df4
jmp 0x140004d2e
lea rcx, [rbp + 0x430]
call fcn.1400bdbbc
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x140
call fcn.1400ad590
cmp byte [rsp + 0x6c], 0
jne 0x140004d68
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x140004ca0
cmp byte [rsp + 0x6c], 0
je 0x1400050a1
lea rcx, [rdi + 8]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x650]
mov edx, 0x104
call fcn.1400bb338
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.1400bb338
cmp byte [rsp + 0x6c], 0
je 0x1400050a1
nop dword [rax]
xor edx, edx
lea rcx, [rbp + 0x760]
mov r8d, 0x104
call fcn.1400ad590
xor edx, edx
lea rcx, [rbp + 0x320]
mov r8d, 0x104
call fcn.1400ad590
cmp dword [0x140217720], 0
jne 0x140005100
lea r9, [rbp + 0x80]
mov qword [rsp + 0x20], 0
mov edx, 0x104
lea rcx, [rbp + 0x760]
mov r8d, 2
call fcn.140013cf0
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x760]
mov edx, 0x104
lea rcx, [rbp + 0x320]
call fcn.1400bb338
mov edx, 0x2e
lea rcx, [rbp + 0x320]
call fcn.1400adc98
mov rbx, rax
test rax, rax
je 0x140004f85
mov edx, 0x2e
lea rcx, [rbp + 0x80]
call fcn.1400adc98
test rax, rax
je 0x140004f85
lea rdx, str..temp
mov byte [rbx], 0
mov rcx, rax
call fcn.1400d4e58
test eax, eax
jne 0x140004f2a
lea rcx, [rbp + 0x320]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004ec8
bt eax, 0xa
jae 0x140004ec8
lea rcx, [rbp + 0x320]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004eb8
test al, 0x10
je 0x140004eb8
lea rcx, [rbp + 0x320]
call fcn.1400d8df4
jmp 0x140004ec4
lea rcx, [rbp + 0x320]
call fcn.1400bdbbc
test eax, eax
jne 0x140004edf
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x320]
call fcn.1400d88ac
test eax, eax
je 0x140004f2a
lea rdx, [rbp + 0x320]
lea rcx, [rbp + 0x760]
call fcn.1400bd8d8
cmp dword [0x14020e430], 3
jl 0x140004f85
test dword [0x14020e494], 0x400000
je 0x140004f85
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 0x140004f68
lea rcx, [rbp + 0x760]
call fcn.1400bdbbc
cmp dword [0x14020e430], 3
jl 0x140004f85
test dword [0x14020e494], 0x400000
je 0x140004f85
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.140078180
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x140
call fcn.1400ad590
xor edx, edx
lea rcx, [rbp + 0x540]
mov r8d, 0x104
call fcn.1400ad590
nop dword [rax]
mov rcx, qword [rdi]
lea rdx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
cmp eax, 1
jne 0x140005079
lea rax, [rbp + 0x1ec]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rdi + 8]
lea r8, [0x1401277a0]
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x540]
call fcn.140005690
lea rcx, [rbp + 0x540]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000506a
bt eax, 0xa
jae 0x14000506a
lea rcx, [rbp + 0x540]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005056
bt eax, 0xa
jae 0x140005056
lea rcx, [rbp + 0x540]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000504a
test al, 0x10
je 0x14000504a
lea rcx, [rbp + 0x540]
call fcn.1400d8df4
jmp 0x140005056
lea rcx, [rbp + 0x540]
call fcn.1400bdbbc
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x140
call fcn.1400ad590
cmp byte [rbp + 0x1ec], 0
je 0x140004fb0
jmp 0x14000507d
test eax, eax
je 0x1400050a1
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x1ec]
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.1400bb338
jmp 0x140004db0
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x1400050b7
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400bb254
inc esi
add r14, 8
cmp esi, 4
jb 0x140004be0
xor eax, eax
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.1400abc80
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 0x140005116
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400bb254
cmp dword [0x14020e430], 3
jl 0x140005164
test dword [0x14020e494], 0x400000
je 0x140005164
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.140078180
mov eax, 0x68
jmp 0x1400050d0