Function at 0x40aba0
Capabilities:
Check if file exists
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4160eb
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x42001c]
xor eax, esp
mov dword [esp + 0x444], eax
push esi
push edi
mov eax, dword [0x42001c]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x104
lea eax, [esp + 0x248]
xor edi, edi
push eax
mov dword [esp + 0x468], edi
push edi
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40ac2e
lea ecx, [esp + 0x20]
mov dword [esp + 0x460], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x40adcb
mov esi, dword [sym.imp.MSVCR80.dll_wcsrchr]
lea ecx, [esp + 0x244]
push 0x5c
push ecx
call esi
add esp, 8
cmp eax, edi
je 0x40ac4a
mov word [eax], di
lea edx, [esp + 0x244]
push 0x5c
push edx
call esi
add esp, 8
cmp eax, edi
je 0x40ac60
mov word [eax], di
lea eax, [esp + 0x244]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ac70
sub eax, edx
sar eax, 1
cmp eax, 2
jbe 0x40ac12
push 0x418f24
push ebx
call dword [sym.imp.MSVCR80.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x40ac12
push 2
push edi
push esi
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
push esi
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 4
cmp eax, edi
jne 0x40acda
push esi
push 1
lea eax, [esp + 0x18]
push 3
push eax
mov byte [esp + 0x20], 0xef
mov byte [esp + 0x21], 0xbb
mov byte [esp + 0x22], 0xbf
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push 0x40a830
push 1
lea edx, [esp + 0x250]
push 1
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
call fcn.0040a380
add esp, 0x14
push 0x206
lea eax, [esp + 0x42]
push edi
push eax
mov word [esp + 0x48], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x2b
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esp + eax*2 + 0x3a], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40ad53
push 0x4189c0
lea eax, [esp + 0x40]
push eax
call edi
push str.TencentTXSSO
lea ecx, [esp + 0x40]
push ecx
call edi
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ad89
lea eax, [esp + 0x14]
push eax
push 0x40a830
push 1
lea ecx, [esp + 0x48]
push 1
push ecx
call fcn.0040a380
add esp, 0x14
mov edi, dword [sym.imp.MSVCR80.dll_fprintf]
push str._r_n_________________________________________r_n
push esi
call edi
mov edx, dword [esp + 0x24]
push edx
push str.Total_Files:__d
push esi
call edi
add esp, 0x14
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x460], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.00413efc
mov esp, ebp
pop ebp
ret