Function at 0x140005540
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 [0x14020fe28]
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.1400a7190
xor edx, edx
lea rcx, [rbp + 0x870]
mov r8d, 0x104
call fcn.1400a7190
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov edx, 0x104
lea rcx, [rbp + 0x650]
lea r8d, [r9 + 2]
call fcn.140014740
lea rcx, [rbp + 0x650]
call fcn.140005e40
xor esi, esi
lea r14, [rbp + 0x300]
lea r15, [0x140120918]
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.1400a7190
mov r9, qword [r14]
lea r8, [0x140120964]
lea rdx, [rbp + 0x870]
mov ecx, 0x104
call fcn.1400060e0
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x140
call fcn.1400a7190
lea rax, [rbp + 0x870]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x650]
lea r8, [0x14012091c]
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x430]
call fcn.1400060e0
mov ecx, 0x110
call fcn.1400b45e8
mov rdi, rax
test rax, rax
je 0x1400056c3
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call fcn.1400a7190
test rdi, rdi
je 0x140005b0f
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x1400057f1
nop dword [rax + rax]
lea rax, [rsp + 0x6c]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x650]
lea r8, [0x14012091c]
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x430]
call fcn.1400060e0
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005790
bt eax, 0xa
jae 0x140005790
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000577e
bt eax, 0xa
jae 0x14000577e
lea rcx, [rbp + 0x430]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005772
test al, 0x10
je 0x140005772
lea rcx, [rbp + 0x430]
call fcn.1400d246c
jmp 0x14000577e
lea rcx, [rbp + 0x430]
call fcn.1400b5fcc
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x140
call fcn.1400a7190
cmp byte [rsp + 0x6c], 0
jne 0x1400057b8
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1400056f0
cmp byte [rsp + 0x6c], 0
je 0x140005af1
lea rcx, [rdi + 8]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x650]
mov edx, 0x104
call fcn.1400b46b8
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.1400b46b8
cmp byte [rsp + 0x6c], 0
je 0x140005af1
nop dword [rax]
xor edx, edx
lea rcx, [rbp + 0x760]
mov r8d, 0x104
call fcn.1400a7190
xor edx, edx
lea rcx, [rbp + 0x320]
mov r8d, 0x104
call fcn.1400a7190
cmp dword [0x140212580], 0
jne 0x140005b50
lea r9, [rbp + 0x80]
mov qword [rsp + 0x20], 0
mov edx, 0x104
lea rcx, [rbp + 0x760]
mov r8d, 2
call fcn.140014740
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x760]
mov edx, 0x104
lea rcx, [rbp + 0x320]
call fcn.1400b46b8
mov edx, 0x2e
lea rcx, [rbp + 0x320]
call fcn.1400a7898
mov rbx, rax
test rax, rax
je 0x1400059d5
mov edx, 0x2e
lea rcx, [rbp + 0x80]
call fcn.1400a7898
test rax, rax
je 0x1400059d5
lea rdx, str..temp
mov byte [rbx], 0
mov rcx, rax
call fcn.1400ce258
test eax, eax
jne 0x14000597a
lea rcx, [rbp + 0x320]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005918
bt eax, 0xa
jae 0x140005918
lea rcx, [rbp + 0x320]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005908
test al, 0x10
je 0x140005908
lea rcx, [rbp + 0x320]
call fcn.1400d246c
jmp 0x140005914
lea rcx, [rbp + 0x320]
call fcn.1400b5fcc
test eax, eax
jne 0x14000592f
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x320]
call fcn.1400d1f24
test eax, eax
je 0x14000597a
lea rdx, [rbp + 0x320]
lea rcx, [rbp + 0x760]
call fcn.1400b5ce8
cmp dword [0x140209140], 3
jl 0x1400059d5
test dword [0x1402091a4], 0x400000
je 0x1400059d5
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 0x1400059b8
lea rcx, [rbp + 0x760]
call fcn.1400b5fcc
cmp dword [0x140209140], 3
jl 0x1400059d5
test dword [0x1402091a4], 0x400000
je 0x1400059d5
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.140077c20
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x140
call fcn.1400a7190
xor edx, edx
lea rcx, [rbp + 0x540]
mov r8d, 0x104
call fcn.1400a7190
nop dword [rax]
mov rcx, qword [rdi]
lea rdx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
jne 0x140005ac9
lea rax, [rbp + 0x1ec]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rdi + 8]
lea r8, [0x14012091c]
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x540]
call fcn.1400060e0
lea rcx, [rbp + 0x540]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005aba
bt eax, 0xa
jae 0x140005aba
lea rcx, [rbp + 0x540]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005aa6
bt eax, 0xa
jae 0x140005aa6
lea rcx, [rbp + 0x540]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005a9a
test al, 0x10
je 0x140005a9a
lea rcx, [rbp + 0x540]
call fcn.1400d246c
jmp 0x140005aa6
lea rcx, [rbp + 0x540]
call fcn.1400b5fcc
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x140
call fcn.1400a7190
cmp byte [rbp + 0x1ec], 0
je 0x140005a00
jmp 0x140005acd
test eax, eax
je 0x140005af1
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x1ec]
mov edx, 0x104
lea rcx, [rbp + 0x80]
call fcn.1400b46b8
jmp 0x140005800
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140005b07
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400b45d4
inc esi
add r14, 8
cmp esi, 4
jb 0x140005630
xor eax, eax
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.1400a56b0
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 0x140005b66
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400b45d4
cmp dword [0x140209140], 3
jl 0x140005bb4
test dword [0x1402091a4], 0x400000
je 0x140005bb4
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.140077c20
mov eax, 0x68
jmp 0x140005b20