Function at 0x21d70
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rax, [0x000383d8]
mov qword [rsp + 0x20], rax
mov r9d, 7
mov r8d, 4
mov dx, 1
mov cx, 0xf2
call fcn.00011a90
mov dword [rsp + 0x48], 8
mov dword [rsp + 0x20], 9
mov r9d, 8
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x28]
call sub.ntdll.dll_NtQueryInformationFile
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0x80000005
je 0x21e1b
cmp dword [rsp + 0x34], 0
je 0x21e1b
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
lea rax, [0x00038450]
mov qword [rsp + 0x20], rax
mov r9d, 7
mov r8d, 2
mov dx, 1
mov cx, 0x10f
call fcn.00011b70
xor al, al
jmp 0x22148
mov eax, dword [rsp + 0x50]
add rax, 0xa
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov ecx, eax
call fcn.00031600
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x21e73
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
lea rax, str.Buffer_allocation_failed__status_returned:_0x_x
mov qword [rsp + 0x20], rax
mov r9d, 7
mov r8d, 2
mov dx, 1
mov cx, 0x117
call fcn.00011b70
xor al, al
jmp 0x22148
mov eax, dword [rsp + 0x48]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.0001be70
mov dword [rsp + 0x20], 9
mov r9d, dword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x28]
call sub.ntdll.dll_NtQueryInformationFile
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x21ec0
cmp dword [rsp + 0x70], 0
jge 0x21efe
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
lea rax, str.NtQueryInformationFile_failed__status_returned:_0x_x
mov qword [rsp + 0x20], rax
mov r9d, 7
mov r8d, 2
mov dx, 1
mov cx, 0x120
call fcn.00011b70
mov rcx, qword [rsp + 0x40]
call fcn.00031570
xor al, al
jmp 0x22148
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x38], 0
jmp 0x21f1d
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov ecx, dword [rsp + 0x4c]
xor edx, edx
mov eax, ecx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
jae 0x21f72
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2 + 4]
cmp eax, 0x3a
jne 0x21f70
mov eax, dword [rsp + 0x38]
xor ecx, ecx
mov rdx, qword [rsp + 0x40]
mov word [rdx + rax*2 + 4], cx
mov eax, dword [rsp + 0x38]
shl rax, 1
mov dword [rsp + 0x4c], eax
jmp 0x21f72
jmp 0x21f13
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x18]
call fcn.00022330
mov rcx, rax
call fcn.000325b0
lea rax, [rax + rax + 2]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0x168], eax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x170], 0
je 0x21fe7
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x170]
call fcn.00031570
mov rax, qword [rsp + 0x90]
mov qword [rax + 0x170], 0
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x168]
mov ecx, eax
call fcn.00031600
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x170], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x170], 0
jne 0x22053
lea rax, str.Memory_allocation_for_file_name_failed
mov qword [rsp + 0x20], rax
mov r9d, 7
mov r8d, 2
mov dx, 1
mov cx, 0x13b
call fcn.00011a90
mov rcx, qword [rsp + 0x40]
call fcn.00031570
xor al, al
jmp 0x22148
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x18]
call fcn.00022330
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 0x168]
mov rdx, qword [rsp + 0x60]
mov r9, rdx
mov r8, rax
mov edx, ecx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0x170]
call fcn.0001bd80
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
add rcx, 4
mov rdx, qword [rsp + 0x90]
mov edx, dword [rdx + 0x168]
mov r8d, dword [rsp + 0x30]
shl r8, 1
sub rdx, r8
mov r8d, dword [rsp + 0x30]
mov r9, qword [rsp + 0x90]
mov r9, qword [r9 + 0x170]
lea r8, [r9 + r8*2]
mov qword [rsp + 0x68], r8
mov r9d, eax
mov r8, rcx
mov rax, qword [rsp + 0x68]
mov rcx, rax
call fcn.0001bd80
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x168]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x170]
xor edx, edx
mov word [rcx + rax*2 - 2], dx
mov rcx, qword [rsp + 0x40]
call fcn.00031570
mov al, 1
add rsp, 0x88
ret