Function at 0x408a00
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 [0x4ca578]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x4981a8
mov byte [ebp - 0x104], 0
xor edi, edi
mov byte [ebp - 0x184], 0
mov byte [ebp - 0x84], 0
call fcn.0040ec50
mov ecx, 0x4981a8
call fcn.0040ebf0
mov ecx, 0x46d520
mov eax, 0x4983f8
nop word [eax + eax]
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 0x408a96
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x4983f8]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x408a80
jmp 0x408ae4
mov ecx, 0x46d520
mov eax, 0x498394
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
je 0x408ae4
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x498394]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x408ad0
mov ecx, 0x46d520
lea eax, [ebp - 0x104]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408b10
test dl, dl
je 0x408b0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408b10
add eax, 2
add ecx, 2
test dl, dl
jne 0x408af0
xor eax, eax
jmp 0x408b15
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408c07
push eax
push 0x2a
lea eax, [ebp - 0x288]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x46ed98
lea eax, [ebp - 0x288]
push 0x104
push eax
call fcn.0044a9b2
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 0x46d7e0
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0x28c], edi
je 0x408bd3
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 0x46dc6c
push eax
call fcn.0040c700
add esp, 0x18
lea eax, [ebp - 0x184]
push eax
push str.EdgeBrowser_Stable_check___s
push dword [0x504e50]
call fcn.00440eb0
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 0x408bf0
jmp 0x408c25
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 0x408c10
push 0x51c258
push str.Minversion_of_edge_from_configuration__s:
push dword [0x504e50]
call fcn.00440eb0
add esp, 0xc
mov ecx, 0x46d520
mov eax, 0x51c258
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408c67
test dl, dl
je 0x408c63
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408c67
add eax, 2
add ecx, 2
test dl, dl
jne 0x408c47
xor eax, eax
jmp 0x408c6c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408c97
push 0x51c258
mov ecx, 0x511be0
call fcn.0040f170
push 0x51c258
push str.Minversion_of_edge_from_resources__s:
push dword [0x504e50]
call fcn.00440eb0
add esp, 0xc
mov ecx, 0x46d520
lea eax, [ebp - 0x84]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408cc2
test dl, dl
je 0x408cbe
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408cc2
add eax, 2
add ecx, 2
test dl, dl
jne 0x408ca2
xor eax, eax
jmp 0x408cc7
sbb eax, eax
or eax, 1
test eax, eax
je 0x408d18
push 0x51c258
lea eax, [ebp - 0x84]
mov ecx, 0x5420e0
push eax
call fcn.00440f30
mov esi, eax
push esi
push str.CompareVersions_result__d:
push dword [0x504e50]
call fcn.00440eb0
lea eax, [ebp - 0x84]
push eax
push str.Runtime_version_installed__s:
push dword [0x504e50]
call fcn.00440eb0
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.00444ab5
mov esp, ebp
pop ebp
ret