Function at 0x40147d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov dword [esp + 8], edx
mov esi, ecx
mov eax, dword [0x5b93d4]
xor eax, ebp
mov dword [esp + 0xa8], eax
xor eax, eax
dec eax
lea ebx, [esp + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov ecx, ebx
call fcn.00401fc0
test esi, esi
je 0x4014d9
cmp word [esi], 0
je 0x4014d9
xor edi, edi
inc edi
mov dword [esp + 4], 0
push ebx
push esi
call fcn.004011ad
add esp, 8
mov ebx, eax
jmp 0x4014f4
mov ecx, dword [ebp + 0xc]
xor edi, edi
lea edx, [esp + 0x10]
push edi
push edi
call 0x401797
add esp, 8
mov ebx, eax
mov al, 1
mov dword [esp + 4], eax
mov esi, ebx
test ebx, ebx
jne 0x40151c
mov esi, dword [ebp + 0x10]
lea ecx, [esp + 0x10]
call fcn.00402248
push esi
push dword [ebp + 8]
push dword [esp + 0x10]
push edi
push 1
push eax
call fcn.00402954
add esp, 0x18
mov esi, eax
test esi, esi
js 0x401541
lea ecx, [esp + 0x10]
call fcn.00401fd2
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0051dfa2
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
sete bl
mov eax, dword [0x5c4aa0]
mov ecx, dword [0x5c5184]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40174d
mov eax, dword [0x5c4a9c]
test eax, eax
je 0x401520
push 0x5841b2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401520
mov eax, dword [0x5b9244]
movups xmm0, xmmword [eax - 0x10]
movaps xmmword [esp + 0x30], xmm0
mov eax, dword [0x5b9258]
or eax, dword [0x5b925c]
jne 0x401790
xor eax, eax
mov dword [0x5b9260], eax
mov dword [0x5b9264], eax
lea edi, [esp + 0x30]
push 0x5b9258
push 0x5b9240
push 0x401b9f
push edi
call dword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x401520
mov eax, dword [0x5b9244]
movzx ecx, word [eax]
push ecx
push eax
push 2
push dword [0x5b925c]
push dword [0x5b9258]
call dword [sym.imp.ADVAPI32.dll_EventSetInformation]
cmp dword [0x5b9240], 3
jb 0x401721
test byte [0x5b924d], 0x40
je 0x401721
mov eax, 0x4000
not eax
and eax, dword [0x5b9254]
or eax, dword [0x5b9250]
jne 0x401721
xor ecx, ecx
lea eax, [esp + 0x24]
mov edx, dword [esp + 4]
mov byte [eax], dl
lea edx, [esp + 0x20]
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 + 0x1c]
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 + 0x20]
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 [0x5b9244]
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], 0x59df64
mov dword [esp + 0x48], 0x5f
xor eax, eax
inc eax
mov dword [esp + 0x4c], eax
mov eax, str.ETW0
mov ebx, 0x59e008
sub ebx, eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0xc], ebx
push edi
push 6
push ecx
push ecx
push edx
push dword [0x5b925c]
push dword [0x5b9258]
call dword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov eax, dword [0x5b9258]
mov ecx, dword [0x5b925c]
xor edx, edx
mov dword [0x5b9240], edx
mov dword [0x5b9258], edx
mov dword [0x5b925c], edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
jmp 0x401520
push 0x5c4aa0
call fcn.0051decc
add esp, 4
cmp dword [0x5c4aa0], 0xffffffff
jne 0x401567
push 0x800
push 0
push 0x584198
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x5c4a9c], eax
push 0x5c4aa0
call fcn.0051de82
add esp, 4
jmp 0x401567
mov ecx, 5
int 0x29
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov ebx, edx
mov dword [esp + 0x24], ecx
mov eax, dword [0x5b93d4]
xor eax, ebp
mov dword [esp + 0x68], 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 + 0x5843f4]
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.00401fc0
push esi
push edi
call fcn.00401005
add esp, 8
mov ecx, esi
call fcn.00402248
mov ecx, eax
xor edx, edx
push ebx
push dword [ebp + 8]
call fcn.00401c22
add esp, 8
test al, al
jne 0x401ab4
mov ecx, esi
call fcn.00402248
mov ecx, eax
xor edx, edx
inc edx
push ebx
push dword [ebp + 8]
call fcn.00401c22
add esp, 8
test al, al
jne 0x401ab4
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x58], xmm0
mov eax, dword [0x5c4aa8]
mov ecx, dword [0x5c5184]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x401a6c
mov ecx, dword [0x5c4aa4]
test ecx, ecx
je 0x401909
mov dword [esp + 0x3c], 0xffffffff
xor esi, esi
mov dword [esp + 0x38], esi
call dword [0x55f558]
lea eax, [esp + 0x3c]
push eax
push esi
lea eax, [esp + 0x40]
push eax
push 1
call ecx
cmp eax, 0x7a
jne 0x401905
cmp dword [esp + 0x38], 0
je 0x401905
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.00401fc0
mov ecx, esi
push dword [esp + 0x38]
call fcn.00402224
test al, al
je 0x4018f8
mov esi, dword [0x5c4aa4]
lea ecx, [esp + 0x40]
call fcn.00402248
mov ebx, eax
mov ecx, esi
call dword [0x55f558]
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x40]
push eax
push 1
call esi
test eax, eax
je 0x401923
lea ecx, [esp + 0x40]
call fcn.00401fd2
mov ebx, dword [esp + 0xc]
lea esi, [esp + 0x2c]
mov ecx, esi
call fcn.00401fd2
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 5
jne 0x4017be
jmp 0x401ad4
lea ecx, [esp + 0x40]
call fcn.00402248
cmp dword [esp + 0x3c], 0
je 0x4018f8
mov esi, eax
add esi, 0x1c
xor ebx, ebx
push dword [esp + 0x10]
push dword [esi - 0xc]
call fcn.0052f207
add esp, 8
test eax, eax
je 0x401959
inc ebx
add esi, 0x34
cmp ebx, dword [esp + 0x3c]
jb 0x40193a
jmp 0x4018f8
movq xmm0, qword [esi]
punpcklwd xmm0, xmmword [0x583e60]
movdqa xmmword [esp + 0x10], xmm0
pshufd xmm0, xmm0, 0x1b
movdqu xmmword [esp + 0x58], xmm0
mov ebx, dword [esp + 0xc]
mov ecx, ebx
push dword [esi - 0x14]
call fcn.004020b2
lea esi, [esp + 0x40]
mov ecx, esi
call fcn.00401fd2
lea ecx, [esp + 0x58]
mov edx, ebx
call fcn.00401d43
cmp dword [ebp + 8], 0
je 0x401a5e
test al, al
je 0x401a5e
mov ecx, dword [ebp + 8]
push 0xf
call fcn.00402032
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
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.0052f460
add esp, 0x10
test eax, eax
jne 0x401905
movdqa xmm0, xmmword [esp + 0x10]
movd dword [esp + 0x10], xmm0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x40]
push eax
call fcn.004020b2
mov esi, 3
push 0xa
push 0xb
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x1c]
call fcn.0052f460
add esp, 0x10
test eax, eax
jne 0x401905
mov ecx, dword [ebp + 8]
push 0x584444
call fcn.0040217c
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x40]
push eax
call fcn.0040217c
dec esi
jne 0x401a22
jmp 0x401ab4
test al, al
lea esi, [esp + 0x2c]
je 0x401909
jmp 0x401ab4
push 0x5c4aa8
call fcn.0051decc
add esp, 4
cmp dword [0x5c4aa8], 0xffffffff
jne 0x401866
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 [0x5c4aa4], eax
push 0x5c4aa8
call fcn.0051de82
add esp, 4
jmp 0x401866
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x401ac7
push dword [edi*4 + 0x5840fc]
call fcn.004020b2
lea ecx, [esp + 0x2c]
call fcn.00401fd2
xor esi, esi
jmp 0x401ae4
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.0051dfa2
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret