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

Disassembly:
push rbp
lea rbp, [rsp - 0x1040]
mov eax, 0x1140
call fcn.18007fc70
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1150], rbx
mov qword [rsp + 0x1158], rsi
mov qword [rsp + 0x1160], rdi
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp + 0x1030], rax
xor esi, esi
test cl, cl
je 0x18000165a
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
lea rcx, [rbp - 8]
call fcn.180011550
mov rdi, rax
lea rax, [rsp + 0x58]
cmp rax, rdi
je 0x1800015f6
cmp qword [rsp + 0x70], 8
jb 0x18000159e
mov rcx, qword [rsp + 0x58]
call fcn.18007a7a4
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
cmp qword [rdi + 0x18], 8
jae 0x1800015d1
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.18007abc0
jmp 0x1800015dc
mov rax, qword [rdi]
mov qword [rsp + 0x58], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x68], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x70], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
cmp qword [rbp + 0x10], 8
jb 0x180001606
mov rcx, qword [rbp - 8]
call fcn.18007a7a4
cmp qword [rsp + 0x68], 0
jne 0x180001624
cmp qword [rsp + 0x70], 8
jb 0x180001fa0
mov rcx, qword [rsp + 0x58]
jmp 0x180001f9b
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov edx, 1
call fcn.18000d950
mov edi, eax
cmp qword [rsp + 0x70], 8
jb 0x180001653
mov rcx, qword [rsp + 0x58]
call fcn.18007a7a4
mov eax, edi
jmp 0x180001fa2
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rsi
mov word [rbp - 0x80], si
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
movzx eax, si
lea rdi, [rbp + 0x30]
mov ecx, 0x800
rep stosw word [rdi], ax
mov r8d, gethostbyname
lea rdx, [rbp - 8]
lea rcx, [fcn.180001510]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, rsi
test rax, rax
cmovne rcx, qword [rbp]
mov r8d, 0x800
lea rdx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.180004cc0
nop
mov edx, 0x5c
lea rcx, [rsp + 0x58]
call fcn.180026ec0
mov rbx, rax
mov edx, 0x2f
lea rcx, [rsp + 0x58]
call fcn.180026ec0
mov rdi, rax
mov edx, 0x3a
lea rcx, [rsp + 0x58]
call fcn.180026ec0
cmp ebx, eax
cmovg eax, ebx
cmp edi, eax
cmovg eax, edi
xor r8d, r8d
cmp eax, 0xffffffff
jne 0x18000174e
lea rdx, [0x1800a4614]
lea rcx, [rbp - 0x80]
call fcn.180004cc0
jmp 0x1800017dd
movsxd r9, eax
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x58]
call fcn.18000b940
mov rdi, rax
lea rax, [rbp - 0x80]
cmp rax, rdi
je 0x1800017cc
cmp qword [rbp - 0x68], 8
jb 0x18000177b
mov rcx, qword [rbp - 0x80]
call fcn.18007a7a4
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rsi
mov word [rbp - 0x80], si
cmp qword [rdi + 0x18], 8
jae 0x1800017aa
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.18007abc0
jmp 0x1800017b4
mov rax, qword [rdi]
mov qword [rbp - 0x80], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x70], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x68], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
cmp qword [rbp + 0x10], 8
jb 0x1800017dd
mov rcx, qword [rbp - 8]
call fcn.18007a7a4
nop
cmp qword [rsp + 0x70], 8
jb 0x1800017ef
mov rcx, qword [rsp + 0x58]
call fcn.18007a7a4
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
mov r8d, recv
lea rdx, str.Piencsys.pky
lea rcx, [rbp - 0x58]
call fcn.180004cc0
nop
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.180027780
mov rdi, rax
lea rax, [rsp + 0x30]
cmp rax, rdi
je 0x18000189e
cmp qword [rsp + 0x48], 8
jb 0x180001846
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
cmp qword [rdi + 0x18], 8
jae 0x180001879
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.18007abc0
jmp 0x180001884
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x48], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
cmp qword [rbp - 0x18], 8
jb 0x1800018ae
mov rcx, qword [rbp - 0x30]
call fcn.18007a7a4
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
cmp qword [rbp - 0x40], 8
jb 0x1800018ce
mov rcx, qword [rbp - 0x58]
call fcn.18007a7a4
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800019bb
shr eax, 4
not eax
and eax, 1
je 0x1800019bb
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.18000d950
test eax, eax
jne 0x180001945
cmp qword [rsp + 0x48], 8
jb 0x18000192d
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
jmp 0x180001f90
call fcn.180001260
test eax, eax
jne 0x180001978
cmp qword [rsp + 0x48], 8
jb 0x180001960
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
jmp 0x180001f90
call fcn.1800011a0
mov edi, eax
cmp qword [rsp + 0x48], 8
jb 0x180001991
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
cmp qword [rbp - 0x68], 8
jb 0x1800019b4
mov rcx, qword [rbp - 0x80]
call fcn.18007a7a4
mov eax, edi
jmp 0x180001fa2
mov edx, 0x5c
lea rcx, [rbp - 0x80]
call fcn.180026ec0
mov rdi, rax
mov edx, 0x2f
lea rcx, [rbp - 0x80]
call fcn.180026ec0
mov rbx, rax
mov edx, 0x3a
lea rcx, [rbp - 0x80]
call fcn.180026ec0
cmp edi, eax
cmovg eax, edi
cmp ebx, eax
cmovg eax, ebx
xor r8d, r8d
lea rcx, [rbp - 0x80]
cmp eax, 0xffffffff
jne 0x180001a12
lea rdx, [0x1800a4614]
call fcn.180004cc0
jmp 0x180001a9b
movsxd r9, eax
lea rdx, [rbp - 8]
call fcn.18000b940
mov rdi, rax
lea rax, [rbp - 0x80]
cmp rax, rdi
je 0x180001a8b
cmp qword [rbp - 0x68], 8
jb 0x180001a3a
mov rcx, qword [rbp - 0x80]
call fcn.18007a7a4
mov qword [rbp - 0x68], 7
mov qword [rbp - 0x70], rsi
mov word [rbp - 0x80], si
cmp qword [rdi + 0x18], 8
jae 0x180001a69
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.18007abc0
jmp 0x180001a73
mov rax, qword [rdi]
mov qword [rbp - 0x80], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x70], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x68], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
cmp qword [rbp + 0x10], 8
jb 0x180001a9b
mov rcx, qword [rbp - 8]
call fcn.18007a7a4
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
mov r8d, recv
lea rdx, str.Piencsys.pky
lea rcx, [rbp - 0x58]
call fcn.180004cc0
nop
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x30]
call fcn.180027780
mov rdi, rax
lea rax, [rsp + 0x30]
cmp rax, rdi
je 0x180001b4a
cmp qword [rsp + 0x48], 8
jb 0x180001af2
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
cmp qword [rdi + 0x18], 8
jae 0x180001b25
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.18007abc0
jmp 0x180001b30
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x48], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
cmp qword [rbp - 0x18], 8
jb 0x180001b5a
mov rcx, qword [rbp - 0x30]
call fcn.18007a7a4
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
cmp qword [rbp - 0x40], 8
jb 0x180001b7a
mov rcx, qword [rbp - 0x58]
call fcn.18007a7a4
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180001c55
shr eax, 4
not eax
and eax, 1
je 0x180001c55
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.18000d950
test eax, eax
jne 0x180001bf1
cmp qword [rsp + 0x48], 8
jb 0x180001bd9
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
jmp 0x180001f90
call fcn.180001260
test eax, eax
jne 0x180001c24
cmp qword [rsp + 0x48], 8
jb 0x180001c0c
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
jmp 0x180001f90
call fcn.1800011a0
mov edi, eax
cmp qword [rsp + 0x48], 8
jb 0x180001c3d
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
jmp 0x1800019a4
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
lea rcx, [rsp + 0x58]
call fcn.1800279e0
movzx eax, si
lea rdi, [rbp + 0x30]
mov ecx, 0x800
rep stosw word [rdi], ax
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
add r8, r8
lea rcx, [rbp + 0x30]
call fcn.18007abc0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
lea rcx, [rbp + 0x30]
call fcn.18007a988
test eax, eax
je 0x180001f3d
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], rsi
mov word [rbp - 0x30], si
mov r8d, recv
lea rdx, str.Piencsys.pky
lea rcx, [rbp - 0x30]
call fcn.180004cc0
nop
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.180004cc0
nop
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 8]
call fcn.180027780
mov rdi, rax
lea rax, [rsp + 0x30]
cmp rax, rdi
je 0x180001da3
cmp qword [rsp + 0x48], 8
jb 0x180001d4b
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
cmp qword [rdi + 0x18], 8
jae 0x180001d7e
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.18007abc0
jmp 0x180001d89
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x48], rax
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
cmp qword [rbp + 0x10], 8
jb 0x180001db3
mov rcx, qword [rbp - 8]
call fcn.18007a7a4
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], rsi
mov word [rbp - 8], si
cmp qword [rbp - 0x40], 8
jb 0x180001dd3
mov rcx, qword [rbp - 0x58]
call fcn.18007a7a4
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x58], si
cmp qword [rbp - 0x18], 8
jb 0x180001df3
mov rcx, qword [rbp - 0x30]
call fcn.18007a7a4
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180001f3d
shr eax, 4
not eax
and eax, 1
je 0x180001f3d
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.18000d950
test eax, eax
jne 0x180001e8f
cmp qword [rsp + 0x70], 8
jb 0x180001e52
mov rcx, qword [rsp + 0x58]
call fcn.18007a7a4
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
cmp qword [rsp + 0x48], 8
jb 0x180001e77
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
jmp 0x180001f90
call fcn.180001260
test eax, eax
jne 0x180001ee7
cmp qword [rsp + 0x70], 8
jb 0x180001eaa
mov rcx, qword [rsp + 0x58]
call fcn.18007a7a4
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
cmp qword [rsp + 0x48], 8
jb 0x180001ecf
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
jmp 0x180001f90
call fcn.1800011a0
mov edi, eax
cmp qword [rsp + 0x70], 8
jb 0x180001f00
mov rcx, qword [rsp + 0x58]
call fcn.18007a7a4
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
cmp qword [rsp + 0x48], 8
jb 0x180001f25
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
jmp 0x1800019a4
cmp qword [rsp + 0x70], 8
jb 0x180001f4f
mov rcx, qword [rsp + 0x58]
call fcn.18007a7a4
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.18000d950
nop
cmp qword [rsp + 0x48], 8
jb 0x180001f7d
mov rcx, qword [rsp + 0x30]
call fcn.18007a7a4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
cmp qword [rbp - 0x68], 8
jb 0x180001fa0
mov rcx, qword [rbp - 0x80]
call fcn.18007a7a4
xor eax, eax
mov rcx, qword [rbp + 0x1030]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0x1140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret