Function at 0x10010603
Capabilities:
Check for foreground window switch

Disassembly:
push 0x25c
mov eax, 0x1006aadf
call fcn.1002f984
xor ebx, ebx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], ebx
call fcn.10010ee9
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001084b
mov edx, esi
lea ecx, [ebp - 0x248]
call fcn.1001a589
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.1001a506
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 2
and dword [ebp - 0x250], 0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
test eax, eax
je 0x10010829
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 1
push eax
mov ecx, 0x10090afc
call fcn.10010d9c
cmp dword [eax + 0x14], 8
jb 0x100106c1
mov eax, dword [eax]
test eax, eax
je 0x10010829
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 1
push eax
mov ecx, 0x10090afc
call fcn.10010d9c
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x100106ee
mov ecx, dword [ecx]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push ecx
cmovae eax, dword [ebp - 0x248]
push eax
call ebx
test eax, eax
jne 0x10010829
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
test eax, eax
je 0x10010829
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 2
push eax
mov ecx, 0x10090afc
call fcn.10010d9c
cmp dword [eax + 0x14], 8
jb 0x1001074d
mov eax, dword [eax]
test eax, eax
je 0x10010829
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 2
push eax
mov ecx, 0x10090afc
call fcn.10010d9c
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x1001077a
mov ecx, dword [ecx]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push ecx
cmovae eax, dword [ebp - 0x230]
push eax
call ebx
test eax, eax
jne 0x10010829
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x250], 0
je 0x10010829
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x258]
call fcn.10010904
test eax, eax
jne 0x10010829
push dword [ebp - 0x250]
push str.qq_instance_found:__d
push str.qqdbg
call fcn.1002b6a8
add esp, 0xc
lea eax, [ebp - 0x250]
push dword [ebp - 0x24c]
push eax
push ecx
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x258]
call fcn.100117de
push 0x40
call fcn.1002f16b
pop ecx
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 3
mov ecx, eax
push dword [ebp - 0x250]
call fcn.1000e009
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1000e0b1
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.10005895
push 0
push 1
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.10005895
mov eax, dword [ebp - 0x258]
mov esi, dword [eax]
mov dword [ebp - 0x24c], esi
cmp esi, eax
je 0x100108d5
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10047f90
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x218]
add esp, 0xc
push 0x104
call fcn.10019a20
test eax, eax
jne 0x100108bc
push dword [esi + 0x10]
push str.QQ_instance_exit__clear_it:__d
push str.qqdbg
call fcn.1002b6a8
add esp, 0xc
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x258]
push esi
push eax
call fcn.10010985
mov esi, dword [eax]
mov dword [ebp - 0x24c], esi
jmp 0x100108cd
lea ecx, [ebp - 0x24c]
call fcn.10005335
mov esi, dword [ebp - 0x24c]
cmp esi, dword [ebp - 0x258]
jne 0x1001085d
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10010634