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

Disassembly:
mov eax, 0x4bb954
call fcn.0049dfc4
sub esp, 0x3f0
push ebx
push esi
push edi
mov edx, ecx
push 0xb
mov esi, str.SOFTWARENetscapeNetscape_NavigatorUsers_
pop ecx
lea edi, [ebp - 0x1f4]
rep movsd dword es:[edi], dword [esi]
push 0x36
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c8]
rep stosd dword es:[edi], eax
mov al, byte [0x4f1ef8]
push 0x40
mov byte [ebp - 0x2f8], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x2f7]
rep stosd dword es:[edi], eax
cmp word [edx + 0x16], 0x32
mov dword [ebp - 0x28], edx
stosw word es:[edi], ax
stosb byte es:[edi], al
jae 0x475dad
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1f4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x475cf7
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
jmp 0x475d81
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x1f4]
push eax
call esi
mov edi, 0x104
mov ecx, edi
sub ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1f4]
push eax
mov dword [ebp - 0x24], ecx
call esi
lea eax, [ebp + eax - 0x1f4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.CurrentUser
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x475cec
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1f4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x475cec
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
lea eax, [ebp - 0x2f8]
push eax
push ebx
push ebx
push str.DirRoot
push dword [ebp - 0x14]
call esi
test eax, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
je 0x475d97
call fcn.0047718a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0047718a
jmp 0x47604c
call fcn.0047718a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0047718a
jmp 0x475fd2
push 0x18
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x8b]
mov byte [ebp - 0x8c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x3fc]
or edi, 0xffffffff
xor esi, esi
push 0x104
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x3fc]
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 - 0x3fc]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
je 0x475e1e
mov dword [ebp - 0x10], eax
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
je 0x475e34
mov dword [ebp - 0x14], eax
push ebx
push ebx
push ebx
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x475e4b
mov dword [ebp - 0x1c], eax
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push str.SOFTWARENetscapeNetscape_Navigator_biff
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x475e89
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x64
push eax
lea eax, [ebp - 0xf0]
push eax
push ebx
push ebx
push str.CurrentUser
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x475eac
cmp esi, ebx
je 0x475e94
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x475ea4
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], edi
jmp 0x475f6a
cmp byte [ebp - 0xf0], bl
lea edi, [ebp - 0xf0]
je 0x475eee
cmp byte [edi], 0x20
jne 0x475ed3
lea eax, [ebp - 0x8c]
push 0x4ecc28
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x475ee9
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [edi]
mov byte [ebp + eax - 0x8c], cl
inc edi
cmp byte [edi], bl
jne 0x475eba
push ebx
mov dword [ebp - 0x20], esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push str.ProfileLocation
add edi, esi
push edi
push esi
call fcn.00475c21
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x475f48
lea eax, [ebp - 0x8c]
push eax
push esi
push dword [ebp - 0x20]
call fcn.00475c21
add esp, 0xc
test eax, eax
jne 0x475f44
inc esi
push str.ProfileLocation
push edi
push esi
mov dword [ebp - 0x20], esi
call fcn.00475c21
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x475f14
cmp esi, ebx
jne 0x475f88
cmp dword [ebp - 0x1c], ebx
je 0x475f56
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x475f66
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x10], 0xffffffff
je 0x475f71
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x18], ebx
je 0x47604c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47604c
add esi, 0x10
lea eax, [ebp - 0x2f8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x1c], ebx
je 0x475fa7
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x14], ebx
je 0x475fb5
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0xffffffff
je 0x475fc4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x475fd2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x2f8]
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 - 0x2f8]
push SysReAllocStringLen
push eax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x47604c
push ebx
push edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x20], eax
call fcn.0049e01f
pop ecx
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
push ebx
push ecx
mov dword [esi + 0x10], eax
push dword [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x476045
mov ecx, esi
call fcn.0047605b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret