Function at 0x417390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439a73
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x449314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
push 0x208
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], 0
call fcn.00435e86
mov ebx, eax
push 0x208
push 0
push ebx
lea esi, [ebx + 0x208]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x8c], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x90], esi
push 0
push 0x29
push ebx
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x417bab
mov ecx, ebx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417444
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403d70
push str._shell32.dll
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00409480
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4174b3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4174a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4174a9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00435eb6
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14c], 0x43e0e0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 4], 6
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x150], eax
lea eax, [ebp - 0x13c]
mov ecx, eax
mov dword [ebp - 0x5c], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 7
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0xf4], 0
mov byte [ebp - 0xff], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x44a0b8]
mov ecx, dword [0x44a0bc]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x14c]
push 6
mov byte [ebp - 4], 8
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::ios_base::exceptions_int_]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0xf0], 0
jne 0x4176eb
push 0x40
push 0x21
push eax
call sub.MSVCP140.dll_struct__iobuf____cdecl_std::_Fiopen_wchar_t_const___int__int_
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4176eb
lea ecx, [ebp - 0x13c]
mov byte [ebp - 0xf4], 1
mov byte [ebp - 0xff], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5c], 0
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov edx, dword [ebp - 0x5c]
add esp, 0x10
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
push edx
push ecx
push eax
push edx
push ecx
push eax
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____char____int___char____char____int__]
mov eax, dword [0x44a0b8]
mov ecx, dword [0x44a0bc]
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0xf8], ecx
lea ecx, [ebp - 0x13c]
push eax
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0x104], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void_]
push eax
mov byte [ebp - 4], 9
call fcn.0040aeb0
add esp, 4
mov esi, eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::codecvt_base::always_noconv_void_const]
test al, al
je 0x41769e
mov dword [ebp - 0x104], 0
jmp 0x4176b0
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x104], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov ecx, dword [ebp - 0x7c]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x4176ce
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4176ce
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x14c]
push 0
push 0
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x417706
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x14c]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 2
push 0
push 0
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
sub esp, 0x18
lea ecx, [ebp - 0x14c]
xorps xmm0, xmm0
mov edi, dword [eax + 8]
add edi, dword [eax]
mov eax, esp
mov dword [ebp - 0x60], edi
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movq qword [eax + 0x10], xmm0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_class_std::fpos_struct__Mbstatet__]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
test edi, edi
je 0x417798
push edi
lea ecx, [ebp - 0x1c]
call fcn.00415150
mov esi, dword [ebp - 0x1c]
push edi
push ebx
push esi
mov dword [ebp - 0x5c], esi
call sub.VCRUNTIME140.dll_memset
lea ebx, [esi + edi]
add esp, 0xc
mov dword [ebp - 0x18], ebx
push 0x1023
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
call fcn.00435e86
add esp, 4
test eax, eax
je 0x4174a3
lea edi, [eax + 0x23]
and edi, 0xffffffe0
push 0x1000
push 0
push edi
mov dword [edi - 4], eax
lea eax, [edi + 0x1000]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x70], eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x7c]
add esp, 0xc
mov esi, edx
mov dword [ebp - 0x74], esi
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x4178be
mov ecx, edx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x64], ecx
cmp eax, 0x1000
mov edi, eax
mov eax, 0x1000
cmova edi, eax
mov eax, dword [ebp - 0x5c]
sub ecx, eax
cmp edi, ecx
jae 0x41782d
lea esi, [eax + edi]
jmp 0x41786b
jbe 0x41786e
mov eax, edx
sub eax, dword [ebp - 0x5c]
cmp edi, eax
jbe 0x417856
lea eax, [ebp - 0x69]
push eax
push edi
lea ecx, [ebp - 0x78]
call fcn.0040a9e0
mov eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
jmp 0x41786e
mov esi, edi
sub esi, ecx
push esi
push 0
push dword [ebp - 0x64]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add esi, dword [ebp - 0x64]
mov dword [ebp - 0x74], esi
mov ecx, dword [ebp - 0x68]
mov eax, esi
sub eax, ecx
push 0
push eax
push ecx
lea ecx, [ebp - 0x14c]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
push dword [ebp - 0x84]
lea ecx, [ebp - 0x1c]
push esi
push dword [ebp - 0x68]
push ebx
call fcn.0040a5e0
mov eax, dword [ebp - 0x60]
mov ecx, esi
mov ebx, dword [ebp - 0x18]
sub eax, edi
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x5c], edi
je 0x4178b8
mov edx, dword [ebp - 0x7c]
jmp 0x417810
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], esi
cmp dword [ebp - 0xf0], 0
je 0x41796e
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x100]
cmp dword [eax], ecx
jne 0x4178fb
mov edx, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xec]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x120]
mov dword [eax], ecx
mov eax, dword [ebp - 0x110]
mov dword [eax], edx
lea esi, [ebp - 0x13c]
mov ecx, esi
call fcn.004154d0
push dword [ebp - 0xf0]
xor ecx, ecx
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
mov byte [ebp - 0xf4], cl
mov byte [ebp - 0xff], cl
cmovne esi, ecx
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x44a0b8]
mov ecx, dword [0x44a0bc]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0x104], 0
test esi, esi
jne 0x4179ce
jmp 0x4179b3
lea ecx, [ebp - 0x13c]
mov byte [ebp - 0xf4], 0
mov byte [ebp - 0xff], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x44a0b8]
mov ecx, dword [0x44a0bc]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x14c]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov esi, dword [ebp - 0x5c]
sub ebx, esi
push 0x2b
push str.User_Choice_set_via_Windows_User_Experience
push 0
shr ebx, 1
push ebx
push esi
call fcn.0040aad0
cmp eax, 0xffffffff
je 0x417bd1
cmp eax, ebx
jae 0x417b87
sub ebx, eax
mov edx, 0
lea eax, [esi + eax*2]
mov dword [ebp - 0x5c], eax
mov ecx, eax
je 0x417a21
cmp word [ecx], 0x7d
je 0x417a1f
nop dword [eax]
cmp ebx, 1
je 0x417a21
add ecx, 2
dec ebx
cmp word [ecx], 0x7d
jne 0x417a10
mov edx, ecx
test edx, edx
je 0x417b87
sub edx, esi
sar edx, 1
cmp edx, 0xffffffff
je 0x417b87
mov ebx, dword [ebp - 0x84]
xor eax, eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea eax, [esi + 2]
lea eax, [eax + edx*2]
cmp ecx, eax
je 0x417a6f
sub eax, ecx
sar eax, 1
push eax
push ecx
mov ecx, ebx
call fcn.00403d70
test edi, edi
je 0x417aa0
mov ecx, dword [ebp - 0x7c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x417a96
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4174a3
push ecx
push edi
call fcn.00435eb6
add esp, 8
test esi, esi
je 0x417ad1
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x417ac7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4174a3
push ecx
push esi
call fcn.00435eb6
add esp, 8
lea ecx, [ebp - 0x14c]
call fcn.0040c990
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x417b16
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x417b0c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4174a3
push edx
push ecx
call fcn.00435eb6
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x2c], 7
test eax, eax
je 0x417b67
mov ecx, dword [ebp - 0x8c]
sub ecx, eax
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x417b5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4174a3
mov eax, edx
push ecx
push eax
call fcn.00435eb6
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043624e
mov esp, ebp
pop ebp
ret 4
push str.experience_base_string_found_but_is_not_properly_terminated_
lea ecx, [ebp - 0x58]
call fcn.00402fa0
push 0x1a7
push str.get_experience_string
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xd
push eax
call fcn.0040adc0
push str.SHGetSpecialFolderPathW_failed_
lea ecx, [ebp - 0x28]
call fcn.00402fa0
push 0x182
push str.get_experience_string
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.0041b150
push str.experiance_base_string_not_found_in_shell32.dll_
lea ecx, [ebp - 0x58]
call fcn.00402fa0
push 0x1a3
push str.get_experience_string
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xc
push eax
call fcn.0040adc0
int3