Function at 0x406cb0
Capabilities:
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423f58
mov eax, dword fs:[0]
push eax
sub esp, 0x6f4
mov eax, dword [0x431080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x660], 0
mov eax, 1
xchg dword [ecx], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x407156
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xa0
call fcn.0040c8b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x668], esi
test esi, esi
je 0x406ead
lea eax, [ebp - 0x660]
mov dword [ebp - method.std::_Func_impl_no_alloc_class__lambda_47bb0db757ce0198018761bd38fcd3b9___void__struct_ICoreWebView2Controller___struct_ICoreWebView2__.virtual_0], vtable.std::_Func_impl_no_alloc_class__lambda_47bb0db757ce0198018761bd38fcd3b9___void__struct_ICoreWebView2Controller___struct_ICoreWebView2__.0
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x6bc]
mov dword [ebp - 0x6b4], edi
mov dword [ebp - 0x698], eax
lea eax, [ebp - 0x694]
mov dword [ebp - 0x670], 0
mov dword [ebp - 0x66c], eax
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x406dcb
mov eax, dword [ecx]
lea edx, [ebp - 0x694]
push edx
mov eax, dword [eax]
call eax
mov dword [ebp - 0x670], eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x18]
mov dword [esi], vtable.webview::detail::webview2_com_handler.0
mov dword [esi + 4], vtable.webview::detail::webview2_com_handler.1.0
mov dword [esi + 8], vtable.webview::detail::webview2_com_handler.2.0
mov dword [esi + 0xc], vtable.webview::detail::webview2_com_handler.3.0
mov dword [esi + 0x10], eax
mov dword [ebp - 0x66c], ecx
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x670]
mov byte [ebp - 4], 6
test edx, edx
je 0x406e16
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax]
call eax
mov dword [esi + 0x3c], eax
lea ecx, [esi + 0x40]
mov dword [ebp - 0x66c], ecx
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x698]
mov byte [ebp - 4], 8
test edx, edx
je 0x406e40
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax]
call eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 1
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 5
mov dword [esi + 0x9c], 0
mov ecx, dword [ebp - 0x670]
test ecx, ecx
je 0x406e8d
mov edx, dword [ecx]
lea eax, [ebp - 0x694]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x670], 0
mov ecx, dword [ebp - 0x698]
test ecx, ecx
je 0x406eaf
mov edx, dword [ecx]
lea eax, [ebp - 0x6bc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x406eaf
xor esi, esi
lea eax, [ebp - 0x628]
mov dword [edi + 0x44], esi
mov dword [ebp - 0x6dc], eax
lea eax, [ebp - 0x6e4]
mov dword [ebp - method.std::_Func_impl_no_alloc_class__lambda_5821aadda001d8355125256d721b3f61___long_int___.virtual_0], vtable.std::_Func_impl_no_alloc_class__lambda_5821aadda001d8355125256d721b3f61___long_int___.0
mov dword [ebp - 0x6e0], edi
mov dword [ebp - 0x6c0], eax
push eax
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 9
call fcn.00403860
mov ecx, dword [ebp - 0x6c0]
test ecx, ecx
je 0x406f05
mov edx, dword [ecx]
lea eax, [ebp - 0x6e4]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [edi + 0x44]
mov byte [ebp - 4], 0
call fcn.0040a550
mov eax, 1
lea ecx, [ebp - 0x660]
xchg dword [ecx], eax
test eax, eax
setne al
test al, al
je 0x406f80
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
nop dword [eax]
push 0
push 0
push 0
lea eax, [ebp - 0x700]
push eax
call esi
test eax, eax
js 0x406f80
cmp dword [ebp - 0x6fc], 0x12
je 0x407156
lea eax, [ebp - 0x700]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x700]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, 1
lea ecx, [ebp - 0x660]
xchg dword [ecx], eax
test eax, eax
setne al
test al, al
jne 0x406f30
cmp dword [edi + 0x40], 0
je 0x407156
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x407156
mov dword [ebp - 0x664], 0
lea edx, [ebp - 0x664]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x407156
mov ecx, dword [ebp - 0x664]
movzx eax, byte [ebp + 0xc]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x30]
test eax, eax
jne 0x407156
mov eax, dword [ebp - 0x664]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
jne 0x407156
lea eax, [ebp - 0x668]
mov dword [ebp - 0x668], 0x4f
push eax
lea eax, [ebp - 0x640]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x640], xmm0
call fcn.004012b0
movups xmm0, xmmword [str.function_message___n__return_window.chrome.webview.postMessage_message___n]
mov edx, eax
mov ecx, dword [ebp - 0x668]
add esp, 8
mov dword [ebp - 0x640], edx
mov dword [ebp - 0x630], 0x4a
mov dword [ebp - 0x62c], ecx
movups xmmword [edx], xmm0
movups xmm0, xmmword [0x426280]
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [0x426290]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [0x4262a0]
movups xmmword [edx + 0x30], xmm0
movq xmm0, qword [0x4262b0]
movq qword [edx + 0x40], xmm0
mov ax, word [0x4262b8]
mov word [edx + 0x48], ax
mov byte [edx + 0x4a], 0
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x658]
mov ecx, edi
push eax
call fcn.004066f0
mov edx, dword [edi]
mov ecx, edi
push eax
mov byte [ebp - 4], 0xb
call dword [edx + 0x30]
mov ecx, dword [ebp - 0x644]
mov byte [ebp - 4], 0xa
cmp ecx, 0xf
jbe 0x4070d4
mov edx, dword [ebp - 0x658]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4070ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407198
push ecx
push edx
call fcn.0040c8e4
add esp, 8
mov ecx, dword [ebp - 0x62c]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x407112
mov edx, dword [ebp - 0x640]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407108
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40719d
push ecx
push edx
call fcn.0040c8e4
add esp, 8
mov ecx, edi
call fcn.00409fc0
mov eax, dword [edi + 0x40]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push 5
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [edi + 0x50], 0
je 0x40714d
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x40714d
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x30]
mov byte [ebp - 0x659], 1
jmp 0x40715d
mov byte [ebp - 0x659], 0
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x407175
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0x659]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cc31
mov esp, ebp
pop ebp
ret 0x30
call fcn.0041132f
call fcn.0041132f
int3