Function at 0x411090
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42151b
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0x344], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b1d0]
xor eax, esp
push eax
lea eax, [esp + 0x35c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x36c]
push str.FindBrowser_run..
call fcn.004124a0
add esp, 4
xor ebx, ebx
push 0x105
lea eax, [esp + 0x14c]
push ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.004183e0
add esp, 0xc
push 0x11
push str.SOFTWAREClasses_
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00401c30
mov dword [esp + 0x364], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp esi, 3
jbe 0x411207
cmp esi, 4
jne 0x411230
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push str.SoftwareMicrosoftWindows_shellAssociationsUrlAssociationshttpUserChoice
push 0x80000001
call edi
cmp eax, ebx
jne 0x411222
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.Progid
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x411230
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14c]
mov dword [esp + 0x20], 0x104
call fcn.004015c0
push 0x105
lea edx, [esp + 0x14c]
push ebx
push edx
call fcn.004183e0
add esp, 0xc
lea eax, [esp + 0x24]
push eax
mov edx, str._shellopencommand
call fcn.004015c0
mov eax, dword [esp + 0x28]
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jae 0x4111ee
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call edi
cmp eax, ebx
je 0x41127a
jmp 0x411222
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
push str.SoftwareClasseshttp_shellopencommand
push 0x80000001
call edi
cmp eax, ebx
je 0x411275
push eax
push str.Open_Regedit_fail_with_error_code__d
call fcn.004124a0
add esp, 8
push str.Open_HKCU_Error__so_open_regedit_in_HKCR
call fcn.004124a0
add esp, 4
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push str.http_shellopencommand
push 0x80000000
call edi
mov esi, eax
cmp esi, ebx
je 0x411275
cmp dword [esp + 0x3c], 0x10
jb 0x41126e
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041288e
add esp, 4
mov eax, esi
jmp 0x411432
mov esi, 0x10
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp edi, ebx
je 0x4112c1
push edi
push str.Query_Regedit_fail_with_error_code__d
call fcn.004124a0
add esp, 8
cmp dword [esp + 0x3c], esi
jb 0x411430
mov eax, dword [esp + 0x28]
push eax
jmp 0x411428
push 0x105
lea ecx, [esp + 0x44]
push ebx
push ecx
call fcn.004183e0
add esp, 0xc
xor eax, eax
jmp 0x4112e0
mov cl, byte [esp + eax + 0x148]
mov byte [esp + eax + 0x40], cl
inc eax
cmp cl, bl
jne 0x4112e0
push 0x105
lea edx, [esp + 0x254]
push ebx
push edx
call fcn.004183e0
add esp, 0xc
push 0x22
push str.the_character_is__d
call fcn.004124a0
mov al, byte [esp + 0x49]
add esp, 8
cmp al, 0x22
je 0x411334
xor ecx, ecx
nop
cmp al, bl
je 0x411334
mov byte [esp + ecx + 0x250], al
mov al, byte [esp + ecx + 0x42]
inc ecx
cmp al, 0x22
jne 0x411320
lea eax, [esp + 0x250]
push eax
push str.find_the_def_BR_is__s
call fcn.004124a0
add esp, 8
lea ecx, [esp + 0x250]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x4113b9
push str.the_BR_which_was_found_is_not_available__so_use_IE_instead_
call fcn.004124a0
add esp, 4
push ebx
push 0x26
lea edx, [esp + 0x48]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 1
push 0x4249ac
mov ecx, ebp
call fcn.00401c30
lea eax, [esp + 0x40]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x411390
sub eax, edx
push eax
lea eax, [esp + 0x44]
push eax
mov eax, ebp
call fcn.00401740
push 0x20
push str.Internet_Exploreriexplore.exe_
mov eax, ebp
call fcn.00401740
or edi, 0xffffffff
jmp 0x4113f8
push 1
push 0x4249ac
mov ecx, ebp
call fcn.00401c30
lea eax, [esp + 0x250]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4113d1
sub eax, edx
push eax
lea ecx, [esp + 0x254]
push ecx
mov eax, ebp
call fcn.00401740
push 1
push 0x4249ac
mov eax, ebp
call fcn.00401740
cmp dword [ebp + 0x18], esi
jb 0x411402
mov ebp, dword [ebp + 4]
jmp 0x411405
add ebp, 4
push ebp
push str.the_defBR_path_is__s
call fcn.004124a0
push str.FindBrowser_end..
call fcn.004124a0
add esp, 0xc
cmp dword [esp + 0x3c], esi
jb 0x411430
mov edx, dword [esp + 0x28]
push edx
call fcn.0041288e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x35c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x344]
xor ecx, esp
call fcn.00412899
add esp, 0x354
ret