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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x43700c]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x1c], ebx
call edi
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov esi, eax
call edi
mov edi, dword [esp + 0x14]
xor esi, eax
xor eax, eax
xor edi, esi
xor edi, dword [esp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
pop ecx
push 1
xor edi, eax
pop eax
cmove edi, eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x1c], edi
lea eax, [esp + 0x10]
push eax
push eax
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call ebx
mov edx, dword [esp + 0x20]
mov esi, eax
sub edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sbb ecx, dword [esp + 0x2c]
xor edi, edi
push edi
push 0x2710
push ecx
push edx
call fcn.004232a0
mov ebx, dword [esp + 0x1c]
sub esi, eax
push 0x208
lea eax, [esp + 0x34]
push edi
push eax
mov dword [ebx + 0x20], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x30]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea eax, [esp + 0x30]
push eax
call edi
pop ecx
lea esi, [esp + 0x30]
push 0x5c
lea esi, [esi + eax*2]
pop edx
jmp 0x41a87b
movzx eax, word [esi - 2]
cmp ax, dx
je 0x41a883
cmp eax, 0x2f
je 0x41a883
add esi, 0xfffffffe
lea eax, [esp + 0x30]
cmp esi, eax
ja 0x41a86a
push esi
call edi
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x34]
push esi
push eax
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
lea eax, [esp + 0x30]
push 0x2e
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x41a8b6
xor ecx, ecx
mov word [eax], cx
cmp word [esp + 0x30], 0
lea ecx, [esp + 0x30]
mov esi, 0x104
mov edx, esi
jne 0x41a8d7
xor eax, eax
mov word [esp + 0x30], ax
push str.log.tlg
jmp 0x41a8dc
push str..tlg
call fcn.0041967c
pop ecx
push 1
lea edi, [ebx + 0x24]
xor eax, eax
push 0x1a
push edi
mov word [edi], ax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
cmp word [edi], ax
je 0x41a924
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push 0x5c
pop ecx
cmp word [ebx + eax*2 + 0x22], cx
je 0x41a924
push 0x42b7b4
mov edx, esi
mov ecx, edi
call fcn.0041967c
pop ecx
push str.Tencent_
mov edx, esi
mov ecx, edi
call fcn.0041967c
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
pop ecx
push eax
push edi
call esi
push str.Logs_
mov edx, 0x104
mov ecx, edi
call fcn.0041967c
pop ecx
xor eax, eax
push eax
push edi
call esi
lea eax, [esp + 0x30]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.0041967c
xor eax, eax
mov dword [esp], str.NoTXLog
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a98c
mov byte [ebx + 0x23f], 1
jmp 0x41a993
mov ecx, ebx
call fcn.0041a660
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004221ab
mov esp, ebp
pop ebp
ret