Function at 0x415c6b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x432024]
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 0x415cd5
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.0041efa0
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 0x415d78
lea eax, [edi - 2]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x415d80
cmp cx, 0x2f
je 0x415d80
mov edi, eax
lea eax, [esp + 0x20]
cmp edi, eax
ja 0x415d64
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 0x415db4
mov word [eax], cx
cmp word [esp + 0x20], cx
push esi
lea eax, [esp + 0x24]
jne 0x415dcc
mov word [esp + 0x24], cx
mov ecx, str.log.tlg
jmp 0x415dd1
mov ecx, str..tlg
call fcn.00414a12
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 0x415e14
push edi
call dword [sym.imp.MSVCR80.dll_wcslen]
cmp word [ebx + eax*2 + 0x22], 0x5c
pop ecx
je 0x415e14
push esi
mov ecx, 0x427324
mov eax, edi
call fcn.00414a12
pop ecx
push esi
mov ecx, str.Tencent_
mov eax, edi
call fcn.00414a12
pop ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov ecx, str.Logs_
mov eax, edi
call fcn.00414a12
pop ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea ecx, [esp + 0x24]
mov eax, edi
call fcn.00414a12
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 0x415e71
mov byte [ebx + 0x23f], 1
jmp 0x415e77
push ebx
call fcn.00415b6e
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, esp
call fcn.0041e4d6
mov esp, ebp
pop ebp
ret