Function at 0x4c8fc0
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Hook routines via microsoft detours

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x20
push ebx
push ebp
push esi
xor esi, esi
push edi
test eax, eax
je 0x4c8fd3
mov dword [eax], esi
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4c8fdd
mov dword [edi], esi
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x4c8fe7
mov dword [ebx], esi
mov ebp, dword [esp + 0x38]
test ebp, ebp
jne 0x4c8ffc
pop edi
pop esi
lea eax, [ebp + 0x57]
pop ebp
pop ebx
add esp, 0x20
ret 0x14
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x56da60], eax
je 0x4c9018
pop edi
pop esi
pop ebp
mov eax, 0x10dd
pop ebx
add esp, 0x20
ret 0x14
mov eax, dword [0x56da64]
test eax, eax
jne 0x4c944c
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4c9043
mov eax, dword [ecx]
test eax, eax
jne 0x4c9052
mov dword [0x56da64], 6
mov dword [0x56da68], ecx
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x20
ret 0x14
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], ecx
call fcn.004c9460
push 0
push ebp
mov dword [esp + 0x48], eax
call fcn.004c9460
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
cmp eax, ebp
jne 0x4c908c
cmp dword [0x56da58], esi
jne 0x4c9441
jmp 0x4c9409
test edi, edi
je 0x4c9092
mov dword [edi], ebp
test ebx, ebx
je 0x4c9098
mov dword [ebx], eax
push 0x18
call fcn.004c6f3f
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x4c9404
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
push ebp
call fcn.004c8bd0
mov ecx, dword [0x56da54]
add esp, 0xc
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov eax, dword [0x56da50]
test ecx, ecx
jne 0x4c90e4
test eax, eax
je 0x4c90f7
mov ecx, eax
mov dword [0x56da54], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x4c90f7
cmp edx, ebx
jb 0x4c90f7
cmp edx, edi
jbe 0x4c9180
mov ecx, eax
mov dword [0x56da54], ecx
test eax, eax
je 0x4c9123
test ecx, ecx
je 0x4c9116
mov eax, dword [ecx + 8]
test eax, eax
je 0x4c9116
cmp eax, ebx
jb 0x4c9116
cmp eax, edi
jbe 0x4c9180
mov ecx, dword [ecx + 4]
mov dword [0x56da54], ecx
test ecx, ecx
jne 0x4c9107
push edi
movzx eax, bp
mov ecx, ebp
sub ecx, eax
push ebx
push ecx
call fcn.004c8a40
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4c9404
mov dword [ecx + 8], esi
xor edx, edx
mov dword [ecx], 0x52727464
mov esi, 0x38b
mov eax, dword [0x56da50]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x56da54], ecx
mov dword [0x56da50], ecx
nop dword [eax]
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x4c9170
mov dword [ecx + 8], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x38], edx
cmp edx, ebx
jb 0x4c9404
cmp edx, edi
ja 0x4c9404
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
mov ecx, edx
mov eax, dword [esp + 0x3c]
mov dword [edx], 0xcccccccc
mov dword [edx + 4], 0xcccccccc
mov dword [edx + 8], 0xcccccccc
mov dword [edx + 0xc], 0xcccccccc
mov dword [edx + 0x10], 0xcccccccc
mov dword [edx + 0x14], 0xcccccccc
mov dword [edx + 0x18], 0xcccccccc
mov dword [edx + 0x1c], 0xcccccccc
mov dword [edx + 0x20], 0xcccccccc
mov dword [edx + 0x24], 0xcccccccc
mov dword [edx + 0x28], 0xcccccccc
mov dword [edx + 0x2c], 0xcccccccc
mov dword [edx + 0x30], 0xcccccccc
mov dword [edx + 0x34], 0xcccccccc
mov dword [edx + 0x40], 0xcccccccc
mov dword [edx + 0x44], 0xcccccccc
mov dword [esp + 0x28], ecx
test eax, eax
je 0x4c921c
mov dword [eax], edx
lea eax, [edx + 0x38]
mov dword [esp + 0x44], 0
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
movq qword [eax], xmm0
mov edi, ebp
lea eax, [edx + 0x1e]
mov ebx, edx
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0
push edi
lea eax, [esp + 0x20]
mov esi, edi
push eax
push ebx
call fcn.004ca230
mov edx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x44]
sub eax, esi
add eax, edi
add ebx, eax
mov dword [esp + 0x10], ebx
mov ebx, edi
mov ch, byte [esp + 0x10]
sub ebx, ebp
sub ch, dl
mov cl, bl
mov al, ch
mov byte [esp + 0x40], ch
shl al, 3
and cl, 7
or cl, al
mov eax, dword [esp + 0x20]
mov byte [eax], cl
inc eax
cmp dword [esp + 0x44], 8
mov dword [esp + 0x20], eax
jae 0x4c9301
mov al, byte [esi]
cmp al, 0xeb
je 0x4c9301
cmp al, 0xe9
je 0x4c9301
cmp al, 0xe0
je 0x4c9301
cmp al, 0xc2
je 0x4c9301
cmp al, 0xc3
je 0x4c9301
cmp al, 0xcc
je 0x4c9301
cmp al, 0xf3
jne 0x4c92c5
cmp byte [esi + 1], 0xc3
jmp 0x4c92f1
cmp al, 0xff
jne 0x4c92cf
cmp byte [esi + 1], 0x25
jmp 0x4c92f1
cmp al, 0x26
je 0x4c92e7
cmp al, 0x2e
je 0x4c92e7
cmp al, 0x36
je 0x4c92e7
cmp al, 0x3e
je 0x4c92e7
cmp al, 0x64
je 0x4c92e7
cmp al, 0x65
jne 0x4c92f3
cmp byte [esi + 1], 0xff
jne 0x4c92f3
cmp byte [esi + 2], 0x25
je 0x4c9301
cmp ebx, 5
jae 0x4c9335
mov ebx, dword [esp + 0x10]
jmp 0x4c9240
cmp ebx, 5
jae 0x4c932a
push edi
call fcn.004c8cd0
add esp, 4
test eax, eax
je 0x4c93f4
add edi, eax
mov ebx, edi
sub ebx, ebp
cmp ebx, 5
jb 0x4c9306
mov edx, dword [esp + 0x38]
mov ch, byte [esp + 0x40]
cmp dword [esp + 0x44], 8
ja 0x4c93f4
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jbe 0x4c9340
int3
push ebx
lea eax, [edx + 0x20]
mov byte [edx + 0x1e], ch
push ebp
push eax
mov byte [edx + 0x36], bl
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp ebx, 0x19
jbe 0x4c9363
mov esi, 6
jmp 0x4c9409
mov eax, dword [esp + 0x38]
lea edx, [ebx + ebp]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x44], ecx
movzx ecx, byte [eax + 0x1e]
add ecx, eax
mov dword [eax + 0x40], edx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
lea eax, [ecx + 5]
mov dword [ecx + 1], edx
push dword [esp + 0x14]
push eax
call fcn.004c8c90
add esp, 8
mov dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push eax
push 0x40
push ebx
push ebp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x4c93b8
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x4c9409
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
pop edi
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0xc], ebp
mov dword [ecx + 4], 0
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x14], eax
mov eax, dword [0x56da70]
pop ebp
mov dword [ecx], eax
xor eax, eax
mov dword [0x56da70], ecx
pop ebx
add esp, 0x20
ret 0x14
cmp dword [0x56da58], 0
mov esi, 9
jne 0x4c940f
jmp 0x4c9409
mov esi, 8
mov dword [0x56da64], esi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4c942e
push eax
call fcn.004c8c60
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
je 0x4c942e
mov dword [eax], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4c9441
push 0x18
push eax
call fcn.004c6f6f
add esp, 8
mov eax, dword [esp + 0x34]
mov dword [0x56da68], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14