Function at 0x10010c30c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0x40
mov dil, r9b
mov r12b, r8b
mov ebp, edx
mov rsi, rcx
xor ebx, ebx
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x10010c363
test byte [rcx + 0x1c], 1
je 0x10010c363
cmp byte [rcx + 0x19], 4
jb 0x10010c363
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x2e]
lea r8, [0x100002fa0]
call fcn.10001c7b8
test dil, dil
je 0x10010c466
and qword [rsp + 0x30], rbx
and dword [rsp + 0x28], ebx
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x10010c42d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10010c41d
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010c402
test byte [rcx + 0x1c], 1
je 0x10010c3dc
cmp byte [rcx + 0x19], 5
jb 0x10010c3dc
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x30]
lea r8, [0x100002fa0]
call fcn.10001c7b8
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010c402
test byte [rcx + 0x1c], 1
je 0x10010c402
cmp byte [rcx + 0x19], 4
jb 0x10010c402
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x35
call fcn.10001c7b8
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r12
pop rdi
ret
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10010c3d5
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010c45d
test byte [rcx + 0x1c], 1
je 0x10010c45d
cmp byte [rcx + 0x19], 5
jb 0x10010c45d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x30
mov r9, rsi
call fcn.10001da24
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x10010c4cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010c402
test byte [rcx + 0x1c], 1
je 0x10010c3dc
cmp byte [rcx + 0x19], 2
jb 0x10010c3dc
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x31
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
jmp 0x10010c3d5
lea rcx, [rsp + 0x78]
mov byte [rsp + 0x78], bl
call fcn.1000a2a08
mov ebx, eax
test eax, eax
js 0x10010c3d5
cmp ebp, 2
je 0x10010c4f1
cmp ebp, 3
jne 0x10010c53d
test r12b, r12b
je 0x10010c53d
bt edi, 0xb
jae 0x10010c578
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010c533
test byte [rcx + 0x1c], 1
je 0x10010c533
cmp byte [rcx + 0x19], 2
jb 0x10010c533
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x32
mov r9, rsi
call fcn.10001da24
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780066
jmp 0x10010c3dc
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010c57f
test byte [rcx + 0x1c], 1
je 0x10010c57f
cmp byte [rcx + 0x19], 4
jb 0x10010c57f
mov rcx, qword [rcx + 0x10]
mov eax, edi
lea r8, [0x100002fa0]
and eax, 0x800
mov edx, 0x33
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
bt edi, 0xe
jae 0x10010c3dc
cmp rcx, r15
je 0x10010c5b9
test byte [rcx + 0x1c], 1
je 0x10010c5b9
cmp byte [rcx + 0x19], 2
jb 0x10010c5b9
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x34
mov r9, rsi
call fcn.10001da24
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780067
jmp 0x10010c3dc