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

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x140214ec8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rcx, qword [0x140217938]
xor ebx, ebx
test rcx, rcx
je 0x14001323b
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [0x140217938]
cmp qword [0x140217780], rbx
jne 0x1400136a1
xor edx, edx
mov qword [rsp + 0x190], rdi
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ad180
lea rdx, str.Loading_web_server_plugin..._n
mov ecx, 3
call fcn.1400127d0
mov rax, qword [0x140217ab8]
mov dil, 1
mov rcx, rbx
test rax, rax
je 0x140013292
cmp dword [0x140217ab0], 8
jle 0x140013292
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1400132d7
movzx r9d, byte [rcx]
cmp r9b, 0x24
jne 0x1400132a6
movzx r9d, byte [rcx + 1]
lea rax, [rcx + 1]
setne dil
cmovne rax, rcx
lea r8, [0x140127c7b]
cmp r9b, 0x23
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov r9, 0xffffffffffffffff
cmovne r8, rax
call fcn.1400baf28
movzx eax, byte [rsp + 0x50]
test al, al
je 0x140013335
test dil, dil
je 0x1400132f4
lea rcx, [rsp + 0x50]
call fcn.1400140e0
movzx eax, byte [rsp + 0x50]
test al, al
je 0x140013335
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400d5428
cmp rax, 0x104
jne 0x140013318
mov byte [rsp + 0x153], bl
jmp 0x140013335
mov r9, 0xffffffffffffffff
lea r8, [0x14012779c]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ebfb4
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400d5428
cmp rax, 0x104
jne 0x140013355
mov byte [rsp + 0x153], bl
jmp 0x140013372
mov r9, 0xffffffffffffffff
lea r8, str.esif_ws
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ebfb4
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400d5428
cmp rax, 0x104
jne 0x140013392
mov byte [rsp + 0x153], bl
jmp 0x1400133af
mov r9, 0xffffffffffffffff
lea r8, str..dll
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ebfb4
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 0x140013407
bt eax, 0xa
jae 0x140013407
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400133f5
test al, 0x10
je 0x1400133f5
lea rcx, [rsp + 0x50]
call fcn.1400d89e4
jmp 0x1400133ff
lea rcx, [rsp + 0x50]
call fcn.1400bd7ac
test eax, eax
jne 0x1400135eb
mov ecx, 0x18
call fcn.1400bae58
mov rdi, rax
test rax, rax
je 0x1400135eb
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 [0x140217780], rdi
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400135f5
lea rbp, str.GetWsInterface
mov rdx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400134e5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rdi + 8], eax
mov r9, qword [0x140217780]
mov rcx, r9
call fcn.140013df0
cmp dword [0x14020e430], 1
mov ebx, eax
jl 0x14001366a
test byte [0x14020e464], 8
je 0x14001366a
mov rcx, r9
call fcn.140013f30
mov ecx, ebx
mov r8, rax
call fcn.140014400
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 0x14001364f
movsxd rax, dword [0x14020e430]
mov cl, 1
mov dword [0x140217788], 6
mov dword [0x14021778c], 0x1b00004
xchg qword [0x140217790], rax
mov rax, qword [0x140217ab8]
test rax, rax
je 0x140013522
cmp dword [0x140217ab0], 0xc
jle 0x140013522
mov rbx, qword [rax + 0x60]
test rbx, rbx
je 0x14001356a
movzx edi, byte [rbx]
movzx ecx, dil
cmp dil, 0x24
jne 0x140013538
movzx ecx, byte [rbx + 1]
lea rax, [rbx + 1]
mov edx, 0x104
cmovne rax, rbx
mov r9, 0xffffffffffffffff
cmp cl, 0x23
lea rcx, [0x140217798]
lea r8, [rax + 1]
cmovne r8, rax
call fcn.1400baf28
cmp dil, 0x24
setne cl
cmp byte [0x140217798], 0
je 0x140013583
test cl, cl
je 0x140013583
lea rcx, [0x140217798]
call fcn.1400140e0
lea rax, [0x140013ac0]
mov qword [0x1402178b8], rax
lea rcx, [0x140217788]
lea rax, [0x140013c90]
mov qword [0x1402178c0], rax
lea rax, [0x140013ae0]
mov qword [0x1402178d0], rax
lea rax, [0x140013af0]
mov qword [0x1402178d8], rax
lea rax, [0x140013c50]
mov qword [0x1402178e0], rax
lea rax, [0x140013a40]
mov qword [0x1402178e8], rax
mov rax, rsi
call qword [case.0x140023f47.0]
mov ebx, eax
jmp 0x14001366a
mov qword [0x140217780], rbx
mov rdi, rbx
mov rcx, rdi
call fcn.140013df0
cmp dword [0x14020e430], 1
mov ebx, eax
jl 0x14001366a
test byte [0x14020e464], 8
je 0x14001366a
mov rcx, rdi
call fcn.140013f30
mov ecx, ebx
mov r8, rax
call fcn.140014400
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.140078130
mov rdi, qword [rsp + 0x190]
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x180]
test ebx, ebx
jne 0x14001369a
mov rax, qword [0x140217908]
test rax, rax
je 0x14001369a
call qword [case.0x140023f47.0]
mov ebx, eax
mov rcx, qword [0x140217938]
test rcx, rcx
je 0x1400136ac
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
test ebx, ebx
je 0x1400136dd
cmp qword [0x140217780], 0
je 0x1400136dd
mov ecx, ebx
call fcn.140014400
mov r8, rax
lea rdx, [0x140128a40]
mov ecx, 3
mov r9d, ebx
call fcn.1400127d0
call fcn.1400138e0
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400ab870
add rsp, 0x170
pop rbx
ret