Function at 0x40e870
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bad30
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x4d437c]
xor eax, esp
mov dword [esp + 0x33c], eax
push ebx
push esi
push edi
mov eax, dword [0x4d437c]
xor eax, esp
push eax
lea eax, [esp + 0x350]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x78]
mov dword [esp + 0x40], esi
mov dword [esp + 0x18], ebx
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 0x206
lea eax, [esp + 0x14a]
mov dword [esp + 0x35c], 1
push ebx
push eax
mov dword [esp + 0x48], ebx
mov word [esp + 0x150], bx
call sub.ntdll.dll_memset
add esp, 0xc
push str.USERPROFILE
push 0x104
lea ecx, [esp + 0x14c]
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.MSVCR80.dll__wgetenv_s]
add esp, 0x10
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x7c]
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__::append_wchar_t_const__]
push 0x4bf010
lea ecx, [esp + 0x7c]
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__::append_wchar_t_const__]
push str.AppDataLocalGoogleChromeUser_Data_
lea ecx, [esp + 0x7c]
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__::append_wchar_t_const__]
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0xb4]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.Local_State
lea ecx, [esp + 0x7c]
mov byte [esp + 0x35c], 2
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__::append_wchar_t_const__]
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], ebx
jae 0x40e97c
lea eax, [esp + 0x7c]
push 0x4bf110
push eax
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.MSVCR80.dll__wfopen_s]
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
je 0x40ec77
mov edi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
push ebx
push eax
call edi
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call dword [sym.imp.MSVCR80.dll_ftell]
mov ecx, dword [esp + 0x18]
add esp, 4
push ebx
push ebx
push ecx
mov esi, eax
call edi
lea edx, [esi + 1]
add esp, 0xc
push edx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
push esi
push 1
push edi
call dword [sym.imp.MSVCR80.dll_fread]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x14
push str.Default
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, 0xfffffe00
and dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
and dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
and dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
lea edx, [esp + 0xcc]
push edx
mov byte [esp + 0x35c], 9
call fcn.004b39c0
push edi
lea ecx, [esp + 0x60]
mov byte [esp + 0x35c], 0xa
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x5c]
mov byte [esp + 0x358], 0xb
push eax
lea ecx, [esp + 0xf8]
mov dword [esp + 0x1c], 1
call dword [0x4bd1cc]
mov eax, dword [esp + 0xf8]
mov edi, 0x10
cmp dword [esp + 0x10c], edi
jae 0x40ea88
lea eax, [esp + 0xf8]
mov ecx, dword [esp + 0x108]
lea edx, [esp + 0x44]
push edx
add ecx, eax
push ecx
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.004b3a40
test al, al
je 0x40ead2
mov al, byte [esp + 0x4c]
cmp al, bl
je 0x40eab9
cmp al, 6
je 0x40eab9
cmp al, 7
jne 0x40eacb
lea ecx, [esp + 0x44]
call fcn.004b0e20
test eax, eax
sete al
cmp al, bl
jne 0x40ead2
mov byte [esp + 0x13], 1
jmp 0x40ead6
mov byte [esp + 0x13], bl
mov dword [esp + 0x358], 0xa
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [esp + 0x13], bl
je 0x40eba0
push str.profile
lea ebx, [esp + 0x48]
call fcn.004b11a0
lea esi, [esp + 0x1c]
call fcn.004b07c0
mov al, byte [esp + 0x24]
test al, al
je 0x40eb20
cmp al, 6
je 0x40eb20
cmp al, 7
jne 0x40eb32
lea ecx, [esp + 0x1c]
call fcn.004b0e20
test eax, eax
sete al
test al, al
jne 0x40eb9e
push str.last_used
lea ebx, [esp + 0x20]
call fcn.004b11a0
lea esi, [esp + 0x2c]
call fcn.004b07c0
mov al, byte [esp + 0x34]
test al, al
je 0x40eb59
cmp al, 6
je 0x40eb59
cmp al, 7
jne 0x40eb6b
lea ecx, [esp + 0x2c]
call fcn.004b0e20
test eax, eax
sete al
test al, al
jne 0x40eb9e
lea esi, [esp + 0x5c]
lea ecx, [esp + 0x2c]
call fcn.004b0850
push eax
lea ecx, [esp + 0x98]
mov byte [esp + 0x35c], 0xc
call dword [0x4bd1cc]
mov ecx, esi
mov byte [esp + 0x358], 0xa
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor ebx, ebx
cmp dword [esp + 0xac], edi
mov eax, dword [esp + 0x98]
jae 0x40ebb7
lea eax, [esp + 0x98]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x74], esp
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x78]
push ecx
call fcn.0040dfa0
add esp, 0x20
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0x35c], 0xd
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__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x358], 0xa
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 esi, dword [esp + 0x40]
lea edx, [esp + 0xb0]
push edx
mov ecx, 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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea eax, [esp + 0xcc]
push eax
mov dword [esp + 0x1c], 2
mov byte [esp + 0x35c], 9
call fcn.0040a400
lea eax, [esp + 0x2c]
mov byte [esp + 0x358], 7
call fcn.004b0720
lea eax, [esp + 0x1c]
mov byte [esp + 0x358], 5
call fcn.004b0720
lea eax, [esp + 0x44]
mov byte [esp + 0x358], 3
call fcn.004b0720
lea ecx, [esp + 0x94]
mov byte [esp + 0x358], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x40ec8c
push 0x4bf130
mov ecx, 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__]
mov dword [esp + 0x18], 2
lea ecx, [esp + 0xb0]
mov byte [esp + 0x358], 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 + 0x78]
mov byte [esp + 0x358], 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_]
mov eax, esi
mov ecx, dword [esp + 0x350]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x33c]
xor ecx, esp
call fcn.004b76e6
add esp, 0x34c
ret