Function at 0x458c49
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, 0x7a0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
lea eax, [ebp - 0x28c]
mov edi, 0x80000000
push eax
mov esi, 0x104
push str..htm
mov dword [ebp - 0x18], ecx
push edi
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jne 0x45904d
lea eax, [ebp - 0x28c]
push str._shellopencommand
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x28c]
push eax
push edi
call ebx
test eax, eax
jne 0x45904d
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 0x188]
push str.netscape.exe
push eax
call fcn.0045d800
xor ebx, ebx
pop ecx
cmp eax, ebx
pop ecx
je 0x458d53
cmp byte [ebp - 0x188], 0x22
lea ecx, [ebp - 0x188]
jne 0x458d01
lea ecx, [ebp - 0x187]
sub eax, ecx
add eax, 0xd
push eax
lea eax, [ebp - 0x390]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x68]
call fcn.004299ad
lea eax, [ebp - 0x390]
lea ecx, [ebp - 0x68]
push eax
call fcn.0045a887
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
mov edx, ecx
mov dword [ebp - 0x68], 0x46d6dc
shr edx, 0x10
mov word [eax + 0x16], cx
lea ecx, [ebp - 0x68]
mov word [eax + 0x14], dx
call fcn.00429a15
jmp 0x459049
lea eax, [ebp - 0x188]
push str.netscp6.exe
push eax
call fcn.0045d800
pop ecx
cmp eax, ebx
pop ecx
je 0x45904f
cmp byte [ebp - 0x188], 0x22
lea ecx, [ebp - 0x188]
jne 0x458d83
lea ecx, [ebp - 0x187]
sub eax, ecx
add eax, 0xc
push eax
lea eax, [ebp - 0x7a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
push esi
mov dword [ebp - 8], ebx
mov word [eax + 0x14], 6
lea eax, [ebp - 0x390]
push eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x390]
push str.mozver.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x390]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x458deb
mov dword [ebp - 4], eax
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
je 0x458e01
mov dword [ebp - 8], eax
push ebx
push ebx
push ebx
push 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x458e16
mov dword [ebp - 0xc], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [ebp - 0xc]
mov ebx, eax
add ebx, edi
push str.PackageName
push ebx
push edi
call fcn.00458bfe
add esp, 0xc
test eax, eax
je 0x458e65
push str.Browser
push ebx
push eax
call fcn.00458bfe
add esp, 0xc
test eax, eax
je 0x458e65
push str.Version
push ebx
push eax
call fcn.00458bfe
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebp - 0x14], edx
jne 0x458e73
test edi, edi
je 0x45902d
push edi
jmp 0x459027
and byte [ebp - 0x84], 0
push 0x18
pop ecx
xor eax, eax
lea edi, [ebp - 0x83]
add edx, 8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x84]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Path
push ebx
push dword [ebp - 0x14]
call fcn.00458bfe
push str.Directory
push ebx
push dword [ebp - 0x14]
mov edi, eax
call fcn.00458bfe
xor ebx, ebx
add esp, 0x18
cmp edi, ebx
jne 0x458ece
cmp eax, ebx
je 0x458f85
mov edx, eax
jmp 0x458ee0
cmp eax, ebx
jne 0x458ed6
mov edx, edi
jmp 0x458ee0
cmp edi, eax
lea edx, [edi + 5]
jb 0x458ee0
lea edx, [eax + 0xa]
and byte [ebp - 0x494], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x493]
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x494]
push str.netscp6.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
and byte [ebp - 0x598], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x597]
and byte [ebp - 0x69c], 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 - 0x69b]
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 - 0x598]
push esi
push eax
lea eax, [ebp - 0x7a0]
push eax
call edi
lea eax, [ebp - 0x69c]
push esi
push eax
lea eax, [ebp - 0x494]
push eax
call edi
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x598]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x458f9b
cmp dword [ebp - 0xc], ebx
je 0x458f93
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], ebx
jmp 0x459031
mov cl, byte [ebp - 0x84]
push 1
pop esi
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x84]
xor edi, edi
mov edx, esi
mov bl, 0x2e
test cl, cl
je 0x458fc1
cmp cl, bl
je 0x458fc1
mov cl, byte [eax + 1]
inc eax
jmp 0x458fb3
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x458fcd
cmp cl, bl
jne 0x458fc1
mov cl, byte [eax - 1]
dec eax
cmp cl, bl
je 0x458fe7
movsx ecx, cl
sub ecx, 0x30
imul ecx, edx
lea edx, [edx + edx*4]
add edi, ecx
shl edx, 1
jmp 0x458fcd
mov cl, byte [eax - 1]
dec eax
cmp cl, byte [ebp - 0x84]
je 0x459006
movsx ecx, cl
sub ecx, 0x30
imul ecx, esi
add dword [ebp - 0x14], ecx
lea esi, [esi + esi*4]
shl esi, 1
jmp 0x458fe7
movsx cx, byte [eax]
sub ecx, 0x30
mov eax, dword [ebp - 0x18]
imul ecx, esi
add ecx, dword [ebp - 0x14]
cmp dword [ebp - 0xc], 0
mov word [eax + 0x16], di
mov word [eax + 0x14], cx
je 0x45902d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x45903e
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], 0xffffffff
je 0x459049
push dword [ebp - 4]
call esi
xor eax, eax
jmp 0x4590c1
xor ebx, ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4590b0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
push eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4590b0
movsx ax, byte [ebp - 0x28c]
mov ecx, dword [ebp - 0x18]
sub eax, 0x30
cmp dword [ebp - 0x10], ebx
mov word [ecx + 0x14], ax
je 0x4590ac
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
jmp 0x4590c0
cmp dword [ebp - 0x10], ebx
je 0x4590be
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret