Function at 0x180151830
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 - 0x40], 0xfffffffffffffffe
mov rsi, rcx
xor ebx, ebx
mov dword [rbp + 0x60], ebx
xor dil, dil
lea r13, [rcx + 0x130]
mov rax, qword [rdx]
mov qword [rbp - 0x20], rax
mov rcx, qword [r13]
lea r12, [0x1802bccb0]
or r15d, 0xffffffff
cmp rcx, rax
je 0x180151aa3
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x48], rcx
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x48]
call fcn.180019ca0
test eax, eax
je 0x180151aa3
mov byte [rbp + 0x50], 1
mov rcx, qword [rsi + 0x168]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x58]
mov rax, qword [rcx]
mov qword [rbp + 0x68], rax
lea rcx, [rax - 0x10]
cmp rcx, r12
je 0x1801518d7
mov eax, 1
lock xadd dword [rcx], eax
mov rax, qword [rbp + 0x68]
cmp byte [rax], 0
jne 0x18015191c
mov rax, qword [0x180423538]
lea rcx, [rax - 0x10]
cmp rcx, r12
je 0x1801518fc
mov eax, 1
lock xadd dword [rcx], eax
mov rax, qword [0x180423538]
xchg qword [rbp + 0x68], rax
lea rcx, [rax - 0x10]
cmp rcx, r12
je 0x18015191c
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18015191c
call fcn.1800a0c6c
mov qword [rbp - 0x60], rbx
mov dword [rbp - 0x58], ebx
mov dword [rbp - 0x50], ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x48], ebx
mov rax, qword [rsi]
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x60]
mov rcx, rsi
call qword [rax + 0x168]
mov edi, ebx
movsxd rax, dword [rsp + 0x48]
mov r14, rax
test eax, eax
jle 0x18015199d
mov r12, qword [rbp + 0x68]
nop word [rax + rax]
mov rax, qword [rsp + 0x38]
mov qword [rbp - 0x78], r12
mov rax, qword [rax + rbx*8]
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x68]
call fcn.180019ca0
test eax, eax
je 0x18015198e
inc edi
inc rbx
cmp rbx, r14
jl 0x180151960
jmp 0x180151996
test edi, edi
jns 0x180151a4e
lea r12, [0x1802bccb0]
lea rcx, [rsi + 0x178]
call fcn.180119b70
mov edi, eax
dec edi
js 0x180151a18
nop
mov r8d, edi
lea rdx, [rbp - 0x80]
lea rcx, [rsi + 0x178]
call fcn.180119b10
mov rdx, qword [rax]
mov rcx, qword [rbp + 0x68]
cmp rdx, rcx
je 0x1801519ee
mov qword [rsp + 0x70], rcx
mov qword [rbp - 0x70], rdx
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.180019ca0
test eax, eax
je 0x1801519ee
xor bl, bl
jmp 0x1801519f0
mov bl, 1
mov rcx, qword [rbp - 0x80]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x180151a10
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180151a10
call fcn.1800a0c6c
test bl, bl
jne 0x180151a55
dec edi
jns 0x1801519b0
lea rcx, [rsi + 0x178]
call fcn.180119b70
lea edx, [rax + 2]
mov rax, qword [rbp + 0x68]
cmp byte [rax], 0
je 0x180151a55
test edx, edx
je 0x180151a55
lea rcx, [rsi + 0x270]
mov byte [rsp + 0x20], 0
mov r9b, 1
lea r8, [rbp + 0x68]
call fcn.180170570
jmp 0x180151a55
lea r12, [0x1802bccb0]
lea rcx, [rsp + 0x38]
call fcn.18000a800
mov rcx, qword [rsp + 0x38]
call fcn.1800a09c8
nop
lea rcx, [rbp - 0x60]
call fcn.18000a800
mov rcx, qword [rbp - 0x60]
call fcn.1800a09c8
nop
mov rcx, qword [rbp + 0x68]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x180151a9d
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180151a9d
call fcn.1800a0c6c
movzx edi, byte [rbp + 0x50]
xor ebx, ebx
mov rdx, qword [rbp + 0x58]
mov rax, qword [rdx]
mov qword [rbp - 0x10], rax
lea rcx, [rax - 0x10]
cmp rcx, r12
je 0x180151ac0
mov eax, 1
lock xadd dword [rcx], eax
mov rax, qword [rdx]
mov qword [rbp - 0x18], rax
xchg qword [r13], rax
lea rcx, [rax - 0x10]
cmp rcx, r12
je 0x180151ae7
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180151ae7
call fcn.1800a0c6c
mov r9b, 1
movzx r8d, r9b
mov rdx, r13
mov rcx, qword [rsi + 0x118]
call fcn.180153680
mov dword [rsp + 0x20], ebx
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, qword [rsi + 0x168]
call fcn.18028d040
test rax, rax
je 0x180151b2a
mov rcx, rax
call fcn.18014bb60
mov rax, qword [r13]
mov qword [rsp + 0x30], rax
lea rcx, [rax - 0x10]
cmp rcx, r12
je 0x180151b4a
mov eax, 1
lock xadd dword [rcx], eax
mov rax, qword [rsp + 0x30]
cmp byte [rax], 0
jne 0x180151b90
mov rax, qword [0x180423538]
lea rcx, [rax - 0x10]
cmp rcx, r12
je 0x180151b6f
mov eax, 1
lock xadd dword [rcx], eax
mov rax, qword [0x180423538]
xchg qword [rsp + 0x30], rax
lea rcx, [rax - 0x10]
cmp rcx, r12
je 0x180151b90
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180151b90
call fcn.1800a0c6c
lea rcx, [rsi + 0x178]
lea rdx, [rsp + 0x30]
call fcn.1801192d0
lea rdx, [rsp + 0x58]
mov rcx, r13
call fcn.1800e6c30
nop
mov ebx, 1
mov dword [rbp + 0x60], ebx
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x180151c1c
cmp eax, 0xffffffff
je 0x180151c1c
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.1800e6c30
nop
mov ebx, 3
mov dword [rbp + 0x60], ebx
mov rcx, qword [r13]
mov qword [rbp - 0x38], rcx
mov rdx, qword [rax]
cmp rdx, rcx
je 0x180151c1c
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.180019ca0
test eax, eax
je 0x180151c1c
mov cl, 1
jmp 0x180151c1e
xor cl, cl
mov rdx, qword [rsi + 0x6c8]
movzx r8d, byte [rdx + 0xc1]
movzx eax, r8b
shr al, 4
and al, 1
cmp al, cl
jne 0x180151c7d
test cl, cl
sete al
shl al, 4
xor al, r8b
and al, 0x10
xor al, r8b
mov byte [rdx + 0xc1], al
mov rax, qword [rdx + 0x18]
test rax, rax
je 0x180151c74
test byte [rax + 0xc1], 0x10
jne 0x180151c7d
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x180151c74
call fcn.1801699f0
test al, al
je 0x180151c7d
mov rcx, rdx
call fcn.180169920
nop
test bl, 2
je 0x180151cac
and ebx, 0xfffffffd
mov dword [rbp + 0x60], ebx
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x180151cac
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180151ca9
call fcn.1800a0c6c
mov ebx, dword [rbp + 0x60]
test bl, 1
je 0x180151cd2
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x180151cd2
mov eax, r15d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x180151cd2
call fcn.1800a0c6c
test dil, dil
je 0x180151d5c
lea rcx, [rsi + 0xb8]
mov rdx, rsi
call fcn.180025030
mov rdi, rax
mov qword [rbp - 0x30], rax
test rax, rax
je 0x180151d00
mov ecx, 1
lock xadd dword [rax + 8], ecx
mov ebx, dword [rsi + 0x160]
test rdi, rdi
je 0x180151d43
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x180151d43
test ebx, ebx
jle 0x180151d43
mov eax, dword [rsi + 0x160]
dec ebx
cmp ebx, eax
jl 0x180151d2b
lea ebx, [rax - 1]
test ebx, ebx
js 0x180151d43
movsxd rax, ebx
mov rcx, qword [rsi + 0x150]
mov rdx, r13
mov rcx, qword [rcx + rax*8]
call fcn.18005476c
jmp 0x180151d06
test rdi, rdi
je 0x180151d5c
lock dec dword [rdi + 8]
jne 0x180151d5c
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x180151d7d
lock xadd dword [rcx], r15d
lea eax, [r15 - 1]
cmp eax, 0xffffffff
jne 0x180151d7d
call fcn.1800a0c6c
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret