Function at 0x401a00
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42430c
mov eax, dword fs:[0]
push eax
sub esp, 0x930
mov eax, dword [0x435028]
xor eax, esp
mov dword [esp + 0x928], eax
push ebx
push esi
push edi
mov eax, dword [0x435028]
xor eax, esp
push eax
lea eax, [esp + 0x940]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push eax
lea ecx, [esp + 0xe0]
mov dword [esp + 0x14], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edi, [esp + 0xdc]
mov dword [esp + 0x948], 0
call fcn.00410190
mov ebx, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push 0x427d0c
push 0x400
push esi
call ebx
add esp, 0xc
lea eax, [esp + 0x524]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x401e58
lea ecx, [esp + 0x524]
push ecx
lea edx, [esp + 0x118]
push 0x104
push edx
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push str.MozillaFirefoxprofiles.ini
lea eax, [esp + 0x118]
push eax
call edi
lea esi, [esp + 0x114]
call fcn.0040ecd0
test al, al
je 0x401e58
mov ecx, esi
push ecx
push 0xffffffffffffffff
push str.IsRelative
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea edx, [esp + 0x114]
push edx
push 0x104
mov esi, eax
lea eax, [esp + 0x734]
push eax
push 0
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp esi, 1
jne 0x401b65
lea ecx, [esp + 0x524]
push ecx
lea edx, [esp + 0x118]
push 0x104
push edx
call ebx
add esp, 0xc
push str.MozillaFirefox_
lea eax, [esp + 0x118]
push eax
call edi
lea ecx, [esp + 0x72c]
push ecx
lea edx, [esp + 0x118]
push edx
call edi
jmp 0x401b7f
lea eax, [esp + 0x72c]
push eax
lea ecx, [esp + 0x118]
push 0x104
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x114]
push edx
lea eax, [esp + 0x320]
push 0x104
push eax
call ebx
add esp, 0xc
push 0x427b10
lea ecx, [esp + 0x320]
push ecx
call edi
lea esi, [esp + 0x31c]
call fcn.0040ecd0
test al, al
je 0x401e58
push 1
push 0x40
push 1
mov edx, esi
push edx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_fstream_wchar_t__struct_std::char_traits_wchar_t__::constructor_wchar_t_const___int__int_]
mov byte [esp + 0x948], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
cmp dword [esp + ecx + 0x1c], 0
jne 0x401c6c
lea ecx, [esp + 0xc0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x948], 2
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x1c], 1
jne 0x401c57
mov esi, dword [sym.imp.MSVCP80.dll_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::getline_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t_____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____]
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x18]
push edx
call esi
add esp, 8
lea edi, [esp + 0xc0]
call fcn.00410190
push 0
push str._browser.startup.homepage_
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
jne 0x401caa
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x1c], 1
je 0x401c12
lea ecx, [esp + 0xc0]
mov byte [esp + 0x948], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_fstream_wchar_t__struct_std::char_traits_wchar_t__::close_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x948], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_fstream_wchar_t__struct_std::char_traits_wchar_t__::vbase_dtor_void_]
lea ecx, [esp + 0xdc]
mov dword [esp + 0x948], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x401e72
lea ecx, [esp + 0xf8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0
mov ebx, 3
push 0x427bc0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x950], bl
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
push eax
push 0x427bc4
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov esi, eax
lea edi, [esi + 1]
push edi
push 0x427bc4
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
sub eax, esi
sub eax, 1
push eax
push edi
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0xcc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0xfc]
mov byte [esp + 0x94c], 4
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x948], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x110], 8
mov eax, dword [esp + 0xfc]
jae 0x401d60
lea eax, [esp + 0xfc]
mov edx, dword [esp + 0x10]
push eax
push 0x400
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push 0
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
lea ecx, [esp + 0x14]
je 0x401dfa
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_fstream_wchar_t__struct_std::char_traits_wchar_t__::close_void_]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x948], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xc0]
mov byte [esp + 0x948], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x948], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_fstream_wchar_t__struct_std::char_traits_wchar_t__::vbase_dtor_void_]
lea ecx, [esp + 0xdc]
mov dword [esp + 0x948], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 2
jmp 0x401e72
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_fstream_wchar_t__struct_std::char_traits_wchar_t__::close_void_]
lea ecx, [esp + 0xf8]
mov byte [esp + 0x948], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xc0]
mov byte [esp + 0x948], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x948], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_fstream_wchar_t__struct_std::char_traits_wchar_t__::vbase_dtor_void_]
lea ecx, [esp + 0xdc]
mov dword [esp + 0x948], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, ebx
jmp 0x401e72
lea ecx, [esp + 0xdc]
mov dword [esp + 0x948], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x940]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x928]
xor ecx, esp
call fcn.00422de8
mov esp, ebp
pop ebp
ret