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

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
mov rax, qword [0x14021a328]
xor rax, rsp
mov qword [rbp + 0xd0], rax
cmp byte [rcx + 0x36a8], 0
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rsp + 0x208], rsi
movups xmmword [rsp + 0x50], xmm0
mov rsi, rcx
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x30], xmm1
movups xmmword [rbp + 0x40], xmm1
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
je 0x140022bc9
mov ebx, 0x4b9
jmp 0x140023141
cmp dword [0x140213620], 4
mov qword [rsp + 0x210], rdi
mov qword [rsp + 0x1e0], r15
jl 0x140022c32
test byte [0x14021369c], 0x20
je 0x140022c32
mov rax, qword [rcx + 0x90]
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
mov qword [rsp + 0x38], rax
lea r8, str.EsifApp_Load
mov rax, qword [rcx + 0x88]
mov edx, 4
mov qword [rsp + 0x30], rax
lea rax, str.name_s_lib_s_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x403
lea ecx, [rdx + 0x1c]
call fcn.140079050
mov r9, qword [rsi + 0x90]
lea rdi, str..dll
mov edx, 0x80
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x50]
lea r8d, [rdx - 0x79]
call fcn.140013c70
xor r15d, r15d
lea rcx, [rbp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov edx, 0x80
lea r8d, [r15 + 7]
call fcn.140013c70
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140022cb9
bt eax, 0xa
jae 0x140022cb9
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140022cab
test al, 0x10
je 0x140022cab
lea rcx, [rsp + 0x50]
call fcn.1400d95ec
jmp 0x140022cb5
lea rcx, [rsp + 0x50]
call fcn.1400bd14c
test eax, eax
jne 0x140022cf8
mov ecx, 0x18
call fcn.1400bb768
mov rbx, rax
test rax, rax
je 0x140022cf8
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
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 0x140022cfb
mov rbx, r15
mov qword [rsp + 0x218], r14
mov qword [rsi + 0x98], rbx
test rbx, rbx
je 0x140022d18
cmp qword [rbx], r15
jne 0x140022edf
mov r9, qword [rsi + 0x90]
lea rcx, [rbp - 0x30]
mov edx, 0x80
mov qword [rsp + 0x20], rdi
lea r8d, [rdx - 0x78]
call fcn.140013c70
lea rax, [rbp - 0x30]
lea r8, [rsp + 0x50]
sub r8, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140022d55
inc rax
test ecx, ecx
jne 0x140022d42
lea r14, str.esif_ccb_library_load____s_failed___s___d__:__s_n
test edx, edx
je 0x140022ec6
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov edx, 0x80
lea rcx, [rbp + 0x50]
lea r8d, [r9 + 8]
call fcn.140013c70
mov r9, qword [rsi + 0x98]
mov rcx, r9
call fcn.140023f10
cmp dword [0x140213620], 2
mov edi, eax
mov rbx, r9
jl 0x140022dfd
test byte [0x14021366c], 0x20
je 0x140022dfd
mov rcx, r9
call fcn.140024050
mov ecx, edi
mov r8, rax
call fcn.140024340
mov qword [rsp + 0x48], r8
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
mov dword [rsp + 0x40], edi
lea r8, str.EsifApp_Load
mov qword [rsp + 0x38], rax
mov edx, 2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
lea ecx, [rdx + 0x1e]
mov dword [rsp + 0x20], 0x411
call fcn.140079050
mov rbx, qword [rsi + 0x98]
test rbx, rbx
je 0x140022e2e
mov rcx, qword [rbx]
test rcx, rcx
je 0x140022e10
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.1400bb754
lea rcx, [rbp - 0x30]
mov qword [rsi + 0x98], r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140022e75
bt eax, 0xa
jae 0x140022e75
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140022e68
test al, 0x10
je 0x140022e68
lea rcx, [rbp - 0x30]
call fcn.1400d95ec
jmp 0x140022e71
lea rcx, [rbp - 0x30]
call fcn.1400bd14c
test eax, eax
jne 0x140022eba
mov ecx, 0x18
call fcn.1400bb768
mov rdi, rax
test rax, rax
je 0x140022eba
xorps xmm0, xmm0
lea rcx, [rbp - 0x30]
xor eax, eax
xor edx, edx
movups xmmword [rdi], xmm0
mov r8d, 0x1000
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 8], eax
mov qword [rsi + 0x98], rdi
jmp 0x140022ecd
mov rdi, r15
mov qword [rsi + 0x98], r15
jmp 0x140022ecd
mov rdi, qword [rsi + 0x98]
test rdi, rdi
je 0x14002306f
cmp qword [rdi], r15
je 0x14002306f
lea rcx, [rsi + 0xa1]
mov r9, 0xffffffffffffffff
lea r8, [rbp + 0x50]
mov edx, 0x104
call fcn.1400bb838
cmp dword [0x140213620], 4
jl 0x140022f46
test byte [0x14021369c], 0x20
je 0x140022f46
lea rax, [rsp + 0x50]
mov edx, 4
mov qword [rsp + 0x30], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
lea rax, str.esif_ccb_library_load____s_completed._n
mov qword [rsp + 0x28], rax
lea r8, str.EsifApp_Load
lea ecx, [rdx + 0x1c]
mov dword [rsp + 0x20], 0x421
call fcn.140079050
mov rbx, qword [rsi + 0x98]
lea r14, str.GetApplicationInterfaceV2
mov r9, rbx
test rbx, rbx
je 0x140022f85
mov rcx, qword [rbx]
test rcx, rcx
je 0x140022f85
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x140022fec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
mov r9, qword [rsi + 0x98]
mov rcx, r9
call fcn.140023f10
cmp dword [0x140213620], 4
mov ebx, eax
jl 0x1400230de
test byte [0x14021369c], 0x20
je 0x1400230de
mov rcx, r9
call fcn.140024050
mov ecx, ebx
mov r8, rax
call fcn.140024340
mov qword [rsp + 0x48], r8
mov edx, 4
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rax
lea rax, str.esif_ccb_library_get_func____s_failed___s___d__:__s_n
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x426
jmp 0x1400230c6
cmp dword [0x140213620], 4
jl 0x140023032
test byte [0x14021369c], 0x20
je 0x140023032
mov edx, 4
mov qword [rsp + 0x30], r14
lea rax, str.esif_ccb_library_get_func____s_completed._n
mov qword [rsp + 0x28], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
lea r8, str.EsifApp_Load
mov dword [rsp + 0x20], 0x42a
lea ecx, [rdx + 0x1c]
call fcn.140079050
mov rdx, rdi
mov rcx, rsi
call fcn.140020b10
mov ebx, eax
test eax, eax
jne 0x1400230e2
lock inc qword [0x14021ce70]
mov edx, 0x4e41
lea ecx, [rax + 1]
xor r9d, r9d
lea r8d, [rax + 0x42]
call fcn.140035170
mov byte [rsi + 0x36c8], 1
jmp 0x140023129
mov rcx, rdi
call fcn.140023f10
cmp dword [0x140213620], 1
mov ebx, eax
jl 0x1400230de
test byte [0x140213654], 0x20
je 0x1400230de
mov rcx, rdi
call fcn.140024050
mov ecx, ebx
mov r8, rax
call fcn.140024340
mov qword [rsp + 0x48], r8
mov edx, 1
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x41a
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
mov ecx, 0x20
lea r8, str.EsifApp_Load
call fcn.140079050
test ebx, ebx
je 0x140023129
cmp ebx, 0x4b9
je 0x140023129
mov rdi, qword [rsi + 0x98]
test rdi, rdi
je 0x140023122
mov rcx, qword [rdi]
test rcx, rcx
je 0x140023104
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov rcx, rdi
mov qword [rdi + 0x10], rax
call fcn.1400bb754
mov qword [rsi + 0x98], r15
mov r14, qword [rsp + 0x218]
mov rdi, qword [rsp + 0x210]
mov r15, qword [rsp + 0x1e0]
cmp dword [0x140213620], 3
mov rsi, qword [rsp + 0x208]
jl 0x140023193
test dword [0x140213684], 0x400000
je 0x140023193
lea rax, str.Exiting_function:_Exit_code__0x_08X...
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf_app.c
lea r8, str.EsifApp_Load
mov dword [rsp + 0x20], 0x438
mov edx, 3
mov ecx, 0x400000
call fcn.140079050
mov eax, ebx
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400ac830
add rsp, 0x1e8
pop rbx
pop rbp
ret