Function at 0x140013240
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 0x14001327b
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [0x140217938]
cmp qword [0x140217780], rbx
jne 0x1400136e1
xor edx, edx
mov qword [rsp + 0x190], rdi
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ad590
lea rdx, str.Loading_web_server_plugin..._n
mov ecx, 3
call fcn.140012810
mov rax, qword [0x140217ab8]
mov dil, 1
mov rcx, rbx
test rax, rax
je 0x1400132d2
cmp dword [0x140217ab0], 8
jle 0x1400132d2
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x140013317
movzx r9d, byte [rcx]
cmp r9b, 0x24
jne 0x1400132e6
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.1400bb338
movzx eax, byte [rsp + 0x50]
test al, al
je 0x140013375
test dil, dil
je 0x140013334
lea rcx, [rsp + 0x50]
call fcn.140014120
movzx eax, byte [rsp + 0x50]
test al, al
je 0x140013375
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400d5838
cmp rax, 0x104
jne 0x140013358
mov byte [rsp + 0x153], bl
jmp 0x140013375
mov r9, 0xffffffffffffffff
lea r8, [0x14012779c]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ec3c4
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400d5838
cmp rax, 0x104
jne 0x140013395
mov byte [rsp + 0x153], bl
jmp 0x1400133b2
mov r9, 0xffffffffffffffff
lea r8, str.esif_ws
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ec3c4
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400d5838
cmp rax, 0x104
jne 0x1400133d2
mov byte [rsp + 0x153], bl
jmp 0x1400133ef
mov r9, 0xffffffffffffffff
lea r8, str..dll
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400ec3c4
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 0x140013447
bt eax, 0xa
jae 0x140013447
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140013435
test al, 0x10
je 0x140013435
lea rcx, [rsp + 0x50]
call fcn.1400d8df4
jmp 0x14001343f
lea rcx, [rsp + 0x50]
call fcn.1400bdbbc
test eax, eax
jne 0x14001362b
mov ecx, 0x18
call fcn.1400bb268
mov rdi, rax
test rax, rax
je 0x14001362b
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 0x140013635
lea rbp, str.GetWsInterface
mov rdx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x140013525
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rdi + 8], eax
mov r9, qword [0x140217780]
mov rcx, r9
call fcn.140013e30
cmp dword [0x14020e430], 1
mov ebx, eax
jl 0x1400136aa
test byte [0x14020e464], 8
je 0x1400136aa
mov rcx, r9
call fcn.140013f70
mov ecx, ebx
mov r8, rax
call fcn.140014440
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 0x14001368f
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 0x140013562
cmp dword [0x140217ab0], 0xc
jle 0x140013562
mov rbx, qword [rax + 0x60]
test rbx, rbx
je 0x1400135aa
movzx edi, byte [rbx]
movzx ecx, dil
cmp dil, 0x24
jne 0x140013578
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.1400bb338
cmp dil, 0x24
setne cl
cmp byte [0x140217798], 0
je 0x1400135c3
test cl, cl
je 0x1400135c3
lea rcx, [0x140217798]
call fcn.140014120
lea rax, [0x140013b00]
mov qword [0x1402178b8], rax
lea rcx, [0x140217788]
lea rax, [0x140013cd0]
mov qword [0x1402178c0], rax
lea rax, [0x140013b20]
mov qword [0x1402178d0], rax
lea rax, [0x140013b30]
mov qword [0x1402178d8], rax
lea rax, [0x140013c90]
mov qword [0x1402178e0], rax
lea rax, [0x140013a80]
mov qword [0x1402178e8], rax
mov rax, rsi
call qword [case.0x140023f87.0]
mov ebx, eax
jmp 0x1400136aa
mov qword [0x140217780], rbx
mov rdi, rbx
mov rcx, rdi
call fcn.140013e30
cmp dword [0x14020e430], 1
mov ebx, eax
jl 0x1400136aa
test byte [0x14020e464], 8
je 0x1400136aa
mov rcx, rdi
call fcn.140013f70
mov ecx, ebx
mov r8, rax
call fcn.140014440
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.140078180
mov rdi, qword [rsp + 0x190]
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x180]
test ebx, ebx
jne 0x1400136da
mov rax, qword [0x140217908]
test rax, rax
je 0x1400136da
call qword [case.0x140023f87.0]
mov ebx, eax
mov rcx, qword [0x140217938]
test rcx, rcx
je 0x1400136ec
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
test ebx, ebx
je 0x14001371d
cmp qword [0x140217780], 0
je 0x14001371d
mov ecx, ebx
call fcn.140014440
mov r8, rax
lea rdx, [0x140128a40]
mov ecx, 3
mov r9d, ebx
call fcn.140012810
call fcn.140013920
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400abc80
add rsp, 0x170
pop rbx
ret