Function at 0x10068300
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d8126
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x101120a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x11
push str.WTSQueryUserToken
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10011e40
push str.wtsapi32.dll
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_char_const__
xor edi, edi
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x84], edi
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
mov dword [ebp - 0x80], ecx
test ecx, ecx
je 0x100683a3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp - 0x84], edi
lea ecx, [ebp - 0x5c]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100683e3
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100683d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100685a1
push edx
push ecx
call fcn.1008bfe4
add esp, 8
push 0x1c
push str.WTSGetActiveConsoleSessionId
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10011e40
push str.Kernel32.dll
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call sym.XNewLookSch.dll_public:_void___thiscall_LString::constructor_char_const__
xor esi, esi
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
mov dword [ebp - 0x8c], esi
cmovae eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x88], eax
test eax, eax
je 0x10068466
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x8c], esi
lea ecx, [ebp - 0x78]
call sym.XNewLookSch.dll_public_virtual:_void___thiscall_LString::destructor_void_
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x100684a6
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006849c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100685a6
push edx
push ecx
call fcn.1008bfe4
add esp, 8
test edi, edi
mov dword [ebp - 0x30], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
je 0x100684f5
test esi, esi
je 0x100684f5
call esi
cmp eax, 0xffffffff
mov ecx, 1
push ebx
cmove eax, ecx
push eax
call dword [ebp - 0x84]
test eax, eax
setne al
mov byte [ebx + 8], al
call edi
cmp byte [ebx + 8], 0
mov dword [ebx + 4], eax
jne 0x10068568
cmp eax, 0x1b6e
jne 0x10068568
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x10068568
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x10068526
call edi
mov dword [ebx + 4], eax
jmp 0x10068568
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10068541
call edi
mov dword [ebx + 4], eax
jmp 0x10068568
push ebx
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
test edi, edi
je 0x10068561
mov byte [ebx + 8], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x1006857b
push eax
call esi
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x10068585
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008bffe
mov esp, ebp
pop ebp
ret
call fcn.10092486
call fcn.10092486
int3