Function at 0x10010c79c
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 0x10010c7f3
test byte [rcx + 0x1c], 1
je 0x10010c7f3
cmp byte [rcx + 0x19], 4
jb 0x10010c7f3
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x2e]
lea r8, [0x100002f60]
call fcn.10001c854
test dil, dil
je 0x10010c8f6
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 0x10010c8bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10010c8ad
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010c892
test byte [rcx + 0x1c], 1
je 0x10010c86c
cmp byte [rcx + 0x19], 5
jb 0x10010c86c
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x30]
lea r8, [0x100002f60]
call fcn.10001c854
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010c892
test byte [rcx + 0x1c], 1
je 0x10010c892
cmp byte [rcx + 0x19], 4
jb 0x10010c892
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x35
call fcn.10001c854
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 0x10010c865
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010c8ed
test byte [rcx + 0x1c], 1
je 0x10010c8ed
cmp byte [rcx + 0x19], 5
jb 0x10010c8ed
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x30
mov r9, rsi
call fcn.10001db08
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 0x10010c95f
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 0x10010c892
test byte [rcx + 0x1c], 1
je 0x10010c86c
cmp byte [rcx + 0x19], 2
jb 0x10010c86c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x31
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
jmp 0x10010c865
lea rcx, [rsp + 0x78]
mov byte [rsp + 0x78], bl
call fcn.1000a2fe4
mov ebx, eax
test eax, eax
js 0x10010c865
cmp ebp, 2
je 0x10010c981
cmp ebp, 3
jne 0x10010c9cd
test r12b, r12b
je 0x10010c9cd
bt edi, 0xb
jae 0x10010ca08
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010c9c3
test byte [rcx + 0x1c], 1
je 0x10010c9c3
cmp byte [rcx + 0x19], 2
jb 0x10010c9c3
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x32
mov r9, rsi
call fcn.10001db08
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780066
jmp 0x10010c86c
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x10010ca0f
test byte [rcx + 0x1c], 1
je 0x10010ca0f
cmp byte [rcx + 0x19], 4
jb 0x10010ca0f
mov rcx, qword [rcx + 0x10]
mov eax, edi
lea r8, [0x100002f60]
and eax, 0x800
mov edx, 0x33
mov r9, rsi
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
bt edi, 0xe
jae 0x10010c86c
cmp rcx, r15
je 0x10010ca49
test byte [rcx + 0x1c], 1
je 0x10010ca49
cmp byte [rcx + 0x19], 2
jb 0x10010ca49
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x34
mov r9, rsi
call fcn.10001db08
mov rcx, qword [0x1001653b8]
mov ebx, 0x80780067
jmp 0x10010c86c