Function at 0x401938
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 [0x42a038]
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.00402280
movzx ebx, byte [edi + 0x16]
mov eax, dword [edi]
test eax, eax
mov byte [esp + 7], bl
je 0x401656
cmp word [eax], 0
je 0x401656
cmp bl, 1
mov ebx, 2
sbb ebx, 0
push esi
push eax
call fcn.004011c1
jmp 0x401667
add ebx, ebx
xor eax, eax
lea edx, [esp + 0x14]
mov ecx, edi
push eax
push eax
call 0x401938
add esp, 8
mov esi, eax
mov dword [esp + 8], eax
test eax, eax
jne 0x4016a0
mov eax, dword [edi + 4]
mov dword [esp + 8], eax
mov edi, dword [edi + 8]
lea ecx, [esp + 0x14]
call fcn.0040254c
push dword [esp + 0xc]
push edi
push dword [esp + 0x10]
push ebx
push 1
push eax
call fcn.00402e2b
add esp, 0x18
mov dword [esp + 8], eax
cmp byte [esp + 7], 0
mov edi, dword [esp + 8]
jne 0x4018cd
test edi, edi
jns 0x4018cd
test esi, esi
sete byte [esp + 7]
test ebx, ebx
sete bh
mov eax, dword [0x42bcbc]
mov ecx, dword [0x42bd34]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4018ee
mov eax, dword [0x42bcb8]
test eax, eax
je 0x4018cd
push 0x4206ca
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4018cd
mov eax, dword [0x42a004]
movups xmm0, xmmword [eax - 0x10]
movaps xmmword [esp + 0x30], xmm0
mov eax, dword [0x42a018]
or eax, dword [0x42a01c]
jne 0x401931
xor eax, eax
mov dword [0x42a020], eax
mov dword [0x42a024], eax
lea esi, [esp + 0x30]
push 0x42a018
push section..data
push 0x401ed5
push esi
call dword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x4018cd
mov eax, dword [0x42a004]
movzx ecx, word [eax]
push ecx
push eax
push 2
push dword [0x42a01c]
push dword [0x42a018]
call dword [sym.imp.ADVAPI32.dll_EventSetInformation]
cmp dword [section..data], 3
jb 0x4018a6
test byte [0x42a00d], 0x40
je 0x4018a6
mov eax, 0xffffbfff
and eax, dword [0x42a014]
or eax, dword [0x42a010]
jne 0x4018a6
xor eax, eax
lea edi, [esp + 0x27]
mov byte [edi], bh
lea edx, [esp + 0x26]
mov cl, byte [esp + 7]
mov byte [edx], cl
lea ebx, [esp + 0x28]
mov dword [ebx + 4], eax
mov dword [ebx], 0x1000000
mov dword [esp + 0x80], ebx
lea ebx, [esp + 0x20]
mov ecx, dword [esp + 8]
mov dword [ebx], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 8
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
xor edi, edi
inc edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], 4
mov dword [esp + 0x5c], eax
lea edx, [esp + 0x98]
mov dword [edx], 0xb000000
mov ebx, 2
mov dword [edx + 4], ebx
mov ecx, 0x4000
mov dword [edx + 0xc], ecx
mov dword [edx + 8], eax
mov ecx, dword [0x42a004]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
movzx ecx, word [ecx]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 0x4283c4
mov dword [esp + 0x48], 0x5f
mov dword [esp + 0x4c], edi
mov ecx, str.ETW0
mov edi, 0x428468
sub edi, ecx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x10], edi
mov edi, dword [esp + 8]
push esi
push 6
push eax
push eax
push edx
push dword [0x42a01c]
push dword [0x42a018]
call dword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov eax, dword [0x42a018]
mov ecx, dword [0x42a01c]
xor edx, edx
mov dword [section..data], edx
mov dword [0x42a018], edx
mov dword [0x42a01c], edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
lea ecx, [esp + 0x14]
call fcn.00402292
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.00406f4d
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x42bcbc
call fcn.0040706f
add esp, 4
cmp dword [0x42bcbc], 0xffffffff
jne 0x4016e4
push 0x800
push 0
push 0x4206b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x42bcb8], eax
push 0x42bcbc
call fcn.00407025
add esp, 4
jmp 0x4016e4
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 + 8], edx
mov eax, dword [0x42a038]
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 0x40197d
mov edx, 4
sub edx, eax
cmp byte [ecx + 0x15], 0
je 0x40197d
cmp byte [ecx + edx + 0x10], 0
je 0x401bb9
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 + 0x42090c]
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.00402280
movzx edi, bl
xor ebx, ebx
push esi
push edi
mov eax, dword [esp + 0x14]
push eax
call fcn.00401005
add esp, 0xc
mov ecx, esi
call fcn.0040254c
mov ecx, eax
mov edx, edi
push dword [esp + 8]
push dword [ebp + 8]
push 0
call fcn.00401f58
add esp, 0xc
test al, al
jne 0x401de6
mov ecx, esi
call fcn.0040254c
mov ecx, eax
mov edx, edi
push dword [esp + 8]
push dword [ebp + 8]
push 1
call fcn.00401f58
add esp, 0xc
test al, al
jne 0x401de6
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x58], xmm0
mov eax, dword [0x42bcc4]
mov ecx, dword [0x42bd34]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401d0e
cmp dword [0x42bcc0], 0
je 0x401baa
mov eax, dword [0x42bccc]
mov ecx, dword [0x42bd34]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401d56
cmp dword [0x42bcc8], 0
je 0x401baa
mov dword [esp + 0x34], ebx
mov ecx, dword [0x42bcc0]
call dword [0x420244]
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 0x401aea
mov dword [esp + 0x40], ebx
mov ecx, dword [0x42bcc8]
mov edi, dword [esp + 0x34]
call dword [0x420244]
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 [0x42bcd4]
mov ecx, dword [0x42bd34]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401d9e
mov ecx, dword [0x42bcd0]
test ecx, ecx
je 0x401baa
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x38], ebx
call dword [0x420244]
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x40]
push eax
push 0x180001
call ecx
cmp eax, 0x7a
jne 0x401baa
cmp dword [esp + 0x38], 0
je 0x401baa
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.00402280
mov ecx, edi
push dword [esp + 0x38]
call fcn.004024e8
test al, al
je 0x401ba1
mov edi, dword [0x42bcd0]
lea ecx, [esp + 0x40]
call fcn.0040254c
mov ebx, eax
mov ecx, edi
call dword [0x420244]
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x40]
push eax
push 0x180001
call edi
test eax, eax
je 0x401bc8
lea ecx, [esp + 0x40]
call fcn.00402292
mov ecx, esi
call fcn.00402292
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 5
jne 0x40195d
jmp 0x401e0a
lea ecx, [esp + 0x40]
call fcn.0040254c
cmp dword [esp + 0x3c], 0
je 0x401ba1
mov edi, eax
add edi, 0x1c
xor ebx, ebx
push dword [esp + 0x10]
push dword [edi - 0xc]
call fcn.0040dfde
add esp, 8
test eax, eax
je 0x401bfe
inc ebx
add edi, 0x34
cmp ebx, dword [esp + 0x3c]
jb 0x401bdf
jmp 0x401ba1
movq xmm0, qword [edi]
punpcklwd xmm0, xmmword [0x4202c0]
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.00402376
lea ecx, [esp + 0x40]
call fcn.00402292
lea ecx, [esp + 0x58]
mov edx, ebx
call fcn.0040210f
cmp dword [ebp + 8], 0
je 0x401d01
test al, al
je 0x401d01
mov ecx, dword [ebp + 8]
push 0xf
call fcn.004022f2
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.0040e20d
add esp, 0x10
test eax, eax
jne 0x401baa
movdqa xmm0, xmmword [esp + 0x10]
movd dword [esp + 0x10], xmm0
mov ecx, dword [ebp + 8]
push ebx
call fcn.00402376
mov edi, 3
push 0xa
push 0xb
push ebx
push dword [esp + 0x1c]
call fcn.0040e20d
add esp, 0x10
test eax, eax
jne 0x401baa
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x420974
call fcn.00402440
mov ecx, ebx
lea ebx, [esp + 0x40]
push ebx
call fcn.00402440
dec edi
jne 0x401cc5
jmp 0x401de6
test al, al
je 0x401baa
jmp 0x401de6
push 0x42bcc4
call fcn.0040706f
add esp, 4
cmp dword [0x42bcc4], 0xffffffff
jne 0x401a3b
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 [0x42bcc0], eax
push 0x42bcc4
call fcn.00407025
add esp, 4
jmp 0x401a3b
push 0x42bccc
call fcn.0040706f
add esp, 4
cmp dword [0x42bccc], 0xffffffff
jne 0x401a69
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 [0x42bcc8], eax
push 0x42bccc
call fcn.00407025
add esp, 4
jmp 0x401a69
push 0x42bcd4
call fcn.0040706f
add esp, 4
cmp dword [0x42bcd4], 0xffffffff
jne 0x401b0b
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 [0x42bcd0], eax
push 0x42bcd4
call fcn.00407025
add esp, 4
jmp 0x401b0b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401dfd
mov eax, dword [esp + 0xc]
push dword [eax*4 + 0x4205f4]
call fcn.00402376
lea ecx, [esp + 0x28]
call fcn.00402292
xor esi, esi
jmp 0x401e1a
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.00406f4d
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret