Function at 0x10001510
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x10004a09
push eax
mov eax, 0x2a2e8
mov dword fs:[0], esp
call fcn.100046c0
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xed]
mov byte [esp + 0xec], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
stosb byte es:[edi], al
push esi
lea eax, [esp + 0xf0]
push 0x2e
push eax
push esi
mov dword [esp + 0x38], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xec]
push 0x10008038
push ecx
lea edx, [esp + 0x1f8]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vbtable]
add esp, 0x10
lea ecx, [esp + 0xb8]
mov dword [esp + 0x5c], eax
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov edi, 1
mov dword [esp + 0x28], edi
push esi
lea ecx, [esp + 0x68]
push esi
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x2a30c], esi
call dword [sym.imp.MSVCP60.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_]
push esi
lea ecx, [esp + 0x68]
mov dword [esp + 0x2a304], edi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov edx, dword [esp + 0x5c]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x5c], ecx
lea edx, [esp + 0x1f0]
push edi
push edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x2a308], 2
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::open_char_const___int_]
test eax, eax
jne 0x10001619
mov eax, dword [esp + 0x5c]
push esi
push 2
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x64]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov dl, byte [esp + 0x13]
mov dword [esp + 0x18], esi
mov byte [esp + 0x14], dl
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
xor ebx, ebx
mov byte [esp + 0x2a300], 3
xor ebp, ebp
jmp 0x1000163d
xor esi, esi
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x4c]
push esi
lea edx, [esp + 0x60]
push ecx
push edx
mov byte [esp + 0x2a30c], 4
call sub.MSVCP60.dll_class_std::basic_istream_char__struct_std::char_traits_char______cdecl_std::getline_class_std::basic_istream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____char_
mov al, byte [esp + 0x1f]
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], al
push esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x1000802c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x1000802c
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP60.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__::assign_char_const___unsigned_int_]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
mov byte [esp + 0x2a30c], 5
call fcn.100012d0
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2a300], 4
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [esp + 0x18]
push 0
mov dl, byte [ecx + ebp]
lea esi, [ecx + ebp]
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
push 0
push esi
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x1000170c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x13]
push edx
push 0x10008028
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov al, byte [esp + 0x1f]
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + ebx + 0x2f4], al
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x2a304], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add ebp, 0x10
inc ebx
cmp ebp, 0x2a0010
jl 0x1000163b
lea ecx, [esp + 0x26]
mov byte [esp + 0x26], 0x36
push ecx
mov byte [esp + 0x2b], 0
call dword [sym.imp.MSVCRT.dll_atoi]
push eax
push str.EEB0F
lea edx, [esp + 0x300]
push 0x2a001
push edx
call fcn.100011e0
lea eax, [esp + 0x308]
push eax
call fcn.100031a0
mov esi, eax
xor ebx, ebx
add esp, 0x18
cmp esi, ebx
jne 0x10001813
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov byte [esp + 0x2a300], 2
je 0x100017c7
push ebx
mov ecx, esi
call fcn.10001cb0
add esi, 0x10
cmp esi, edi
jne 0x100017b4
mov esi, dword [esp + 0x18]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xb8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2a300], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0xb8], ecx
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
jmp 0x100018f4
mov edx, dword [esp + 0x2a308]
push edx
push esi
call fcn.100038d0
add esp, 8
cmp eax, ebx
jne 0x100018a0
push esi
call fcn.100039d0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, edi
mov byte [esp + 0x2a300], 2
je 0x10001858
push ebx
mov ecx, esi
call fcn.10001cb0
add esi, 0x10
cmp esi, edi
jne 0x10001845
mov esi, dword [esp + 0x18]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xb8]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2a300], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0xb8]
mov dword [esp + 0xb8], eax
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
jmp 0x100018f4
call eax
push esi
call fcn.100039d0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
mov byte [esp + 0x2a300], 2
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.10001d10
mov eax, dword [esp + 0x18]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2a300], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov ecx, dword [esp + 0x2a2f8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a2f4
ret