Function at 0x140004844
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 0x14000488b
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 0x1400048c7
movzx eax, word [r9 + rcx]
test ax, ax
je 0x1400048c7
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400048a4
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 0x14000493c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x140004920
mov esi, r13d
jmp 0x140004976
mov rcx, qword [rbp + 0x188]
lea r8, [0x14002bd44]
mov edx, reloc.OLEAUT32.dll_CreateErrorInfo
call fcn.140003f6c
mov esi, eax
jmp 0x140004976
mov ebx, r13d
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x24], ebx
mov rcx, rdi
call fcn.1400046b0
mov esi, eax
test eax, eax
jns 0x1400049ac
mov rcx, qword [rbp + 0x188]
lea r8, [0x14002bd44]
mov r9d, eax
mov edx, 0xcf
call fcn.140003f3c
test rdi, rdi
jne 0x140004a7f
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14001b530
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 0x140004a61
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 0x140004a07
mov rcx, qword [rbp + 0x188]
lea r8, [0x14002bd44]
mov edx, 0xd5
call fcn.140003f6c
mov esi, eax
jmp 0x140004a7f
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.1400046b0
mov esi, eax
test eax, eax
jns 0x140004a4a
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 0x140004ab0
jmp 0x140004a7f
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 0x140004a97
mov ebx, dword [rsp + 0x24]
movsxd rax, dword [rsp + 0x20]
movsxd rcx, ebx
shl rcx, 0x1f
test r14, r14
je 0x140004a76
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 0x140004ac9
jmp 0x14000497f
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