Function at 0x1400f95c8
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov r14, r9
mov r15d, r8d
mov r12d, edx
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x88], rax
call qword [sym.imp.USER32.dll_CreatePopupMenu]
test rax, rax
je 0x1400f9841
mov rbx, rax
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rsi
mov rdx, rbx
call fcn.140019ae0
mov rbp, qword [rsi + 8]
test rbp, rbp
je 0x1400f9660
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetMenuItemCount]
mov rcx, qword [rbp]
mov rdi, qword [rcx + 0x18]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2710
mov rcx, rbp
mov rdx, rbx
mov r8d, eax
mov r9d, 0x64
mov rax, rdi
call qword [0x1401bf010]
mov rcx, rsi
mov rdx, rbx
call fcn.140019ae0
lea rdx, [rsp + 0x7c]
mov dword [rdx], 0
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp qword [rsi + 8], 0
je 0x1400f97b6
mov ebp, eax
mov edi, dword [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
jne 0x1400f97b6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x1400f97b6
mov rax, qword [rsi + 8]
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
test rax, rax
je 0x1400f970a
mov rcx, r14
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400f970a
lea r8, [0x1400f98d0]
mov rcx, r14
mov edx, 0xfffffffc
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
lea rdi, [rsp + 0x40]
mov qword [rdi + 8], rax
lea rcx, [rsp + 0x80]
call fcn.1400f99be
mov qword [rax], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 0x100
mov r8d, r12d
mov r9d, r15d
call qword [sym.imp.USER32.dll_TrackPopupMenu]
mov r15d, eax
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x1400f9751
mov rcx, qword [rsp + 0x40]
mov edx, 0xfffffffc
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [0x1401af570]
test rcx, rcx
je 0x1400f97e3
mov rax, qword [rsp + 0x40]
lea rdi, [0x1401af570]
mov rdx, rcx
xor ebp, ebp
cmp qword [rdx + 0x20], rax
setb bpl
cmovae rdi, rdx
mov rdx, qword [rdx + rbp*8]
test rdx, rdx
jne 0x1400f9770
lea rdx, [0x1401af570]
cmp rdi, rdx
je 0x1400f97e3
cmp rax, qword [rdi + 0x20]
jb 0x1400f97e3
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x1400f987c
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
jne 0x1400f97a6
jmp 0x1400f9899
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 0x100
mov r8d, r12d
mov r9d, r15d
call qword [sym.imp.USER32.dll_TrackPopupMenu]
mov r15d, eax
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyMenu]
lea eax, [r15 - 0x64]
cmp eax, 0x26ac
ja 0x1400f9848
xorps xmm0, xmm0
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx + 0x20], xmm0
mov qword [rdx + 0x30], 0
mov dword [rdx], 0x38
add r15d, 0xff9c
movzx eax, r15w
mov qword [rdx + 0x10], rax
mov dword [rdx + 0x28], 1
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x1401bf010]
jmp 0x1400f9856
mov esi, 0x80004005
jmp 0x1400f9858
mov rcx, rsi
mov edx, r15d
mov r8, r14
call fcn.1400ac760
mov esi, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140135280
mov eax, esi
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rdi + 0x10]
cmp qword [rax], rdi
je 0x1400f9899
lea rdx, [rdi + 0x10]
mov rbp, qword [rdx]
lea rdx, [rbp + 0x10]
mov rax, qword [rbp + 0x10]
cmp qword [rax], rbp
jne 0x1400f9889
cmp qword [0x1401af568], rdi
jne 0x1400f98a9
mov qword [0x1401af568], rax
dec qword [0x1401af578]
mov rdx, rdi
call fcn.140023aa4
mov rcx, rdi
call fcn.1401349d4
jmp 0x1400f97e3