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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
push ebx
push esi
push edi
mov edx, ecx
push 0xb
mov esi, str.SOFTWARENetscapeNetscape_NavigatorUsers_
pop ecx
lea edi, [ebp - 0x1e0]
rep movsd dword es:[edi], dword [esi]
push 0x36
xor eax, eax
pop ecx
lea edi, [ebp - 0x1b4]
rep stosd dword es:[edi], eax
mov al, byte [0x41f8c0]
push 0x40
mov byte [ebp - 0x2e4], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x2e3]
rep stosd dword es:[edi], eax
cmp word [edx + 0x16], 0x32
mov dword [ebp - 0x14], edx
stosw word es:[edi], ax
stosb byte es:[edi], al
jae 0x417878
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 0x1e0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4177cd
lea ecx, [ebp - 4]
jmp 0x417854
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x1e0]
push eax
call edi
mov esi, 0x104
mov ecx, esi
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1e0]
push eax
mov dword [ebp - 0x10], ecx
call edi
lea eax, [ebp + eax - 0x1e0]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.CurrentUser
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x4177c5
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1e0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4177c5
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x2e4]
push eax
push ebx
push ebx
push str.DirRoot
push dword [ebp - 4]
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x417866
call fcn.004059a7
lea ecx, [ebp - 8]
call fcn.004059a7
jmp 0x417ad5
call fcn.004059a7
lea ecx, [ebp - 8]
call fcn.004059a7
jmp 0x417a65
push 0x18
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x77]
mov byte [ebp - 0x78], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or dword [ebp - 0xc], 0xffffffff
push 0x104
stosb byte es:[edi], al
lea eax, [ebp - 0x3e8]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 8], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x3e8]
push str._nsreg.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x3e8]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4178df
mov dword [ebp - 0xc], eax
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
je 0x4178f5
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 0x417909
mov esi, eax
lea eax, [ebp - 4]
push eax
push str.SOFTWARENetscapeNetscape_Navigator_biff
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4179e1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x64
push eax
lea eax, [ebp - 0xdc]
push eax
push ebx
push ebx
push str.CurrentUser
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4179e1
cmp byte [ebp - 0xdc], bl
lea edi, [ebp - 0xdc]
je 0x417988
cmp byte [edi], 0x20
jne 0x417973
lea eax, [ebp - 0x78]
push 0x41f430
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x417983
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [edi]
mov byte [ebp + eax - 0x78], cl
inc edi
cmp byte [edi], bl
jne 0x41795d
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push str.ProfileManager
add edi, esi
push edi
push esi
call fcn.00417163
add esp, 0xc
cmp eax, ebx
je 0x4179e1
lea ecx, [ebp - 0x78]
push ecx
push edi
push eax
call fcn.00417163
add esp, 0xc
cmp eax, ebx
je 0x4179e1
lea ecx, [ebp - 0x78]
inc eax
push ecx
push edi
push eax
call fcn.00417163
add esp, 0xc
cmp eax, ebx
je 0x4179e1
push str.ProfileLocation
push edi
push eax
call fcn.00417163
add esp, 0xc
cmp eax, ebx
jne 0x417a1e
cmp esi, ebx
je 0x4179ec
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4179fc
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], 0xffffffff
je 0x417a07
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 4], ebx
je 0x417ad5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x417ad5
add eax, 0x10
push eax
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp esi, ebx
je 0x417a3a
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 8], ebx
je 0x417a48
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0xffffffff
je 0x417a57
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
je 0x417a65
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x2e4]
push str.prefs.js
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x2e4]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x417ad5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 4], eax
call fcn.00411cd0
pop ecx
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ebx
push ecx
mov dword [esi + 0x10], eax
push dword [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417ace
mov ecx, esi
call fcn.00417d60
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret