Function at 0x140004380
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 [0x140214ec8]
xor rax, rsp
mov qword [rbp + 0x730], rax
lea rax, [0x140127920]
xor edx, edx
mov qword [rbp + 0x2e0], rax
lea rcx, [rbp + 0x510]
lea rax, [0x140127924]
mov r8d, 0x104
mov qword [rbp + 0x2e8], rax
xor esi, esi
call fcn.1400ad180
xor edx, edx
lea rcx, [rbp + 0x620]
mov r8d, 0x104
call fcn.1400ad180
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov edx, 0x104
lea r8d, [rsi + 2]
lea rcx, [rbp + 0x510]
call fcn.140013cb0
lea rcx, [rbp + 0x510]
call fcn.1400053b0
xor r14d, r14d
lea r15, [rbp + 0x2e0]
lea r12, [0x14012779c]
lea r13, str.Loading_File_REPO__s_n
nop
xor edx, edx
lea rcx, [rbp + 0x90]
mov r8d, 0x104
call fcn.1400ad180
mov r9, qword [r15]
lea r8, [0x1401277e4]
lea rdx, [rbp + 0x620]
mov ecx, 0x104
call fcn.140005650
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x140
call fcn.1400ad180
lea rax, [rbp + 0x620]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x510]
lea r8, [0x1401277a0]
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x2f0]
call fcn.140005650
mov ecx, 0x110
call fcn.1400bae58
mov rdi, rax
test rax, rax
je 0x1400044d3
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call fcn.1400ad180
test rdi, rdi
je 0x14000483f
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140004601
nop dword [rax + rax]
lea rax, [rsp + 0x7c]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x510]
lea r8, [0x1401277a0]
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x2f0]
call fcn.140005650
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400045a0
bt eax, 0xa
jae 0x1400045a0
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000458e
bt eax, 0xa
jae 0x14000458e
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004582
test al, 0x10
je 0x140004582
lea rcx, [rbp + 0x2f0]
call fcn.1400d89e4
jmp 0x14000458e
lea rcx, [rbp + 0x2f0]
call fcn.1400bd7ac
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x140
call fcn.1400ad180
cmp byte [rsp + 0x7c], 0
jne 0x1400045c8
mov rcx, qword [rdi]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x140004500
cmp byte [rsp + 0x7c], 0
je 0x140004821
lea rcx, [rdi + 8]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x510]
mov edx, 0x104
call fcn.1400baf28
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x7c]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call fcn.1400baf28
cmp byte [rsp + 0x7c], 0
je 0x140004821
nop dword [rax]
cmp dword [0x140217720], 0
jne 0x140004882
mov edx, 2
lea r8, [rbp + 0x90]
lea ecx, [rdx - 1]
call fcn.140006980
mov rbx, rax
test rax, rax
je 0x140004702
cmp dword [0x14020e430], 3
jl 0x140004688
test dword [0x14020e494], 0x400000
je 0x140004688
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.140078130
mov rcx, rbx
call fcn.1400072b0
mov esi, eax
test eax, eax
je 0x1400046fa
cmp dword [0x14020e430], 1
jl 0x1400046f8
test dword [0x14020e464], 0x4000
je 0x1400046f8
mov ecx, eax
call fcn.1400056d0
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.140078130
xor esi, esi
mov rcx, rbx
call fcn.140006b90
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x140
call fcn.1400ad180
xor edx, edx
lea rcx, [rbp + 0x400]
mov r8d, 0x104
call fcn.1400ad180
nop word [rax + rax]
mov rcx, qword [rdi]
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
cmp eax, 1
jne 0x1400047f9
lea rax, [rbp + 0x1cc]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rdi + 8]
lea r8, [0x1401277a0]
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x400]
call fcn.140005650
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400047ea
bt eax, 0xa
jae 0x1400047ea
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400047d6
bt eax, 0xa
jae 0x1400047d6
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400047ca
test al, 0x10
je 0x1400047ca
lea rcx, [rbp + 0x400]
call fcn.1400d89e4
jmp 0x1400047d6
lea rcx, [rbp + 0x400]
call fcn.1400bd7ac
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x140
call fcn.1400ad180
cmp byte [rbp + 0x1cc], 0
je 0x140004730
jmp 0x1400047fd
test eax, eax
je 0x140004821
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x1cc]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call fcn.1400baf28
jmp 0x140004610
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140004837
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400bae44
inc r14d
add r15, 8
cmp r14d, 2
jb 0x140004440
mov eax, esi
mov rcx, qword [rbp + 0x730]
xor rcx, rsp
call fcn.1400ab870
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 0x140004898
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400bae44
cmp dword [0x14020e430], 3
jl 0x1400048e6
test dword [0x14020e494], 0x400000
je 0x1400048e6
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.140078130
mov eax, 0x68
jmp 0x140004852