Function at 0x1400032d8
Capabilities:
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor r12d, r12d
mov rsi, rcx
cmp qword [0x140059d68], r12
mov ebx, 1
jne 0x14000357f
mov edi, 0x104
lea rcx, [rbp + 0x160]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140003571
lea r8, str._notepad.exe
mov edx, edi
lea rcx, [rbp + 0x160]
call fcn.140010d0c
or r15d, 0xffffffff
mov r14b, 0x10
test eax, eax
js 0x1400033b0
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, r15d
je 0x140003381
test r14b, al
je 0x1400033b0
mov edx, edi
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400033b0
lea r8, str._notepad.exe
mov rdx, rdi
lea rcx, [rbp + 0x160]
call fcn.140010d0c
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, r15d
je 0x140003571
test r14b, al
jne 0x140003571
mov r8d, edi
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x140003571
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x140003415
mov word [rax + 2], r12w
jmp 0x14000341b
mov word [rsp + 0x50], r12w
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
lea r8, str.eula.txt
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140010d0c
test eax, eax
js 0x140003571
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, r15d
je 0x140003571
test r14b, al
jne 0x140003571
mov rcx, qword [0x140059d90]
lea r8, [rbp + 0x370]
mov r9d, 0xff
lea edx, [r9 - 0x55]
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x140003571
movsxd rax, dword [0x140059d58]
lea rcx, [rax + rax*2]
mov rax, qword [str.6ij]
add rcx, rcx
mov r14d, dword [rax + rcx*8 + 0x2c]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetParent]
nop dword [rax + rax]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov edx, 0x402
mov rcx, rsi
mov r15, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140003517
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetParent]
nop dword [rax + rax]
mov rcx, rax
mov edx, 0x402
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rdi, rax
mov ecx, 0x48
call fcn.140001460
test rax, rax
je 0x14000356c
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x38], r14d
mov r9, rdi
mov qword [rsp + 0x30], rcx
mov r8d, 0x402
lea rcx, [rbp + 0x160]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x370]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140016808
mov qword [0x140059d68], rax
jmp 0x140003578
mov rax, r12
jmp 0x140003563
mov rax, qword [0x140059d68]
test rax, rax
cmove ebx, r12d
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret