Function at 0x40186b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov dword [esp + 0xc], ecx
lea edi, [ebp + 8]
mov eax, dword [0x426040]
xor eax, ebp
mov dword [esp + 0xa8], eax
xor eax, eax
dec eax
lea esi, [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
call fcn.00402100
mov eax, dword [edi]
test eax, eax
je 0x40159b
cmp word [eax], 0
je 0x40159b
xor edi, edi
inc edi
mov dword [esp + 4], 0
push esi
push eax
call fcn.004011ad
add esp, 8
mov ebx, eax
jmp 0x4015bf
movzx eax, byte [edi + 0x15]
lea esi, [edi + 0x10]
mov ecx, dword [edi + 0xc]
xor edi, edi
lea edx, [esp + 0x14]
push eax
push esi
push edi
push edi
call 0x40186b
add esp, 0x10
mov ebx, eax
mov al, 1
mov dword [esp + 4], eax
mov esi, ebx
test ebx, ebx
jne 0x4015f2
lea eax, [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [esp + 8], ecx
mov esi, dword [eax + 8]
lea ecx, [esp + 0x14]
call fcn.00402398
push dword [esp + 0xc]
push esi
push dword [esp + 0x10]
push edi
push 1
push eax
call fcn.00402c3f
add esp, 0x18
mov esi, eax
test esi, esi
js 0x401617
lea ecx, [esp + 0x14]
call fcn.00402112
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.004077ab
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
sete bl
mov eax, dword [0x42778c]
mov ecx, dword [0x427af8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401821
mov eax, dword [0x427788]
test eax, eax
je 0x4015f6
push 0x41c602
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4015f6
mov eax, dword [0x426004]
movups xmm0, xmmword [eax - 0x10]
movaps xmmword [esp + 0x30], xmm0
mov eax, dword [0x426018]
or eax, dword [0x42601c]
jne 0x401864
xor eax, eax
mov dword [0x426020], eax
mov dword [0x426024], eax
lea edi, [esp + 0x30]
push 0x426018
push section..data
push 0x401deb
push edi
call dword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x4015f6
mov eax, dword [0x426004]
movzx ecx, word [eax]
push ecx
push eax
push 2
push dword [0x42601c]
push dword [0x426018]
call dword [sym.imp.ADVAPI32.dll_EventSetInformation]
cmp dword [section..data], 3
jb 0x4017f5
test byte [0x42600d], 0x40
je 0x4017f5
mov eax, 0xffffbfff
and eax, dword [0x426014]
or eax, dword [0x426010]
jne 0x4017f5
xor ecx, ecx
lea eax, [esp + 0x27]
mov edx, dword [esp + 4]
mov byte [eax], dl
lea edx, [esp + 0x26]
mov byte [edx], bl
lea ebx, [esp + 0x28]
mov dword [ebx + 4], ecx
mov dword [ebx], 0x1000000
mov dword [esp + 0x80], ebx
lea edx, [esp + 0x20]
mov dword [edx], esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 8
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], eax
xor eax, eax
inc eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x64], ecx
lea ebx, [esp + 0x26]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], 4
mov dword [esp + 0x5c], ecx
lea edx, [esp + 0x98]
mov dword [edx], 0xb000000
mov ebx, 2
mov dword [edx + 4], ebx
mov eax, 0x4000
mov dword [edx + 0xc], eax
mov dword [edx + 8], ecx
mov eax, dword [0x426004]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
movzx eax, word [eax]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], 0x423ea4
mov dword [esp + 0x48], 0x5f
xor eax, eax
inc eax
mov dword [esp + 0x4c], eax
mov eax, str.ETW0
mov ebx, 0x423f48
sub ebx, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x10], ebx
push edi
push 6
push ecx
push ecx
push edx
push dword [0x42601c]
push dword [0x426018]
call dword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov eax, dword [0x426018]
mov ecx, dword [0x42601c]
xor edx, edx
mov dword [section..data], edx
mov dword [0x426018], edx
mov dword [0x42601c], edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
jmp 0x4015f6
push 0x42778c
call fcn.00407f59
add esp, 4
cmp dword [0x42778c], 0xffffffff
jne 0x40163d
push 0x800
push 0
push 0x41c5e8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x427788], eax
push 0x42778c
call fcn.00407f08
add esp, 4
jmp 0x40163d
mov ecx, 5
int 0x29
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], ecx
mov eax, dword [0x426040]
xor eax, ebp
mov dword [esp + 0x68], eax
lea edi, [esp + 0x28]
xor esi, esi
mov ebx, esi
cmp dword [esp + 0x24], 1
jne 0x4018b3
mov ebx, 4
sub ebx, esi
cmp byte [ebp + 0x14], 0
je 0x4018b3
mov eax, dword [ebp + 0x10]
cmp byte [eax + ebx], 0
je 0x401ad0
mov eax, dword [ebx*4 + 0x41c844]
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, edi
call fcn.00402100
push edi
mov dword [esp + 0x24], ebx
push ebx
call fcn.00401005
add esp, 8
mov ecx, edi
call fcn.00402398
mov ecx, eax
xor edx, edx
push dword [esp + 0xc]
push dword [ebp + 8]
call fcn.00401e6e
add esp, 8
test al, al
jne 0x401cfc
mov ecx, edi
call fcn.00402398
mov ecx, eax
xor edx, edx
inc edx
push dword [esp + 0xc]
push dword [ebp + 8]
call fcn.00401e6e
add esp, 8
test al, al
jne 0x401cfc
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x58], xmm0
mov eax, dword [0x427794]
mov ecx, dword [0x427af8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401c24
cmp dword [0x427790], 0
je 0x401ac5
mov eax, dword [0x42779c]
mov ecx, dword [0x427af8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401c6c
cmp dword [0x427798], 0
je 0x401ac5
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov ecx, dword [0x427790]
call dword [0x41c21c]
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 0x401a03
mov dword [esp + 0x40], ebx
mov ecx, dword [0x427798]
mov edi, dword [esp + 0x34]
call dword [0x41c21c]
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 [0x4277a4]
mov ecx, dword [0x427af8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401cb4
mov ecx, dword [0x4277a0]
test ecx, ecx
je 0x401ac5
mov dword [esp + 0x3c], 0xffffffff
xor ebx, ebx
mov dword [esp + 0x38], ebx
call dword [0x41c21c]
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x40]
push eax
push 0x180001
call ecx
cmp eax, 0x7a
jne 0x401ac5
cmp dword [esp + 0x38], 0
je 0x401ac5
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.00402100
mov ecx, edi
push dword [esp + 0x38]
call fcn.00402368
test al, al
je 0x401abc
mov edi, dword [0x4277a0]
lea ecx, [esp + 0x40]
call fcn.00402398
mov ebx, eax
mov ecx, edi
call dword [0x41c21c]
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x40]
push eax
push 0x180001
call edi
test eax, eax
je 0x401adf
lea ecx, [esp + 0x40]
call fcn.00402112
lea edi, [esp + 0x28]
mov ecx, edi
call fcn.00402112
inc esi
cmp esi, 5
jne 0x401890
jmp 0x401d20
lea ecx, [esp + 0x40]
call fcn.00402398
cmp dword [esp + 0x3c], 0
je 0x401abc
mov edi, eax
add edi, 0x1c
xor ebx, ebx
push dword [esp + 0x10]
push dword [edi - 0xc]
call fcn.0040a9e1
add esp, 8
test eax, eax
je 0x401b15
inc ebx
add edi, 0x34
cmp ebx, dword [esp + 0x3c]
jb 0x401af6
jmp 0x401abc
movq xmm0, qword [edi]
punpcklwd xmm0, xmmword [0x41c2a0]
movdqa xmmword [esp + 0x10], xmm0
pshufd xmm0, xmm0, 0x1b
movdqu xmmword [esp + 0x58], xmm0
mov ebx, dword [esp + 0xc]
mov ecx, ebx
push dword [edi - 0x14]
call fcn.004021f6
lea ecx, [esp + 0x40]
call fcn.00402112
lea ecx, [esp + 0x58]
mov edx, ebx
call fcn.00401f8f
cmp dword [ebp + 8], 0
je 0x401c13
test al, al
je 0x401c13
mov ecx, dword [ebp + 8]
push 0xf
call fcn.00402172
xor ebx, ebx
dec ebx
mov dword [esp + 0x52], ebx
mov dword [esp + 0x4e], ebx
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.0040ef87
add esp, 0x10
test eax, eax
jne 0x401ac5
movdqa xmm0, xmmword [esp + 0x10]
movd dword [esp + 0x10], xmm0
mov ecx, dword [ebp + 8]
push ebx
call fcn.004021f6
mov edi, 3
push 0xa
push 0xb
push ebx
push dword [esp + 0x1c]
call fcn.0040ef87
add esp, 0x10
test eax, eax
jne 0x401ac5
mov ecx, dword [ebp + 8]
push 0x41c894
call fcn.004022c0
mov ecx, dword [ebp + 8]
push ebx
call fcn.004022c0
dec edi
jne 0x401bdc
jmp 0x401cfc
test al, al
lea edi, [esp + 0x28]
je 0x401ac9
jmp 0x401cfc
push 0x427794
call fcn.00407f59
add esp, 4
cmp dword [0x427794], 0xffffffff
jne 0x401952
push 0x41c8b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.TryCreatePackageDependency
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x427790], eax
push 0x427794
call fcn.00407f08
add esp, 4
jmp 0x401952
push 0x42779c
call fcn.00407f59
add esp, 4
cmp dword [0x42779c], 0xffffffff
jne 0x401980
push 0x41c8b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.AddPackageDependency
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x427798], eax
push 0x42779c
call fcn.00407f08
add esp, 4
jmp 0x401980
push 0x4277a4
call fcn.00407f59
add esp, 4
cmp dword [0x4277a4], 0xffffffff
jne 0x401a24
push 0x41c8b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetCurrentPackageInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4277a0], eax
push 0x4277a4
call fcn.00407f08
add esp, 4
jmp 0x401a24
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401d13
mov eax, dword [esp + 0x20]
push dword [eax*4 + 0x41c53c]
call fcn.004021f6
lea ecx, [esp + 0x28]
call fcn.00402112
xor esi, esi
jmp 0x401d30
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.004077ab
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret