Function at 0x4095f0
Capabilities:
Get common file path
Get file version info
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x49a1a8
mov byte [ebp - 0x104], 0
xor edi, edi
mov byte [ebp - 0x184], 0
mov byte [ebp - 0x84], 0
call fcn.00410070
mov ecx, 0x49a1a8
call fcn.00410010
mov ecx, 0x46e590
mov eax, 0x49a3fc
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409660
test dl, dl
je 0x40965c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409660
add eax, 2
add ecx, 2
test dl, dl
jne 0x409640
xor eax, eax
jmp 0x409665
sbb eax, eax
or eax, 1
test eax, eax
je 0x409686
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x49a3fc]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x409670
jmp 0x4096d4
mov ecx, 0x46e590
mov eax, 0x49a398
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4096b0
test dl, dl
je 0x4096ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4096b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x409690
xor eax, eax
jmp 0x4096b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4096d4
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x49a398]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x4096c0
mov ecx, 0x46e590
lea eax, [ebp - 0x104]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409700
test dl, dl
je 0x4096fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409700
add eax, 2
add ecx, 2
test dl, dl
jne 0x4096e0
xor eax, eax
jmp 0x409705
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4097fd
push eax
push 0x2a
lea eax, [ebp - 0x288]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.MicrosoftEdgeApplicationmsedge.exe
lea eax, [ebp - 0x288]
push 0x104
push eax
call fcn.0044c4f2
add esp, 0xc
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x288]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
push eax
push 0x2040
mov dword [ebp - 0x28c], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 0x288]
push esi
push dword [ebp - 0x28c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x46e850
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0x28c], edi
je 0x4097c8
mov ecx, dword [ebp - 0x290]
movzx eax, word [ecx + 0x14]
push eax
movzx eax, word [ecx + 0x16]
push eax
movzx eax, word [ecx + 0x10]
push eax
movzx eax, word [ecx + 0x12]
push eax
push str._d._d._d._d
lea eax, [ebp - 0x184]
push 0x80
push eax
call fcn.0040a5e0
add esp, 0x1c
lea eax, [ebp - 0x184]
push eax
push str.EdgeBrowser_Stable_check___s
push 1
push dword [0x50a534]
call fcn.004429d0
add esp, 0x10
xor ecx, ecx
mov al, byte [ebp + ecx - 0x184]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x85], al
test al, al
jne 0x4097e6
jmp 0x409815
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x104]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x85], al
test al, al
jne 0x409800
push 0x529e90
push str.Minversion_of_edge_from_configuration__s:
push 1
push dword [0x50a534]
call fcn.004429d0
add esp, 0x10
mov ecx, 0x46e590
mov eax, 0x529e90
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409860
test dl, dl
je 0x40985c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409860
add eax, 2
add ecx, 2
test dl, dl
jne 0x409840
xor eax, eax
jmp 0x409865
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409892
push 0x529e90
mov ecx, 0x51cdb8
call fcn.00410590
push 0x529e90
push str.Minversion_of_edge_from_resources__s:
push 1
push dword [0x50a534]
call fcn.004429d0
add esp, 0x10
mov ecx, 0x46e590
lea eax, [ebp - 0x84]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4098c0
test dl, dl
je 0x4098bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4098c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4098a0
xor eax, eax
jmp 0x4098c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40991a
push 0x529e90
lea eax, [ebp - 0x84]
mov ecx, 0x553538
push eax
call fcn.00442a50
mov esi, eax
push esi
push str.CompareVersions_result__d:
push 1
push dword [0x50a534]
call fcn.004429d0
lea eax, [ebp - 0x84]
push eax
push str.Runtime_version_installed__s:
push 1
push dword [0x50a534]
call fcn.004429d0
add esp, 0x20
mov eax, 1
test esi, esi
cmovns edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004465ed
mov esp, ebp
pop ebp
ret