Function at 0x10156bfc
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1019d769
call fcn.10159b00
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 0x10156daf
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.101597a1
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
test edi, edi
je 0x10156cc5
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.10154bfa
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.10154d85
jmp 0x10156cc7
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.101552d4
lea ecx, [ebp - 0x48]
call fcn.101564f2
mov ecx, dword [esi + 0x2c]
mov byte [ebp - 4], 0
call fcn.10158635
jmp 0x10156d37
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 0x10156d47
cmp dword [ebp - 0x60], 0x12
je 0x10156daf
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 0x10156d06
cmp dword [esi + 0x28], 0
je 0x10156daf
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x10156daf
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 0x10156daf
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 0x10156daf
mov ecx, dword [ebp - 0x14]
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
jne 0x10156daf
push str.window.externalinvoke:s_window.chrome.webview.postMessage_s_
lea ecx, [ebp - 0x38]
call fcn.10154939
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.101575fc
lea ecx, [ebp - 0x38]
call fcn.101565ab
jmp 0x10156db1
xor bl, bl
lea ecx, [ebp + 0x10]
call fcn.1015654c
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x30