Function at 0x41001f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x43511c
call fcn.00422500
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 0x4101d2
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.004212b6
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
test edi, edi
je 0x4100e8
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.0040f8ef
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.0040f586
jmp 0x4100ea
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.0040f9cc
lea ecx, [ebp - 0x48]
call fcn.0040deb2
mov ecx, dword [esi + 0x2c]
mov byte [ebp - 4], 0
call fcn.0040f840
jmp 0x41015a
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 0x41016a
cmp dword [ebp - 0x60], 0x12
je 0x4101d2
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 0x410129
cmp dword [esi + 0x28], 0
je 0x4101d2
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4101d2
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 0x4101d2
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 0x4101d2
mov ecx, dword [ebp - 0x14]
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
jne 0x4101d2
push str.window.externalinvoke:s_window.chrome.webview.postMessage_s_
lea ecx, [ebp - 0x38]
call fcn.0040da0c
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.0040ff4a
lea ecx, [ebp - 0x38]
call fcn.0040db13
jmp 0x4101d4
xor bl, bl
lea ecx, [ebp + 0x10]
call fcn.0040deb2
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x30