Function at 0x10005320
Capabilities:
Get common file path

Disassembly:
mov eax, 0x2a3ec
call fcn.10009ca0
push ebx
push ebp
push esi
xor esi, esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x2f4]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x2f4]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push 2
lea edx, [esp + 0x1c]
push 0x100113c0
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xf9]
mov byte [esp + 0xf8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
push esi
lea eax, [esp + 0xf0]
push 0x2e
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xec]
push 0x100113ac
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::ios_base::constructor_void_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
push esi
lea edx, [esp + 0x68]
mov dword [esp + 0xbc], ecx
push esi
push edx
lea ecx, [esp + 0x68]
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]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov eax, dword [esp + 0x5c]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
push 1
mov ecx, dword [eax + 4]
lea eax, [esp + 0x1f4]
push eax
mov dword [esp + ecx + 0x64], edx
lea ecx, [esp + 0x6c]
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 0x1000544b
mov ecx, dword [esp + 0x5c]
push esi
push 2
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x64]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov al, byte [esp + 0x13]
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 0x10005467
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, 0x100113b4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x100113b4
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 0x1000551f
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 0x100113b0
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 0x10005465
mov eax, dword [esp + 0xb4]
xor ebx, ebx
cmp eax, ebx
je 0x10005596
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x10005596
push 2
push ebx
lea ecx, [esp + 0x6c]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
lea eax, [esp + 0x64]
test eax, eax
jne 0x100055af
mov ecx, dword [esp + 0x5c]
push ebx
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0x64]
lea ecx, [esp + edx + 0x60]
or al, 2
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
lea ecx, [esp + 0x3f8]
push 0x11e241
push ecx
call sub.ImgCenterDib.dll_Ordinal_1
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
add esp, 8
cmp esi, edi
je 0x100055e3
push ebx
mov ecx, esi
call fcn.10005730
add esi, 0x10
cmp esi, edi
jne 0x100055d0
mov esi, dword [esp + 0x20]
push esi
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x60]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [edx + 4]
add esp, 4
mov dword [esp + eax + 0x5c], ecx
lea ecx, [esp + 0x64]
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 + 0x5c]
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 + 0x5c], ecx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0xb8]
mov dword [esp + 0xb8], edx
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
lea ecx, [esp + 0x18]
call fcn.100099b4
lea ecx, [esp + 0x14]
call fcn.100099b4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a3ec
ret