Function at 0x14001a090
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x6e0]
sub rsp, 0x7e0
mov rax, qword [0x1400a21a8]
xor rax, rsp
mov qword [rbp + 0x6d0], rax
mov rdi, r9
movzx r15d, r8b
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x10], r9
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov eax, 1
xchg dword [rsp + 0x30], eax
mov r8d, 0x104
lea rdx, [rbp + 0xa0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rbx, rax
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14001a470
mov r8, rbx
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, 0xf8
call fcn.140052a1c
mov rbx, rax
mov qword [rbp - 8], rax
test rax, rax
je 0x14001a28d
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_b816bbb5339e8a2462825451e6050650___void__struct_ICoreWebView2Controller____ptr64__struct_ICoreWebView2____ptr64_.0
mov qword [rbp - 0x50], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x48], xmm0
lea rax, [rbp - 0x50]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x50]
mov qword [rbp], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x58], r12
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14001a1bb
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax]
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, vtable.webview::detail::webview2_com_handler.0
mov qword [rbx], rax
lea rax, vtable.webview::detail::webview2_com_handler.1.0
mov qword [rbx + 8], rax
lea rax, vtable.webview::detail::webview2_com_handler.2.0
mov qword [rbx + 0x10], rax
lea rax, vtable.webview::detail::webview2_com_handler.3.0
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], r14
lea r14, [rbx + 0x28]
mov qword [rsp + 0x40], r14
mov qword [r14 + 0x38], r12
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14001a216
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [r14 + 0x38], rax
lea r14, [rbx + 0x68]
mov qword [rsp + 0x40], r14
mov qword [r14 + 0x38], r12
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14001a238
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [r14 + 0x38], rax
mov dword [rbx + 0xa8], 1
mov qword [rbx + 0xe8], r12
mov qword [rbx + 0xf0], 5
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x14001a272
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x58], r12
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14001a290
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x14001a290
mov rbx, r12
mov qword [rsi + 0x48], rbx
mov qword [rsp + 0x60], rsi
lea rax, [rbp + 0x4c0]
mov qword [rsp + 0x68], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_43975f0d999b584067251560e9f15dfa___long_int___.0
mov qword [rbp + 8], rax
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x10], xmm0
lea rax, [rbp + 8]
mov qword [rbp + 0x40], rax
lea rcx, [rbx + 0xb0]
lea rdx, [rbp + 8]
call fcn.14000cb50
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14001a2eb
mov rax, qword [rcx]
lea rdx, [rbp + 8]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov rcx, qword [rsi + 0x48]
call fcn.1400254b0
mov eax, 1
xchg dword [rsp + 0x30], eax
test eax, eax
je 0x14001a342
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x48]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
js 0x14001a342
cmp dword [rbp + 0x50], 0x12
je 0x14001a470
lea rcx, [rbp + 0x48]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, 1
xchg dword [rsp + 0x30], eax
test eax, eax
jne 0x14001a301
cmp qword [rsi + 0x40], 0
je 0x14001a470
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14001a470
mov qword [rsp + 0x38], r12
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x18]
test eax, eax
jne 0x14001a466
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov edx, r15d
call qword [rax + 0x60]
test eax, eax
jne 0x14001a466
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x50]
test eax, eax
jne 0x14001a466
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x90], 0xf
lea edx, [rax + 0x50]
lea rcx, [rbp + 0x78]
call fcn.140016b50
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x88], 0x40
mov qword [rbp + 0x90], 0x4f
movaps xmm0, xmmword [str.window.externalinvoke:s_window.chrome.webview.postMessage_s_]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x140059500]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x140059510]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x140059520]
movups xmmword [rax + 0x30], xmm1
mov byte [rax + 0x40], 0
lea rdx, [rbp + 0x78]
mov rcx, rsi
call fcn.14001f100
nop
mov rdx, qword [rbp + 0x90]
cmp rdx, 0x10
jb 0x14001a45a
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a454
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001a454
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052a58
nop
mov rcx, rdi
call fcn.14000bf20
mov al, 1
jmp 0x14001a48b
mov rcx, rdi
call fcn.14000bf20
jmp 0x14001a489
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14001a489
cmp rcx, rdi
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], r12
xor al, al
mov rcx, qword [rbp + 0x6d0]
xor rcx, rsp
call fcn.140052eb0
add rsp, 0x7e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret