Function at 0x40bb40
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 [0x4d9770]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4a7278
mov byte [ebp - 0x104], 0
mov byte [ebp - 0x184], 0
mov byte [ebp - 0x84], 0
call fcn.00415200
mov ecx, 0x4a7278
call fcn.004151a0
mov ecx, 0x478714
mov eax, 0x4a74c8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bba6
test dl, dl
je 0x40bba2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bba6
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bb86
xor eax, eax
jmp 0x40bbab
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bbd6
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ecx + 0x4a74c8]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x40bbc0
jmp 0x40bc24
mov ecx, 0x478714
mov eax, 0x4a7464
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bc00
test dl, dl
je 0x40bbfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bc00
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bbe0
xor eax, eax
jmp 0x40bc05
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bc24
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x4a7464]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x40bc10
mov ecx, 0x478714
lea eax, [ebp - 0x104]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bc50
test dl, dl
je 0x40bc4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bc50
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bc30
xor eax, eax
jmp 0x40bc55
sbb eax, eax
or eax, 1
push esi
test eax, eax
jne 0x40bd57
push eax
push 0x2a
lea eax, [ebp - 0x288]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x47a654
lea eax, [ebp - 0x288]
push 0x104
push eax
call fcn.0045338c
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 0x478870
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0x28c], 0
je 0x40bd1a
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 0x479088
lea eax, [ebp - 0x184]
push 0x80
push eax
call fcn.0040e9e0
add esp, 0x1c
lea eax, [ebp - 0x184]
push eax
push str.EdgeBrowser_Stable_check___s
push 1
push dword [0x514990]
call fcn.00449450
add esp, 0x10
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x184]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x85], al
test al, al
jne 0x40bd40
jmp 0x40bd75
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 0x40bd60
push 0x5392d0
push str.Minversion_of_edge_from_configuration__s:
push 1
push dword [0x514990]
call fcn.00449450
add esp, 0x10
mov ecx, 0x478714
mov eax, 0x5392d0
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bdc0
test dl, dl
je 0x40bdbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bdc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bda0
xor eax, eax
jmp 0x40bdc5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40bdf2
push 0x5392d0
mov ecx, 0x52a6a0
call fcn.00415640
push 0x5392d0
push str.Minversion_of_edge_from_resources__s:
push 1
push dword [0x514990]
call fcn.00449450
add esp, 0x10
mov ecx, 0x478714
lea eax, [ebp - 0x84]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40be20
test dl, dl
je 0x40be1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40be20
add eax, 2
add ecx, 2
test dl, dl
jne 0x40be00
xor eax, eax
jmp 0x40be25
sbb eax, eax
or eax, 1
test eax, eax
je 0x40bea8
push 0x5392d0
lea eax, [ebp - 0x84]
mov ecx, 0x5647e0
push eax
call fcn.004494d0
mov esi, eax
push esi
push str.CompareVersions_result__d:
push 1
push dword [0x514990]
call fcn.00449450
lea eax, [ebp - 0x84]
push eax
push str.Runtime_version_installed__s:
push 1
push dword [0x514990]
call fcn.00449450
add esp, 0x20
test esi, esi
js 0x40bea8
xor edx, edx
nop word [eax + eax]
mov cl, byte [ebp + edx - 0x84]
lea edx, [edx + 1]
mov byte [edx + 0x539f43], cl
test cl, cl
jne 0x40be80
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d06d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0044d06d
mov esp, ebp
pop ebp
ret