Function at 0x4089b0
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 [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x4961a8
mov byte [ebp - 0x104], 0
xor edi, edi
mov byte [ebp - 0x184], 0
mov byte [ebp - 0x84], 0
call fcn.0040ecd0
mov ecx, 0x4961a8
call fcn.0040ec70
mov ecx, 0x46c510
mov eax, 0x4963f8
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408a20
test dl, dl
je 0x408a1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408a20
add eax, 2
add ecx, 2
test dl, dl
jne 0x408a00
xor eax, eax
jmp 0x408a25
sbb eax, eax
or eax, 1
test eax, eax
je 0x408a46
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x4963f8]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x408a30
jmp 0x408a94
mov ecx, 0x46c510
mov eax, 0x496394
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408a70
test dl, dl
je 0x408a6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408a70
add eax, 2
add ecx, 2
test dl, dl
jne 0x408a50
xor eax, eax
jmp 0x408a75
sbb eax, eax
or eax, 1
test eax, eax
je 0x408a94
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x496394]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x408a80
mov ecx, 0x46c510
lea eax, [ebp - 0x104]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408ac0
test dl, dl
je 0x408abc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408ac0
add eax, 2
add ecx, 2
test dl, dl
jne 0x408aa0
xor eax, eax
jmp 0x408ac5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408bb7
push eax
push 0x2a
lea eax, [ebp - 0x288]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x46dd58
lea eax, [ebp - 0x288]
push 0x104
push eax
call fcn.00449dd2
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 0x46c7d0
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0x28c], edi
je 0x408b83
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
lea eax, [ebp - 0x184]
push 0x46cc5c
push eax
call fcn.0040c780
add esp, 0x18
lea eax, [ebp - 0x184]
push eax
push str.EdgeBrowser_Stable_check___s
push dword [0x502db0]
call fcn.004403a0
add esp, 0xc
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x184]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x85], al
test al, al
jne 0x408ba0
jmp 0x408bd5
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x104]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x85], al
test al, al
jne 0x408bc0
push 0x51a1b8
push str.Minversion_of_edge_from_configuration__s:
push dword [0x502db0]
call fcn.004403a0
add esp, 0xc
mov ecx, 0x46c510
mov eax, 0x51a1b8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408c17
test dl, dl
je 0x408c13
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408c17
add eax, 2
add ecx, 2
test dl, dl
jne 0x408bf7
xor eax, eax
jmp 0x408c1c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408c47
push 0x51a1b8
mov ecx, 0x50fb40
call fcn.0040f1f0
push 0x51a1b8
push str.Minversion_of_edge_from_resources__s:
push dword [0x502db0]
call fcn.004403a0
add esp, 0xc
mov ecx, 0x46c510
lea eax, [ebp - 0x84]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408c72
test dl, dl
je 0x408c6e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408c72
add eax, 2
add ecx, 2
test dl, dl
jne 0x408c52
xor eax, eax
jmp 0x408c77
sbb eax, eax
or eax, 1
test eax, eax
je 0x408cc8
push 0x51a1b8
lea eax, [ebp - 0x84]
mov ecx, 0x53f400
push eax
call fcn.00440420
mov esi, eax
push esi
push str.CompareVersions_result__d:
push dword [0x502db0]
call fcn.004403a0
lea eax, [ebp - 0x84]
push eax
push str.Runtime_version_installed__s:
push dword [0x502db0]
call fcn.004403a0
add esp, 0x18
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.00443fa5
mov esp, ebp
pop ebp
ret