Function at 0x786964
Capabilities:
Allocate or change rwx memory
Find taskbar
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa0
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.00405d9c
lea eax, [esp + 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x786bab
push 0
push 0x786bb4
push 0
push eax
call sub.user32.dll_FindWindowExW
test eax, eax
je 0x786bab
push 0
push 0x786bd0
push 0
push eax
call sub.user32.dll_FindWindowExW
test eax, eax
je 0x786bab
push 0
push 0x786bec
push 0
push eax
call sub.user32.dll_FindWindowExW
test eax, eax
je 0x786bab
push 0
push 0x786c0c
push 0
push eax
call sub.user32.dll_FindWindowExW
mov esi, eax
test esi, esi
je 0x786bab
push 0
push 0
push 0x418
push esi
call sub.user32.dll_SendMessageW
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jle 0x786bab
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push esi
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x786bab
mov eax, dword [esp + 8]
push eax
push 0
push 0x1fffff
call sub.kernel32.dll_OpenProcess
mov ebp, eax
test ebp, ebp
je 0x786bab
push 0x40
push 0x1000
push 0x1000
push 0
push ebp
call sub.kernel32.dll_VirtualAllocEx
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x786bab
or edi, 0xffffffff
cmp edi, dword [esp + 4]
jge 0x786b93
inc edi
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x417
push esi
call sub.user32.dll_SendMessageW
test eax, eax
je 0x786b89
lea eax, [esp + 0x14]
push eax
push 0x18
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x18]
push eax
push ebp
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x786b89
test byte [esp + 0x55], 0xd
jne 0x786b89
movzx eax, byte [esp + 0x54]
and al, 8
cmp al, 8
je 0x786b89
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x64]
push eax
push ebp
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x786b89
cmp dword [esp + 0x14], 0
je 0x786b89
mov eax, dword [0x802ef8]
mov eax, dword [eax]
cmp byte [eax + 0xeb], 0
je 0x786b24
mov eax, dword [0x802ef8]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
je 0x786b24
mov eax, dword [0x802ef8]
mov eax, dword [eax]
mov eax, dword [eax + 0x58]
call fcn.0051cd60
mov dword [esp + 0x10], eax
jmp 0x786b35
mov eax, dword [0x802ef8]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
mov dword [esp + 0x10], eax
mov eax, dword [esp]
cmp eax, dword [esp + 0x10]
jne 0x786b89
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x41d
push esi
call sub.user32.dll_SendMessageW
test eax, eax
je 0x786b66
lea eax, [esp + 0x14]
push eax
push 0x10
push ebx
mov eax, dword [esp + 0x18]
push eax
push ebp
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0x14], 0
je 0x786b93
lea eax, [esp + 0x18]
push eax
push esi
call sub.user32.dll_GetWindowRect
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
call fcn.00410c38
jmp 0x786b93
cmp edi, dword [esp + 4]
jl 0x786a75
push 0x8000
push 0
mov eax, dword [esp + 0x14]
push eax
push ebp
call sub.kernel32.dll_VirtualFreeEx
push ebp
call sub.kernel32.dll_CloseHandle
add esp, 0x60
pop ebp
pop edi
pop esi
pop ebx
ret