Function at 0x5d9a94
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.004c0234
lea eax, [esp + 0x28]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
call sub.USER32.DLL_GetDesktopWindow
test eax, eax
je 0x5d9cdb
push 0
push 0x5d9ce4
push 0
push eax
call sub.USER32.DLL_FindWindowExW
test eax, eax
je 0x5d9cdb
push 0
push 0x5d9d00
push 0
push eax
call sub.USER32.DLL_FindWindowExW
test eax, eax
je 0x5d9cdb
push 0
push 0x5d9d1c
push 0
push eax
call sub.USER32.DLL_FindWindowExW
test eax, eax
je 0x5d9cdb
push 0
push 0x5d9d3c
push 0
push eax
call sub.USER32.DLL_FindWindowExW
mov esi, eax
test esi, esi
je 0x5d9cdb
push 0
push 0
push 0x418
push esi
call sub.USER32.DLL_SendMessageW
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jle 0x5d9cdb
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 0x5d9cdb
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov ebp, eax
test ebp, ebp
je 0x5d9cdb
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 0x5d9cdb
or edi, 0xffffffff
cmp edi, dword [esp + 4]
jge 0x5d9cc3
inc edi
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x417
push esi
call sub.USER32.DLL_SendMessageW
test eax, eax
je 0x5d9cb9
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 0x5d9cb9
test byte [esp + 0x55], 0xd
jne 0x5d9cb9
movzx eax, byte [esp + 0x54]
and al, 8
cmp al, 8
je 0x5d9cb9
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 0x5d9cb9
cmp dword [esp + 0x14], 0
je 0x5d9cb9
mov eax, dword [0x7b9688]
mov eax, dword [eax]
cmp byte [eax + 0xcf], 0
je 0x5d9c54
mov eax, dword [0x7b9688]
mov eax, dword [eax]
cmp dword [eax + 0x40], 0
je 0x5d9c54
mov eax, dword [0x7b9688]
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
call fcn.005333f8
mov dword [esp + 0x10], eax
jmp 0x5d9c65
mov eax, dword [0x7b9688]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
mov dword [esp + 0x10], eax
mov eax, dword [esp]
cmp eax, dword [esp + 0x10]
jne 0x5d9cb9
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x41d
push esi
call sub.USER32.DLL_SendMessageW
test eax, eax
je 0x5d9c96
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 0x5d9cc3
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.004a7ca8
jmp 0x5d9cc3
cmp edi, dword [esp + 4]
jl 0x5d9ba5
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