Function at 0x4dcc50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
xor ebp, ebp
xor esi, esi
push edi
mov edi, dword [0x565184]
cmp dword [0x5652c8], ebp
jne 0x4dcc7e
push 0x565108
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x5652c8], 1
push 0x565108
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.004dc560
mov ecx, 0x48b5b0
mov ebx, eax
call fcn.004dc560
push 0x50
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push ebp
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.004e8fe0
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push ebx
call fcn.004dcb50
mov edi, eax
add esp, 8
cmp edi, 5
jb 0x4dce5a
push edi
push ebx
call fcn.004dc9e0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push ebx
call fcn.004dc790
mov esi, eax
add esp, 0x1c
cmp esi, ebp
je 0x4dce55
lea eax, [esp + 0x18]
push eax
push 0x40
push edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
call ebp
test eax, eax
je 0x4dcdf0
lea ecx, [esp + 0x14]
push ecx
push 0x40
push 0x74
push esi
call ebp
test eax, eax
je 0x4dcdd3
xor ebp, ebp
lea eax, [esi + 0x2c]
test edi, edi
jbe 0x4dcd50
mov edx, ebx
sub edx, eax
mov cl, byte [edx + eax]
mov byte [eax], cl
mov byte [esi + ebp + 0x4c], cl
inc ebp
inc eax
cmp ebp, edi
jb 0x4dcd41
lea ecx, [edi + ebx]
lea eax, [esi + edi + 0x2c]
call fcn.004dc5c0
mov ebp, dword [esp + 0x1c]
cmp ebp, ebx
jae 0x4dcd6a
mov eax, ebx
sub eax, ebp
jmp 0x4dcd6e
mov eax, ebp
sub eax, ebx
mov ecx, ebp
cmp eax, 0x7fff0000
jbe 0x4dcd99
lea eax, [esi + 0xc]
call fcn.004dc5c0
sub eax, esi
sub eax, 0xc
push eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [esi + 0xc]
mov eax, ebx
call fcn.004dc5c0
push edi
lea eax, [esi + 0x2c]
push eax
mov dword [esi + 4], edi
mov dword [esi], ebx
mov dword [esi + 8], ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
push 0x74
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push edx
push edi
push ebx
call ebp
xor ecx, ecx
cmp dword [esi], ecx
je 0x4dce00
lea eax, [esi + 0x2c]
mov dword [0x565184], eax
jmp 0x4dce53
mov eax, dword [esi + 0x6c]
cmp eax, ecx
je 0x4dce0d
mov edx, dword [esi + 0x70]
mov dword [eax + 0x70], edx
mov eax, dword [esi + 0x70]
cmp eax, ecx
je 0x4dce1a
mov edx, dword [esi + 0x6c]
mov dword [eax + 0x6c], edx
cmp dword [0x5652cc], esi
jne 0x4dce2a
mov eax, dword [esi + 0x70]
mov dword [0x5652cc], eax
mov dword [esi + 0x70], ecx
mov dword [esi + 0x6c], ecx
mov edx, dword [0x5652d0]
mov dword [esi + 0x70], edx
mov eax, dword [0x5652d0]
cmp eax, ecx
je 0x4dce45
mov dword [eax + 0x6c], esi
dec dword [0x5652d4]
mov dword [0x5652d0], esi
xor esi, esi
xor ebp, ebp
call fcn.004dc950
push 0x565108
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
cmp esi, ebp
pop esi
pop ebp
setne al
pop ebx
add esp, 0x6c
ret