Function at 0x412d45
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x429024]
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 0x412daf
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.0041a1b0
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 0x412e53
lea eax, [esi - 2]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x412e5b
cmp cx, 0x2f
je 0x412e5b
mov esi, eax
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x412e3f
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 0x412e8b
mov word [eax], cx
cmp word [esp + 0x20], cx
lea eax, [esp + 0x20]
jne 0x412ea2
mov word [esp + 0x20], cx
mov ecx, str.log.tlg
jmp 0x412ea7
mov ecx, str..tlg
call fcn.00411f99
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 0x412ee3
push esi
call edi
cmp word [ebx + eax*2 + 0x22], 0x5c
pop ecx
je 0x412ee3
mov ecx, 0x421fb4
mov eax, esi
call fcn.00411f99
mov ecx, str.Tencent_
mov eax, esi
call fcn.00411f99
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
mov ecx, str.Logs_
mov eax, esi
call fcn.00411f99
push 0
push esi
call edi
lea ecx, [esp + 0x20]
mov eax, esi
call fcn.00411f99
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 0x412f37
mov byte [ebx + 0x23f], 1
jmp 0x412f3d
push ebx
call fcn.00412c44
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, esp
call fcn.00419804
mov esp, ebp
pop ebp
ret