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

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 - 0x740]
sub rsp, 0x840
mov rax, qword [0x14021a328]
xor rax, rsp
mov qword [rbp + 0x730], rax
lea rax, [0x140127970]
xor edx, edx
mov qword [rbp + 0x2e0], rax
lea rcx, [rbp + 0x510]
lea rax, [0x140127974]
mov r8d, 0x104
mov qword [rbp + 0x2e8], rax
xor esi, esi
call fcn.1400ae310
xor edx, edx
lea rcx, [rbp + 0x620]
mov r8d, 0x104
call fcn.1400ae310
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov edx, 0x104
lea r8d, [rsi + 2]
lea rcx, [rbp + 0x510]
call fcn.140013c70
lea rcx, [rbp + 0x510]
call fcn.1400053d0
xor r14d, r14d
lea r15, [rbp + 0x2e0]
lea r12, [0x1401277ec]
lea r13, str.Loading_File_REPO__s_n
nop
xor edx, edx
lea rcx, [rbp + 0x90]
mov r8d, 0x104
call fcn.1400ae310
mov r9, qword [r15]
lea r8, [0x140127834]
lea rdx, [rbp + 0x620]
mov ecx, 0x104
call fcn.140005670
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x140
call fcn.1400ae310
lea rax, [rbp + 0x620]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x510]
lea r8, [0x1401277f0]
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x2f0]
call fcn.140005670
mov ecx, pe_nt_image_headers64
call fcn.1400bb768
mov rdi, rax
test rax, rax
je 0x1400044f3
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rcx, rax
call fcn.1400ae310
test rdi, rdi
je 0x14000485f
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140004621
nop dword [rax + rax]
lea rax, [rsp + 0x7c]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x510]
lea r8, [0x1401277f0]
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x2f0]
call fcn.140005670
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400045c0
bt eax, 0xa
jae 0x1400045c0
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400045ae
bt eax, 0xa
jae 0x1400045ae
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400045a2
test al, 0x10
je 0x1400045a2
lea rcx, [rbp + 0x2f0]
call fcn.1400d95ec
jmp 0x1400045ae
lea rcx, [rbp + 0x2f0]
call fcn.1400bd14c
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x140
call fcn.1400ae310
cmp byte [rsp + 0x7c], 0
jne 0x1400045e8
mov rcx, qword [rdi]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x140004520
cmp byte [rsp + 0x7c], 0
je 0x140004841
lea rcx, [rdi + 8]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x510]
mov edx, 0x104
call fcn.1400bb838
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x7c]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call fcn.1400bb838
cmp byte [rsp + 0x7c], 0
je 0x140004841
nop dword [rax]
cmp dword [0x14021ca80], 0
jne 0x1400048a2
mov edx, 2
lea r8, [rbp + 0x90]
lea ecx, [rdx - 1]
call fcn.1400069a0
mov rbx, rax
test rax, rax
je 0x140004722
cmp dword [0x140213620], 3
jl 0x1400046a8
test dword [0x140213684], 0x400000
je 0x1400046a8
lea rax, [rbp + 0x90]
mov edx, 3
mov qword [rsp + 0x30], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_LIBSourcesesif_lib_databank.c
mov qword [rsp + 0x28], r13
lea r8, str.DataBank_LoadFileRepos
mov ecx, 0x400000
mov dword [rsp + 0x20], 0x216
call fcn.140079050
mov rcx, rbx
call fcn.1400072d0
mov esi, eax
test eax, eax
je 0x14000471a
cmp dword [0x140213620], 1
jl 0x140004718
test dword [0x140213654], 0x4000
je 0x140004718
mov ecx, eax
call fcn.1400056f0
lea rcx, [rbp + 0x90]
mov edx, 1
mov qword [rsp + 0x40], rcx
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_LIBSourcesesif_lib_databank.c
mov dword [rsp + 0x38], esi
lea r8, str.DataBank_LoadFileRepos
mov qword [rsp + 0x30], rax
mov ecx, 0x4000
lea rax, str.REPO_Load_Failed___s___d__:__s_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x21d
call fcn.140079050
xor esi, esi
mov rcx, rbx
call fcn.140006bb0
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x140
call fcn.1400ae310
xor edx, edx
lea rcx, [rbp + 0x400]
mov r8d, 0x104
call fcn.1400ae310
nop word [rax + rax]
mov rcx, qword [rdi]
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
jne 0x140004819
lea rax, [rbp + 0x1cc]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rdi + 8]
lea r8, [0x1401277f0]
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x400]
call fcn.140005670
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000480a
bt eax, 0xa
jae 0x14000480a
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400047f6
bt eax, 0xa
jae 0x1400047f6
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400047ea
test al, 0x10
je 0x1400047ea
lea rcx, [rbp + 0x400]
call fcn.1400d95ec
jmp 0x1400047f6
lea rcx, [rbp + 0x400]
call fcn.1400bd14c
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x140
call fcn.1400ae310
cmp byte [rbp + 0x1cc], 0
je 0x140004750
jmp 0x14000481d
test eax, eax
je 0x140004841
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x1cc]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call fcn.1400bb838
jmp 0x140004630
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140004857
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400bb754
inc r14d
add r15, 8
cmp r14d, 2
jb 0x140004460
mov eax, esi
mov rcx, qword [rbp + 0x730]
xor rcx, rsp
call fcn.1400ac830
lea r11, [rsp + 0x840]
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 0x1400048b8
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400bb754
cmp dword [0x140213620], 3
jl 0x140004906
test dword [0x140213684], 0x400000
je 0x140004906
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_LoadFileRepos
mov dword [rsp + 0x20], 0x20a
mov ecx, 0x400000
call fcn.140079050
mov eax, 0x68
jmp 0x140004872