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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x433024]
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 0x416369
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.0041f6d0
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
mov esi, 0x104
push esi
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edi, [esp + eax*2 + 0x20]
jmp 0x41640c
lea eax, [edi - 2]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x416414
cmp cx, 0x2f
je 0x416414
mov edi, eax
lea eax, [esp + 0x20]
cmp edi, eax
ja 0x4163f8
push edi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [esp + 0x24]
push edi
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 0x416448
mov word [eax], cx
cmp word [esp + 0x20], cx
push esi
lea eax, [esp + 0x24]
jne 0x416460
mov word [esp + 0x24], cx
mov ecx, str.log.tlg
jmp 0x416465
mov ecx, str..tlg
call fcn.004150a6
pop ecx
push 1
lea edi, [ebx + 0x24]
and word [edi], 0
push 0x1a
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [edi], 0
je 0x4164a8
push edi
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [ebx + eax*2 + 0x22], 0x5c
pop ecx
je 0x4164a8
push esi
mov ecx, 0x428334
mov eax, edi
call fcn.004150a6
pop ecx
push esi
mov ecx, str.Tencent_
mov eax, edi
call fcn.004150a6
pop ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov ecx, str.Logs_
mov eax, edi
call fcn.004150a6
pop ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea ecx, [esp + 0x24]
mov eax, edi
call fcn.004150a6
mov dword [esp], str.NoTXLog
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416505
mov byte [ebx + 0x23f], 1
jmp 0x41650b
push ebx
call fcn.00416202
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, esp
call fcn.0041ec06
mov esp, ebp
pop ebp
ret