Function at 0x458941
Capabilities:
Get common file path
Get file size
Query or enumerate registry value
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x79c
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x698]
push eax
mov edi, 0x80000000
mov esi, 0x104
push str..htm
mov dword [ebp - 0x18], ecx
push edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x458cf9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x698]
push str._shellopencommand
push eax
call ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x698]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x458cf9
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 0x184]
push str.netscape.exe
push eax
call fcn.0045d1f0
pop ecx
test eax, eax
pop ecx
je 0x458a4d
cmp byte [ebp - 0x184], 0x22
lea ecx, [ebp - 0x184]
jne 0x4589fb
lea ecx, [ebp - 0x183]
sub eax, ecx
add eax, 0xd
push eax
lea eax, [ebp - 0x38c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x64]
call fcn.00429756
lea eax, [ebp - 0x38c]
lea ecx, [ebp - 0x64]
push eax
call fcn.0045a29a
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x18]
mov edx, ecx
mov dword [ebp - 0x64], 0x46d6a0
shr edx, 0x10
mov word [eax + 0x16], cx
lea ecx, [ebp - 0x64]
mov word [eax + 0x14], dx
call fcn.004297be
jmp 0x458cf5
lea eax, [ebp - 0x184]
push str.netscp6.exe
push eax
call fcn.0045d1f0
pop ecx
test eax, eax
pop ecx
je 0x458cf9
cmp byte [ebp - 0x184], 0x22
lea ecx, [ebp - 0x184]
jne 0x458a7d
lea ecx, [ebp - 0x183]
sub eax, ecx
add eax, 0xc
push eax
lea eax, [ebp - 0x79c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
mov word [eax + 0x14], 6
lea eax, [ebp - 0x38c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x38c]
push str.mozver.dat
push eax
call ebx
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp - 0x38c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x458ae5
mov dword [ebp - 4], eax
xor edi, edi
push edi
push edi
push edi
push 2
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
je 0x458afd
mov dword [ebp - 0xc], eax
push edi
push edi
push edi
push 4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
je 0x458b12
mov dword [ebp - 8], eax
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push str.PackageName
add edi, dword [ebp - 8]
push edi
mov dword [ebp - 0x10], edi
push dword [ebp - 8]
call fcn.004588f6
add esp, 0xc
test eax, eax
je 0x458cca
push str.Browser
push edi
push eax
call fcn.004588f6
add esp, 0xc
test eax, eax
je 0x458cca
push str.Version
push edi
push eax
call fcn.004588f6
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x458cca
and byte [ebp - 0x80], 0
push 0x18
pop ecx
xor eax, eax
lea edi, [ebp - 0x7f]
add edx, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x80]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Path
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.004588f6
mov edx, eax
add esp, 0xc
test edx, edx
je 0x458cca
and byte [ebp - 0x288], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x287]
add edx, 5
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x288]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x288]
push str.netscp6.exe
push eax
call ebx
and byte [ebp - 0x490], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x48f]
and byte [ebp - 0x594], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x593]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x490]
push esi
push eax
lea eax, [ebp - 0x79c]
push eax
call edi
lea eax, [ebp - 0x594]
push esi
push eax
lea eax, [ebp - 0x288]
push eax
call edi
lea eax, [ebp - 0x594]
push eax
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x458cca
mov cl, byte [ebp - 0x80]
push 1
xor edi, edi
pop esi
lea eax, [ebp - 0x80]
mov dword [ebp - 0x10], edi
mov edx, esi
mov bl, 0x2e
test cl, cl
je 0x458c70
cmp cl, bl
je 0x458c70
mov cl, byte [eax + 1]
inc eax
jmp 0x458c62
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x458c7c
cmp cl, bl
jne 0x458c70
mov cl, byte [eax - 1]
dec eax
cmp cl, bl
je 0x458c96
movsx ecx, cl
sub ecx, 0x30
imul ecx, edx
lea edx, [edx + edx*4]
add edi, ecx
shl edx, 1
jmp 0x458c7c
mov cl, byte [eax - 1]
dec eax
cmp cl, byte [ebp - 0x80]
je 0x458cb2
movsx ecx, cl
sub ecx, 0x30
imul ecx, esi
add dword [ebp - 0x10], ecx
lea esi, [esi + esi*4]
shl esi, 1
jmp 0x458c96
movsx cx, byte [eax]
sub ecx, 0x30
mov eax, dword [ebp - 0x18]
imul ecx, esi
add ecx, dword [ebp - 0x10]
mov word [eax + 0x16], di
mov word [eax + 0x14], cx
cmp dword [ebp - 8], 0
je 0x458cd9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x458cea
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], 0xffffffff
je 0x458cf5
push dword [ebp - 4]
call esi
xor eax, eax
jmp 0x458cfc
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret