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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x20]
sub rsp, 0x120
xor edi, edi
xor ebx, ebx
and dword [rsp + 0x68], edi
mov r14, rdx
and dword [rbp + 0x68], edi
mov rsi, rcx
and dword [rbp + 0x60], edi
and qword [rsp + 0x60], rbx
and qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400032ce
test al, 0x50
jne 0x1400032ce
call fcn.140002e20
lea r12d, [rdi + 1]
cmp eax, r12d
je 0x140003141
lea edi, [rbx + 0x7e]
jmp 0x1400032d3
call fcn.1400035dc
test eax, eax
jne 0x140003167
mov rcx, rsi
call fcn.140001868
test eax, eax
je 0x140003167
call fcn.140002b24
test eax, eax
jne 0x140003167
mov ebx, r12d
jmp 0x1400032d3
and qword [rsp + 0x50], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov r9d, 2
lea rax, [rsp + 0x60]
mov r8d, 0x400
mov qword [rsp + 0x40], rax
mov rdx, rsi
lea rax, [rbp + 0x60]
mov ecx, r12d
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], ebx
call qword [0x14001d150]
mov ebx, eax
test eax, eax
jne 0x1400031cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1400032d3
mov r13d, 0x20
lea rcx, [rbp]
mov r8d, r13d
xor edx, edx
call fcn.140005bf0
lea ebx, [r13 + 0x38]
xor edx, edx
mov r8d, ebx
lea rcx, [rbp - 0x80]
call fcn.140005bf0
bts dword [rbp - 0x38], 0xc
lea rax, [rbp]
mov qword [rbp - 0x58], rax
mov dword [rbp], r13d
mov qword [rbp + 8], rsi
mov dword [rbp - 0x80], ebx
mov dword [rbp - 0x50], r12d
mov dword [rbp - 0x68], 2
mov dword [rbp - 0x64], r12d
mov dword [rbp - 0x60], r12d
call fcn.1400035dc
test eax, eax
jne 0x140003245
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp - 0x80]
mov r9, r14
call fcn.140002cbc
mov ebx, eax
test eax, eax
jne 0x1400032d3
jmp 0x1400031be
mov r8, r13
lea rcx, [rbp - 0x20]
xor edx, edx
call fcn.140005bf0
mov rdx, qword [rsp + 0x60]
lea rax, [rbp - 0x20]
and dword [rbp - 0x1c], edi
lea rcx, [rbp - 0x80]
mov r9, r14
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x20], r13d
mov dword [rbp - 0x18], 3
call fcn.140002cbc
mov ebx, eax
test eax, eax
jne 0x1400032d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, r12d
mov rax, qword [rbp - 0x30]
cmp dword [rax + 0xc], r12d
jb 0x1400032d3
and qword [rbp - 0x48], 0
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x50], r12d
mov r9, r14
mov dword [rax + 4], esi
mov rdx, qword [rsp + 0x60]
call fcn.140002cbc
mov ebx, eax
test eax, eax
jne 0x1400032d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
add esi, r12d
mov rax, qword [rbp - 0x30]
cmp esi, dword [rax + 0xc]
jbe 0x140003295
jmp 0x1400032d3
mov edi, 2
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400032e5
xor edx, edx
call qword [0x14001d168]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400032f5
call qword [0x14001d290]
test ebx, ebx
jne 0x1400032fd
mov ecx, edi
jmp 0x1400032ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rsp + 0x120]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret