Function at 0x10118440
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019e235
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x10211a50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x639], 0
mov dword [ebp - 0x668], 0
lea eax, [ebp - 0x668]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [ebp - 0x668]
push edx
push 0
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0
jne 0x101184b8
mov al, byte [ebp - 0x639]
jmp 0x10118800
push 0x40
push 0x1000
push 0x10
push 0
mov eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x660], eax
push 0x40
push 0x1000
push 0x1000
push 0
mov ecx, dword [ebp - 0x640]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x650], eax
cmp dword [ebp - 0x650], 0
jne 0x1011850b
mov al, byte [ebp - 0x639]
jmp 0x10118800
mov dword [ebp - 0x658], 0
mov byte [ebp - 0x610], 0
push 0x3ff
push 0
lea edx, [ebp - 0x60f]
push edx
call fcn.10161e50
add esp, 0xc
xor eax, eax
mov word [ebp - 0x210], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.10161e50
add esp, 0xc
lea ecx, [ebp - 0x66c]
call fcn.101044f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.101044f0
mov byte [ebp - 4], 1
mov dword [ebp - 0x664], 0
mov dword [ebp - 0x65c], 0xc
mov dword [ebp - 0x64c], 0x12
call fcn.10118340
test eax, eax
je 0x101185b7
mov edx, dword [ebp - 0x65c]
add edx, 4
mov dword [ebp - 0x65c], edx
mov eax, dword [ebp - 0x64c]
add eax, 6
mov dword [ebp - 0x64c], eax
lea ecx, [ebp - 0x620]
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 - 0x674], eax
mov dword [ebp - 0x648], 0
jmp 0x101185fc
mov ecx, dword [ebp - 0x648]
add ecx, 1
mov dword [ebp - 0x648], ecx
mov edx, dword [ebp - 0x648]
cmp edx, dword [ebp - 0x674]
jge 0x10118784
mov eax, dword [ebp - 0x660]
push eax
mov ecx, dword [ebp - 0x648]
push ecx
push 0x41d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x650]
push eax
mov ecx, dword [ebp - 0x648]
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 - 0x660]
push ecx
mov edx, dword [ebp - 0x640]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
lea eax, [ebp - 0x658]
push eax
mov ecx, dword [ebp - 0x650]
add ecx, dword [ebp - 0x65c]
push ecx
mov edx, dword [ebp - 0x640]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [ebp - 0x658], 0xffffffff
je 0x101186f5
push 0
push 0x400
lea eax, [ebp - 0x610]
push eax
mov ecx, dword [ebp - 0x658]
push ecx
mov edx, dword [ebp - 0x640]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [ebp - 0x610]
mov dword [ebp - 0x664], eax
mov ecx, dword [ebp - 0x64c]
lea edx, [ebp + ecx*2 - 0x610]
push edx
lea ecx, [ebp - 0x66c]
call fcn.10123fc0
mov eax, dword [ebp - 0x64c]
lea ecx, [ebp + eax*2 - 0x408]
push ecx
lea ecx, [ebp - 0x654]
call fcn.10123fc0
lea edx, [ebp - 0x210]
mov dword [ebp - 0x670], edx
mov eax, dword [ebp - 0x61c]
push eax
mov ecx, dword [ebp - 0x620]
push ecx
mov edx, dword [ebp - 0x670]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [ebp - 0x654]
call fcn.1015a260
push eax
lea ecx, [ebp - 0x638]
call fcn.100e9b90
mov eax, dword [ebp - 0x664]
cmp eax, dword [ebp + 0x14]
jne 0x10118774
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x620]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x61c]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x618]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x614]
mov dword [ecx + 0xc], edx
mov byte [ebp - 0x639], 1
lea ecx, [ebp - 0x638]
call fcn.100e9ca0
jmp 0x101185ed
push 0x4000
push 0x1000
mov eax, dword [ebp - 0x660]
push eax
mov ecx, dword [ebp - 0x640]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0x1000
mov edx, dword [ebp - 0x650]
push edx
mov eax, dword [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 0x640]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, byte [ebp - 0x639]
mov byte [ebp - 0x641], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.10104900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x66c]
call fcn.10104900
mov al, byte [ebp - 0x641]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1016177d
mov esp, ebp
pop ebp
ret