Function at 0x40168f
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov ebx, edx
mov dword [esp + 0x24], ecx
mov eax, dword [0x5cc9b4]
xor eax, ebp
mov dword [esp + 0x78], eax
lea esi, [esp + 0x2c]
xor eax, eax
mov dword [esp + 0xc], edx
mov edi, 4
sub edi, eax
cmp dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
cmovne edi, eax
mov eax, dword [edi*4 + 0x5a834c]
mov dword [esp + 0x10], eax
xor eax, eax
dec eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov ecx, esi
call fcn.00401cc8
push esi
push edi
call fcn.00401005
add esp, 8
mov ecx, esi
call fcn.00401f46
mov ecx, eax
xor edx, edx
push ebx
push dword [ebp + 8]
call fcn.00401b62
add esp, 8
test al, al
jne 0x4019af
mov ecx, esi
call fcn.00401f46
mov ecx, eax
xor edx, edx
inc edx
push ebx
push dword [ebp + 8]
call fcn.00401b62
add esp, 8
test al, al
jne 0x4019af
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
mov eax, dword [0x7c286c]
mov ecx, dword [0x7c2908]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0x34]
jg 0x401967
mov ecx, dword [0x7c2868]
test ecx, ecx
je 0x401804
mov dword [esp + 0x3c], 0xffffffff
xor esi, esi
mov dword [esp + 0x38], esi
call dword [0x55363c]
lea eax, [esp + 0x3c]
push eax
push esi
lea eax, [esp + 0x40]
push eax
push 1
call ecx
cmp eax, 0x7a
jne 0x401800
cmp dword [esp + 0x38], 0
je 0x401800
xor eax, eax
dec eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea esi, [esp + 0x40]
mov ecx, esi
call fcn.00401cc8
mov ecx, esi
push dword [esp + 0x38]
call fcn.00401f16
test al, al
je 0x4017f3
mov esi, dword [0x7c2868]
lea ecx, [esp + 0x40]
call fcn.00401f46
mov ebx, eax
mov ecx, esi
call dword [0x55363c]
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x40]
push eax
push 1
call esi
test eax, eax
je 0x40181e
lea ecx, [esp + 0x40]
call fcn.00401cda
mov ebx, dword [esp + 0xc]
lea esi, [esp + 0x2c]
mov ecx, esi
call fcn.00401cda
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 5
jne 0x4016b9
jmp 0x4019cf
lea ecx, [esp + 0x40]
call fcn.00401f46
cmp dword [esp + 0x3c], 0
je 0x4017f3
mov esi, eax
add esi, 0x1c
xor ebx, ebx
push dword [esp + 0x10]
push dword [esi - 0xc]
call fcn.00526862
add esp, 8
test eax, eax
je 0x401854
inc ebx
add esi, 0x34
cmp ebx, dword [esp + 0x3c]
jb 0x401835
jmp 0x4017f3
movq xmm0, qword [esi]
punpcklwd xmm0, xmmword [0x5a7cf0]
movdqa xmmword [esp + 0x10], xmm0
pshufd xmm0, xmm0, 0x1b
movdqa xmmword [esp + 0x60], xmm0
mov ebx, dword [esp + 0xc]
mov ecx, ebx
push dword [esi - 0x14]
call fcn.00401db8
lea esi, [esp + 0x40]
mov ecx, esi
call fcn.00401cda
lea ecx, [esp + 0x60]
mov edx, ebx
call fcn.00401c77
cmp dword [ebp + 8], 0
je 0x401959
test al, al
je 0x401959
mov ecx, dword [ebp + 8]
push 0xf
call fcn.00401d3a
xor eax, eax
dec eax
mov dword [esp + 0x52], eax
mov dword [esp + 0x4e], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
pshufd xmm0, xmmword [esp + 0x10], 0xff
sub esp, 0x10
mov dword [esp + 4], esi
movdqa xmmword [esp + 0x20], xmm0
movd dword [esp], xmm0
mov dword [esp + 0xc], 0xa
mov dword [esp + 8], 0xb
call fcn.00531d35
add esp, 0x10
test eax, eax
jne 0x401800
movdqa xmm0, xmmword [esp + 0x10]
movd dword [esp + 0x10], xmm0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x40]
push eax
call fcn.00401db8
mov esi, 3
push 0xa
push 0xb
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call fcn.00531d35
add esp, 0x10
test eax, eax
jne 0x401800
mov ecx, dword [ebp + 8]
push 0x5a839c
call fcn.00401e88
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x40]
push eax
call fcn.00401e88
dec esi
jne 0x40191d
jmp 0x4019af
test al, al
lea esi, [esp + 0x2c]
je 0x401804
jmp 0x4019af
push 0x7c286c
call fcn.00513f0a
add esp, 4
cmp dword [0x7c286c], 0xffffffff
jne 0x401761
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetCurrentPackageInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x7c2868], eax
push 0x7c286c
call fcn.00513ec0
add esp, 4
jmp 0x401761
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4019c2
push dword [edi*4 + 0x5a7f8c]
call fcn.00401db8
lea ecx, [esp + 0x2c]
call fcn.00401cda
xor esi, esi
jmp 0x4019df
push str.WebView2:_Failed_to_find_an_installed_WebView2_runtime_or_non_stable_Microsoft_Edge_installation._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, 0x80070002
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.00514f0c
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret