Function at 0x53a2c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607e75
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x697bc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x649], 0
mov dword [ebp - 0x648], 0
lea eax, [ebp - 0x648]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [ebp - 0x648]
push edx
push 0
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0
jne 0x53a338
mov al, byte [ebp - 0x649]
jmp 0x53a69a
push 0x40
push 0x1000
push 0x10
push 0
mov eax, dword [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x664], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov ecx, dword [ebp - 0x650]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x660], eax
cmp dword [ebp - 0x660], 0
jne 0x53a38b
mov al, byte [ebp - 0x649]
jmp 0x53a69a
mov dword [ebp - 0x644], 0
mov byte [ebp - 0x610], 0
push 0x3ff
push 0
lea edx, [ebp - 0x60f]
push edx
call fcn.005c63d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x210], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.005c63d0
add esp, 0xc
push 4
lea ecx, [ebp - 0x618]
call fcn.00578440
lea ecx, [ebp - 0x618]
call fcn.00532320
mov dword [ebp - 4], 0
push 4
lea ecx, [ebp - 0x614]
call fcn.00578440
lea ecx, [ebp - 0x614]
call fcn.00532320
mov byte [ebp - 4], 1
mov dword [ebp - 0x66c], 0
mov dword [ebp - 0x668], 0xc
mov dword [ebp - 0x65c], 0x12
call fcn.0053a1b0
test eax, eax
je 0x53a451
mov edx, dword [ebp - 0x668]
add edx, 4
mov dword [ebp - 0x668], edx
mov eax, dword [ebp - 0x65c]
add eax, 6
mov dword [ebp - 0x65c], eax
lea ecx, [ebp - 0x628]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
push 0
push 0x418
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x658], 0
jmp 0x53a496
mov ecx, dword [ebp - 0x658]
add ecx, 1
mov dword [ebp - 0x658], ecx
mov edx, dword [ebp - 0x658]
cmp edx, dword [ebp - 0x670]
jge 0x53a61e
mov eax, dword [ebp - 0x664]
push eax
mov ecx, dword [ebp - 0x658]
push ecx
push 0x41d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x660]
push eax
mov ecx, dword [ebp - 0x658]
push ecx
push 0x417
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x10
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x664]
push ecx
mov edx, dword [ebp - 0x650]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
lea eax, [ebp - 0x644]
push eax
mov ecx, dword [ebp - 0x660]
add ecx, dword [ebp - 0x668]
push ecx
mov edx, dword [ebp - 0x650]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [ebp - 0x644], 0xffffffff
je 0x53a58f
push 0
push 0x400
lea eax, [ebp - 0x610]
push eax
mov ecx, dword [ebp - 0x644]
push ecx
mov edx, dword [ebp - 0x650]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp - 0x610]
mov dword [ebp - 0x66c], eax
mov ecx, dword [ebp - 0x65c]
lea edx, [ebp + ecx*2 - 0x610]
push edx
lea ecx, [ebp - 0x618]
call fcn.0054a830
mov eax, dword [ebp - 0x65c]
lea ecx, [ebp + eax*2 - 0x408]
push ecx
lea ecx, [ebp - 0x614]
call fcn.0054a830
lea edx, [ebp - 0x210]
mov dword [ebp - 0x674], edx
mov eax, dword [ebp - 0x624]
push eax
mov ecx, dword [ebp - 0x628]
push ecx
mov edx, dword [ebp - 0x674]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [ebp - 0x614]
call fcn.0052d8b0
push eax
lea ecx, [ebp - 0x640]
call fcn.004ef370
mov eax, dword [ebp - 0x66c]
cmp eax, dword [ebp + 0x14]
jne 0x53a60e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x628]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x624]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x620]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x61c]
mov dword [ecx + 0xc], edx
mov byte [ebp - 0x649], 1
lea ecx, [ebp - 0x640]
call fcn.004ef480
jmp 0x53a487
push 0x4000
push 0x1000
mov eax, dword [ebp - 0x664]
push eax
mov ecx, dword [ebp - 0x650]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0x1000
mov edx, dword [ebp - 0x660]
push edx
mov eax, dword [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x650]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, byte [ebp - 0x649]
mov byte [ebp - 0x651], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x614]
call fcn.00532660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x618]
call fcn.00532660
mov al, byte [ebp - 0x651]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret