Function at 0x140004814
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
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400354c8]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r14, r9
xor r13d, r13d
mov r15, r8
mov r12b, dl
mov r9, rcx
test r14, r14
je 0x14000485b
mov byte [r14], r13b
mov r10d, 0x104
mov qword [r8], r13
lea rax, [rsp + 0x30]
mov edx, r10d
sub r9, rax
lea rcx, [rsp + 0x30]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140004897
movzx eax, word [r9 + rcx]
test ax, ax
je 0x140004897
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140004874
test rdx, rdx
lea rax, [rcx - 2]
lea r8, [0x14002be60]
mov rdx, r10
cmovne rax, rcx
lea rcx, [rsp + 0x30]
mov word [rax], r13w
call fcn.1400022dc
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000490c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400048f0
mov esi, r13d
jmp 0x140004946
mov rcx, qword [rbp + 0x188]
lea r8, [0x14002bd44]
mov edx, reloc.OLEAUT32.dll_CreateErrorInfo
call fcn.140003f6c
mov esi, eax
jmp 0x140004946
mov ebx, r13d
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x24], ebx
mov rcx, rdi
call fcn.140004680
mov esi, eax
test eax, eax
jns 0x14000497c
mov rcx, qword [rbp + 0x188]
lea r8, [0x14002bd44]
mov r9d, eax
mov edx, 0xcf
call fcn.140003f3c
test rdi, rdi
jne 0x140004a4f
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14001b420
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r12b, r12b
je 0x140004a31
lea r8, [0x14002be68]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1400022dc
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400049d7
mov rcx, qword [rbp + 0x188]
lea r8, [0x14002bd44]
mov edx, 0xd5
call fcn.140003f6c
mov esi, eax
jmp 0x140004a4f
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.140004680
mov esi, eax
test eax, eax
jns 0x140004a1a
mov rcx, qword [rbp + 0x188]
lea r8, [0x14002bd44]
mov r9d, eax
mov edx, 0xd7
call fcn.140003f3c
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140004a80
jmp 0x140004a4f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140004a67
mov ebx, dword [rsp + 0x24]
movsxd rax, dword [rsp + 0x20]
movsxd rcx, ebx
shl rcx, 0x1f
test r14, r14
je 0x140004a46
mov byte [r14], 1
or rax, rcx
mov esi, r13d
mov qword [r15], rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140004a99
jmp 0x14000494f
mov rcx, qword [rbp + 0x188]
lea r8, str.onecoreinternal_sdkincwilopensource_wil_resource.h
mov edx, 0x937
call fcn.140003f98
int3
mov rcx, qword [rbp + 0x188]
lea r8, str.onecoreinternal_sdkincwilopensource_wil_resource.h
mov edx, 0x937
call fcn.140003f98
int3
mov rcx, qword [rbp + 0x188]
lea r8, str.onecoreinternal_sdkincwilopensource_wil_resource.h
mov edx, 0x937
call fcn.140003f98
int3