Function at 0x14014a080
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x140221f78]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r13, r9
mov qword [rsp + 0x28], r8
movzx r12d, dl
mov r10, rcx
test r9, r9
je 0x14014a0c1
mov byte [r9], 0
xor r14d, r14d
mov qword [r8], r14
mov esi, 0x104
mov edx, esi
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x40]
sub r10, rax
nop dword [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14014a103
movzx eax, word [r10 + rcx]
test ax, ax
je 0x14014a103
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14014a0e0
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
mov rcx, rsi
lea rax, [rsp + 0x40]
nop word [rax + rax]
cmp word [rax], r14w
je 0x14014a130
add rax, 2
sub rcx, 1
jne 0x14014a120
mov rax, rsi
sub rax, rcx
test rcx, rcx
cmove rax, r14
mov ebp, 0x7ffffffe
je 0x14014a191
mov rdx, rsi
sub rdx, rax
lea rcx, [rsp + 0x40]
lea rcx, [rcx + rax*2]
je 0x14014a182
mov eax, ebp
lea r9, [0x1401dd5f0]
sub r9, rcx
test rax, rax
je 0x14014a182
movzx r8d, word [r9 + rcx]
test r8w, r8w
je 0x14014a182
mov word [rcx], r8w
add rcx, 2
dec rax
sub rdx, 1
jne 0x14014a161
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
setne byte [rsp + 0x20]
test rax, rax
jne 0x14014a1e3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x14014a4a2
mov rcx, qword [rsp + 0x298]
lea r8, [0x1401dd5c4]
mov edx, reloc.OLEAUT32.dll_CreateErrorInfo
call fcn.140149110
mov r14d, eax
jmp 0x14014a4a2
mov r15d, r14d
mov dword [rsp + 0x24], r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14014a205
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
jmp 0x14014a2e1
test eax, eax
je 0x14014a21a
cmp eax, 0x102
je 0x14014a21a
mov edx, reloc.OLEAUT32.dll_DllRegisterServer
jmp 0x14014a467
mov dword [rsp + 0x30], r14d
mov edx, 1
mov rcx, rdi
test eax, eax
jne 0x14014a277
lea r8, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
test eax, eax
jne 0x14014a244
mov edx, 0x9e
jmp 0x14014a2e1
inc dword [rsp + 0x30]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
test eax, eax
jne 0x14014a26d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x12a
je 0x14014a30e
mov edx, 0xa3
jmp 0x14014a467
mov dword [rsp + 0x34], r14d
lea r8, [rsp + 0x34]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
test eax, eax
jne 0x14014a292
mov edx, 0xad
jmp 0x14014a2e1
cmp dword [rsp + 0x34], r14d
je 0x14014a2a3
mov edx, 0xae
jmp 0x14014a467
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSemaphore]
test eax, eax
jne 0x14014a462
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x12a
jne 0x14014a462
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14014a300
mov edx, 0xb4
lea r8, [0x1401dd5c4]
mov rcx, qword [rsp + 0x298]
call fcn.140149110
mov ebx, eax
test eax, eax
jns 0x14014a313
jmp 0x14014a483
test eax, eax
je 0x14014a30e
mov edx, 0xb5
jmp 0x14014a467
mov r15d, dword [rsp + 0x30]
test r12b, r12b
je 0x14014a43f
mov rcx, rsi
lea rax, [rsp + 0x40]
cmp word [rax], r14w
je 0x14014a334
add rax, 2
sub rcx, 1
jne 0x14014a324
mov rax, rsi
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x14014a38d
sub rsi, rax
lea rdx, [rsp + 0x40]
lea rdx, [rdx + rax*2]
je 0x14014a37e
lea rcx, [0x1401dd5f8]
sub rcx, rdx
nop dword [rax + rax]
test rbp, rbp
je 0x14014a37e
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14014a37e
mov word [rdx], ax
add rdx, 2
dec rbp
sub rsi, 1
jne 0x14014a360
lea rax, [rdx - 2]
test rsi, rsi
cmovne rax, rdx
mov word [rax], r14w
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
setne bpl
test rax, rax
jne 0x14014a3cb
mov rcx, qword [rsp + 0x298]
lea r8, [0x1401dd5c4]
mov edx, 0xd5
call fcn.140149110
mov esi, eax
jmp 0x14014a3fa
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.1401488d0
mov esi, eax
test eax, eax
jns 0x14014a421
mov rcx, qword [rsp + 0x298]
mov r9d, eax
lea r8, [0x1401dd5c4]
mov edx, 0xd7
call fcn.140149140
test bpl, bpl
je 0x14014a4a5
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x298]
test eax, eax
je 0x14014a500
jmp 0x14014a4a5
test bpl, bpl
je 0x14014a43f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x298]
test eax, eax
je 0x14014a512
movsxd rcx, dword [rsp + 0x24]
shl rcx, 0x1f
movsxd rax, r15d
test r13, r13
je 0x14014a455
mov byte [r13], 1
or rax, rcx
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x14014a4a2
mov edx, 0xb1
mov ebx, 0x8000ffff
mov r9d, ebx
lea r8, [0x1401dd5c4]
mov rcx, qword [rsp + 0x298]
call fcn.140149140
mov rcx, qword [rsp + 0x298]
mov r9d, ebx
lea r8, [0x1401dd5c4]
mov edx, 0xcf
call fcn.140149140
mov r14d, ebx
mov esi, r14d
cmp byte [rsp + 0x20], 0
je 0x14014a4c1
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x298]
test eax, eax
je 0x14014a4ee
mov eax, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14015eb70
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, str.c:DAX35dax3APIpackagesMicrosoft.Windows.ImplementationLibrary.1.0.210204.1includewil_resource.h
mov edx, 0x929
call fcn.14014a9b0
nop
lea r8, str.c:DAX35dax3APIpackagesMicrosoft.Windows.ImplementationLibrary.1.0.210204.1includewil_resource.h
mov edx, 0x929
call fcn.14014a9b0
nop
lea r8, str.c:DAX35dax3APIpackagesMicrosoft.Windows.ImplementationLibrary.1.0.210204.1includewil_resource.h
mov edx, 0x929
call fcn.14014a9b0
int3