Function at 0x4b8b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
lea edi, [ebp - 0x60]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x563062
call fcn.004d007c
mov dword [ebp - 8], 0
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.004d0059
cmp dword [0x561e8c], eax
je 0x4b8b7d
mov eax, 0x10dd
jmp 0x4b8d41
cmp dword [0x561e90], 0
je 0x4b8b90
mov eax, dword [0x561e90]
jmp 0x4b8d41
cmp dword [ebp + 0xc], 0
jne 0x4b8ba0
mov eax, 0x57
jmp 0x4b8d41
cmp dword [ebp + 8], 0
jne 0x4b8bb0
mov eax, 6
jmp 0x4b8d41
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4b8bd7
mov dword [ebp - 8], 6
mov eax, dword [ebp - 8]
mov dword [0x561e90], eax
mov eax, dword [ebp + 8]
mov dword [0x561e94], eax
mov eax, dword [ebp - 8]
jmp 0x4b8d41
push 0x18
call fcn.004cef99
add esp, 4
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4b8c3c
mov dword [ebp - 8], 8
mov eax, dword [ebp - 8]
mov dword [0x561e90], eax
cmp dword [ebp - 0x14], 0
je 0x4b8c2c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x11c], eax
push 0x18
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.004cefc9
add esp, 8
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [0x561e94], eax
mov eax, dword [ebp - 8]
jmp 0x4b8d41
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004b8ae0
mov dword [ebp - 0x20], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.004b8ae0
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax + 0x36]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x40]
sub ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x2c], 0
je 0x4b8c7c
cmp dword [ebp - 0x2c], 0x1e
jbe 0x4b8c98
mov dword [ebp - 8], 9
cmp dword [0x561e84], 0
je 0x4b8c93
jmp 0x4b8c05
jmp 0x4b8bfd
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x4b8cbf
mov dword [ebp - 8], 9
cmp dword [0x561e84], 0
je 0x4b8cba
jmp 0x4b8c05
jmp 0x4b8bfd
mov dword [ebp - 0x44], 0
mov esi, esp
lea eax, [ebp - 0x44]
push eax
push 0x40
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.004d0059
test eax, eax
jne 0x4b8cfe
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.004d0059
mov dword [ebp - 8], eax
jmp 0x4b8bfd
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x561e9c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [0x561e9c], eax
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4b8d68]
call fcn.004d0005
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x120
cmp ebp, esp
call fcn.004d0059
mov esp, ebp
pop ebp
ret 8