Function at 0x10005320
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2a3ec
call fcn.10009bf0
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 + 0x2ec]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 2
lea ecx, [esp + 0x14]
push 0x100113c0
push ecx
call sub.MFC42.DLL_CString::Format
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xf1]
mov byte [esp + 0xf0], 0
rep stosd dword es:[edi], eax
add esp, 0xc
lea edx, [esp + 0xe4]
stosw word es:[edi], ax
push esi
push 0x2e
push edx
push esi
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0xe4]
push 0x100113bc
push eax
lea ecx, [esp + 0x1f0]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vbtable]
add esp, 0x10
lea ecx, [esp + 0xb0]
mov dword [esp + 0x54], edx
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
push esi
lea ecx, [esp + 0x60]
push esi
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0xbc], eax
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 + 0x60]
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 + 0x54]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
push 1
mov eax, dword [edx + 4]
lea edx, [esp + 0x1ec]
push edx
mov dword [esp + eax + 0x5c], ecx
lea ecx, [esp + 0x64]
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 0x1000543b
mov eax, dword [esp + 0x54]
push esi
mov ecx, dword [eax + 4]
mov edx, dword [esp + ecx + 0x5c]
lea ecx, [esp + ecx + 0x58]
or edx, 2
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 + 0x1c], al
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
xor ebp, ebp
jmp 0x10005459
xor esi, esi
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
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 + 0x3c]
push esi
lea eax, [esp + 0x60]
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 + 0x4c], cl
lea ecx, [esp + 0x4c]
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, 0x100113b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x100113b0
lea ecx, [esp + 0x54]
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 + 0x1c]
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.100050e0
add esp, 0xc
lea ecx, [esp + 0x4c]
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 + 0x20]
push 0
lea ecx, [esp + 0x30]
mov al, byte [edx + ebp]
lea esi, [edx + ebp]
mov byte [esp + 0x30], 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 + 0x2c]
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 + 0x30]
test eax, eax
jne 0x10005511
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 0x100113ac
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
mov dl, byte [esp + 0x1f]
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + ebx + 0x3f8], 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 + 0x40]
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 0x10005457
lea eax, [esp + 0x3f8]
push eax
call sub.dll1.dll_Ordinal_1
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
add esp, 4
cmp esi, edi
pop ebp
pop ebx
je 0x1000558b
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 0x10005576
mov esi, dword [esp + 0x18]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x58]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edx, dword [ecx + 4]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esp + edx + 0x54], eax
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [esp + 0x54]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x54], eax
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0xb0], ecx
lea ecx, [esp + 0xb0]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
lea ecx, [esp + 0x10]
call fcn.10009904
lea ecx, [esp + 0xc]
call fcn.10009904
pop edi
pop esi
add esp, 0x2a3ec
ret