Function at 0x475080
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2c66
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4f9008]
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.004094a0
push str.wtsapi32.dll
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call sym.XNewLook.exe_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 0x475123
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.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x475163
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x475159
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475321
push edx
push ecx
call fcn.00475891
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.004094a0
push str.Kernel32.dll
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call sym.XNewLook.exe_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 0x4751e6
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.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x475226
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47521c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475326
push edx
push ecx
call fcn.00475891
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 0x475275
test esi, esi
je 0x475275
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 0x4752e8
cmp eax, 0x1b6e
jne 0x4752e8
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4752e8
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 0x4752a6
call edi
mov dword [ebx + 4], eax
jmp 0x4752e8
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4752c1
call edi
mov dword [ebx + 4], eax
jmp 0x4752e8
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 0x4752e1
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 0x4752fb
push eax
call esi
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x475305
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.00475880
mov esp, ebp
pop ebp
ret
call fcn.0047cd61
call fcn.0047cd61
int3