Function at 0x1400043c0
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.1400ad590
xor edx, edx
lea rcx, [rbp + 0x620]
mov r8d, 0x104
call fcn.1400ad590
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov edx, 0x104
lea r8d, [rsi + 2]
lea rcx, [rbp + 0x510]
call fcn.140013cf0
lea rcx, [rbp + 0x510]
call fcn.1400053f0
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.1400ad590
mov r9, qword [r15]
lea r8, [0x1401277e4]
lea rdx, [rbp + 0x620]
mov ecx, 0x104
call fcn.140005690
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x140
call fcn.1400ad590
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.140005690
mov ecx, 0x110
call fcn.1400bb268
mov rdi, rax
test rax, rax
je 0x140004513
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call fcn.1400ad590
test rdi, rdi
je 0x14000487f
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x140004641
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.140005690
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400045e0
bt eax, 0xa
jae 0x1400045e0
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400045ce
bt eax, 0xa
jae 0x1400045ce
lea rcx, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400045c2
test al, 0x10
je 0x1400045c2
lea rcx, [rbp + 0x2f0]
call fcn.1400d8df4
jmp 0x1400045ce
lea rcx, [rbp + 0x2f0]
call fcn.1400bdbbc
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x140
call fcn.1400ad590
cmp byte [rsp + 0x7c], 0
jne 0x140004608
mov rcx, qword [rdi]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x140004540
cmp byte [rsp + 0x7c], 0
je 0x140004861
lea rcx, [rdi + 8]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x510]
mov edx, 0x104
call fcn.1400bb338
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x7c]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call fcn.1400bb338
cmp byte [rsp + 0x7c], 0
je 0x140004861
nop dword [rax]
cmp dword [0x140217720], 0
jne 0x1400048c2
mov edx, 2
lea r8, [rbp + 0x90]
lea ecx, [rdx - 1]
call fcn.1400069c0
mov rbx, rax
test rax, rax
je 0x140004742
cmp dword [0x14020e430], 3
jl 0x1400046c8
test dword [0x14020e494], 0x400000
je 0x1400046c8
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.140078180
mov rcx, rbx
call fcn.1400072f0
mov esi, eax
test eax, eax
je 0x14000473a
cmp dword [0x14020e430], 1
jl 0x140004738
test dword [0x14020e464], 0x4000
je 0x140004738
mov ecx, eax
call fcn.140005710
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.140078180
xor esi, esi
mov rcx, rbx
call fcn.140006bd0
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x140
call fcn.1400ad590
xor edx, edx
lea rcx, [rbp + 0x400]
mov r8d, 0x104
call fcn.1400ad590
nop word [rax + rax]
mov rcx, qword [rdi]
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
cmp eax, 1
jne 0x140004839
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.140005690
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000482a
bt eax, 0xa
jae 0x14000482a
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140004816
bt eax, 0xa
jae 0x140004816
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000480a
test al, 0x10
je 0x14000480a
lea rcx, [rbp + 0x400]
call fcn.1400d8df4
jmp 0x140004816
lea rcx, [rbp + 0x400]
call fcn.1400bdbbc
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x140
call fcn.1400ad590
cmp byte [rbp + 0x1cc], 0
je 0x140004770
jmp 0x14000483d
test eax, eax
je 0x140004861
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x1cc]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call fcn.1400bb338
jmp 0x140004650
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140004877
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400bb254
inc r14d
add r15, 8
cmp r14d, 2
jb 0x140004480
mov eax, esi
mov rcx, qword [rbp + 0x730]
xor rcx, rsp
call fcn.1400abc80
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 0x1400048d8
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400bb254
cmp dword [0x14020e430], 3
jl 0x140004926
test dword [0x14020e494], 0x400000
je 0x140004926
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.140078180
mov eax, 0x68
jmp 0x140004892