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

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x140210ef8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rcx, qword [0x140213858]
xor ebx, ebx
test rcx, rcx
je 0x140013ccb
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140213858]
cmp qword [0x1402136a0], rbx
jne 0x140014131
xor edx, edx
mov qword [rsp + 0x190], rdi
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400a7d00
lea rdx, str.Loading_web_server_plugin..._n
mov ecx, 3
call fcn.140013260
mov rax, qword [0x1402139d0]
mov dil, 1
mov rcx, rbx
test rax, rax
je 0x140013d22
cmp dword [0x1402139c8], 7
jle 0x140013d22
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x140013d67
movzx r9d, byte [rcx]
cmp r9b, 0x24
jne 0x140013d36
movzx r9d, byte [rcx + 1]
lea rax, [rcx + 1]
setne dil
cmovne rax, rcx
lea r8, [0x140120e2b]
cmp r9b, 0x23
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov r9, 0xffffffffffffffff
cmovne r8, rax
call fcn.1400b5228
movzx eax, byte [rsp + 0x50]
test al, al
je 0x140013dc5
test dil, dil
je 0x140013d84
lea rcx, [rsp + 0x50]
call fcn.140014b70
movzx eax, byte [rsp + 0x50]
test al, al
je 0x140013dc5
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400cf7a8
cmp rax, 0x104
jne 0x140013da8
mov byte [rsp + 0x153], bl
jmp 0x140013dc5
mov r9, 0xffffffffffffffff
lea r8, [0x140120948]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400e6528
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400cf7a8
cmp rax, 0x104
jne 0x140013de5
mov byte [rsp + 0x153], bl
jmp 0x140013e02
mov r9, 0xffffffffffffffff
lea r8, str.esif_ws
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400e6528
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400cf7a8
cmp rax, 0x104
jne 0x140013e22
mov byte [rsp + 0x153], bl
jmp 0x140013e3f
mov r9, 0xffffffffffffffff
lea r8, str..dll
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400e6528
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 0x140013e97
bt eax, 0xa
jae 0x140013e97
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140013e85
test al, 0x10
je 0x140013e85
lea rcx, [rsp + 0x50]
call fcn.1400d2fdc
jmp 0x140013e8f
lea rcx, [rsp + 0x50]
call fcn.1400b6b3c
test eax, eax
jne 0x14001407b
mov ecx, 0x18
call fcn.1400b5158
mov rdi, rax
test rax, rax
je 0x14001407b
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 [0x1402136a0], rdi
mov rcx, qword [rdi]
test rcx, rcx
je 0x140014085
lea rbp, str.GetWsInterface
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x140013f75
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 8], eax
mov r9, qword [0x1402136a0]
mov rcx, r9
call fcn.140014880
cmp dword [0x14020a150], 1
mov ebx, eax
jl 0x1400140fa
test byte [0x14020a184], 8
je 0x1400140fa
mov rcx, r9
call fcn.1400149c0
mov ecx, ebx
mov r8, rax
call fcn.140014e90
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], 0x354
jmp 0x1400140df
movsxd rax, dword [0x14020a150]
mov cl, 1
mov dword [0x1402136a8], 6
mov dword [0x1402136ac], 0x1b00004
xchg qword [0x1402136b0], rax
mov rax, qword [0x1402139d0]
test rax, rax
je 0x140013fb2
cmp dword [0x1402139c8], 0xc
jle 0x140013fb2
mov rbx, qword [rax + 0x60]
test rbx, rbx
je 0x140013ffa
movzx edi, byte [rbx]
movzx ecx, dil
cmp dil, 0x24
jne 0x140013fc8
movzx ecx, byte [rbx + 1]
lea rax, [rbx + 1]
mov edx, 0x104
cmovne rax, rbx
mov r9, 0xffffffffffffffff
cmp cl, 0x23
lea rcx, [0x1402136b8]
lea r8, [rax + 1]
cmovne r8, rax
call fcn.1400b5228
cmp dil, 0x24
setne cl
cmp byte [0x1402136b8], 0
je 0x140014013
test cl, cl
je 0x140014013
lea rcx, [0x1402136b8]
call fcn.140014b70
lea rax, [0x140014550]
mov qword [0x1402137d8], rax
lea rcx, [0x1402136a8]
lea rax, [0x140014720]
mov qword [0x1402137e0], rax
lea rax, [0x140014570]
mov qword [0x1402137f0], rax
lea rax, [0x140014580]
mov qword [0x1402137f8], rax
lea rax, [0x1400146e0]
mov qword [0x140213800], rax
lea rax, [0x1400144d0]
mov qword [0x140213808], rax
mov rax, rsi
call qword [case.0x1400246b7.0]
mov ebx, eax
jmp 0x1400140fa
mov qword [0x1402136a0], rbx
mov rdi, rbx
mov rcx, rdi
call fcn.140014880
cmp dword [0x14020a150], 1
mov ebx, eax
jl 0x1400140fa
test byte [0x14020a184], 8
je 0x1400140fa
mov rcx, rdi
call fcn.1400149c0
mov ecx, ebx
mov r8, rax
call fcn.140014e90
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], 0x34d
mov edx, 1
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourcesesif_uf.c
lea r8, str.EsifWebLoad
lea ecx, [rdx + 7]
call fcn.140077c20
mov rdi, qword [rsp + 0x190]
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x180]
test ebx, ebx
jne 0x14001412a
mov rax, qword [0x140213828]
test rax, rax
je 0x14001412a
call qword [case.0x1400246b7.0]
mov ebx, eax
mov rcx, qword [0x140213858]
test rcx, rcx
je 0x14001413c
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
je 0x14001416d
cmp qword [0x1402136a0], 0
je 0x14001416d
mov ecx, ebx
call fcn.140014e90
mov r8, rax
lea rdx, [0x140121ab0]
mov ecx, 3
mov r9d, ebx
call fcn.140013260
call fcn.140014370
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400a6220
add rsp, 0x170
pop rbx
ret