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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp + 0x78], rax
mov rbx, qword [0x1800d6f08]
mov qword [rbp + 0x68], 7
xor edi, edi
mov qword [rbp + 0x60], rdi
mov word [rbp + 0x50], di
lea r8d, [rdi + 0x30]
lea rdx, [rsp + 0x28]
lea rcx, [0x180028050]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, edi
test rax, rax
cmovne rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x50]
call fcn.180027eb0
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
lea r8d, [rdi + 0xc]
lea rdx, str.Piencsys.pbc
lea rcx, [rsp + 0x60]
call fcn.180004cc0
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.180027780
nop
cmp qword [rsp + 0x78], 8
jb 0x180014370
mov rcx, qword [rsp + 0x60]
call fcn.18007a7a4
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180014415
shr eax, 4
not eax
and eax, 1
je 0x180014415
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x28]
call fcn.1800049e0
lea rcx, [rsp + 0x28]
call fcn.18002cce0
lea rdx, [rbp - 0x78]
mov rcx, rbx
test eax, eax
je 0x1800143ea
call fcn.18002d880
jmp 0x1800143f0
call fcn.18002d6c0
nop
cmp qword [rbp - 0x60], 8
jb 0x180014400
mov rcx, qword [rbp - 0x78]
call fcn.18007a7a4
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x78], di
jmp 0x1800147a5
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x50]
call fcn.180027250
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
mov r8d, recv
lea rdx, str.Piencsys.pbc
lea rcx, [rsp + 0x60]
call fcn.180004cc0
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x50]
call fcn.180027780
nop
cmp qword [rsp + 0x78], 8
jb 0x180014482
mov rcx, qword [rsp + 0x60]
call fcn.18007a7a4
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001456f
shr eax, 4
not eax
and eax, 1
je 0x18001456f
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x28]
call fcn.1800049e0
lea rcx, [rsp + 0x28]
call fcn.18002cce0
lea rdx, [rbp - 0x50]
mov rcx, rbx
test eax, eax
je 0x180014504
call fcn.18002d880
jmp 0x18001450a
call fcn.18002d6c0
nop
cmp qword [rbp - 0x38], 8
jb 0x18001451a
mov rcx, qword [rbp - 0x50]
call fcn.18007a7a4
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
cmp qword [rbp - 0x10], 8
jb 0x18001453a
mov rcx, qword [rbp - 0x28]
call fcn.18007a7a4
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
cmp qword [rbp - 0x60], 8
jb 0x18001455a
mov rcx, qword [rbp - 0x78]
call fcn.18007a7a4
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x78], di
jmp 0x1800147a5
mov qword [rbp + 0x40], 7
mov qword [rbp + 0x38], rdi
mov word [rbp + 0x28], di
lea rcx, [rbp + 0x28]
call fcn.1800279e0
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
mov r8d, recv
lea rdx, str.Piencsys.pbc
lea rcx, [rsp + 0x60]
call fcn.180004cc0
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x28]
lea rcx, [rbp]
call fcn.180027780
nop
cmp qword [rsp + 0x78], 8
jb 0x1800145d8
mov rcx, qword [rsp + 0x60]
call fcn.18007a7a4
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180014705
shr eax, 4
not eax
and eax, 1
je 0x180014705
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rsp + 0x28]
call fcn.1800049e0
lea rcx, [rsp + 0x28]
call fcn.18002cce0
lea rdx, [rbp]
mov rcx, rbx
test eax, eax
je 0x18001465a
call fcn.18002d880
jmp 0x180014660
call fcn.18002d6c0
nop
cmp qword [rbp + 0x18], 8
jb 0x180014670
mov rcx, qword [rbp]
call fcn.18007a7a4
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], rdi
mov word [rbp], di
cmp qword [rbp + 0x40], 8
jb 0x180014690
mov rcx, qword [rbp + 0x28]
call fcn.18007a7a4
mov qword [rbp + 0x40], 7
mov qword [rbp + 0x38], rdi
mov word [rbp + 0x28], di
cmp qword [rbp - 0x38], 8
jb 0x1800146b0
mov rcx, qword [rbp - 0x50]
call fcn.18007a7a4
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
cmp qword [rbp - 0x10], 8
jb 0x1800146d0
mov rcx, qword [rbp - 0x28]
call fcn.18007a7a4
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
cmp qword [rbp - 0x60], 8
jb 0x1800146f0
mov rcx, qword [rbp - 0x78]
call fcn.18007a7a4
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x78], di
jmp 0x1800147a5
cmp qword [rbp + 0x18], 8
jb 0x180014715
mov rcx, qword [rbp]
call fcn.18007a7a4
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], rdi
mov word [rbp], di
cmp qword [rbp + 0x40], 8
jb 0x180014735
mov rcx, qword [rbp + 0x28]
call fcn.18007a7a4
mov qword [rbp + 0x40], 7
mov qword [rbp + 0x38], rdi
mov word [rbp + 0x28], di
cmp qword [rbp - 0x38], 8
jb 0x180014755
mov rcx, qword [rbp - 0x50]
call fcn.18007a7a4
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rdi
mov word [rbp - 0x50], di
cmp qword [rbp - 0x10], 8
jb 0x180014775
mov rcx, qword [rbp - 0x28]
call fcn.18007a7a4
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rdi
mov word [rbp - 0x28], di
cmp qword [rbp - 0x60], 8
jb 0x180014795
mov rcx, qword [rbp - 0x78]
call fcn.18007a7a4
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x78], di
cmp qword [rbp + 0x68], 8
jb 0x1800147b5
mov rcx, qword [rbp + 0x50]
call fcn.18007a7a4
mov rcx, qword [rbp + 0x78]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret