Function at 0x412ab7
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x428024]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
call esi
and dword [esp + 8], 0
mov dword [ebx + 0x18], eax
xor eax, eax
lea edi, [esp + 0xc]
stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [esp + 0x10], eax
call esi
mov esi, dword [esp + 0xc]
xor dword [esp + 0x10], eax
xor esi, dword [esp + 0x10]
push 0
xor esi, dword [esp + 0xc]
call dword [sym.imp.MSVCR80.dll__time64]
xor esi, eax
pop ecx
jne 0x412b21
inc esi
lea eax, [esp + 8]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [ebx + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call edi
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
sub eax, edx
sbb ecx, edi
xor edi, edi
push edi
push 0x2710
push ecx
push eax
call fcn.00419f30
sub esi, eax
push 0x206
lea eax, [esp + 0x26]
push edi
push eax
mov dword [ebx + 0x20], esi
mov word [esp + 0x2c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.MSVCR80.dll_wcslen]
lea eax, [esp + 0x20]
push eax
call edi
pop ecx
lea esi, [esp + eax*2 + 0x20]
jmp 0x412bc5
lea eax, [esi - 2]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x412bcd
cmp cx, 0x2f
je 0x412bcd
mov esi, eax
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x412bb1
push esi
call edi
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [esp + 0x24]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
lea eax, [esp + 0x20]
push 0x2e
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
pop ecx
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x412bfd
mov word [eax], cx
cmp word [esp + 0x20], cx
lea eax, [esp + 0x20]
jne 0x412c14
mov word [esp + 0x20], cx
mov ecx, str.log.tlg
jmp 0x412c19
mov ecx, str..tlg
call fcn.00411d0d
push 1
lea esi, [ebx + 0x24]
and word [esi], 0
push 0x1a
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [esi], 0
je 0x412c55
push esi
call edi
cmp word [ebx + eax*2 + 0x22], 0x5c
pop ecx
je 0x412c55
mov ecx, 0x420fb4
mov eax, esi
call fcn.00411d0d
mov ecx, str.Tencent_
mov eax, esi
call fcn.00411d0d
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
mov ecx, str.Logs_
mov eax, esi
call fcn.00411d0d
push 0
push esi
call edi
lea ecx, [esp + 0x20]
mov eax, esi
call fcn.00411d0d
push str.NoTXLog
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412ca9
mov byte [ebx + 0x23f], 1
jmp 0x412caf
push ebx
call fcn.004129b6
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, esp
call fcn.00419580
mov esp, ebp
pop ebp
ret