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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x7b088c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x218], ebx
call edi
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x214]
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 [ebp - 0x210]
xor esi, eax
xor edi, esi
xor edi, dword [ebp - 0x214]
push 0
call fcn.006a2e7e
pop ecx
push 1
xor edi, eax
pop eax
cmove edi, eax
mov eax, dword [ebp - 0x218]
mov dword [eax + 0x38], edi
lea eax, [ebp - 0x214]
push eax
push eax
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call ebx
mov edx, dword [ebp - 0x220]
mov esi, eax
sub edx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
sbb ecx, dword [ebp - 0x224]
push 0
push 0x2710
push ecx
push edx
call fcn.00683830
mov ebx, dword [ebp - 0x218]
sub esi, eax
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebx + 0x3c], esi
xor esi, esi
push esi
push eax
call fcn.00689b00
add esp, 0xc
lea eax, [ebp - 0x20c]
mov edi, 0x104
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.006a37ec
pop ecx
lea esi, [ebp - 0x20c]
push 0x5c
lea esi, [esi + eax*2]
pop edx
jmp 0x519acd
movzx eax, word [esi - 2]
cmp ax, dx
je 0x519ad7
cmp eax, 0x2f
je 0x519ad7
add esi, 0xfffffffe
lea eax, [ebp - 0x20c]
cmp esi, eax
ja 0x519abc
push esi
call fcn.006a37ec
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00689580
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call fcn.0068a697
add esp, 0x18
test eax, eax
je 0x519b0c
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x20c], 0
lea eax, [ebp - 0x20c]
jne 0x519b2a
push str.log.tlg
push edi
push eax
call sym.txupd.exe_wcslcpy
jmp 0x519b36
push str..tlg
push edi
push eax
call sym.txupd.exe_wcslcat
add esp, 0xc
lea edi, [ebx + 0x40]
xor eax, eax
mov word [edi], ax
push 1
push 0x1a
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor esi, esi
cmp word [edi], si
je 0x519b7e
push edi
call fcn.006a37ec
pop ecx
push 0x5c
pop ecx
cmp word [ebx + eax*2 + 0x3e], cx
je 0x519b7e
push 0x6fdc28
push 0x104
push edi
call sym.txupd.exe_wcslcat
add esp, 0xc
push str.Tencent_
push 0x104
push edi
call sym.txupd.exe_wcslcat
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call esi
push str.Logs_
push 0x104
push edi
call sym.txupd.exe_wcslcat
add esp, 0xc
xor eax, eax
push eax
push edi
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
push edi
call sym.txupd.exe_wcslcat
add esp, 0xc
xor eax, eax
push str.NoTXLog
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x519beb
mov byte [ebx + 0x25b], 1
jmp 0x519bf7
push 0xa00000
mov ecx, ebx
call fcn.0051a390
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00682c16
mov esp, ebp
pop ebp
ret