Function at 0x10003960
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x10007139
push eax
mov eax, 0x29ae8
mov dword fs:[0], esp
call fcn.10006b60
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 0x10098c60
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 + 0x29b0c], 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 + 0x29b04], 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 + 0x29b08], 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 0x10003a69
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 + 0x29b00], 3
xor ebp, ebp
jmp 0x10003a8d
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 + 0x29b0c], 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, 0x10098c54
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x10098c54
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 + 0x29b0c], 5
call fcn.10003720
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x29b00], 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 0x10003b5c
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 0x10098c50
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 + 0x29b04], 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, 0x298010
jl 0x10003a8b
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 0x29801
push edx
call fcn.10003650
lea eax, [esp + 0x308]
push eax
call fcn.10002be0
mov esi, eax
xor ebx, ebx
add esp, 0x18
cmp esi, ebx
jne 0x10003c63
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov byte [esp + 0x29b00], 2
je 0x10003c17
push ebx
mov ecx, esi
call fcn.100042c0
add esi, 0x10
cmp esi, edi
jne 0x10003c04
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 + 0x29b00], 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 0x10003d44
mov edx, dword [esp + 0x29b08]
push edx
push esi
call fcn.10003340
add esp, 8
cmp eax, ebx
jne 0x10003cf0
push esi
call fcn.10003440
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
add esp, 4
cmp esi, edi
mov byte [esp + 0x29b00], 2
je 0x10003ca8
push ebx
mov ecx, esi
call fcn.100042c0
add esi, 0x10
cmp esi, edi
jne 0x10003c95
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 + 0x29b00], 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 0x10003d44
call eax
push esi
call fcn.10003440
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
mov byte [esp + 0x29b00], 2
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.10004340
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 + 0x29b00], 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 + 0x29af8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29af4
ret