Function at 0x587e2b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], edx
mov eax, dword [0x673140]
xor eax, ebp
mov dword [esp + 0x68], eax
lea esi, [esp + 0x28]
xor eax, eax
mov dword [esp + 0x20], ecx
cmp dword [ecx + 0xc], 1
mov edx, eax
jne 0x587e70
mov edx, 4
sub edx, eax
cmp byte [ecx + 0x15], 0
je 0x587e70
cmp byte [ecx + edx + 0x10], 0
je 0x5880ae
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], eax
cmp byte [ecx + 0x16], 0
setne al
test edx, edx
sete bl
and bl, al
mov eax, dword [edx*4 + 0x654b54]
mov dword [esp + 0x10], eax
xor eax, eax
dec eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov ecx, esi
call fcn.005885f8
movzx edi, bl
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [esp + 0x14]
push eax
call fcn.005877b1
add esp, 0xc
mov ecx, esi
call fcn.005888a2
mov ecx, eax
mov edx, edi
push dword [esp + 8]
push ebx
push 0
call fcn.005883f6
add esp, 0xc
test al, al
jne 0x5882da
mov ecx, esi
call fcn.005888a2
mov ecx, eax
mov edx, edi
push dword [esp + 8]
push ebx
push 1
call fcn.005883f6
add esp, 0xc
test al, al
jne 0x5882da
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x58], xmm0
mov eax, dword [0x673c94]
mov ecx, dword [0x673cb8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x588202
cmp dword [0x673c90], 0
mov ebx, 0
je 0x58809f
mov eax, dword [0x673c9c]
mov ecx, dword [0x673cb8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x58824a
cmp dword [0x673c98], 0
je 0x58809f
mov dword [esp + 0x34], ebx
mov ecx, dword [0x673c90]
call dword [0x5a2490]
sub esp, 0x24
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
lea eax, [esp + 0x58]
mov dword [esp + 0x20], eax
pxor xmm0, xmm0
movdqu xmmword [esp + 0x10], xmm0
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp], ebx
call ecx
test eax, eax
js 0x587fdf
mov dword [esp + 0x40], ebx
mov ecx, dword [0x673c98]
mov edi, dword [esp + 0x34]
call dword [0x5a2490]
push ebx
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push edi
call ecx
mov edi, dword [esp + 0x34]
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push edi
push ebx
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 0x34], ebx
mov eax, dword [0x673ca4]
mov ecx, dword [0x673cb8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x588292
mov ecx, dword [0x673ca0]
test ecx, ecx
je 0x58809f
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x38], ebx
call dword [0x5a2490]
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x40]
push eax
push 0x180001
call ecx
cmp eax, 0x7a
jne 0x58809f
cmp dword [esp + 0x38], 0
je 0x58809f
xor eax, eax
dec eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea edi, [esp + 0x40]
mov ecx, edi
call fcn.005885f8
mov ecx, edi
push dword [esp + 0x38]
call fcn.0058883e
test al, al
je 0x588096
mov edi, dword [0x673ca0]
lea ecx, [esp + 0x40]
call fcn.005888a2
mov ebx, eax
mov ecx, edi
call dword [0x5a2490]
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x40]
push eax
push 0x180001
call edi
test eax, eax
je 0x5880bd
lea ecx, [esp + 0x40]
call fcn.0058860a
mov ecx, esi
call fcn.0058860a
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 5
jne 0x587e50
jmp 0x5882fe
lea ecx, [esp + 0x40]
call fcn.005888a2
cmp dword [esp + 0x3c], 0
je 0x588096
mov edi, eax
add edi, 0x1c
xor ebx, ebx
push dword [esp + 0x10]
push dword [edi - 0xc]
call fcn.0058e1b9
add esp, 8
test eax, eax
je 0x5880f3
inc ebx
add edi, 0x34
cmp ebx, dword [esp + 0x3c]
jb 0x5880d4
jmp 0x588096
movq xmm0, qword [edi]
punpcklwd xmm0, xmmword [0x654460]
movdqa xmmword [esp + 0x10], xmm0
pshufd xmm0, xmm0, 0x1b
movdqu xmmword [esp + 0x58], xmm0
mov ebx, dword [esp + 8]
mov ecx, ebx
push dword [edi - 0x14]
call fcn.005886ee
lea ecx, [esp + 0x40]
call fcn.0058860a
lea ecx, [esp + 0x58]
mov edx, ebx
call fcn.005885a4
mov edi, dword [ebp + 8]
test edi, edi
je 0x5881f5
test al, al
je 0x5881f5
mov ecx, edi
push 0xf
call fcn.0058866a
xor eax, eax
dec eax
mov dword [esp + 0x52], eax
mov dword [esp + 0x4e], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x40], xmm0
pshufd xmm0, xmmword [esp + 0x10], 0xff
sub esp, 0x10
lea ebx, [esp + 0x50]
mov dword [esp + 4], ebx
movdqa xmmword [esp + 0x20], xmm0
movd dword [esp], xmm0
mov dword [esp + 0xc], 0xa
mov dword [esp + 8], 0xb
call fcn.0058e3e8
add esp, 0x10
test eax, eax
jne 0x58809f
movdqa xmm0, xmmword [esp + 0x10]
movd dword [esp + 0x10], xmm0
mov ecx, edi
push ebx
call fcn.005886ee
mov edi, 3
push 0xa
push 0xb
push ebx
push dword [esp + 0x1c]
call fcn.0058e3e8
add esp, 0x10
test eax, eax
jne 0x58809f
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x654bbc
call fcn.005887b8
mov ecx, ebx
lea ebx, [esp + 0x40]
push ebx
call fcn.005887b8
dec edi
jne 0x5881b9
jmp 0x5882da
test al, al
je 0x58809f
jmp 0x5882da
push 0x673c94
call fcn.0058966a
add esp, 4
cmp dword [0x673c94], 0xffffffff
jne 0x587f2b
push str.kernelbase.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.TryCreatePackageDependency
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x673c90], eax
push 0x673c94
call fcn.00589619
add esp, 4
jmp 0x587f2b
push 0x673c9c
call fcn.0058966a
add esp, 4
cmp dword [0x673c9c], 0xffffffff
jne 0x587f5e
push str.kernelbase.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.AddPackageDependency
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x673c98], eax
push 0x673c9c
call fcn.00589619
add esp, 4
jmp 0x587f5e
push 0x673ca4
call fcn.0058966a
add esp, 4
cmp dword [0x673ca4], 0xffffffff
jne 0x588000
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 [0x673ca0], eax
push 0x673ca4
call fcn.00589619
add esp, 4
jmp 0x588000
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5882f1
mov eax, dword [esp + 0xc]
push dword [eax*4 + 0x654794]
call fcn.005886ee
lea ecx, [esp + 0x28]
call fcn.0058860a
xor esi, esi
jmp 0x58830e
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 + 0x68]
xor ecx, ebp
call fcn.00589608
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret