Function at 0x10011220
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a4
mov eax, dword [0x10064008]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
mov eax, ecx
xor ebx, ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x2c], eax
mov esi, dword [eax]
call fcn.10010eb0
mov ecx, esi
call fcn.10010f90
mov esi, eax
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.10010f90
push 0x58
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.10030e90
add esp, 0xc
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.10011110
mov edi, eax
add esp, 4
cmp edi, 5
jb 0x1001150c
push dword [esp + 0x3c]
mov ecx, esi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.10011010
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x100115ab
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], eax
push ecx
push 0x40
push edi
push esi
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10011461
lea eax, [esp + 0x18]
push eax
push 0x40
push 0x6c
push ebx
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x100113e4
xor ecx, ecx
lea eax, [ebx + 0x2c]
test edi, edi
je 0x10011326
mov edx, eax
sub esi, eax
nop
mov al, byte [esi + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
mov byte [ebx + ecx + 0x4c], al
inc ecx
cmp ecx, edi
jb 0x10011310
mov esi, dword [esp + 0x14]
lea eax, [edi + esi]
lea edx, [ebx + edi]
mov dword [esp + 0x20], eax
lea ecx, [edx + 0x31]
lea esi, [edx + 0x31]
mov dword [esp + 0x28], ecx
sub ecx, eax
sub eax, esi
cmp esi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
cmova eax, ecx
cmp eax, 0x7fff0000
ja 0x10011360
lea eax, [edi + esi]
mov byte [edx + 0x2c], 0xe9
sub eax, dword [esp + 0x28]
mov dword [edx + 0x2d], eax
jmp 0x10011371
lea eax, [edx + 0x32]
mov word [edx + 0x2c], 0x25ff
lea ecx, [edi + esi]
mov dword [edx + 0x2e], eax
mov dword [eax], ecx
mov edx, dword [esp + 0x24]
mov ecx, esi
sub ecx, edx
mov eax, edx
sub eax, esi
cmp edx, esi
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x100113aa
lea esi, [ebx + 0xc]
mov ecx, esi
call fcn.10010fd0
sub eax, ebx
sub eax, 0xc
push eax
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, esi
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.10010fd0
mov eax, dword [esp + 0x24]
mov dword [ebx + 8], eax
lea eax, [ebx + 0x2c]
push edi
push eax
push dword [esp + 0x18]
mov dword [ebx + 4], edi
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push 0x6c
push ebx
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x1001143e
call fcn.10011f10
cmp dword [eax + 0xa8], 2
jl 0x1001143e
push 0
push str.......SDKHooksMhookmhook_liblhook.cpp
push 0x2f1
push str.Lhook_SetHook
push 2
lea ecx, [esp + 0x9c]
call fcn.10011880
mov esi, eax
push str.failed_VirtualProtectEx_2:
mov ecx, esi
call fcn.10011a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10011750
push eax
call fcn.10011f10
mov ecx, eax
call fcn.10011db0
mov esi, dword [esp + 0x14]
push edi
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push edi
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x100114b7
call fcn.10011f10
cmp dword [eax + 0xa8], 2
jl 0x100114b7
push 0
push str.......SDKHooksMhookmhook_liblhook.cpp
push 0x2f7
push str.Lhook_SetHook
push 2
lea ecx, [esp + 0x9c]
call fcn.10011880
mov esi, eax
push str.failed_VirtualProtectEx_1:
mov ecx, esi
call fcn.10011a30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10011750
push eax
call fcn.10011f10
mov ecx, eax
call fcn.10011db0
cmp dword [ebx], 0
je 0x100114ca
mov ecx, dword [esp + 0x2c]
lea eax, [ebx + 0x2c]
mov dword [ecx], eax
jmp 0x100115ab
xor eax, eax
nop dword [eax]
cmp dword [eax*4 + 0x1008a490], ebx
je 0x100114e6
inc eax
cmp eax, 0x40
jb 0x100114d0
xor ebx, ebx
jmp 0x100115ab
push 0x8000
push 0
push ebx
mov dword [eax*4 + 0x1008a490], 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
dec dword [0x1008a3f8]
xor ebx, ebx
jmp 0x100115ab
call fcn.10011f10
cmp dword [eax + 0xa8], 2
jl 0x100115ab
push 0
push str.......SDKHooksMhookmhook_liblhook.cpp
push 0x30a
push str.Lhook_SetHook
push 2
lea ecx, [esp + 0x1a4]
call fcn.10011880
mov esi, eax
push str.disassembly_signals
mov ecx, esi
call fcn.10011a30
lea eax, [esp + 0x29c]
xorps xmm0, xmm0
movups xmmword [esp + 0x29c], xmm0
push edi
cmp byte [esi + 0x100], bl
je 0x1001156d
push 0x10057ac8
jmp 0x10011572
push 0x100563e0
push 0x10
push eax
call fcn.10011820
add esp, 0x10
lea eax, [esp + 0x29c]
mov ecx, esi
push eax
call fcn.10011a30
push str._bytes__unacceptable_
mov ecx, esi
mov byte [esi + 0x100], bl
call fcn.10011a30
push esi
call fcn.10011f10
mov ecx, eax
call fcn.10011db0
mov eax, dword [0x1008a3fc]
test eax, eax
je 0x100115bb
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x2ac]
xor eax, eax
pop edi
test ebx, ebx
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.1002e779
mov esp, ebp
pop ebp
ret