Function at 0x21106f30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
and ecx, 4
je 0x21106f4c
cmp dword [ebp + 8], 0
jne 0x21106f56
jmp 0x211071e6
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x21106f6d
jmp 0x211071e6
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.21106cc0
movzx edx, al
test edx, edx
jne 0x21106f87
jmp 0x211071e6
push fcn.211072a0
call sym.AhnHelper.dll__AntiHookGetSelfModuleByAddress_4
mov dword [ebp - 0x28], eax
push 0x104
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call sym.AhnHelper.dll__AntiHookGetProcAddress_8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.21106d80
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.21106e00
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x14], 0
jne 0x21106ff9
jmp 0x211071e6
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 6]
test edx, edx
jle 0x21107076
mov eax, dword [ebp - 0x18]
push eax
call fcn.21106da0
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx + 6]
sub edx, 1
imul edx, edx, 0x28
add edx, dword [ebp - 0x160]
mov dword [ebp - 0x13c], edx
push 0x1c
lea eax, [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0xc]
add edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x150]
lea eax, [ecx + edx - 4]
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
cmp dword [ecx], 0
je 0x21107076
xor al, al
jmp 0x211071e8
lea edx, [ebp - 8]
push edx
push 0x40
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x14]
shl ecx, 2
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
push ecx
push 0x211160cc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.2110982b
add esp, 0xc
cmp eax, 1
jne 0x211070f8
cmp dword [ebp - 4], 0
jle 0x211070f4
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x2110716c
mov dword [ebp - 0x164], 0
jmp 0x21107113
mov edx, dword [ebp - 0x164]
add edx, 1
mov dword [ebp - 0x164], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x164]
cmp ecx, dword [eax + 0x18]
jae 0x21107168
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.2110c7f2
add esp, 8
test eax, eax
je 0x21107152
jmp 0x21107104
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + edx*2]
mov dword [ebp - 4], ecx
jmp 0x2110716c
jmp 0x211071e6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0
jne 0x21107184
jmp 0x211071e6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x18]
push ecx
call sym.AhnHelper.dll__AntiHookGetSelfModuleByAddress_4
cmp eax, dword [ebp - 0x28]
jne 0x2110719b
jmp 0x211071e6
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
sub edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x10], 0
je 0x211071e2
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
cmp dword [eax], 0
jne 0x211071e2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov dword [edx], ecx
mov al, 1
jmp 0x211071e8
xor al, al
mov esp, ebp
pop ebp
ret 8