Function at 0x41e130
Capabilities:
Check for time delay via gettickcount
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x465100]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
call esi
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call esi
mov esi, dword [esp + 0xc]
xor edi, eax
xor esi, edi
xor esi, dword [esp + 8]
push 0
call fcn.0043bca3
add esp, 4
xor esi, eax
jne 0x41e195
mov esi, 1
lea ecx, [esp + 8]
push ecx
mov edx, ecx
push edx
mov eax, ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [ebx + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push 0
sbb ecx, dword [esp + 0x18]
push 0x2710
push ecx
push eax
call fcn.00440890
sub esi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2a]
push ecx
mov dword [ebx + 0x20], esi
mov word [esp + 0x2c], ax
call fcn.0043f7e0
add esp, 0xc
push 0x104
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e220
sub eax, edx
sar eax, 1
lea ecx, [esp + eax*2 + 0x20]
lea eax, [esp + 0x20]
cmp ecx, eax
jbe 0x41e259
jmp 0x41e240
movzx eax, word [ecx - 2]
cmp eax, 0x5c
je 0x41e259
cmp eax, 0x2f
je 0x41e259
add ecx, 0xfffffffe
lea edx, [esp + 0x20]
cmp ecx, edx
ja 0x41e240
mov eax, ecx
lea esi, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41e260
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
lea ecx, [esp + 0x28]
push ecx
call fcn.0043b790
add esp, 0xc
lea edx, [esp + 0x20]
push 0x2e
push edx
call fcn.0043c850
add esp, 8
test eax, eax
je 0x41e29a
xor ecx, ecx
mov word [eax], cx
cmp word [esp + 0x20], 0
lea eax, [esp + 0x20]
jne 0x41e2b4
xor edx, edx
mov word [esp + 0x20], dx
mov ecx, str.log.tlg
jmp 0x41e2b9
mov ecx, str..tlg
call fcn.0041dfa0
push 1
lea esi, [ebx + 0x24]
push 0x1a
xor eax, eax
push esi
mov word [esi], ax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [esi], 0
je 0x41e306
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e2e3
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 + 0x22], 0x5c
je 0x41e306
mov ecx, 0x45812c
mov eax, esi
call fcn.0041dfa0
mov ecx, str.Tencent_
mov eax, esi
call fcn.0041dfa0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
mov ecx, str.Logs_
mov eax, esi
call fcn.0041dfa0
push 0
push esi
call edi
lea ecx, [esp + 0x20]
mov eax, esi
call fcn.0041dfa0
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 0x41e36c
mov byte [ebx + 0x23f], 1
pop edi
pop esi
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.0043b634
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0041e020
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor ecx, esp
call fcn.0043b634
mov esp, ebp
pop ebp
ret