Function at 0x41cc90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420c50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vbtable]
push ebx
push esi
push edi
xor esi, esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xa0], 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]
mov ebx, 1
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], ebx
push esi
push ebx
lea edx, [ebp - 0x9c]
push esi
push edx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool__bool_]
push esi
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov eax, dword [ebp - 0xa0]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ofstream_char__struct_std::char_traits_char__::vftable]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xa0], edx
push esi
push esi
mov dword [ebp - 4], 2
call fcn.0041c150
lea eax, [ebp - 0x2a4]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
lea edx, [ebp - 0x1a4]
push ecx
push edx
call fcn.0041c6a0
test eax, eax
jne 0x41cd70
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ofstream_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]
mov dword [ebp - 0x48], eax
jmp 0x41cf35
lea ecx, [ebp - 0x1a4]
push 0x36
push ecx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
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_]
cmp eax, esi
jne 0x41cdae
mov edx, dword [ebp - 0xa0]
push esi
mov eax, dword [edx + 4]
lea ecx, [ebp + eax - 0xa0]
mov eax, dword [ebp + eax - 0x9c]
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_]
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x41cdd3
push 0x118
push esi
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
add esi, 0x118
jmp 0x41cdb4
mov ecx, dword [ebp - 0xa0]
xor esi, esi
mov dword [ebp - 4], 2
mov edx, dword [ecx + 4]
mov cl, byte [ebp + edx - 0x9c]
test cl, 6
lea eax, [ebp + edx - 0xa0]
jne 0x41ce0c
mov eax, dword [eax + 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x41ce0c
mov esi, 4
mov eax, dword [ebp - 0xa0]
push 0
push esi
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0xa0]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x9c]
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__::close_void_]
test eax, eax
jne 0x41ce4e
mov edx, dword [ebp - 0xa0]
push eax
push 2
mov eax, dword [edx + 4]
lea ecx, [ebp + eax - 0xa0]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret