Function at 0x408950
Capabilities:
Check for time delay via gettickcount
Check os version
Get system information on windows
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x40e034]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push pe_nt_image_headers32
mov dword [esp + 0x10], eax
xor ebx, ebx
lea eax, [esp + 0x168]
push ebx
push eax
call sub.MSVCR100.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [esp + 0x160]
mov esi, 0x114
push eax
mov dword [esp + 0x164], esi
call edi
cmp dword [esp + 0x164], 6
jb 0x408b71
call fcn.00408f9d
test al, al
je 0x408b71
mov eax, dword [0x40fe40]
or eax, dword [0x40fe44]
jne 0x408ac9
cmp byte [0x40fe30], bl
jne 0x408a6e
lea eax, [esp + 0x160]
push eax
mov dword [esp + 0x164], esi
call edi
test eax, eax
je 0x408a0c
cmp dword [esp + 0x164], 6
setb al
mov byte [0x40fe31], al
cmp al, bl
jne 0x408a67
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, ebx
je 0x408a60
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EventWrite
push esi
call edi
mov dword [0x40fe34], eax
cmp eax, ebx
je 0x408a60
push str.EventRegister
push esi
call edi
mov dword [0x40f5b8], eax
cmp eax, ebx
je 0x408a56
push str.EventUnregister
push esi
call edi
mov dword [0x40fe38], eax
cmp eax, ebx
jne 0x408a67
mov dword [0x40f5b8], 0x408791
mov byte [0x40fe31], 1
mov byte [0x40fe30], 1
cmp byte [0x40fe31], bl
jne 0x408a92
push 0x40fe40
push 0x40fe48
push 0x408741
push 0x40c0a8
call dword [0x40f5b8]
jmp 0x408ac9
mov ecx, 0x40fe48
push ecx
push ebx
mov eax, ecx
cdq
push ebx
mov dword [0x40fe44], edx
lea edx, [esp + 0x20]
push edx
push 1
mov dword [0x40fe40], eax
mov eax, 0x40c0a8
push eax
push ecx
push 0x4086d6
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
cmp dword [0x40fe6c], ebx
je 0x408b1e
mov al, byte [0x40fe70]
cmp byte [0x40fe31], bl
je 0x408ae6
cmp al, 4
jae 0x408b19
cmp al, bl
jmp 0x408b17
cmp al, 4
jae 0x408aee
cmp al, bl
jne 0x408b1e
mov ecx, dword [0x40fe5c]
mov edx, 0x80000000
and ecx, edx
xor eax, eax
or eax, ecx
je 0x408b1e
mov ecx, dword [0x40fe64]
mov eax, ecx
and eax, edx
xor edx, edx
cmp edx, dword [0x40fe60]
jne 0x408b1e
cmp eax, ecx
jne 0x408b1e
call fcn.004088f8
cmp byte [0x40fe30], bl
je 0x408b71
mov esi, dword [0x40fe40]
mov eax, dword [0x40fe44]
mov ecx, esi
or ecx, eax
je 0x408b71
cmp byte [0x40fe31], bl
jne 0x408b49
push eax
push esi
call dword [0x40fe38]
jmp 0x408b65
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [esi + 0x20], ebx
mov byte [esi + 0x28], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [0x40fe40], ebx
mov dword [0x40fe44], ebx
mov edi, dword [sym.imp.MSVCR100.dll_memset]
mov esi, 0x11c
push esi
lea eax, [esp + 0x44]
push ebx
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.00408f9d
cmp al, bl
jne 0x408bfb
cmp dword [esp + 0x44], 5
jne 0x408bfb
cmp dword [esp + 0x48], 2
jne 0x408bfb
push 0x24
lea eax, [esp + 0x20]
push ebx
push eax
call edi
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
inc eax
cmp dword [esp + 0x30], eax
jbe 0x408bfb
xor esi, esi
xor edx, edx
xor ecx, ecx
test dword [esp + 0x2c], eax
je 0x408be1
inc edx
cmp edx, 2
jge 0x408beb
add eax, eax
inc ecx
cmp ecx, 0x20
jl 0x408bd5
jmp 0x408bed
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push dword [esp + 0x48]
movzx eax, byte [esp + 0x15e]
push dword [esp + 0x48]
mov dword [esp + 0x18], ebx
push eax
call fcn.004024a8
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x408c44
push 0x40b478
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.ZwQueryValueKey
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x408c44
call fcn.0040237c
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
xor eax, eax
push 0x208
mov word [esp + 0x27c], ax
lea eax, [esp + 0x27e]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, esi
sub eax, dword [esp + 0xc]
push eax
push esi
push dword [esp + 0x14]
mov eax, 0x104
push str._QQPerfLog__dwMainEntry___lu___dwSH___lu___dwDelete___lu
push eax
push eax
lea eax, [esp + 0x290]
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf_s]
add esp, 0x1c
lea eax, [esp + 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [esp + 0xc], 0xffffffff
mov esi, str.HummerEngine.dll
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
jne 0x408cbd
or eax, 0xffffffff
jmp 0x408d3a
push str.RunQQHummerEngine
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
jne 0x408cd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408d0a
call section..text
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [ebp + 8]
call edi
pop ecx
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x408d0a
push str.UninitializeCom
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x408d0a
call eax
cmp dword [esp + 0x14], ebx
je 0x408d36
call 0x4060ee
mov esi, eax
cmp esi, ebx
je 0x408d2b
xor eax, eax
inc eax
call fcn.00406323
push 2
pop eax
call fcn.00406323
cmp dword [esp + 0x10], ebx
je 0x408d36
call fcn.004023ed
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004097e2
mov esp, ebp
pop ebp
ret 4