Function at 0x51c040
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.00403644
lea eax, [esp + 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x51c287
push 0
push 0x51c290
push 0
push eax
call sub.user32.dll_FindWindowExW
test eax, eax
je 0x51c287
push 0
push 0x51c2ac
push 0
push eax
call sub.user32.dll_FindWindowExW
test eax, eax
je 0x51c287
push 0
push 0x51c2c8
push 0
push eax
call sub.user32.dll_FindWindowExW
test eax, eax
je 0x51c287
push 0
push 0x51c2e8
push 0
push eax
call sub.user32.dll_FindWindowExW
mov esi, eax
test esi, esi
je 0x51c287
push 0
push 0
push 0x418
push esi
call sub.user32.dll_SendMessageW
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jle 0x51c287
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 0x51c287
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebp, eax
test ebp, ebp
je 0x51c287
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 0x51c287
or edi, 0xffffffff
cmp edi, dword [esp + 4]
jge 0x51c26f
inc edi
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x417
push esi
call sub.user32.dll_SendMessageW
test eax, eax
je 0x51c265
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 0x51c265
test byte [esp + 0x55], 0xd
jne 0x51c265
movzx eax, byte [esp + 0x54]
and al, 8
cmp al, 8
je 0x51c265
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 0x51c265
cmp dword [esp + 0x14], 0
je 0x51c265
mov eax, dword [0x555c10]
mov eax, dword [eax]
cmp byte [eax + 0xcf], 0
je 0x51c200
mov eax, dword [0x555c10]
mov eax, dword [eax]
cmp dword [eax + 0x40], 0
je 0x51c200
mov eax, dword [0x555c10]
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
call fcn.00465d08
mov dword [esp + 0x10], eax
jmp 0x51c211
mov eax, dword [0x555c10]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
mov dword [esp + 0x10], eax
mov eax, dword [esp]
cmp eax, dword [esp + 0x10]
jne 0x51c265
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x41d
push esi
call sub.user32.dll_SendMessageW
test eax, eax
je 0x51c242
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 0x51c26f
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.004084e4
jmp 0x51c26f
cmp edi, dword [esp + 4]
jl 0x51c151
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_1
add esp, 0x60
pop ebp
pop edi
pop esi
pop ebx
ret