Function at 0x412570
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4155a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x41e130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3b4], edi
mov dword [ebp - 0x3b0], 0
mov eax, dword [ebp + 0xc]
test eax, eax
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov dword [ebp - 4], 1
jne 0x412601
lea eax, [ebp - 0x3ac]
push eax
call fcn.00412050
add esp, 4
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_class_CTXStringW_const__]
lea ecx, [ebp - 0x3ac]
mov byte [ebp - 4], 1
call esi
push str.Users_
lea ecx, [ebp + 0x10]
call dword [0x416078]
jmp 0x4126c8
cmp eax, 1
jne 0x412684
push eax
push 5
lea ecx, [ebp - 0x3a8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4126c8
lea edx, [ebp - 0x3a8]
push edx
lea ecx, [ebp + 0x10]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t__]
push 0x5c
push 0x2f
lea ecx, [ebp + 0x10]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::Replace_wchar_t__wchar_t_]
push 1
lea eax, [ebp - 0x3ac]
push eax
lea ecx, [ebp + 0x10]
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_]
push 0x5c
push eax
call dword [sym.imp.Common.dll_bool___cdecl_operator__class_CTXStringW_const___wchar_t_]
add esp, 8
lea ecx, [ebp - 0x3ac]
mov bl, al
call esi
test bl, bl
je 0x412674
push 0x5c
lea ecx, [ebp + 0x10]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_]
push str.Tencent_Files_
lea ecx, [ebp + 0x10]
call dword [0x416078]
jmp 0x4126c8
lea ecx, [ebp + 0x10]
call dword [sym.imp.Common.dll_public:_bool___thiscall_CTXStringW::IsEmpty_void_const]
test al, al
jne 0x4126c8
push 1
lea ecx, [ebp - 0x3ac]
push ecx
lea ecx, [ebp + 0x10]
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Right_int_]
push 0x5c
push eax
call dword [sym.imp.Common.dll_bool___cdecl_operator__class_CTXStringW_const___wchar_t_]
add esp, 8
lea ecx, [ebp - 0x3ac]
mov bl, al
call esi
test bl, bl
je 0x4126c8
push 0x5c
lea ecx, [ebp + 0x10]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_]
mov ebx, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea ecx, [ebp + 0x10]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412701
push 0
lea ecx, [ebp + 0x10]
call ebx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x412701
push 0x41672c
lea ecx, [ebp + 0x10]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
lea edx, [ebp + 0x10]
push edx
mov ecx, edi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x3b0], 1
mov byte [ebp - 4], 0
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412d02
mov esp, ebp
pop ebp
ret