Function at 0x1800203ec
Capabilities:
Get file attributes
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetProcessId]
add rdi, 4
xor ebx, ebx
mov rcx, rdi
mov dword [rbp + 0x7f], eax
and dword [rbp + 0x77], ebx
xor esi, esi
and qword [rbp - 0x71], rbx
mov r14d, 0x100000
xor r13d, r13d
mov qword [rbp + 0x6f], rdi
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180035658]
mov r8d, r14d
cdqe
xor edx, edx
mov qword [rbp - 0x69], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x180020464
xor eax, eax
jmp 0x18002074f
mov r15d, 0x10
jmp 0x18002049f
mov rcx, qword [0x180035658]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180035658]
lea eax, [r14 + r14]
mov r8d, eax
xor edx, edx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18002045d
xor r9d, r9d
mov r8d, r14d
mov rdx, rax
mov ecx, r15d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x18002046c
xor r15d, r15d
cmp dword [rdi], ebx
jbe 0x180020739
mov eax, dword [rbp + 0x7f]
lea r14, [r15 + r15*2]
cmp dword [rdi + r14*8 + 8], eax
jne 0x1800206ff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
movzx edx, word [rdi + r14*8 + 0xe]
lea r9, [rbp - 0x79]
mov rcx, qword [rbp + 0x67]
xor r14d, r14d
mov dword [rsp + 0x30], 2
mov r8, rax
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1800206ff
mov rcx, qword [rbp - 0x79]
lea rax, [rbp + 0x77]
lea r9d, [r14 + 0x38]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x29]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryObject]
test eax, eax
jns 0x180020539
mov rcx, qword [rbp - 0x79]
jmp 0x1800206f9
mov ecx, dword [rbp - 1]
lea eax, [rcx + 2]
cmp r13d, eax
jae 0x180020581
test rsi, rsi
je 0x18002055e
mov rcx, qword [0x180035658]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [rbp - 1]
lea r13d, [rcx + 2]
xor edx, edx
mov rcx, qword [0x180035658]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x180020581
mov r13d, r14d
jmp 0x180020530
mov ecx, dword [rbp - 5]
mov eax, 0x20a
test ecx, ecx
cmove ecx, eax
mov dword [rbp - 5], ecx
lea eax, [rcx + 2]
cmp r12d, eax
jae 0x1800205e4
test rbx, rbx
je 0x1800205b3
mov rcx, qword [0x180035658]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [rbp - 5]
test ecx, ecx
lea r12d, [rcx + 2]
mov rcx, qword [0x180035658]
mov eax, 0x208
cmove r12d, eax
xor edx, edx
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1800205e4
mov r12d, r14d
jmp 0x180020530
mov rcx, qword [rbp - 0x79]
lea rax, [rbp + 0x77]
mov r9d, r13d
mov qword [rsp + 0x20], rax
mov r8, rsi
mov edx, 2
call qword [sym.imp.ntdll.dll_NtQueryObject]
test eax, eax
js 0x1800206f0
lea rdx, str.File
lea rcx, [rbp - 0x61]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r8b, 1
lea rcx, [rbp - 0x61]
mov rdx, rsi
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
je 0x1800206f0
mov rcx, qword [rbp - 0x79]
lea r8, [rbp - 0x41]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea rdx, [rbp - 0x51]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x1800206f0
cmp byte [rbp - 0x2c], r14b
jne 0x1800206f0
cmp byte [rbp - 0x2d], r14b
jne 0x1800206f0
mov rcx, qword [rbp - 0x79]
lea rdx, [rbp - 0x51]
mov r9d, r12d
mov dword [rsp + 0x20], 9
mov r8, rbx
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
js 0x1800206f0
mov eax, dword [rbx]
mov rcx, qword [rbp - 0x69]
shr rax, 1
cmp rax, rcx
jb 0x1800206f0
mov r8, rcx
mov word [rbx + rax*2 + 4], r14w
mov rcx, qword [rbp + 0x6f]
lea rdx, [rbx + 4]
call sub.ntdll.dll__wcsnicmp
test eax, eax
jne 0x1800206f0
mov rcx, qword [0x180035658]
lea r8d, [rax + 0x18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1800206f0
mov rcx, qword [rbp - 0x79]
mov r12d, r14d
mov qword [rax + 8], rcx
mov rcx, qword [rbp - 0x71]
mov qword [rax + 0x10], rbx
mov rbx, r14
mov qword [rbp - 0x79], r14
mov qword [rax], rcx
mov qword [rbp - 0x71], rax
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x1800206ff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r15d
cmp r15d, dword [rdi]
jb 0x1800204c3
test rsi, rsi
je 0x180020722
mov rcx, qword [0x180035658]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x180020739
mov rcx, qword [0x180035658]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180035658]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp - 0x71]
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret