Function at 0x408010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5894fd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5f3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push ecx
call fcn.0040be50
add esp, 4
test al, al
jne 0x408054
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esi + 0xb4]
test ecx, ecx
je 0x408098
mov eax, dword [ecx]
push ecx
call dword [eax + 0x60]
mov ecx, dword [esi + 0xb4]
test ecx, ecx
je 0x40807e
mov dword [esi + 0xb4], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0xb8]
test ecx, ecx
je 0x408098
mov dword [esi + 0xb8], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0xb0]
test ecx, ecx
je 0x4080b2
mov dword [esi + 0xb0], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0xbc]
add esi, 0xbc
test ecx, ecx
je 0x4080ce
mov dword [esi], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
test ecx, ecx
je 0x4080e0
mov dword [esi], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [0x5fe4dc]
test eax, eax
jne 0x40811a
push eax
push eax
push str.dcomp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x40810d
push str.DCompositionCreateDevice2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5fe4dc], eax
jmp 0x408112
mov eax, dword [0x5fe4dc]
test eax, eax
je 0x408249
push esi
push 0x5d1844
push 0
call eax
test eax, eax
jne 0x408249
push 0x5c8d88
xor esi, esi
push 0x20
mov dword [ebp - 0x14], esi
call fcn.0055da36
mov edi, eax
add esp, 8
test edi, edi
je 0x4081a6
mov dword [edi], vtable.CoreWebView2EnvironmentOptionsBase_void_____stdcall___unsigned_long_int___void____stdcall_CoTaskMemAlloc_unsigned_long_int___void____stdcall___void____void___stdcall_CoTaskMemFree_void___.0
push 0x18
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
test eax, eax
je 0x40817b
movups xmm0, xmmword [str.93.0.961.33]
movups xmmword [eax], xmm0
movq xmm0, qword [0x5d14c0]
movq qword [eax + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x1c], 1
mov dword [edi], method.CoreWebView2EnvironmentOptionsBaseClass_void_____stdcall___unsigned_long_int___void____stdcall_CoTaskMemAlloc_unsigned_long_int___void____stdcall___void____void___stdcall_CoTaskMemFree_void___.virtual_0
mov ecx, dword [0x5fe4d8]
test ecx, ecx
je 0x40819b
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov esi, edi
mov dword [edi], vtable.CoreWebView2EnvironmentOptionsBaseClass_void_____stdcall___unsigned_long_int___void____stdcall_CoTaskMemAlloc_unsigned_long_int___void____stdcall___void____void___stdcall_CoTaskMemFree_void___.0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x28]
push 0x5c8d88
push 0x14
call fcn.0055da36
mov edi, eax
add esp, 8
test edi, edi
je 0x408213
mov dword [edi + 8], 1
mov dword [edi], vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.0
mov ecx, dword [0x5fe4d8]
test ecx, ecx
je 0x4081e7
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
push edi
push esi
push 0
push 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0x408270
mov dword [edi], method.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.virtual_0
call fcn.0040125c
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp - 0x18]
jmp 0x40821f
push 0
push esi
push 0
push 0
call fcn.0040125c
test eax, eax
jns 0x408238
cmp eax, 0x80070002
je 0x408238
push 0
push 0
push str.Failed_to_create_webview_environment
call fcn.004207a3
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x408249
mov eax, dword [esi]
push esi
call dword [eax + 8]
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.0055d3df
mov esp, ebp
pop ebp
ret