Function at 0x140226ce0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xb0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r14, r9
mov r15b, dl
mov r12, rcx
mov rdi, qword [rbp + 0x7f]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
and qword [rbp - 0x31], 0
xor ebx, ebx
mov qword [rbp - 0x49], rbx
test r8b, r8b
je 0x140226d8b
lea rcx, [rbp - 0x51]
call fcn.140243af4
xor esi, esi
lea rcx, [rbp - 0x49]
cmp rcx, rax
je 0x140226d5a
mov rbx, qword [rax]
mov qword [rbp - 0x49], rbx
and qword [rax], rsi
mov rsi, rbx
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x140226d6f
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
test rsi, rsi
je 0x140226ecc
mov qword [rbp - 0x51], rbx
lea r8, [rbp - 0x51]
xor edx, edx
lea rcx, [rbp - 0x41]
call fcn.140094168
movzx edx, r15b
lea rcx, [rbp - 0x51]
test r14, r14
je 0x140226da9
lea r9, [rbp - 0x41]
mov r8d, edx
mov rdx, r12
call fcn.140243884
jmp 0x140226db2
lea r8, [rbp - 0x41]
call fcn.1402437dc
cmp rdi, rax
mov rsi, rax
je 0x140226dc9
mov rdx, qword [rax]
mov rcx, rdi
call fcn.1400543c8
and qword [rsi], 0
mov rcx, qword [rbp - 0x51]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140226de3
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rax, qword [rdi]
inc rax
test rax, 0xfffffffffffffffe
je 0x140226e37
test rbx, rbx
je 0x140226e06
mov rcx, rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x41]
call fcn.14005d84c
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140356560
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
mov dword [rbp - 0x51], eax
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140226e9e
lea rax, [rbp - 0x51]
mov qword [rbp - 1], rax
mov eax, 4
mov dword [rbp + 7], eax
and dword [rbp + 0xb], 0
lea rdx, [0x1403f2e60]
mov qword [rbp + 0xf], rdx
mov dword [rbp + 0x17], 0x44
and dword [rbp + 0x1b], 0
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140483caf]
call fcn.140001208
mov eax, dword [rbp - 0x51]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
xor r8d, r8d
lea rcx, [rbp - 0x21]
call fcn.1402260f0
lea rdx, [0x140514520]
lea rcx, [rbp - 0x21]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x51], eax
call fcn.1400550c0
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140226f32
lea rax, [rbp - 0x51]
mov qword [rbp - 1], rax
mov eax, 4
mov dword [rbp + 7], eax
and dword [rbp + 0xb], 0
lea rdx, str.Failed_to_create_sense_sid
mov qword [rbp + 0xf], rdx
mov dword [rbp + 0x17], 0x36
and dword [rbp + 0x1b], 0
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140483caf]
call fcn.140001208
mov eax, dword [rbp - 0x51]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
xor r8d, r8d
lea rcx, [rbp - 0x21]
call fcn.1402260f0
lea rdx, [0x140514520]
lea rcx, [rbp - 0x21]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3