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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov rax, qword [rdx + 0x38]
mov rdi, rdx
mov rbx, rcx
mov r9, qword [rax + 0xa8]
test r9, r9
je 0x14003b2eb
cmp byte [r9], 0
je 0x14003b2eb
cmp byte [0x140049608], 0
mov r15d, 0x5c
je 0x14003b092
cmp dword [0x140049624], 5
jb 0x14003b092
cmp qword [rcx + 0x88], rdx
jne 0x14003b092
call fcn.140036f14
test eax, eax
je 0x14003b092
lea r8, [0x14000cd98]
lea rcx, [rsp + 0x70]
mov edx, 0x810
call fcn.140027db8
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14003b092
test al, 0x10
je 0x14003b064
cmp byte [0x140049608], 0
je 0x14003b092
mov eax, dword [0x140049624]
cmp eax, 5
jne 0x14003b04f
cmp dword [0x140049620], 1
jae 0x14003b051
cmp eax, eax
jbe 0x14003b092
lea rcx, [rsp + 0x70]
call fcn.140027cfc
mov byte [rbx + 0xb0], 1
jmp 0x14003b08b
lea rcx, [rsp + 0x70]
mov edx, r15d
call qword [sym.imp.msvcrt.dll_strrchr]
test rax, rax
je 0x14003b092
lea rcx, [rsp + 0x70]
mov byte [rax], 0
call fcn.140027cfc
mov byte [rbx + 0xb0], 0
mov qword [rbx + 0xa8], rax
cmp qword [0x140049428], 0
je 0x14003b2eb
mov rax, qword [rdi + 0x38]
mov ecx, dword [rdi + 0x20]
or ecx, dword [rax + 0xc]
bt ecx, 0x12
jb 0x14003b2eb
mov rcx, rbx
xor esi, esi
call fcn.140036f14
test eax, eax
je 0x14003b0e3
mov rax, qword [rbx + 0x88]
mov r14, qword [rax + 0x38]
test r14, r14
je 0x14003b0e3
mov r14, qword [r14 + 0xa8]
test r14, r14
je 0x14003b0e3
cmp byte [r14], sil
jne 0x14003b0e6
xor r14d, r14d
mov byte [rsp + 0x70], sil
test r14, r14
je 0x14003b120
lea rcx, [rsp + 0x70]
mov r8d, 0x810
mov rdx, r14
call fcn.140027e84
lea rcx, [rsp + 0x70]
mov edx, r15d
call qword [sym.imp.msvcrt.dll_strrchr]
lea rcx, [rsp + 0x70]
test rax, rax
cmovne rcx, rax
mov byte [rcx], sil
cmp qword [rbx + 0x88], rdi
jne 0x14003b1e5
mov rcx, rbx
call fcn.140036f14
test eax, eax
je 0x14003b1e5
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x38]
call sub.msvcrt.dll_memset
mov al, byte [rsp + 0x70]
mov dword [rsp + 0x30], 0x38
neg al
mov rax, r14
sbb edx, edx
and edx, 4
neg rax
mov rax, qword [rdi + 0x38]
sbb ecx, ecx
and ecx, 0x20
or edx, ecx
or edx, 8
mov dword [rsp + 0x34], edx
mov rcx, qword [rax + 0xa8]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x30]
call qword [0x140049428]
mov rcx, qword [rdi + 0x38]
mov qword [rcx + 0x80], rax
cmp rax, 0xffffffffffffffff
je 0x14003b1d0
mov rax, qword [rdi + 0x38]
mov dword [rax + 0x88], 1
jmp 0x14003b1e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x36b0]
cmp ecx, 0x3e7
cmovbe esi, eax
mov r15, qword [rdi + 0x38]
cmp qword [r15 + 0x80], 0xffffffffffffffff
jne 0x14003b29f
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x38]
call sub.msvcrt.dll_memset
mov al, byte [rsp + 0x70]
mov dword [rsp + 0x30], 0x38
neg al
mov rax, r14
sbb edx, edx
and edx, 4
neg rax
sbb ecx, ecx
and ecx, 0x20
or edx, ecx
xor ecx, ecx
or edx, 8
mov dword [rsp + 0x34], edx
mov rax, qword [r15 + 0xa8]
mov r15d, 2
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x30]
call qword [0x140049428]
mov rcx, qword [rdi + 0x38]
mov qword [rcx + 0x80], rax
cmp rax, 0xffffffffffffffff
je 0x14003b285
mov rax, qword [rdi + 0x38]
mov dword [rax + 0x88], r15d
jmp 0x14003b29f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x14003b2a3
lea ecx, [rax - 0x36b0]
cmp ecx, 0x3e7
ja 0x14003b2eb
mov esi, eax
test esi, esi
je 0x14003b2eb
xor edx, edx
mov ecx, esi
call fcn.1400285f8
mov rcx, qword [rdi + 0x38]
xor r8d, r8d
mov rcx, qword [rcx + 0xa8]
mov qword [rsp + 0x28], rax
lea r9, [0x14000cdb0]
mov qword [rsp + 0x20], rcx
lea edx, [r8 + 0xa]
mov rcx, rbx
mov qword [rsp + 0x68], rax
call fcn.14003e2b8
lea rcx, [rsp + 0x68]
call fcn.140027d90
bts dword [rbx + 0x64], 0xd
mov eax, 1
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.14003f730
mov rbx, qword [rsp + 0x8d0]
add rsp, 0x890
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret