Function at 0x4b283c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x4b2844
push ebx
push esi
mov ebx, 0x4be078
xor eax, eax
push ebp
push 0x4b2b91
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4bc7c4], 0
jne 0x4b2965
lea edx, [ebp - 8]
mov eax, dword [0x4be188]
call fcn.004af224
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, 0x4b2ba8
call fcn.004b116c
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408a00
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x4b2bb4
call fcn.004049ac
mov eax, dword [ebp - 0xc]
call fcn.00408dd4
mov esi, eax
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x54]
call fcn.00408a00
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x4b2bb4
call fcn.004049ac
mov eax, dword [ebp - 0x14]
call fcn.00408dd4
cmp esi, eax
je 0x4b295e
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00408a00
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4b2bb4
call fcn.004049ac
mov eax, dword [ebp - 0x1c]
call fcn.00408dd4
cdq
push edx
push eax
mov eax, dword [0x4be18c]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4b2915
cmp eax, dword [esp]
pop edx
pop eax
je 0x4b295e
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408a00
mov eax, dword [ebp - 0x24]
mov edx, 0x4b2bc0
call fcn.00404aac
je 0x4b295e
lea edx, [ebp - 0x28]
mov eax, dword [0x4be180]
call fcn.004af224
mov edx, dword [ebp - 0x28]
mov eax, 0x4be184
call fcn.004046f4
mov eax, dword [0x4be184]
call fcn.004b3500
call fcn.004b2024
mov byte [0x4bc7c4], 1
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
mov edx, 0x4b2bb4
call fcn.004049ac
mov eax, dword [ebp - 0x2c]
call fcn.00408dd4
mov dword [ebx + 0x58], eax
push dword [ebx + 0x54]
push 0x4b2bcc
push dword [ebx + 0x5c]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404a20
mov eax, dword [ebp - 0x30]
call fcn.004b126c
mov dword [ebx + 0x60], eax
push dword [ebx + 0x54]
push 0x4b2bcc
push dword [ebx + 0x64]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404a20
mov eax, dword [ebp - 0x34]
call fcn.004b13b4
mov dword [ebx + 0x68], eax
push dword [ebx + 0x54]
push 0x4b2bcc
push dword [ebx + 0x6c]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404a20
mov eax, dword [ebp - 0x38]
call fcn.004b13b4
mov dword [ebx + 0x70], eax
push dword [ebx + 0x54]
push 0x4b2bcc
push dword [ebx + 0x74]
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404a20
mov eax, dword [ebp - 0x3c]
call fcn.004b13b4
mov dword [ebx + 0x78], eax
push dword [ebx + 0x54]
push 0x4b2bcc
push dword [ebx + 0x7c]
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00404a20
mov eax, dword [ebp - 0x40]
call fcn.004b13b4
mov dword [ebx + 0x80], eax
push dword [ebx + 0x54]
push 0x4b2bcc
push dword [ebx + 0x84]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00404a20
mov eax, dword [ebp - 0x44]
call fcn.004b13b4
mov dword [ebx + 0x88], eax
push dword [ebx + 0x54]
push 0x4b2bcc
push dword [ebx + 0x8c]
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404a20
mov eax, dword [ebp - 0x48]
call fcn.004b13b4
mov dword [ebx + 0x90], eax
push dword [ebx + 0x54]
push 0x4b2bcc
push dword [ebx + 0x94]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00404a20
mov eax, dword [ebp - 0x4c]
call fcn.004b13b4
mov dword [ebx + 0x98], eax
push dword [ebx + 0x54]
push 0x4b2bcc
push dword [ebx + 0x9c]
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.00404a20
mov eax, dword [ebp - 0x50]
call fcn.004b126c
mov esi, eax
mov dword [ebx + 0xa0], esi
test esi, esi
je 0x4b2b68
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, dword [0x4be068]
push eax
call fcn.00406d68
mov esi, eax
mov dword [0x4be12c], esi
add esi, 0x200
mov dword [ebx + 0xa8], esi
call fcn.004ae4ac
cmp dword [0x4be074], 0
jne 0x4b2b34
mov ecx, dword [0x4be064]
mov dl, 1
mov eax, dword [0x4ad62c]
call fcn.004ae0e8
mov dword [0x4be074], eax
jmp 0x4b2b68
mov eax, dword [0x4be074]
mov eax, dword [eax + 0x318]
cmp eax, dword [0x4be064]
je 0x4b2b5e
mov ecx, dword [0x4be064]
mov dl, 1
mov eax, dword [0x4ad62c]
call fcn.004ae0e8
mov dword [0x4be074], eax
mov eax, dword [0x4be074]
call fcn.004ade38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2b98
lea eax, [ebp - 0x50]
mov edx, 0x13
call fcn.004046c4
lea eax, [ebp - 4]
mov edx, dword [0x474298]
call fcn.00405a60
ret