Function at 0x204fc
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
xor r15d, r15d
mov r12, r8
mov r14, rcx
mov r13, rdx
lea rcx, [rax - 0x74]
lea r8d, [r15 + 0x14]
xor edx, edx
mov esi, r9d
mov dword [rax - 0x78], r15d
call fcn.000407c0
xor eax, eax
lea r8d, [r15 + 0x28]
lea rcx, [rsp + 0xa0]
xor edx, edx
mov ebx, r15d
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x98], r15d
call fcn.000407c0
mov dword [rsp + 0x100], r15d
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x6c], r15d
cmp r14, r15
je 0x2081e
cmp r13, r15
je 0x2081e
lea r8d, [r15 + 4]
lea r9, [rsp + 0x100]
mov dl, 1
mov rcx, r14
call sub.ntoskrnl.exe_RtlImageDirectoryEntryToData
mov rbp, rax
cmp rax, r15
je 0x2081e
mov ecx, dword [rsp + 0x100]
cmp ecx, r15d
je 0x2081e
cmp ecx, 0x9000
ja 0x2081e
mov edi, eax
sub edi, r14d
lea eax, [rcx + rdi]
cmp eax, esi
ja 0x2081e
mov edx, 0x9000
mov rcx, rbp
call fcn.0001a7f4
cmp eax, r15d
je 0x2065d
mov esi, r15d
lea rdi, [0x00063c10]
mov rdx, qword [rdi]
cmp rdx, r15
je 0x2081e
mov rcx, rdx
lea r8d, [rdx + 1]
mov al, byte [rcx]
inc rcx
cmp al, r15b
jne 0x20611
sub ecx, r8d
mov r8d, dword [rsp + 0x100]
mov r9d, ecx
mov rcx, rbp
call fcn.00020198
cmp rax, r15
jne 0x20646
inc esi
add rdi, 8
cmp esi, 0xe
jb 0x205fe
jmp 0x2081e
mov ebx, 1
cmp r12, r15
je 0x2081e
mov dword [r12], esi
jmp 0x2081e
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x98]
lea rcx, [rsp + 0x60]
mov esi, 0x18
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x98], esi
mov dword [rsp + 0xb0], 0x40
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xb8], r15
mov qword [rsp + 0xc0], r15
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, r15d
jl 0x20823
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov r9d, esi
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, r15d
jge 0x20721
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x20823
mov ecx, dword [rsp + 0x100]
add ecx, edi
cmp ecx, dword [rsp + 0x88]
ja 0x20813
cmp dword [rsp + 0x88], 0x500000
ja 0x20813
mov edx, 0x9000
mov ecx, 1
mov r8d, 0x20736649
mov dword [rsp + 0x6c], r15d
mov dword [rsp + 0x68], edi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbp, rax
cmp rax, r15
je 0x20813
mov ecx, dword [rsp + 0x100]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov esi, r15d
lea rdi, [0x00063c10]
mov rdx, qword [rdi]
cmp rdx, r15
je 0x20808
mov rcx, rdx
lea r8d, [rdx + 1]
mov al, byte [rcx]
inc rcx
cmp al, r15b
jne 0x207c8
sub ecx, r8d
mov r8d, dword [rsp + 0x100]
mov r9d, ecx
mov rcx, rbp
call fcn.00020198
cmp rax, r15
jne 0x207fa
inc esi
add rdi, 8
cmp esi, 0xe
jb 0x207b9
jmp 0x20808
mov ebx, 1
cmp r12, r15
je 0x20808
mov dword [r12], esi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp ebx, r15d
jne 0x20833
mov r8, r12
mov rdx, r13
mov rcx, r14
call fcn.00020238
mov ebx, eax
lea r11, [rsp + 0xd0]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret