Function at 0x140019a20
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 [0x1400a21c8]
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 0x140019e00
mov r8, rbx
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0x4c0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ecx, 0xf8
call fcn.140052d3c
mov rbx, rax
mov qword [rbp - 8], rax
test rax, rax
je 0x140019c1d
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 0x140019b4b
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 0x140019ba6
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 0x140019bc8
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 0x140019c02
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 0x140019c20
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x140019c20
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.14000c8d0
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140019c7b
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.140024020
mov eax, 1
xchg dword [rsp + 0x30], eax
test eax, eax
je 0x140019cd2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x48]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
js 0x140019cd2
cmp dword [rbp + 0x50], 0x12
je 0x140019e00
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 0x140019c91
cmp qword [rsi + 0x40], 0
je 0x140019e00
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140019e00
mov qword [rsp + 0x38], r12
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x18]
test eax, eax
jne 0x140019df6
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov edx, r15d
call qword [rax + 0x60]
test eax, eax
jne 0x140019df6
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x50]
test eax, eax
jne 0x140019df6
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.1400165b0
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 [0x140059520]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x140059530]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x140059540]
movups xmmword [rax + 0x30], xmm1
mov byte [rax + 0x40], 0
lea rdx, [rbp + 0x78]
mov rcx, rsi
call fcn.14001e1d0
nop
mov rdx, qword [rbp + 0x90]
cmp rdx, 0x10
jb 0x140019dea
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019de4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140019de4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052d78
nop
mov rcx, rdi
call fcn.14000bcc0
mov al, 1
jmp 0x140019e1b
mov rcx, rdi
call fcn.14000bcc0
jmp 0x140019e19
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140019e19
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.1400531d0
add rsp, 0x7e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret