Function at 0x52b340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
lea eax, [ebp - 0x40]
mov edx, dword [0x523db4]
call fcn.00408648
xor eax, eax
push ebp
push 0x52b5cb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6356a0], 0
setne byte [ebp - 0x41]
cmp byte [ebp - 0x41], 0
jne 0x52b5af
xor edx, edx
mov eax, dword [0x6299c4]
call fcn.005295bc
mov dword [0x6356a0], eax
cmp dword [0x6356a0], 0
je 0x52b5af
xor edx, edx
mov eax, dword [0x6299a4]
call fcn.005294b0
lea edx, [ebp - 0x40]
call fcn.00529364
cmp byte [ebp - 0x40], 0
jne 0x52b3c6
xor edx, edx
mov eax, dword [0x6299a0]
call fcn.005294b0
lea edx, [ebp - 0x40]
call fcn.00529364
mov eax, dword [ebp - 0x20]
call fcn.00409178
test eax, eax
jl 0x52b5a2
inc eax
xor ebx, ebx
mov esi, ebx
add esi, esi
add esi, esi
add esi, esi
sub esi, ebx
mov edx, dword [ebp - 0x20]
cmp dword [edx + esi*4 + 0x14], 0
jne 0x52b3fb
mov edx, dword [ebp - 0x20]
cmp dword [edx + esi*4 + 0x18], 0
je 0x52b59a
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + esi*4 + 0xc]
cmp edx, dword [0x6356a0]
jne 0x52b59a
mov eax, dword [ebp - 0x20]
cmp byte [eax + esi*4 + 0x10], 0
je 0x52b48b
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + esi*4 + 0xc]
mov eax, dword [ebp - 0x20]
sub edi, dword [eax + esi*4 + 0x14]
sub edi, 4
lea eax, [ebp - 0x48]
push eax
push 0x40
push 4
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x52b57d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0x14]
mov dword [0x629a70], eax
mov eax, dword [0x629a70]
mov eax, dword [eax]
mov dword [0x629a74], eax
mov eax, dword [0x629a70]
mov dword [eax], edi
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x48]
push eax
push 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x52b57d
mov eax, dword [ebp - 0x20]
cmp dword [eax + esi*4 + 0x18], 0
je 0x52b51c
push 0
push 4
call fcn.0052a90c
mov dword [0x629a6c], eax
mov eax, dword [0x629a6c]
mov dword [eax], 0x52b2fc
lea eax, [ebp - 0x48]
push eax
push 0x40
push 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x52b507
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0x18]
mov dword [0x629a78], eax
mov eax, dword [0x629a78]
mov eax, dword [eax]
mov dword [0x629a7c], eax
mov eax, dword [0x629a78]
mov edx, dword [0x629a6c]
mov dword [eax], edx
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x48]
push eax
push 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
lea eax, [ebp - 0x48]
push eax
push 0x20
push 4
mov eax, dword [0x629a6c]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x52b57d
lea eax, [ebp - 0x48]
push eax
push 0x40
push 4
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
sub eax, ebx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + eax*4 + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x52b57d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0x14]
mov dword [0x629a78], eax
mov eax, dword [0x629a78]
mov eax, dword [eax]
mov dword [0x629a7c], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0xc]
mov edx, dword [0x629a78]
mov dword [edx], eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x48]
push eax
push 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + esi*4 + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
cmp dword [0x629a78], 0
jne 0x52b593
cmp dword [0x629a70], 0
jne 0x52b593
xor eax, eax
jmp 0x52b595
mov al, 1
mov byte [ebp - 0x41], al
jmp 0x52b5a2
inc ebx
dec eax
jne 0x52b3d9
cmp byte [ebp - 0x41], 0
jne 0x52b5af
xor eax, eax
mov dword [0x6356a0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52b5d2
lea eax, [ebp - 0x40]
mov edx, dword [0x523db4]
call fcn.00408720
ret