Function at 0x447750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8c48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2d4
push esi
push edi
push 0x208
lea eax, [ebp - 0x2e0]
mov edi, edx
push 0
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2e0]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4477c0
sub ecx, edx
lea eax, [ebp - 0x2e0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00454a60
push 0xbc69b4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0044fe10
sub esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xd8]
push 2
push eax
call fcn.0044ef30
mov byte [ebp - 4], 1
cmp dword [ebp - 0x88], 0
jne 0x44783a
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_create_open_file
call fcn.004531b0
push 0x4533c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 0xd], 0
jmp 0x4478cd
mov ecx, esi
call fcn.004469f0
mov ecx, edi
call fcn.004469f0
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x447852
mov edx, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0xd8]
call fcn.004563e0
add esp, 4
mov edx, 0xbc69f4
mov ecx, eax
call fcn.004531b0
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x447879
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.004563e0
add esp, 4
mov ecx, eax
push 0x4533c0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0xd4]
call fcn.00451b40
test eax, eax
jne 0x4478bb
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, esi
call fcn.004469f0
mov ecx, edi
call fcn.004469f0
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x88], 0
pop edi
mov dword [ebp - 0xd4], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
pop esi
je 0x44793a
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x98]
cmp dword [eax], ecx
jne 0x44793a
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xb8]
mov dword [eax], ecx
mov eax, dword [ebp - 0xa8]
mov dword [eax], edx
cmp byte [ebp - 0x8c], 0
je 0x44794e
lea ecx, [ebp - 0xd4]
call fcn.00451b40
lea ecx, [ebp - 0xd4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4479ab
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4479a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4479a1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004c6df9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret