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

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x14021a328]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rcx, qword [0x14021cc98]
xor ebx, ebx
test rcx, rcx
je 0x1400131fb
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x14021cc98]
cmp qword [0x14021cae0], rbx
jne 0x140013661
xor edx, edx
mov qword [rsp + 0x190], rdi
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ae310
lea rdx, str.Loading_web_server_plugin..._n
mov ecx, 3
call fcn.140012790
mov rax, qword [0x14021ce10]
mov dil, 1
mov rcx, rbx
test rax, rax
je 0x140013252
cmp dword [0x14021ce08], 8
jle 0x140013252
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x140013297
movzx r9d, byte [rcx]
cmp r9b, 0x24
jne 0x140013266
movzx r9d, byte [rcx + 1]
lea rax, [rcx + 1]
setne dil
cmovne rax, rcx
lea r8, [0x140127ccb]
cmp r9b, 0x23
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov r9, 0xffffffffffffffff
cmovne r8, rax
call fcn.1400bb838
movzx eax, byte [rsp + 0x50]
test al, al
je 0x1400132f5
test dil, dil
je 0x1400132b4
lea rcx, [rsp + 0x50]
call fcn.1400140a0
movzx eax, byte [rsp + 0x50]
test al, al
je 0x1400132f5
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400d5db8
cmp rax, 0x104
jne 0x1400132d8
mov byte [rsp + 0x153], bl
jmp 0x1400132f5
mov r9, 0xffffffffffffffff
lea r8, [0x1401277ec]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ecb38
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400d5db8
cmp rax, 0x104
jne 0x140013315
mov byte [rsp + 0x153], bl
jmp 0x140013332
mov r9, 0xffffffffffffffff
lea r8, str.esif_ws
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ecb38
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400d5db8
cmp rax, 0x104
jne 0x140013352
mov byte [rsp + 0x153], bl
jmp 0x14001336f
mov r9, 0xffffffffffffffff
lea r8, str..dll
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ecb38
mov qword [rsp + 0x180], rbp
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x188], rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400133c7
bt eax, 0xa
jae 0x1400133c7
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400133b5
test al, 0x10
je 0x1400133b5
lea rcx, [rsp + 0x50]
call fcn.1400d95ec
jmp 0x1400133bf
lea rcx, [rsp + 0x50]
call fcn.1400bd14c
test eax, eax
jne 0x1400135ab
mov ecx, 0x18
call fcn.1400bb768
mov rdi, rax
test rax, rax
je 0x1400135ab
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
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 [0x14021cae0], rdi
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400135b5
lea rbp, str.GetWsInterface
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400134a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 8], eax
mov r9, qword [0x14021cae0]
mov rcx, r9
call fcn.140013db0
cmp dword [0x140213620], 1
mov ebx, eax
jl 0x14001362a
test byte [0x140213654], 8
je 0x14001362a
mov rcx, r9
call fcn.140013ef0
mov ecx, ebx
mov r8, rax
call fcn.1400143c0
mov qword [rsp + 0x48], r8
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], rbp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x355
jmp 0x14001360f
movsxd rax, dword [0x140213620]
mov cl, 1
mov dword [0x14021cae8], 6
mov dword [0x14021caec], 0x1b00004
xchg qword [0x14021caf0], rax
mov rax, qword [0x14021ce10]
test rax, rax
je 0x1400134e2
cmp dword [0x14021ce08], 0xc
jle 0x1400134e2
mov rbx, qword [rax + 0x60]
test rbx, rbx
je 0x14001352a
movzx edi, byte [rbx]
movzx ecx, dil
cmp dil, 0x24
jne 0x1400134f8
movzx ecx, byte [rbx + 1]
lea rax, [rbx + 1]
mov edx, 0x104
cmovne rax, rbx
mov r9, 0xffffffffffffffff
cmp cl, 0x23
lea rcx, [0x14021caf8]
lea r8, [rax + 1]
cmovne r8, rax
call fcn.1400bb838
cmp dil, 0x24
setne cl
cmp byte [0x14021caf8], 0
je 0x140013543
test cl, cl
je 0x140013543
lea rcx, [0x14021caf8]
call fcn.1400140a0
lea rax, [0x140013a80]
mov qword [0x14021cc18], rax
lea rcx, [0x14021cae8]
lea rax, [0x140013c50]
mov qword [0x14021cc20], rax
lea rax, [0x140013aa0]
mov qword [0x14021cc30], rax
lea rax, [0x140013ab0]
mov qword [0x14021cc38], rax
lea rax, [0x140013c10]
mov qword [0x14021cc40], rax
lea rax, [0x140013a00]
mov qword [0x14021cc48], rax
mov rax, rsi
call qword [case.0x140023ef7.0]
mov ebx, eax
jmp 0x14001362a
mov qword [0x14021cae0], rbx
mov rdi, rbx
mov rcx, rdi
call fcn.140013db0
cmp dword [0x140213620], 1
mov ebx, eax
jl 0x14001362a
test byte [0x140213654], 8
je 0x14001362a
mov rcx, rdi
call fcn.140013ef0
mov ecx, ebx
mov r8, rax
call fcn.1400143c0
mov qword [rsp + 0x48], r8
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, str.esif_ccb_library_load____s_failed___s___d__:__s_n
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x34e
mov edx, 1
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf.c
lea r8, str.EsifWebLoad
lea ecx, [rdx + 7]
call fcn.140079050
mov rdi, qword [rsp + 0x190]
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x180]
test ebx, ebx
jne 0x14001365a
mov rax, qword [0x14021cc68]
test rax, rax
je 0x14001365a
call qword [case.0x140023ef7.0]
mov ebx, eax
mov rcx, qword [0x14021cc98]
test rcx, rcx
je 0x14001366c
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
je 0x14001369d
cmp qword [0x14021cae0], 0
je 0x14001369d
mov ecx, ebx
call fcn.1400143c0
mov r8, rax
lea rdx, [0x140128a90]
mov ecx, 3
mov r9d, ebx
call fcn.140012790
call fcn.1400138a0
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400ac830
add rsp, 0x170
pop rbx
ret