Function at 0x409630
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 [0x4ce6a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x49c1a8
mov byte [ebp - 0x104], 0
xor edi, edi
mov byte [ebp - 0x184], 0
mov byte [ebp - 0x84], 0
call fcn.00410830
mov ecx, 0x49c1a8
call fcn.004107d0
mov ecx, 0x4705a0
mov eax, 0x49c3f8
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4096a0
test dl, dl
je 0x40969c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4096a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x409680
xor eax, eax
jmp 0x4096a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4096c6
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x49c3f8]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x4096b0
jmp 0x409714
mov ecx, 0x4705a0
mov eax, 0x49c394
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4096f0
test dl, dl
je 0x4096ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4096f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4096d0
xor eax, eax
jmp 0x4096f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x409714
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x49c394]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x409700
mov ecx, 0x4705a0
lea eax, [ebp - 0x104]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409740
test dl, dl
je 0x40973c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409740
add eax, 2
add ecx, 2
test dl, dl
jne 0x409720
xor eax, eax
jmp 0x409745
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40983d
push eax
push 0x2a
lea eax, [ebp - 0x288]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x4722d8
lea eax, [ebp - 0x288]
push 0x104
push eax
call fcn.0044dba2
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 0x470860
push esi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp - 0x28c], edi
je 0x409808
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 0x470e70
lea eax, [ebp - 0x184]
push 0x80
push eax
call fcn.0040a600
add esp, 0x1c
lea eax, [ebp - 0x184]
push eax
push str.EdgeBrowser_Stable_check___s
push 1
push dword [0x50c768]
call fcn.00444090
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 0x409826
jmp 0x409855
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x104]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x85], al
test al, al
jne 0x409840
push 0x52c2c0
push str.Minversion_of_edge_from_configuration__s:
push 1
push dword [0x50c768]
call fcn.00444090
add esp, 0x10
mov ecx, 0x4705a0
mov eax, 0x52c2c0
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4098a0
test dl, dl
je 0x40989c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4098a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x409880
xor eax, eax
jmp 0x4098a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4098d2
push 0x52c2c0
mov ecx, 0x51efe8
call fcn.00410d50
push 0x52c2c0
push str.Minversion_of_edge_from_resources__s:
push 1
push dword [0x50c768]
call fcn.00444090
add esp, 0x10
mov ecx, 0x4705a0
lea eax, [ebp - 0x84]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409900
test dl, dl
je 0x4098fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409900
add eax, 2
add ecx, 2
test dl, dl
jne 0x4098e0
xor eax, eax
jmp 0x409905
sbb eax, eax
or eax, 1
test eax, eax
je 0x40995a
push 0x52c2c0
lea eax, [ebp - 0x84]
mov ecx, 0x556050
push eax
call fcn.00444110
mov esi, eax
push esi
push str.CompareVersions_result__d:
push 1
push dword [0x50c768]
call fcn.00444090
lea eax, [ebp - 0x84]
push eax
push str.Runtime_version_installed__s:
push 1
push dword [0x50c768]
call fcn.00444090
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.00447cbd
mov esp, ebp
pop ebp
ret