Function at 0x4134e2
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x70
lea ebp, [esp - 4]
mov eax, dword [0x496ee4]
xor eax, ebp
mov dword [ebp + 0x70], eax
push 0x28
mov eax, 0x47e1a5
call fcn.0047bc99
mov eax, dword [ebp + 0x7c]
xor ebx, ebx
lea ecx, [ebp + 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor esi, esi
inc esi
lea ecx, [ebp + 0x54]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.00413d27
pop ecx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.MSVCP90.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__]
push str.MozillaFirefoxprofiles.ini
lea ecx, [ebp + 0x54]
call dword [sym.imp.MSVCP90.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_wchar_t_const__]
cmp dword [ebp + 0x6c], 8
mov eax, dword [ebp + 0x58]
jae 0x41355f
lea eax, [ebp + 0x58]
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41358e
mov ecx, dword [ebp - 0x14]
push 0x47fc50
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 0x18], esi
jmp 0x413706
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push ebx
push ebx
push edi
call esi
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x20], eax
call esi
mov eax, dword [ebp - 0x20]
inc eax
push eax
call fcn.0047bb8b
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp + 0x38]
call dword [0x47f374]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
push ebx
mov esi, str.Path
push esi
lea ecx, [ebp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.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]
je 0x413642
push ebx
push esi
lea ecx, [ebp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
add eax, 5
push eax
push ebx
lea ecx, [ebp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
push ebx
mov esi, 0x4815c4
push esi
lea ecx, [ebp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_first_of_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.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]
je 0x413642
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
lea ecx, [ebp + 0x38]
push ebx
push esi
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_first_of_char_const___unsigned_int_const]
push eax
lea ecx, [ebp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp]
push eax
call fcn.00412fa4
pop ecx
pop ecx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.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__]
push str.MozillaFirefox_
lea ecx, [ebp + 0x54]
call dword [sym.imp.MSVCP90.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_wchar_t_const__]
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x54]
call dword [0x47f2a8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 0xe], 0x5c
mov byte [ebp - 0xd], 0x2f
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_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__::end_void_]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], ecx
push eax
lea ecx, [ebp + 0x54]
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_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__::begin_void_]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0xe]
push ecx
lea ecx, [ebp - 0xd]
push ecx
push esi
push eax
call fcn.00413081
mov eax, dword [ebp + 0x58]
add esp, 0x10
cmp dword [ebp + 0x6c], 8
jae 0x4136cd
lea eax, [ebp + 0x58]
push eax
call fcn.00413de1
pop ecx
mov ecx, dword [ebp - 0x14]
test al, al
je 0x4136e7
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
jmp 0x4136f2
push 0x47fc50
call dword [sym.imp.MSVCP90.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 ecx, [ebp]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.0047bc8a
add ebp, 0x74
leave
ret