Function at 0x51a9ac
Capabilities:
Get common file path

Disassembly:
mov eax, 0x55bdfd
call fcn.0051daf0
sub esp, 0x670
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x10]
xor edx, edx
inc ebx
mov dword [ebp - 4], edx
mov eax, ebx
mov dword [ebp - 0x10], edx
xchg dword [ecx], eax
push 0x104
lea eax, [ebp - 0x26c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edi, eax
lea eax, [ebp - 0x474]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x51ab5f
push edi
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xa0
call fcn.0051d633
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
test edi, edi
je 0x51aa75
sub esp, 0x28
lea ecx, [ebp - 0x10]
mov eax, esp
mov dword [ebp - 0x1c], esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_47bb0db757ce0198018761bd38fcd3b9___void__struct_ICoreWebView2Controller___struct_ICoreWebView2__.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
sub esp, 0x28
mov byte [ebp - 4], 2
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call fcn.005189aa
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.00518b35
jmp 0x51aa77
xor eax, eax
lea ecx, [ebp - 0x67c]
mov dword [esi + 0x2c], eax
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], vtable.std::_Func_impl_no_alloc_class__lambda_5821aadda001d8355125256d721b3f61___long_int___.0
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x24], ecx
push ecx
lea ecx, [eax + 0x70]
mov byte [ebp - 4], 3
call fcn.00519084
lea ecx, [ebp - 0x48]
call fcn.0051a2a2
mov ecx, dword [esi + 0x2c]
mov byte [ebp - 4], 0
call fcn.0051c3e5
jmp 0x51aae7
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
js 0x51aaf7
cmp dword [ebp - 0x60], 0x12
je 0x51ab5f
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [ebp - 0x10]
mov eax, ebx
xchg dword [ecx], eax
test eax, eax
setne al
test al, al
jne 0x51aab6
cmp dword [esi + 0x28], 0
je 0x51ab5f
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x51ab5f
and dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x51ab5f
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + 0x30]
movzx eax, byte [ebp + 0xc]
push eax
push edx
call ecx
test eax, eax
jne 0x51ab5f
mov ecx, dword [ebp - 0x14]
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
jne 0x51ab5f
push str.window.externalinvoke:s_window.chrome.webview.postMessage_s_
lea ecx, [ebp - 0x38]
call fcn.005186e9
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.0051b3ac
lea ecx, [ebp - 0x38]
call fcn.0051a35b
jmp 0x51ab61
xor bl, bl
lea ecx, [ebp + 0x10]
call fcn.0051a2fc
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x30