Function at 0x1000afec0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r12, r8
mov rbp, rdx
mov r13, rcx
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x1000aff0d
test byte [rcx + 0x1c], 2
je 0x1000aff0d
cmp byte [rcx + 0x19], 4
jb 0x1000aff0d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000036a8]
mov edx, 0x27
call fcn.10001c854
test rbp, rbp
jne 0x1000aff2a
lea r8, [0x10000a198]
lea rcx, [0x10000b0c0]
mov edx, 0x43d
call fcn.10009a050
and qword [rsp + 0x80], 0
xor esi, esi
lea rdx, [rsp + 0x80]
and dword [r12], esi
mov rcx, rbp
mov qword [rsp + 0x78], rsi
call fcn.10009b954
mov ebx, eax
test eax, eax
js 0x1000b0290
mov rcx, qword [rsp + 0x80]
lea r8, [rsp + 0x78]
lea rdx, [0x100002918]
call fcn.10009bb88
mov ebx, eax
test eax, eax
js 0x1000b028b
and qword [rsp + 0x30], rsi
mov rsi, qword [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1000b0061
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1000b0007
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000b00f9
test byte [rcx + 0x1c], 2
je 0x1000b00f9
cmp byte [rcx + 0x19], 4
jb 0x1000b00f9
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x29]
lea r8, [0x1000036a8]
mov r9, rsi
call fcn.10001db08
jmp 0x1000b00f2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000b00f9
test byte [rcx + 0x1c], 2
je 0x1000b00f9
cmp byte [rcx + 0x19], 2
jb 0x1000b00f9
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000036a8]
mov edx, 0x29
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
jmp 0x1000b00f2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x78], 0xffffffffffffffff
lea rdi, [0x100002918]
lea r9, [rsp + 0x78]
mov r8, rdi
mov rdx, rbp
mov rcx, r13
call fcn.1000b1edc
mov ebx, eax
test eax, eax
jns 0x1000b00ed
cmp eax, 0x80070002
je 0x1000b0184
cmp eax, 0x80070003
je 0x1000b0184
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1000b0281
test byte [rcx + 0x1c], 2
je 0x1000b0281
cmp byte [rcx + 0x19], 2
jb 0x1000b0281
mov edx, 0x2b
mov dword [rsp + 0x20], ebx
mov r9, rdi
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000036a8]
call fcn.10001ddb0
mov rdi, qword [rsp + 0x78]
mov rcx, qword [0x1001653b8]
cmp rdi, 0xffffffffffffffff
je 0x1000b010f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp qword [rsp + 0x80], 0
je 0x1000b0136
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x1000b014b
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000b0171
test byte [rcx + 0x1c], 2
je 0x1000b0171
cmp byte [rcx + 0x19], 4
jb 0x1000b0171
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000036a8]
mov edx, 0x2e
call fcn.10001c854
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [0x1001653b8]
lea rdi, [0x1001653b8]
cmp rcx, rdi
je 0x1000b01c7
test byte [rcx + 0x1c], 1
je 0x1000b01c7
cmp byte [rcx + 0x19], 3
jb 0x1000b01c7
mov rcx, qword [rcx + 0x10]
lea rax, [0x100002918]
lea r8, [0x1000036a8]
mov edx, 0x2a
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.10001d9dc
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rsp + 0x78], 0xffffffffffffffff
lea r9, [rsp + 0x78]
lea r8, [0x1000028f0]
mov rdx, rbp
mov rcx, r13
call fcn.1000b1edc
mov ebx, eax
test eax, eax
jns 0x1000b00ed
cmp eax, 0x80070002
je 0x1000b0234
cmp eax, 0x80070003
je 0x1000b0234
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000b0281
test byte [rcx + 0x1c], 2
je 0x1000b0281
cmp byte [rcx + 0x19], 2
jb 0x1000b0281
mov edx, 0x2d
mov dword [rsp + 0x20], eax
lea r9, [0x1000028f0]
jmp 0x1000b00dd
mov rcx, qword [0x1001653b8]
cmp rcx, rdi
je 0x1000b0277
test byte [rcx + 0x1c], 1
je 0x1000b0277
cmp byte [rcx + 0x19], 3
jb 0x1000b0277
mov rcx, qword [rcx + 0x10]
lea rax, [0x1000028f0]
lea r8, [0x1000036a8]
mov edx, 0x2c
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.10001d9dc
mov rcx, qword [0x1001653b8]
mov dword [r12], 1
xor ebx, ebx
mov rdi, qword [rsp + 0x78]
jmp 0x1000b00f9
mov rsi, qword [rsp + 0x78]
mov rcx, qword [0x1001653b8]
jmp 0x1000b0116