Function at 0x486c10
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x2668
call fcn.004c47c0
mov eax, dword [0x66e5c0]
xor eax, esp
mov dword [esp + 0x2664], eax
mov eax, dword [esp + 0x2670]
push ebx
push ebp
mov ebp, dword [esp + 0x2674]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push str.Kernel32.dll
mov dword [esp + 0x3c], eax
mov dword [ebp], 0
call esi
test eax, eax
je 0x487014
push str.WTSGetActiveConsoleSessionId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x487014
call eax
mov dword [esp + 0x44], eax
cmp eax, 0xffffffff
je 0x487014
push str.Psapi.dll
call esi
push str.Advapi32.dll
mov edi, eax
call esi
push str.Wtsapi32.dll
mov ebx, eax
call esi
mov dword [esp + 0x2c], eax
test edi, edi
je 0x487014
test ebx, ebx
je 0x487014
test eax, eax
je 0x487014
push str.EnumProcesses
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleFileNameExA
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessImageFileNameA
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x2c], eax
call edi
push 0x5d5e0c
push ebx
mov dword [esp + 0x28], eax
call edi
push 0x5d5e20
push ebx
mov dword [esp + 0x30], eax
call edi
mov dword [esp + 0x40], eax
test esi, esi
je 0x487014
cmp dword [esp + 0x24], 0
jne 0x486d14
cmp dword [esp + 0x20], 0
je 0x487014
cmp dword [esp + 0x28], 0
je 0x487014
test eax, eax
je 0x487014
push 0x2000
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.004ce740
add esp, 0xc
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0x2000
lea eax, [esp + 0x50]
push eax
call esi
test eax, eax
je 0x487014
mov eax, dword [esp + 0x1c]
xor ebx, ebx
shr eax, 2
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], ebx
cmp eax, 0x800
jb 0x486d8e
mov dword [esp + 0x34], 0x800
jmp 0x486d96
test eax, eax
je 0x48700b
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [eax]
push 0x209
lea eax, [esp + 0x246c]
push 0
push eax
call fcn.004ce740
push 0x105
lea eax, [esp + 0x2370]
push 0
push eax
call fcn.004ce740
push 0x105
lea eax, [esp + 0x2274]
push 0
push eax
call fcn.004ce740
push 0x105
lea eax, [esp + 0x2070]
push 0
push eax
call fcn.004ce740
push 0x105
lea eax, [esp + 0x2184]
push 0
push eax
call fcn.004ce740
add esp, 0x3c
push dword [esp + ebx*4 + 0x48]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x486e38
push dword [esp + ebx*4 + 0x48]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x486fc1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x486e54
push 0x208
lea ecx, [esp + 0x246c]
push ecx
push esi
call eax
test eax, eax
jne 0x486e7a
mov eax, dword [esp + 0x24]
test eax, eax
je 0x486fa9
push 0x208
lea ecx, [esp + 0x246c]
push ecx
push 0
push esi
call eax
test eax, eax
je 0x486fa9
push 0x104
lea eax, [esp + 0x2154]
push eax
push 0x104
lea eax, [esp + 0x2054]
push eax
push 0x104
lea eax, [esp + 0x226c]
push eax
push 0x104
lea eax, [esp + 0x237c]
push eax
lea eax, [esp + 0x2488]
push eax
call fcn.004dd9b8
lea eax, [esp + 0x206c]
push eax
push str.explorer
call fcn.004dd6b8
add esp, 0x2c
test eax, eax
jne 0x486fa9
lea eax, [esp + 0x2150]
push eax
push 0x5d5e40
call fcn.004dd6b8
add esp, 8
test eax, eax
jne 0x486fa9
push ebp
push 0x2000e
push esi
call dword [esp + 0x34]
test eax, eax
je 0x486fa9
mov eax, dword [ebp]
test eax, eax
je 0x486fa9
lea ecx, [esp + 0x3c]
push ecx
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0xc
push eax
call dword [esp + 0x54]
test eax, eax
je 0x486fa9
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x14], eax
je 0x486ffe
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSQuerySessionInformationW
push dword [esp + 0x30]
call edi
push str.WTSFreeMemory
push dword [esp + 0x30]
mov ebx, eax
call edi
mov edi, eax
test ebx, ebx
je 0x486f9f
test edi, edi
je 0x486f9f
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], 0
push eax
push 8
push dword [esp + 0x20]
push 0
call ebx
test eax, eax
je 0x486f9f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x486f9f
cmp dword [esp + 0x30], 4
jne 0x486f9c
cmp dword [eax], 0
je 0x486fd9
push eax
call edi
mov ebx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp]
test eax, eax
je 0x486fba
push eax
call edi
mov dword [ebp], 0
test esi, esi
je 0x486fc1
push esi
call edi
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x34]
jb 0x486da0
cmp dword [ebp], 0
setne al
jmp 0x487016
push eax
call edi
push esi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
cmp dword [ebp], 0
setne al
jmp 0x487016
push esi
call edi
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
cmp dword [ebp], 0
setne al
jmp 0x487016
xor al, al
mov ecx, dword [esp + 0x2674]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c3ed9
add esp, 0x2668
ret 8