Function at 0x415d71
Capabilities:
Get common file path

Disassembly:
mov eax, 0x42c62b
call fcn.00420368
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 0x415f24
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.004125f0
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
test edi, edi
je 0x415e3a
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.00415691
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.00415328
jmp 0x415e3c
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.0041576e
lea ecx, [ebp - 0x48]
call fcn.00413c57
mov ecx, dword [esi + 0x2c]
mov byte [ebp - 4], 0
call fcn.004155e2
jmp 0x415eac
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 0x415ebc
cmp dword [ebp - 0x60], 0x12
je 0x415f24
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 0x415e7b
cmp dword [esi + 0x28], 0
je 0x415f24
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x415f24
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 0x415f24
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 0x415f24
mov ecx, dword [ebp - 0x14]
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
jne 0x415f24
push str.window.externalinvoke:s_window.chrome.webview.postMessage_s_
lea ecx, [ebp - 0x38]
call fcn.004137b1
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00415c9c
lea ecx, [ebp - 0x38]
call fcn.004138b8
jmp 0x415f26
xor bl, bl
lea ecx, [ebp + 0x10]
call fcn.00413c57
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x30