Function at 0x1400578a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [r11 - 0x148]
sub rsp, 0x220
mov rax, qword [0x14027aef8]
xor rax, rsp
mov qword [rbp + 0x110], rax
xorps xmm0, xmm0
mov qword [r11 + 0x18], rsi
xorps xmm1, xmm1
mov qword [r11 + 0x20], r12
xor r12d, r12d
lea r15, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
lea r13, str.EsifApp_Load
mov rsi, rcx
mov r14d, 1
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x30], xmm1
movups xmmword [rbp + 0x40], xmm1
movups xmmword [rbp + 0x50], xmm1
movups xmmword [rbp + 0x60], xmm1
movups xmmword [rbp + 0x70], xmm1
movups xmmword [rbp + 0x80], xmm1
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
cmp byte [rcx + 0x36c0], r12b
je 0x140057980
mov edi, 0x4b9
jmp 0x140058128
cmp dword [0x140274810], 4
mov qword [rsp + 0x258], rbx
jl 0x14005799d
test byte [0x14027488c], 0x20
mov ebx, r14d
jne 0x1400579a0
mov ebx, r12d
mov edx, 4
lea ecx, [rdx + 0x1c]
call fcn.1400e1c40
mov edx, eax
test ebx, ebx
jne 0x1400579b7
test eax, eax
je 0x1400579fe
mov rax, qword [rsi + 0xa8]
mov r9d, 4
mov qword [rsp + 0x48], rax
mov ecx, ebx
mov rax, qword [rsi + 0x88]
mov qword [rsp + 0x40], rax
lea rax, str.name_s_lib_s_n
mov qword [rsp + 0x38], rax
lea r8d, [r9 + 0x1c]
mov dword [rsp + 0x30], 0x425
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
call fcn.1400ba210
mov r9, qword [rsi + 0xa8]
lea rdi, [0x14017dc74]
mov edx, 0x80
mov qword [rsp + 0x20], rdi
lea rcx, [rbp - 0x70]
lea r8d, [rdx - 0x79]
call fcn.140047820
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov edx, 0x80
lea rcx, [rbp + 0x90]
lea r8d, [r9 + 7]
call fcn.140047820
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140057a80
bt eax, 0xa
jae 0x140057a80
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140057a73
test al, 0x10
je 0x140057a73
lea rcx, [rbp - 0x70]
call fcn.14012db94
jmp 0x140057a7c
lea rcx, [rbp - 0x70]
call fcn.14011295c
test eax, eax
jne 0x140057abe
mov ecx, 0x18
call fcn.140110008
mov rbx, rax
test rax, rax
je 0x140057abe
xorps xmm0, xmm0
lea rcx, [rbp - 0x70]
xor eax, eax
xor edx, edx
movups xmmword [rbx], xmm0
mov r8d, 0x1000
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
jmp 0x140057ac1
mov rbx, r12
mov qword [rsi + 0xb0], rbx
test rbx, rbx
je 0x140057ad6
cmp qword [rbx], r12
jne 0x140057d71
mov r9, qword [rsi + 0xa8]
lea rcx, [rbp + 0x10]
mov edx, 0x80
mov qword [rsp + 0x20], rdi
lea r8d, [rdx - 0x78]
call fcn.140047820
lea rax, [rbp + 0x10]
lea r8, [rbp - 0x70]
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140057b13
inc rax
test ecx, ecx
jne 0x140057b00
lea rbx, [0x14017f61c]
mov qword [rsp + 0x68], rbx
test edx, edx
je 0x140057d3e
xor r9d, r9d
mov qword [rsp + 0x20], r12
mov edx, 0x80
lea rcx, [rbp + 0x90]
lea r8d, [r9 + 8]
call fcn.140047820
mov rcx, qword [rsi + 0xb0]
call fcn.140059170
cmp dword [0x140274810], 2
mov dword [rsp + 0x60], eax
jl 0x140057b69
test byte [0x14027485c], 0x20
mov r15d, r14d
jne 0x140057b6c
mov r15d, r12d
mov edx, 2
lea ecx, [rdx + 0x1e]
call fcn.1400e1c40
mov r13d, eax
test r15d, r15d
jne 0x140057b89
test eax, eax
je 0x140057c67
mov rdi, qword [rsi + 0xb0]
mov r12, rbx
test rdi, rdi
je 0x140057bfe
cmp dword [rdi + 8], 0
je 0x140057bfe
mov rcx, qword [rdi + 0x10]
lea rax, str.Library
mov qword [rsp + 0x70], rax
lea rbx, [rdi + 0x10]
lea rax, [0x14017dabb]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov r8d, dword [rdi + 8]
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
xor r9d, r9d
mov qword [rbx], rcx
xor edx, edx
mov ecx, 0x3100
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_FormatMessageA]
mov rax, qword [rbx]
test rax, rax
cmovne r12, rax
mov r8d, dword [rsp + 0x60]
mov ecx, r8d
call fcn.1400594e0
mov qword [rsp + 0x58], r12
mov r9d, 2
mov dword [rsp + 0x50], r8d
mov edx, r13d
mov qword [rsp + 0x48], rax
mov ecx, r15d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea r8d, [r9 + 0x1e]
lea rax, str.esif_ccb_library_load____s_failed___s___d__:__s_n
mov qword [rsp + 0x38], rax
lea rax, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
mov dword [rsp + 0x30], 0x433
mov qword [rsp + 0x28], rax
lea rax, str.EsifApp_Load
mov qword [rsp + 0x20], rax
call fcn.1400ba210
xor r12d, r12d
mov rbx, qword [rsi + 0xb0]
test rbx, rbx
je 0x140057c9f
mov rcx, qword [rbx]
test rcx, rcx
je 0x140057c81
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov rcx, rbx
mov qword [rbx + 0x10], rax
call fcn.14010fff4
lea rcx, [rbp + 0x10]
mov qword [rsi + 0xb0], r12
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140057ce6
bt eax, 0xa
jae 0x140057ce6
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140057cd9
test al, 0x10
je 0x140057cd9
lea rcx, [rbp + 0x10]
call fcn.14012db94
jmp 0x140057ce2
lea rcx, [rbp + 0x10]
call fcn.14011295c
test eax, eax
jne 0x140057d24
mov ecx, 0x18
call fcn.140110008
mov rbx, rax
test rax, rax
je 0x140057d24
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
movups xmmword [rbx], xmm0
mov r8d, 0x1000
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
jmp 0x140057d27
mov rbx, r12
mov qword [rsi + 0xb0], rbx
lea r15, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
lea r13, str.EsifApp_Load
jmp 0x140057d45
mov rbx, qword [rsi + 0xb0]
test rbx, rbx
je 0x140057f96
cmp qword [rbx], 0
je 0x140057f96
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x10]
mov edx, 0x80
lea rcx, [rbp - 0x70]
call fcn.1401100d8
lea rcx, [rsi + 0xb9]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x90]
mov edx, 0x104
call fcn.1401100d8
cmp dword [0x140274810], 4
jl 0x140057da5
test byte [0x14027488c], 0x20
mov ebx, r14d
jne 0x140057da8
mov ebx, r12d
mov edx, 4
lea ecx, [rdx + 0x1c]
call fcn.1400e1c40
test ebx, ebx
jne 0x140057dbd
test eax, eax
je 0x140057df7
lea rcx, [rbp - 0x70]
mov r9d, 4
mov qword [rsp + 0x40], rcx
mov edx, eax
lea rcx, str.esif_ccb_library_load____s_completed._n
mov qword [rsp + 0x38], rcx
mov ecx, ebx
mov dword [rsp + 0x30], 0x445
lea r8d, [r9 + 0x1c]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r13
call fcn.1400ba210
mov rbx, qword [rsi + 0xb0]
lea r13, str.GetApplicationInterfaceV2
mov rcx, rbx
test rbx, rbx
je 0x140057e3d
mov rax, qword [rbx]
test rax, rax
je 0x140057e3d
mov rdx, r13
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x140057ee6
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov rcx, qword [rsi + 0xb0]
call fcn.140059170
cmp dword [0x140274810], 4
mov edi, eax
jl 0x140057e59
test byte [0x14027488c], 0x20
mov ebx, r14d
jne 0x140057e5c
mov ebx, r12d
mov edx, 4
lea ecx, [rdx + 0x1c]
call fcn.1400e1c40
mov r15d, eax
test ebx, ebx
jne 0x140057e78
test eax, eax
je 0x1400580c0
mov rcx, qword [rsi + 0xb0]
call fcn.1400592b0
mov ecx, edi
mov r8, rax
call fcn.1400594e0
mov qword [rsp + 0x58], r8
mov r9d, 4
mov dword [rsp + 0x50], edi
mov edx, r15d
mov qword [rsp + 0x48], rax
mov ecx, ebx
mov qword [rsp + 0x40], r13
lea rax, str.esif_ccb_library_get_func____s_failed___s___d__:__s_n
mov qword [rsp + 0x38], rax
lea r13, str.EsifApp_Load
lea rax, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
mov dword [rsp + 0x30], 0x44a
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x1c]
mov qword [rsp + 0x20], r13
call fcn.1400ba210
jmp 0x1400580c7
cmp dword [0x140274810], 4
jl 0x140057efb
test byte [0x14027488c], 0x20
mov ebx, r14d
jne 0x140057efe
mov ebx, r12d
mov edx, 4
lea ecx, [rdx + 0x1c]
call fcn.1400e1c40
test ebx, ebx
jne 0x140057f13
test eax, eax
je 0x140057f52
mov qword [rsp + 0x40], r13
lea rcx, str.esif_ccb_library_get_func____s_completed._n
mov qword [rsp + 0x38], rcx
lea r13, str.EsifApp_Load
mov r9d, 4
mov dword [rsp + 0x30], 0x44e
mov qword [rsp + 0x28], r15
mov edx, eax
mov ecx, ebx
mov qword [rsp + 0x20], r13
lea r8d, [r9 + 0x1c]
call fcn.1400ba210
jmp 0x140057f59
lea r13, str.EsifApp_Load
mov rdx, rdi
mov rcx, rsi
call fcn.1400550e0
mov edi, eax
test eax, eax
jne 0x1400580d2
lock inc qword [0x14027d4d8]
mov edx, 0x4e41
lea r8d, [rax + 0x42]
xor r9d, r9d
mov rcx, r14
call fcn.1400745a0
mov byte [rsi + 0x36e0], r14b
jmp 0x140058120
mov rcx, rbx
call fcn.140059170
cmp dword [0x140274810], r14d
mov edi, eax
jl 0x140057fb5
test byte [0x140274844], 0x20
je 0x140057fb5
mov r12d, r14d
mov edx, r14d
mov ecx, 0x20
call fcn.1400e1c40
mov r13d, eax
test r12d, r12d
jne 0x140057fd2
test eax, eax
je 0x1400580b4
mov r15, qword [rsi + 0xb0]
test r15, r15
je 0x140058051
cmp dword [r15 + 8], 0
je 0x140058051
mov rcx, qword [r15 + 0x10]
lea rax, str.Library
mov qword [rsp + 0x70], rax
lea rbx, [r15 + 0x10]
lea rax, [0x14017dabb]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov r8d, dword [r15 + 8]
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
xor r9d, r9d
mov qword [rbx], rcx
xor edx, edx
mov ecx, 0x3100
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_FormatMessageA]
mov rax, qword [rbx]
lea rcx, [0x14017f61c]
test rax, rax
cmovne rcx, rax
mov qword [rsp + 0x68], rcx
mov ecx, edi
call fcn.1400594e0
mov rcx, qword [rsp + 0x68]
lea r15, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
mov qword [rsp + 0x58], rcx
mov r9d, r14d
mov dword [rsp + 0x50], edi
mov r8d, 0x20
mov qword [rsp + 0x48], rax
mov edx, r13d
lea rax, [rbp + 0x10]
mov ecx, r12d
mov qword [rsp + 0x40], rax
lea rax, str.esif_ccb_library_load____s_failed___s___d__:__s_n
mov qword [rsp + 0x38], rax
lea rax, str.EsifApp_Load
mov dword [rsp + 0x30], 0x43c
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call fcn.1400ba210
xor r12d, r12d
lea r13, str.EsifApp_Load
jmp 0x1400580ce
lea r13, str.EsifApp_Load
lea r15, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
test edi, edi
je 0x140058120
cmp edi, 0x4b9
je 0x140058119
mov rbx, qword [rsi + 0xb0]
test rbx, rbx
je 0x140058112
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400580f4
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov rcx, rbx
mov qword [rbx + 0x10], rax
call fcn.14010fff4
mov qword [rsi + 0xb0], r12
lea r13, str.EsifApp_Load
mov rbx, qword [rsp + 0x258]
cmp dword [0x140274810], 3
mov rsi, qword [rsp + 0x260]
jl 0x140058145
test dword [0x140274874], 0x400000
jne 0x140058148
mov r14d, r12d
mov edx, 3
mov ecx, 0x400000
call fcn.1400e1c40
mov r12, qword [rsp + 0x268]
test r14d, r14d
jne 0x140058168
test eax, eax
je 0x1400581a0
mov dword [rsp + 0x40], edi
lea rcx, str.Exiting_function:_Exit_code__0x_08X...
mov qword [rsp + 0x38], rcx
mov r9d, 3
mov dword [rsp + 0x30], 0x45c
mov r8d, 0x400000
mov qword [rsp + 0x28], r15
mov edx, eax
mov ecx, r14d
mov qword [rsp + 0x20], r13
call fcn.1400ba210
mov eax, edi
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140100920
add rsp, 0x220
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret