Function at 0x140070f90
Capabilities:
Check if file exists
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 - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x1402854d8]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
xor esi, esi
lea rcx, [rbp + 0x2c0]
xor edx, edx
mov r8d, 0x104
mov r12d, esi
call fcn.140107f60
xor edx, edx
lea rcx, [rbp + 0x1b0]
mov r8d, 0x104
call fcn.140107f60
mov r9d, 0x80000000
lea rdx, [0x1401842f0]
xor r8d, r8d
lea ecx, [rsi + 0x24]
call fcn.140041f40
xor r9d, r9d
lea ecx, [rsi + 0x24]
xor edx, edx
mov r8d, 0xffffffff
mov r15, rax
call fcn.140041f40
xor r9d, r9d
lea ecx, [rsi + 0x24]
xor edx, edx
mov r8d, 0xffffffff
mov rdi, rax
call fcn.140041f40
cmp dword [0x14027edf0], 4
mov r14, rax
mov qword [rsp + 0x50], rsi
jl 0x140071059
test dword [0x14027ee6c], 0x100
lea ebx, [rsi + 1]
jne 0x14007105b
mov ebx, esi
mov edx, 4
mov ecx, 0x100
call fcn.1400e8cc0
lea r13, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_dspmgr.c
lea rdx, str.esif_dsp_file_scan
test ebx, ebx
jne 0x140071080
test eax, eax
je 0x1400710cb
lea rcx, [rbp + 0x1b0]
mov r9d, 4
mov qword [rsp + 0x48], rcx
mov r8d, 0x100
lea rcx, [0x1401842f0]
mov qword [rsp + 0x40], rcx
lea rcx, str.SCAN_CONFIG_For_DSP_Files_NameSpace___s__Pattern__s
mov qword [rsp + 0x38], rcx
mov ecx, ebx
mov dword [rsp + 0x30], 0x363
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdx
mov edx, eax
call fcn.1400bfc30
test r15, r15
je 0x140071255
test rdi, rdi
je 0x140071255
test r14, r14
je 0x140071255
lea r9, [rsp + 0x50]
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.14003f9c0
mov r12d, eax
test eax, eax
jne 0x140071255
mov eax, dword [rdi + 0x10]
cmp eax, 5
jb 0x14007117b
mov ecx, eax
lea rdx, [0x14018a5b4]
mov rax, qword [rdi + 4]
add rax, 0xfffffffffffffffb
add rcx, rax
call fcn.14012f928
test eax, eax
jne 0x14007117b
mov ecx, 0x104
call fcn.140115d38
mov rbx, rax
test rax, rax
je 0x1400711cd
xor edx, edx
mov r8d, 0x104
mov rcx, rax
call fcn.140107f60
mov r8, qword [rdi + 4]
mov r9, 0xffffffffffffffff
mov edx, 0x104
mov rcx, rbx
call fcn.140115e08
mov rcx, rbx
call fcn.14006fa00
test eax, eax
je 0x14007117b
mov rcx, rbx
call fcn.140115d24
xor r8d, r8d
mov dword [rsp + 0x20], esi
mov r9d, 0xffffffff
mov rcx, rdi
lea edx, [r8 + 0x24]
call fcn.140042c70
xor r8d, r8d
mov dword [rsp + 0x20], esi
mov r9d, 0xffffffff
mov rcx, r14
lea edx, [r8 + 0x24]
call fcn.140042c70
lea r9, [rsp + 0x50]
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.14003f9d0
mov r12d, eax
test eax, eax
je 0x140071104
jmp 0x140071240
cmp dword [0x14027edf0], 1
jl 0x1400711e7
test dword [0x14027ee24], 0x100
mov ebx, 1
jne 0x1400711e9
mov ebx, esi
mov edx, 1
mov ecx, 0x100
call fcn.1400e8cc0
test ebx, ebx
jne 0x140071200
test eax, eax
je 0x14007123a
lea rcx, str.Fail_to_allocate_esif_ccb_file_n
mov r9d, 1
mov qword [rsp + 0x38], rcx
mov r8d, 0x100
lea rcx, str.esif_dsp_file_scan
mov dword [rsp + 0x30], 0x36b
mov qword [rsp + 0x28], r13
mov edx, eax
mov qword [rsp + 0x20], rcx
mov ecx, ebx
call fcn.1400bfc30
mov r12d, 0x708
lea rcx, [rsp + 0x50]
call fcn.14003f990
cmp r12d, 0x3ed
cmove r12d, esi
mov rcx, r15
call fcn.1400423b0
mov rcx, rdi
call fcn.1400423b0
mov rcx, r14
call fcn.1400423b0
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov edx, 0x104
lea rcx, [rbp + 0x2c0]
lea r8d, [r9 + 9]
call fcn.140049e50
mov r9, 0xffffffffffffffff
lea r8, str..edp
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call fcn.140115e08
cmp dword [0x14027edf0], 4
jl 0x1400712c3
test dword [0x14027ee6c], 0x100
mov ebx, 1
jne 0x1400712c5
mov ebx, esi
mov edx, 4
mov ecx, 0x100
call fcn.1400e8cc0
test ebx, ebx
jne 0x1400712dc
test eax, eax
je 0x140071330
lea rcx, [rbp + 0x1b0]
mov r9d, 4
mov qword [rsp + 0x48], rcx
lea rdi, str.esif_dsp_file_scan
lea rcx, [rbp + 0x2c0]
mov r8d, 0x100
mov qword [rsp + 0x40], rcx
mov edx, eax
lea rcx, str.SCAN_File_System_For_DSP_Files_Path___s__Pattern__s
mov qword [rsp + 0x38], rcx
mov ecx, ebx
mov dword [rsp + 0x30], 0x385
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.1400bfc30
jmp 0x140071337
lea rdi, str.esif_dsp_file_scan
mov ecx, 0x104
call fcn.140115d38
mov rbx, rax
test rax, rax
je 0x140071359
xor edx, edx
mov r8d, 0x104
mov rcx, rax
call fcn.140107f60
test rbx, rbx
jne 0x1400713ca
cmp dword [0x14027edf0], 1
jl 0x140071376
test dword [0x14027ee24], 0x100
je 0x140071376
lea esi, [rbx + 1]
mov edx, 1
mov ecx, 0x100
call fcn.1400e8cc0
test esi, esi
jne 0x14007138d
test eax, eax
je 0x1400713c0
lea rcx, str.Fail_to_allocate_esif_ccb_file_n
mov r9d, 1
mov qword [rsp + 0x38], rcx
mov r8d, 0x100
mov dword [rsp + 0x30], 0x389
mov edx, eax
mov qword [rsp + 0x28], r13
mov ecx, esi
mov qword [rsp + 0x20], rdi
call fcn.1400bfc30
mov eax, 0x708
jmp 0x140071582
mov r8, rbx
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x2c0]
call fcn.14006f730
mov rdi, rax
test rax, rax
jne 0x1400713f3
mov r12d, 0x3eb
jmp 0x140071572
lea rsi, [0x140183f5c]
nop word [rax + rax]
mov rdx, rbx
lea rcx, [0x1401842f0]
call fcn.140037e50
test al, al
jne 0x140071449
mov rcx, rbx
call fcn.14006fa00
test eax, eax
je 0x140071427
mov rcx, rbx
call fcn.140115d24
mov ecx, 0x104
call fcn.140115d38
mov rbx, rax
test rax, rax
je 0x140071449
xor edx, edx
mov r8d, 0x104
mov rcx, rax
call fcn.140107f60
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x140
call fcn.140107f60
xor edx, edx
lea rcx, [rbp + 0xa0]
mov r8d, 0x104
call fcn.140107f60
nop
mov rcx, qword [rdi]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
cmp eax, 1
jne 0x14007152f
lea rax, [rbp - 0x74]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rdi + 8]
lea r8, [0x140183f60]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0xa0]
call fcn.14006f980
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140071523
bt eax, 0xa
jae 0x140071523
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140071511
bt eax, 0xa
jae 0x140071511
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140071505
test al, 0x10
je 0x140071505
lea rcx, [rbp + 0xa0]
call fcn.1401338c4
jmp 0x140071511
lea rcx, [rbp + 0xa0]
call fcn.14011868c
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x140
call fcn.140107f60
cmp byte [rbp - 0x74], 0
je 0x140071470
jmp 0x140071533
test eax, eax
je 0x140071554
mov r9, 0xffffffffffffffff
lea r8, [rbp - 0x74]
mov edx, 0x104
mov rcx, rbx
call fcn.140115e08
test rbx, rbx
jne 0x140071400
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x14007156a
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.140115d24
test rbx, rbx
je 0x14007157f
mov rcx, rbx
call fcn.140115d24
mov eax, r12d
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140106650
lea r11, [rsp + 0x4e0]
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