Function at 0x14022b290
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov r13, rdx
mov r14, rcx
mov dword [rsp + 0x30], 0
xor r12b, r12b
lea rsi, [rcx + 0xf8]
mov rax, qword [rdx]
mov rcx, qword [rsi]
lea rdi, [0x1402bd72c]
mov r15d, 0xffffffff
cmp rcx, rax
je 0x14022b56a
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.14001abc0
test eax, eax
je 0x14022b56a
mov byte [rbp + 0x50], 1
mov rcx, qword [r14 + 0x120]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdi, qword [r13]
mov rbx, rdi
mov qword [rbp + 0x60], rbx
lea rcx, [rdi - 0x10]
lea rsi, [0x1402be068]
cmp rcx, rsi
je 0x14022b343
mov eax, 1
lock xadd dword [rcx], eax
mov rbx, qword [rbp + 0x60]
cmp byte [rbx], 0
jne 0x14022b38d
lea rax, [0x1402bd72c]
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14001bc80
nop
mov rbx, qword [rsp + 0x60]
mov qword [rbp + 0x60], rbx
mov qword [rsp + 0x60], rdi
lea rcx, [rdi - 0x10]
cmp rcx, rsi
je 0x14022b38d
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14022b389
call fcn.14010a370
mov rbx, qword [rbp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rbp - 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x20], rax
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
lea rax, [rsp + 0x38]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x38]
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov rax, qword [r14]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [rax + 0x160]
movsxd rax, dword [rsp + 0x44]
mov r12, rax
test eax, eax
jle 0x14022b426
mov esi, edi
nop dword [rax + rax]
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x78], rbx
mov rax, qword [rax + rdi*8]
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x70]
call fcn.14001abc0
test eax, eax
je 0x14022b41e
inc esi
inc rdi
cmp rdi, r12
jl 0x14022b3f0
jmp 0x14022b426
test esi, esi
jns 0x14022b4e5
lea rcx, [r14 + 0x130]
call fcn.1401eb730
mov esi, eax
sub esi, 1
js 0x14022b4af
nop dword [rax]
mov r8d, esi
lea rdx, [rbp - 0x58]
lea rcx, [r14 + 0x130]
call fcn.1401eb6c0
nop
mov rcx, qword [rax]
cmp rcx, rbx
je 0x14022b47a
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], rcx
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x60]
call fcn.14001abc0
test eax, eax
je 0x14022b47a
xor dil, dil
jmp 0x14022b47d
mov dil, 1
mov rcx, qword [rbp - 0x58]
add rcx, 0xfffffffffffffff0
lea rax, [0x1402be068]
cmp rcx, rax
je 0x14022b4a5
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14022b4a1
call fcn.14010a370
mov rbx, qword [rbp + 0x60]
test dil, dil
jne 0x14022b4e1
sub esi, 1
jns 0x14022b440
lea rcx, [r14 + 0x130]
call fcn.1401eb730
add eax, 2
cmp byte [rbx], 0
je 0x14022b4e1
test eax, eax
je 0x14022b4e1
lea rcx, [r14 + 0x248]
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rbp + 0x60]
mov edx, eax
call fcn.1401f09f0
mov r13, qword [rbp + 0x58]
lea rax, [rsp + 0x38]
mov qword [rbp + 0x58], rax
lea rax, [rsp + 0x38]
mov qword [rbp + 0x58], rax
lea rcx, [rsp + 0x38]
call fcn.14001a610
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rbp + 0x58], rax
lea rcx, [rsp + 0x50]
call fcn.14001a610
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbx - 0x10]
lea rax, [0x1402be068]
cmp rcx, rax
je 0x14022b557
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14022b557
call fcn.14010a370
lea rsi, [r14 + 0xf8]
movzx r12d, byte [rbp + 0x50]
lea rdi, [0x1402bd72c]
mov rax, qword [r13]
lea rcx, [rax - 0x10]
lea rdx, [0x1402be068]
cmp rcx, rdx
je 0x14022b58b
mov eax, 1
lock xadd dword [rcx], eax
mov rax, qword [r13]
mov qword [rbp - 0x10], rax
xchg qword [rsi], rax
lea rcx, [rax - 0x10]
lea r13, [0x1402be068]
cmp rcx, r13
je 0x14022b5b2
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14022b5b2
call fcn.14010a370
mov r9b, 1
movzx r8d, r9b
mov rdx, rsi
mov rcx, qword [r14 + 0xe0]
call fcn.14022d4f0
mov dword [rsp + 0x20], 0
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, qword [r14 + 0x120]
call sub.VCRUNTIME140.dll___RTDynamicCast
test rax, rax
je 0x14022b5f9
mov rcx, rax
call fcn.140224990
mov rbx, qword [rsi]
mov rax, rbx
mov qword [rsp + 0x48], rbx
lea rcx, [rbx - 0x10]
cmp rcx, r13
je 0x14022b61b
mov eax, 1
lock xadd dword [rcx], eax
mov rax, qword [rsp + 0x48]
cmp byte [rax], 0
jne 0x14022b65b
mov qword [rbp - 0x50], rdi
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.14001bc80
nop
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x68], rbx
lea rcx, [rbx - 0x10]
cmp rcx, r13
je 0x14022b65b
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14022b65b
call fcn.14010a370
lea rcx, [r14 + 0x130]
lea rdx, [rsp + 0x48]
call fcn.1401ea9c0
mov rdi, qword [r14 + 0x7d8]
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.14015e860
nop
mov ebx, 1
mov dword [rsp + 0x30], ebx
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.140018b20
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14022b6e5
cmp eax, 0xffffffff
je 0x14022b6e5
lea rdx, [rbp - 0x38]
mov rcx, rsi
call fcn.14015e860
nop
mov ebx, 3
mov dword [rsp + 0x30], ebx
mov rcx, qword [rsi]
mov rdx, qword [rax]
cmp rdx, rcx
je 0x14022b6e5
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], rdx
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x40]
call fcn.14001abc0
test eax, eax
je 0x14022b6e5
mov dl, 1
jmp 0x14022b6e7
xor edx, edx
mov rcx, rdi
call fcn.14023e760
nop
test bl, 2
je 0x14022b71d
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
mov rcx, qword [rbp - 0x38]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x14022b71d
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14022b719
call fcn.14010a370
mov ebx, dword [rsp + 0x30]
test bl, 1
je 0x14022b746
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
mov rcx, qword [rbp - 0x30]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x14022b746
mov eax, r15d
lock xadd dword [rcx], eax
test eax, eax
jne 0x14022b746
call fcn.14010a370
test r12b, r12b
je 0x14022b7df
lea rax, [rbp + 0x68]
mov qword [rbp + 0x58], rax
mov rdx, r14
lea rcx, [rbp + 0x68]
call fcn.14008ee90
nop
mov ebx, dword [r14 + 0x11c]
nop dword [rax + rax]
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x14022b7b6
cmp qword [rax + 0x10], 0
je 0x14022b7b6
test ebx, ebx
jle 0x14022b7b6
mov eax, dword [r14 + 0x11c]
dec ebx
cmp ebx, eax
jl 0x14022b79d
lea ebx, [rax - 1]
mov eax, ebx
shr eax, 0x1f
xor al, 1
je 0x14022b7b6
movsxd rcx, ebx
mov rax, qword [r14 + 0x110]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 0x20]
jmp 0x14022b770
lea rax, [rbp + 0x68]
mov qword [rbp + 0x58], rax
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x14022b7df
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14022b7df
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff0
cmp rcx, r13
je 0x14022b7fc
lock xadd dword [rcx], r15d
test r15d, r15d
jne 0x14022b7fc
call fcn.14010a370
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret