Function at 0x140009a70
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rsi, rcx
mov ebx, dword [rdx + 0x18]
lea rax, vtable.CMenu.0
mov qword [rsp + 0x70], rax
xor r13d, r13d
mov qword [rsp + 0x78], r13
mov edi, 0x8f
lea ebp, [rdi - 1]
test ebx, ebx
js 0x140009ad8
mov rcx, qword [rcx + 0xb0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, eax
cmovl edi, ebp
call fcn.1400dba80
movzx edx, di
mov rcx, qword [rax + 0x18]
call qword [sym.imp.USER32.dll_LoadMenuW]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400de770
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetSubMenu]
mov rcx, rax
call fcn.1400de720
mov r15, rax
mov qword [rsp + 0x50], rax
lea rdx, [0x14013fe30]
mov rcx, rax
call fcn.140011130
cmp edi, 0x8f
jne 0x140009b4e
mov rcx, qword [0x14019a4b8]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea edx, [r9 + 2]
mov r8d, 0x400
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_ModifyMenuW]
mov r12d, r13d
cmp edi, ebp
sete r12b
mov rax, qword [rsi + 0x100]
cmp dword [rax], 0
je 0x140009bf0
cmp edi, ebp
jne 0x140009b80
mov edx, 8
mov r8d, 0x400
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_DeleteMenu]
xor r8d, r8d
mov edx, 0x8012
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_DeleteMenu]
xor r8d, r8d
mov edx, 0x800f
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_DeleteMenu]
xor r8d, r8d
mov edx, 0x8011
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_DeleteMenu]
xor r8d, r8d
mov edx, 0x8014
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_DeleteMenu]
xor r8d, r8d
mov edx, 0x8015
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_DeleteMenu]
xor r8d, r8d
mov edx, 0x8016
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_DeleteMenu]
or r12d, 2
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140008250
nop
mov rbp, qword [rsp + 0x60]
mov rsi, r13
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and ebx, 0x10
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0xe8], r13d
mov r13d, 1
or r14, 0xffffffffffffffff
test r13b, r12b
je 0x140009cd8
test ebx, ebx
jne 0x140009cd8
xor edx, edx
lea r8d, [rbx + 0x5c]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
test rax, rax
jne 0x140009c54
mov rax, rbp
jmp 0x140009c58
add rax, 2
xor edx, edx
lea r8d, [rdx + 0x2e]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rsi, rax
test rax, rax
je 0x140009c75
add rsi, 2
jmp 0x140009c7c
lea rsi, [0x14014f7a8]
lea rdx, [0x14013f520]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140009ca4
lea rdx, [0x14013f558]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140009cd8
mov dword [rsp + 0xe8], r13d
test rbp, rbp
jne 0x140009cb5
xor ecx, ecx
jmp 0x140009cc6
xor eax, eax
mov rcx, r14
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rbp
lea rcx, [0x14019ab08]
call fcn.140002570
cmp r12d, r13d
jne 0x140009f3e
mov r12d, 2
cmp word [rbp], 0
je 0x140009f3a
xor eax, eax
mov rcx, r14
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbp
lea rcx, [0x14019ab08]
call fcn.140002570
test ebx, ebx
jne 0x140009d42
xor edi, edi
lea rbx, [0x14013f560]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140009d3d
inc edi
add rbx, 8
cmp edi, 0x12
jb 0x140009d20
jmp 0x140009d42
mov dword [rsp + 0x40], r13d
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xd0], rax
cmp rax, 0xffffffffffffffff
je 0x140009f3a
test rax, rax
je 0x140009f3a
mov r15, qword [0x140199b80]
call fcn.1400da76c
mov rdx, rax
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x140009daa
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x48], rdi
sub r13d, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x80001
or eax, r13d
jge 0x140009de1
mov edx, 0x80001
lea rcx, [rsp + 0x48]
call fcn.140001da0
mov rdi, qword [rsp + 0x48]
cmp dword [rdi - 0xc], 0x80001
jge 0x140009df5
mov ecx, 0x80070057
call fcn.140001000
int3
mov dword [rdi - 0x10], 0x80001
mov word [rdi + 0x100002], si
mov dword [rsp + 0xd8], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xd8]
mov r8d, 0xc8000
mov rdx, rdi
mov r13, qword [rsp + 0xd0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0xd8]
lea eax, [r11 - 0x10]
mov ebx, esi
mov ecx, 0x4b000
cmp eax, ecx
cmovg eax, ecx
lea r8, [rdi + 0x19000]
movsxd r9, eax
add r9, rdi
cmp r8, r9
ja 0x140009f04
lea r10, [0x14013fe18]
mov rdx, qword [r8]
cmp rdx, qword [r10]
jne 0x140009e7c
mov rdx, qword [r8 + 8]
cmp rdx, qword [r10 + 8]
jne 0x140009e7c
mov eax, esi
jmp 0x140009e81
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x140009e8f
inc r8
cmp r8, r9
jbe 0x140009e66
jmp 0x140009f04
movsxd rax, dword [0x140195234]
sub r11d, eax
mov dword [rsp + 0xd0], esi
lea rbx, [rdi + 0x32000]
movsxd rsi, r11d
add rsi, rdi
cmp rbx, rsi
ja 0x140009efb
mov rbp, rax
nop word [rax + rax]
mov r8, rbp
mov rdx, r15
mov rcx, rbx
call fcn.14010cc50
test eax, eax
je 0x140009ee5
inc rbx
cmp rbx, rsi
jbe 0x140009ec0
mov ebx, dword [rsp + 0xd0]
xor esi, esi
jmp 0x140009f04
mov dword [rsp + 0xd0], 3
mov ebx, dword [rsp + 0xd0]
xor esi, esi
jmp 0x140009f04
mov ebx, dword [rsp + 0xd0]
xor esi, esi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
cmovne r12d, esi
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140009f35
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r15, qword [rsp + 0x50]
jmp 0x140009f3a
mov r15, qword [rsp + 0x50]
or r12d, 1
mov rdi, qword [0x14019a8c8]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x140009f69
cmp rax, qword [rdi - 0x18]
jne 0x140009f69
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140009fa6
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x140009f85
call fcn.140001910
int3
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
inc eax
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.14010bce0
lea rdi, [rbx + 0x18]
mov qword [rsp + 0xd0], rdi
test r12b, 1
je 0x140009ff3
cmp dword [rsp + 0xe8], 0
je 0x140009fc8
cmp word [rdi], 0
jne 0x140009fda
xor r8d, r8d
mov edx, 0x4edf
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_DeleteMenu]
cmp dword [rsp + 0x40], 0
jne 0x140009ff3
xor r8d, r8d
mov edx, 0x4ecf
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_DeleteMenu]
cmp r12d, 3
jne 0x14000a00b
xor r8d, r8d
mov edx, 0x4ee0
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_DeleteMenu]
lea rcx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetCursorPos]
call fcn.1400ddc74
test rax, rax
je 0x14000a030
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
xor ebx, ebx
jmp 0x14000a035
xor ebx, ebx
mov rax, rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x58]
mov edx, 2
mov rcx, r15
call fcn.1400d227c
mov r11, qword [rsp + 0xe0]
mov qword [r11], rbx
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000a07d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
dec r14d
test r14d, r14d
jg 0x14000a09e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, vtable.CMenu.0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400de7f0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret