Function at 0x1400fd098
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 [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x88], rax
call qword [sym.imp.USER32.dll_CreatePopupMenu]
test rax, rax
je 0x1400fd311
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 0x1400fd130
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 [0x1401c1010]
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 0x1400fd286
mov ebp, eax
mov edi, dword [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
jne 0x1400fd286
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ebp, eax
jne 0x1400fd286
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 0x1400fd1da
mov rcx, r14
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400fd1da
lea r8, [0x1400fd3a0]
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.1400fd48e
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 0x1400fd221
mov rcx, qword [rsp + 0x40]
mov edx, 0xfffffffc
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [0x1401b15b0]
test rcx, rcx
je 0x1400fd2b3
mov rax, qword [rsp + 0x40]
lea rdi, [0x1401b15b0]
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 0x1400fd240
lea rdx, [0x1401b15b0]
cmp rdi, rdx
je 0x1400fd2b3
cmp rax, qword [rdi + 0x20]
jb 0x1400fd2b3
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x1400fd34c
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
jne 0x1400fd276
jmp 0x1400fd369
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 0x1400fd318
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 [0x1401c1010]
jmp 0x1400fd326
mov esi, 0x80004005
jmp 0x1400fd328
mov rcx, rsi
mov edx, r15d
mov r8, r14
call fcn.1400ae5f0
mov esi, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140137110
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 0x1400fd369
lea rdx, [rdi + 0x10]
mov rbp, qword [rdx]
lea rdx, [rbp + 0x10]
mov rax, qword [rbp + 0x10]
cmp qword [rax], rbp
jne 0x1400fd359
cmp qword [0x1401b15a8], rdi
jne 0x1400fd379
mov qword [0x1401b15a8], rax
dec qword [0x1401b15b8]
mov rdx, rdi
call fcn.140023aa4
mov rcx, rdi
call fcn.140136864
jmp 0x1400fd2b3