Function at 0x81ab36
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [0x9c21d4], 0x81ab18
mov dword [0x9c21d8], 0x81aa84
call fcn.0081bccb
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [0x9c1bec], ebx
lea eax, [edi + 0x50]
push eax
mov ecx, 0x9c1bec
sete byte [ebp - 1]
call fcn.0081962e
mov ecx, dword [ebp + 0xc]
xor esi, esi
cmp dword [ecx], ebx
jle 0x81ab9f
lea edx, [ecx + 4]
mov eax, dword [edx]
add eax, edi
mov ebx, dword [eax]
mov ebx, dword [ebx*4 + 0x90bc40]
sub ebx, eax
sub ebx, 4
inc esi
mov dword [eax], ebx
add edx, 4
cmp esi, dword [ecx]
jl 0x81ab81
xor ebx, ebx
sub ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
add eax, ecx
xor esi, esi
cmp dword [eax], ebx
mov dword [ebp + 0xc], ecx
jle 0x81abc1
lea edx, [eax + 4]
mov ecx, dword [edx]
add ecx, edi
add dword [ecx], edi
inc esi
add edx, 4
cmp esi, dword [eax]
jl 0x81abb3
mov esi, dword [edi + 0x38]
add esi, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
cmp dword [esi], ebx
jle 0x81ac25
lea ebx, [esi + 4]
mov eax, dword [ebx + 4]
add eax, dword [ebp + 0xc]
mov cx, word [eax]
mov word [ebp - 8], cx
mov cx, word [eax + 2]
add eax, 4
mov word [ebp - 6], cx
mov ecx, dword [ebx]
mov dword [ebp - 0xc], eax
mov al, byte [ebx + 8]
add ecx, edi
test al, al
jne 0x81ac02
lea eax, [ebp - 0xc]
push eax
call fcn.0083163c
jmp 0x81ac16
cmp al, 1
lea eax, [ebp - 0xc]
push eax
jne 0x81ac11
call fcn.00831611
jmp 0x81ac16
call fcn.008315e6
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 0xc
cmp eax, dword [esi]
jl 0x81abd1
xor ebx, ebx
mov esi, dword [edi + 0x1c]
add esi, edi
cmp word [edi + 0xa], bx
mov dword [ebp + 8], ebx
jbe 0x81ac9c
add dword [esi + 0x28], edi
mov ecx, dword [esi + 0x28]
add dword [esi + 0x2c], edi
mov eax, dword [esi + 0x2c]
lea edx, [ebp + 0xc]
push edx
push 0x40
sub eax, ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 4]
push eax
mov dword [esi + 0x14], 0x81a86b
mov dword [esi + 0x18], esi
call fcn.008317bc
xor eax, eax
cmp byte [esi + 0x24], al
pop ecx
pop ecx
jbe 0x81ac82
mov ecx, dword [esi + eax*4 + 0x3c]
mov edx, dword [esi + 0x2c]
mov dword [ecx + edx], edi
movzx ecx, byte [esi + 0x24]
inc eax
cmp eax, ecx
jl 0x81ac6f
movzx eax, byte [esi + 0x27]
movzx ecx, byte [esi + 0x24]
add eax, ecx
inc dword [ebp + 8]
lea esi, [esi + eax*4 + 0x3c]
movzx eax, word [edi + 0xa]
cmp dword [ebp + 8], eax
jl 0x81ac33
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x81acd5
cmp byte [esi], 0
je 0x81acd5
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x81acad
sub eax, ecx
inc eax
push eax
call fcn.0081e9e7
pop ecx
mov dword [edi + 0x48], eax
mov edx, esi
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
test cl, cl
jne 0x81acc3
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x4c], eax
jmp 0x81acd8
mov dword [edi + 0x48], ebx
cmp byte [ebp - 1], 0
je 0x81ad0a
mov eax, dword [0x9c1b5c]
cmp eax, ebx
mov dword [0x9c1bfc], 0x81f98a
mov dword [0x9c1bf4], eax
mov dword [0x9c1bf8], ebx
mov ecx, 0x9c1bf4
je 0x81ad04
mov dword [eax + 4], ecx
mov dword [0x9c1b5c], ecx
call fcn.0081bcd9
pop edi
pop esi
pop ebx
leave
ret