Function at 0x1400fcd58
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 [0x14019d018]
xor rax, rsp
mov qword [rsp + 0x88], rax
call qword [sym.imp.USER32.dll_CreatePopupMenu]
test rax, rax
je 0x1400fcfd1
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 0x1400fcdf0
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 [0x1401c0010]
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 0x1400fcf46
mov ebp, eax
mov edi, dword [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
jne 0x1400fcf46
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x1400fcf46
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 0x1400fce9a
mov rcx, r14
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400fce9a
lea r8, [0x1400fd060]
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.1400fd14e
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 0x1400fcee1
mov rcx, qword [rsp + 0x40]
mov edx, 0xfffffffc
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [0x1401b0570]
test rcx, rcx
je 0x1400fcf73
mov rax, qword [rsp + 0x40]
lea rdi, [0x1401b0570]
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 0x1400fcf00
lea rdx, [0x1401b0570]
cmp rdi, rdx
je 0x1400fcf73
cmp rax, qword [rdi + 0x20]
jb 0x1400fcf73
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x1400fd00c
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
jne 0x1400fcf36
jmp 0x1400fd029
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 0x1400fcfd8
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 [0x1401c0010]
jmp 0x1400fcfe6
mov esi, 0x80004005
jmp 0x1400fcfe8
mov rcx, rsi
mov edx, r15d
mov r8, r14
call fcn.1400ae2b0
mov esi, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140136dd0
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 0x1400fd029
lea rdx, [rdi + 0x10]
mov rbp, qword [rdx]
lea rdx, [rbp + 0x10]
mov rax, qword [rbp + 0x10]
cmp qword [rax], rbp
jne 0x1400fd019
cmp qword [0x1401b0568], rdi
jne 0x1400fd039
mov qword [0x1401b0568], rax
dec qword [0x1401b0578]
mov rdx, rdi
call fcn.140023aa4
mov rcx, rdi
call fcn.140136524
jmp 0x1400fcf73