Function at 0x140030500
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 - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x14020fe28]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor r12d, r12d
lea rcx, [rbp + 0x2b0]
xor edx, edx
mov r8d, 0x104
mov r15d, r12d
call fcn.1400a7190
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x104
call fcn.1400a7190
lea r13, [0x140120cb0]
mov r9d, 0x80000000
mov rdx, r13
lea ecx, [r12 + 0x24]
xor r8d, r8d
call fcn.14000e440
xor edx, edx
xor r9d, r9d
mov r8d, 0xffffffff
mov r14, rax
lea ecx, [rdx + 0x24]
call fcn.14000e440
xor edx, edx
xor r9d, r9d
mov r8d, 0xffffffff
mov rdi, rax
lea ecx, [rdx + 0x24]
call fcn.14000e440
cmp dword [0x140209140], 4
mov rsi, rax
mov qword [rsp + 0x40], r12
jl 0x14003060e
test dword [0x1402091bc], 0x100
je 0x14003060e
lea rax, [rbp + 0x1a0]
mov ecx, 0x100
mov qword [rsp + 0x38], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_dspmgr.c
lea rax, str.SCAN_CONFIG_For_DSP_Files_NameSpace___s__Pattern__s
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea r8, str.esif_dsp_file_scan
lea edx, [r12 + 4]
mov dword [rsp + 0x20], 0x363
call fcn.140077c20
test r14, r14
je 0x140030726
test rdi, rdi
je 0x140030726
test rsi, rsi
je 0x140030726
lea r9, [rsp + 0x40]
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.14000bff0
mov r15d, eax
test eax, eax
jne 0x140030726
mov eax, dword [rdi + 0x10]
cmp eax, 5
jb 0x1400306bf
mov ecx, eax
lea rdx, [0x140126a74]
mov rax, qword [rdi + 4]
add rax, 0xfffffffffffffffb
add rcx, rax
call fcn.1400ce258
test eax, eax
jne 0x1400306bf
mov ecx, 0x104
call fcn.1400b45e8
mov rbx, rax
test rax, rax
je 0x14003068e
xor edx, edx
mov r8d, 0x104
mov rcx, rax
call fcn.1400a7190
mov r8, qword [rdi + 4]
mov r9, 0xffffffffffffffff
mov edx, 0x104
mov rcx, rbx
call fcn.1400b46b8
mov rcx, rbx
call fcn.14002f380
test eax, eax
je 0x1400306bf
test rbx, rbx
je 0x1400306bf
mov rcx, rbx
call fcn.1400b45d4
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov r9d, 0xffffffff
mov rcx, rdi
lea edx, [r8 + 0x24]
call fcn.14000f090
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov r9d, 0xffffffff
mov rcx, rsi
lea edx, [r8 + 0x24]
call fcn.14000f090
lea r9, [rsp + 0x40]
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.14000c000
mov r15d, eax
test eax, eax
je 0x140030647
lea rcx, [rsp + 0x40]
call fcn.14000bfc0
cmp r15d, 0x3ed
cmove r15d, r12d
mov rcx, r14
call fcn.14000e820
mov rcx, rdi
call fcn.14000e820
mov rcx, rsi
call fcn.14000e820
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov edx, 0x104
lea rcx, [rbp + 0x2b0]
lea r8d, [r9 + 0xa]
call fcn.140014740
mov r9, 0xffffffffffffffff
lea r8, str..edp
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call fcn.1400b46b8
cmp dword [0x140209140], 4
jl 0x1400307d8
test dword [0x1402091bc], 0x100
je 0x1400307d8
lea rax, [rbp + 0x1a0]
mov edx, 4
mov qword [rsp + 0x38], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_dspmgr.c
lea rax, [rbp + 0x2b0]
mov ecx, 0x100
mov qword [rsp + 0x30], rax
lea r8, str.esif_dsp_file_scan
lea rax, str.SCAN_File_System_For_DSP_Files_Path___s__Pattern__s
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x380
call fcn.140077c20
mov ecx, 0x104
call fcn.1400b45e8
mov rbx, rax
test rax, rax
je 0x1400307fa
xor edx, edx
mov r8d, 0x104
mov rcx, rax
call fcn.1400a7190
test rbx, rbx
jne 0x14003084d
cmp dword [0x140209140], 1
jl 0x140030843
test dword [0x140209174], 0x100
je 0x140030843
lea rax, str.Fail_to_allocate_esif_ccb_file_n
mov ecx, 0x100
mov qword [rsp + 0x28], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_dspmgr.c
lea r8, str.esif_dsp_file_scan
mov dword [rsp + 0x20], 0x384
lea edx, [rbx + 1]
call fcn.140077c20
mov eax, 0x708
jmp 0x140030a05
mov r8, rbx
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x2b0]
call fcn.14002eeb0
mov rdi, rax
test rax, rax
jne 0x140030876
mov r15d, 0x3eb
jmp 0x1400309f5
lea rsi, [0x140120918]
nop dword [rax]
mov rdx, rbx
mov rcx, r13
call fcn.140004990
test al, al
jne 0x1400308c5
mov rcx, rbx
call fcn.14002f380
test eax, eax
je 0x1400308a3
mov rcx, rbx
call fcn.1400b45d4
mov ecx, 0x104
call fcn.1400b45e8
mov rbx, rax
test rax, rax
je 0x1400308c5
xor edx, edx
mov r8d, 0x104
mov rcx, rax
call fcn.1400a7190
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x140
call fcn.1400a7190
xor edx, edx
lea rcx, [rbp + 0x90]
mov r8d, 0x104
call fcn.1400a7190
nop dword [rax + rax]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
jne 0x1400309b1
lea rax, [rsp + 0x7c]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rdi + 8]
lea r8, [0x14012091c]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0x90]
call fcn.14002f100
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400309a4
bt eax, 0xa
jae 0x1400309a4
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140030992
bt eax, 0xa
jae 0x140030992
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140030986
test al, 0x10
je 0x140030986
lea rcx, [rbp + 0x90]
call fcn.1400d246c
jmp 0x140030992
lea rcx, [rbp + 0x90]
call fcn.1400b5fcc
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x140
call fcn.1400a7190
cmp byte [rsp + 0x7c], r12b
je 0x1400308f0
jmp 0x1400309b5
test eax, eax
je 0x1400309d7
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x7c]
mov edx, 0x104
mov rcx, rbx
call fcn.1400b46b8
test rbx, rbx
jne 0x140030880
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x1400309ed
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1400b45d4
test rbx, rbx
je 0x140030a02
mov rcx, rbx
call fcn.1400b45d4
mov eax, r15d
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1400a56b0
lea r11, [rsp + 0x4d0]
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