Function at 0x401000
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d6d3
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x41501c]
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 esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x5e4]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_class_CTXStringW____thiscall_CTXStringW::operator_wchar_t_const__]
mov esi, dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::ReverseFind_wchar_t_const]
push 0x5c
lea ecx, [ebp - 0x21c]
call esi
mov ebx, dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Mid_int_]
add eax, 1
push eax
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
call ebx
mov byte [ebp - 4], 2
mov edi, dword [reloc.Common.dll___4CTXStringW__QAEAAV0_ABV0__Z]
push eax
lea ecx, [ebp - 0x21c]
call edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
push 0x2f
lea ecx, [ebp - 0x21c]
call esi
add eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x21c]
call ebx
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call edi
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x220]
call ebx
push 0x2e
lea ecx, [ebp - 0x21c]
call esi
test eax, eax
jl 0x401131
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call dword [sym.imp.Common.dll_public:_class_CTXStringW___thiscall_CTXStringW::Left_int_]
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 4
call edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call ebx
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x401161
push 0x40f55c
lea edx, [ebp - 0x218]
push 0x104
push edx
call dword [sym.imp.Common.dll_wcslcpy]
add esp, 0xc
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401170
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x40119f
mov word [ebp + eax*2 - 0x218], 0x5c
add eax, 1
mov word [ebp + eax*2 - 0x218], cx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea eax, [ebp - 0x218]
push eax
call esi
mov edi, dword [sym.imp.Common.dll_wcslcat]
push str.Tencent_
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call edi
add esp, 0xc
push 0
lea edx, [ebp - 0x218]
push edx
call esi
mov ebx, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea ecx, [ebp - 0x21c]
call ebx
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call edi
mov esi, dword [ebp - 0x224]
add esp, 0xc
mov ecx, esi
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
mov eax, dword [ebp - 0x228]
test eax, eax
mov dword [ebp - 0x22c], 1
jne 0x40121e
mov eax, 0x40f5f8
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str._s_x_s
push esi
call dword [sym.imp.Common.dll_public:_void___cdecl_CTXStringW::Format_wchar_t_const__]
add esp, 0x14
mov ecx, esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov eax, esi
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.0040c926
mov esp, ebp
pop ebp
ret