Function at 0x10005220
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2a3e8
call fcn.10009240
push esi
xor esi, esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x2e8]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xe1]
mov byte [esp + 0xe0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [esp + 0xe4]
push 0x2e
push ecx
push esi
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0xe0]
push 0x100112dc
push edx
lea eax, [esp + 0x1ec]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vbtable]
add esp, 0x10
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
push esi
lea eax, [esp + 0x5c]
push esi
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0xb8], edx
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 + 0x5c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov ecx, dword [esp + 0x50]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
push 1
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x1e8]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + edx + 0x58], eax
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 0x1000531e
mov edx, dword [esp + 0x50]
push esi
mov eax, dword [edx + 4]
mov edx, dword [esp + eax + 0x58]
or edx, 2
lea ecx, [esp + eax + 0x54]
push edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov al, byte [esp + 0xb]
push ebx
push ebp
xor ebx, ebx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
xor ebp, ebp
jmp 0x1000533c
xor esi, esi
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
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 edx, [esp + 0x28]
push esi
lea eax, [esp + 0x5c]
push edx
push eax
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 cl, byte [esp + 0x1f]
add esp, 0xc
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
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, 0x100112d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x100112d0
lea ecx, [esp + 0x40]
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 edx, [esp + 0x18]
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.10004fe0
add esp, 0xc
lea ecx, [esp + 0x38]
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 edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x4c]
mov al, byte [edx + ebp]
lea esi, [edx + ebp]
mov byte [esp + 0x4c], 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_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0x48]
push edx
push 0
push esi
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 + 0x4c]
test eax, eax
jne 0x100053f4
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 ecx, [esp + 0x13]
push ecx
push 0x100112cc
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov dl, byte [esp + 0x1f]
add esp, 0xc
lea ecx, [esp + 0x48]
mov byte [esp + ebx + 0x3f4], dl
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 + 0x2c]
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 0x1000533a
push 0x11e241
lea eax, [esp + 0x3f8]
push 0x2a001
push eax
call fcn.10004f30
lea ecx, [esp + 0x400]
push ecx
call sub.dll1.dll_Ordinal_1
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
add esp, 0x10
cmp esi, edi
pop ebp
pop ebx
je 0x10005485
push 1
mov ecx, 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_]
add esi, 0x10
cmp esi, edi
jne 0x10005470
mov esi, dword [esp + 0x14]
push esi
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x54]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
xor eax, eax
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x50], ecx
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [esp + 0x50]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x50], ecx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0xac]
mov dword [esp + 0xac], edx
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
lea ecx, [esp + 0xc]
call fcn.10008f64
pop edi
pop esi
add esp, 0x2a3e8
ret