Function at 0x40e083
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, 0x3f0
push ebx
push esi
push edi
mov edx, ecx
push 0xb
mov esi, str.SOFTWARENetscapeNetscape_NavigatorUsers_
pop ecx
lea edi, [ebp - 0x1e8]
rep movsd dword es:[edi], dword [esi]
push 0x36
xor eax, eax
pop ecx
lea edi, [ebp - 0x1bc]
rep stosd dword es:[edi], eax
mov al, byte [0x424180]
push 0x40
mov byte [ebp - 0x2ec], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x2eb]
rep stosd dword es:[edi], eax
cmp word [edx + 0x16], 0x32
mov dword [ebp - 0x1c], edx
stosw word es:[edi], ax
stosb byte es:[edi], al
jae 0x40e1ac
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp - 0x1e8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40e101
lea ecx, [ebp - 8]
jmp 0x40e188
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x1e8]
push eax
call esi
mov edi, 0x104
mov ecx, edi
sub ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1e8]
push eax
mov dword [ebp - 0x18], ecx
call esi
lea eax, [ebp + eax - 0x1e8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.CurrentUser
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x40e0f9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1e8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40e0f9
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
lea eax, [ebp - 0x2ec]
push eax
push ebx
push ebx
push str.DirRoot
push dword [ebp - 8]
call esi
test eax, eax
lea ecx, [ebp - 8]
je 0x40e19a
call fcn.0040f379
lea ecx, [ebp - 4]
call fcn.0040f379
jmp 0x40e42f
call fcn.0040f379
lea ecx, [ebp - 4]
call fcn.0040f379
jmp 0x40e3bf
push 0x18
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x7f]
mov byte [ebp - 0x80], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x3f0]
or edi, 0xffffffff
xor esi, esi
push 0x104
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x3f0]
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 - 0x3f0]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
je 0x40e217
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 0x40e22d
mov dword [ebp - 4], eax
push ebx
push ebx
push ebx
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x40e244
mov dword [ebp - 0x14], eax
mov esi, eax
lea eax, [ebp - 8]
push eax
push str.SOFTWARENetscapeNetscape_Navigator_biff
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40e282
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x64
push eax
lea eax, [ebp - 0xe4]
push eax
push ebx
push ebx
push str.CurrentUser
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e2a5
cmp esi, ebx
je 0x40e28d
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40e29d
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], edi
jmp 0x40e357
cmp byte [ebp - 0xe4], bl
lea edi, [ebp - 0xe4]
je 0x40e2de
cmp byte [edi], 0x20
jne 0x40e2c9
lea eax, [ebp - 0x80]
push 0x420f28
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40e2d9
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [edi]
mov byte [ebp + eax - 0x80], cl
inc edi
cmp byte [edi], bl
jne 0x40e2b3
push ebx
mov dword [ebp - 0x10], esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push str.ProfileLocation
add edi, esi
push edi
push esi
call fcn.0040e038
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x40e335
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x10]
call fcn.0040e038
add esp, 0xc
test eax, eax
jne 0x40e331
inc esi
push str.ProfileLocation
push edi
push esi
mov dword [ebp - 0x10], esi
call fcn.0040e038
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40e304
cmp esi, ebx
jne 0x40e375
cmp dword [ebp - 0x14], ebx
je 0x40e343
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40e353
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x40e35e
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], ebx
je 0x40e42f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e42f
add esi, 0x10
lea eax, [ebp - 0x2ec]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x14], ebx
je 0x40e394
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 4], ebx
je 0x40e3a2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0xffffffff
je 0x40e3b1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40e3bf
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x2ec]
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 - 0x2ec]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e42f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x10], eax
call fcn.00411747
pop ecx
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push ebx
push ecx
mov dword [edi + 0x10], eax
push dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e428
mov ecx, edi
call fcn.0040e434
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret