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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x8d0
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x8c0], rax
mov rsi, qword [rsp + 0x930]
mov rbp, qword [0x1400a3c58]
mov rdi, r9
mov ebx, r8d
mov r12, rdx
mov rcx, qword [str.P5_n_]
lea r14, str.P5_n_
lea r15, [0x140009868]
cmp rcx, r14
je 0x1400180bf
test byte [rcx + 0x1c], 4
je 0x1400180bf
cmp byte [rcx + 0x19], 5
jb 0x1400180bf
mov rcx, qword [rcx + 0x10]
mov edx, 0xc7
mov r8, r15
call fcn.14000ffa8
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x290]
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x20], 0x104
call fcn.140018e60
mov ebx, eax
test eax, eax
je 0x14001811c
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x1400183a6
test byte [rcx + 0x1c], 4
je 0x1400183a6
cmp byte [rcx + 0x19], 2
jb 0x1400183a6
mov edx, 0xc8
jmp 0x1400182e0
test rdi, rdi
je 0x14001822f
lea r9, [rsp + 0x4a0]
mov r8, r12
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x20], 0x104
call fcn.14001778c
mov ebx, eax
test eax, eax
je 0x140018177
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x1400183a6
test byte [rcx + 0x1c], 4
je 0x1400183a6
cmp byte [rcx + 0x19], 2
jb 0x1400183a6
mov edx, 0xc9
jmp 0x1400182e0
lea rax, [rsp + 0x4a0]
lea r9, [rsp + 0x290]
lea r8, [0x140009d80]
mov edx, 0x104
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.1400118ac
mov edi, eax
test eax, eax
jns 0x1400181d4
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x140018390
test byte [rcx + 0x1c], 4
je 0x140018390
cmp byte [rcx + 0x19], 2
jb 0x140018390
mov edx, 0xca
jmp 0x140018381
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400183a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x1400183a6
test byte [rcx + 0x1c], 4
je 0x1400183a6
cmp byte [rcx + 0x19], 2
jb 0x1400183a6
mov rcx, qword [rcx + 0x10]
mov edx, 0xcb
mov r9, rsi
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.140011a18
jmp 0x1400183a6
lea rax, [0x140009df8]
mov ebp, 0x104
lea r9, [rsp + 0x290]
mov qword [rsp + 0x28], rax
lea r8, [0x140009e58]
lea rcx, [rsp + 0x6b0]
mov rdx, rbp
mov qword [rsp + 0x20], r12
call fcn.1400118ac
mov edi, eax
test eax, eax
jns 0x140018296
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x140018390
test byte [rcx + 0x1c], 4
je 0x140018390
cmp byte [rcx + 0x19], 2
jb 0x140018390
lea edx, [rbp - 0x38]
jmp 0x140018381
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x6b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x1400182f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x1400183a6
test byte [rcx + 0x1c], 4
je 0x1400183a6
cmp byte [rcx + 0x19], 2
jb 0x1400183a6
mov edx, 0xcd
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400100e0
jmp 0x1400183a6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x14001833a
mov rax, qword [str.P5_n_]
cmp rax, r14
je 0x14001833a
test byte [rax + 0x1c], 4
je 0x14001833a
cmp byte [rax + 0x19], 3
jb 0x14001833a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
mov edx, 0xce
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400100e0
lea rax, [rsp + 0x6c]
lea r9, [rsp + 0x290]
lea r8, [0x140009d80]
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.1400118ac
mov edi, eax
test eax, eax
jns 0x1400183a6
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x140018390
test byte [rcx + 0x1c], 4
je 0x140018390
cmp byte [rcx + 0x19], 2
jb 0x140018390
mov edx, 0xcf
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400100e0
mov ecx, edi
mov ebx, edi
movzx eax, di
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x8c0]
xor rcx, rsp
call fcn.14008c5b0
add rsp, 0x8d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret