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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
push edi
mov edi, dword [ebp + 0xc]
test edx, edx
je 0x4c8ad6
mov dword [edx], esi
test eax, eax
je 0x4c8adc
mov dword [eax], esi
test ecx, ecx
je 0x4c8ae2
mov dword [ecx], esi
test edi, edi
jne 0x4c8afc
lea eax, [edi + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 0x14
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x544bc4], eax
je 0x4c8b21
pop edi
pop esi
mov eax, 0x10dd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x544bc8]
test eax, eax
jne 0x4c8f5b
test ebx, ebx
je 0x4c8b48
mov eax, dword [ebx]
test eax, eax
jne 0x4c8b60
mov dword [0x544bc8], 6
mov dword [0x544bcc], ebx
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 0x14
xor ecx, ecx
push ecx
push eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
call fcn.004c8f70
push 0
mov ebx, eax
push edi
mov dword [ebp - 0x18], ebx
call fcn.004c8f70
mov ecx, eax
mov dword [ebp - 0x44], ecx
cmp ecx, ebx
jne 0x4c8b96
cmp dword [0x544bbc], esi
jne 0x4c8f37
jmp 0x4c8f02
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4c8b9f
mov dword [eax], ebx
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4c8ba8
mov dword [eax], ecx
push 0x18
call fcn.00498569
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4c8efd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.004c86a0
mov ecx, dword [0x544bb8]
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [0x544bb4]
test ecx, ecx
jne 0x4c8bef
test eax, eax
je 0x4c8c02
mov ecx, eax
mov dword [0x544bb8], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x4c8c02
cmp edx, ebx
jb 0x4c8c02
cmp edx, edi
jbe 0x4c8c85
mov ecx, eax
mov dword [0x544bb8], ecx
test eax, eax
je 0x4c8c2e
test ecx, ecx
je 0x4c8c21
mov eax, dword [ecx + 8]
test eax, eax
je 0x4c8c21
cmp eax, ebx
jb 0x4c8c21
cmp eax, edi
jbe 0x4c8c85
mov ecx, dword [ecx + 4]
mov dword [0x544bb8], ecx
test ecx, ecx
jne 0x4c8c12
mov ecx, dword [ebp - 0x18]
push edi
movzx eax, cx
sub ecx, eax
push ebx
push ecx
call fcn.004c8510
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4c8efd
mov dword [ecx + 8], esi
xor edx, edx
mov dword [ecx], 0x52727464
mov esi, 0x38b
mov eax, dword [0x544bb4]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x544bb8], ecx
mov dword [0x544bb4], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x4c8c75
mov dword [ecx + 8], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0x24], edx
cmp edx, ebx
jb 0x4c8efd
cmp edx, edi
ja 0x4c8efd
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
mov ecx, edx
mov eax, dword [ebp - 0x34]
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 [ebp - 0x30], ecx
test eax, eax
je 0x4c8d1e
mov dword [eax], edx
mov edi, dword [ebp - 0x18]
lea eax, [edx + 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
movq qword [eax], xmm0
mov ebx, edx
lea eax, [edx + 0x1e]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], eax
nop dword [eax]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push edi
lea eax, [ebp - 0xc]
mov esi, edi
push eax
push ebx
call fcn.004ccd60
mov edx, dword [ebp - 0x24]
mov edi, eax
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x20]
sub eax, esi
add eax, edi
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, edi
mov ch, byte [ebp - 0x1c]
sub ebx, dword [ebp - 0x18]
sub ch, dl
mov al, ch
mov byte [ebp - 0x11], ch
shl al, 3
mov cl, bl
and cl, 7
or cl, al
mov eax, dword [ebp - 0x28]
mov byte [eax], cl
inc eax
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x28], eax
jae 0x4c8df5
mov al, byte [esi]
cmp al, 0xeb
je 0x4c8df5
cmp al, 0xe9
je 0x4c8df5
cmp al, 0xe0
je 0x4c8df5
cmp al, 0xc2
je 0x4c8df5
cmp al, 0xc3
je 0x4c8df5
cmp al, 0xcc
je 0x4c8df5
cmp al, 0xf3
jne 0x4c8dba
cmp byte [esi + 1], 0xc3
jmp 0x4c8de6
cmp al, 0xff
jne 0x4c8dc4
cmp byte [esi + 1], 0x25
jmp 0x4c8de6
cmp al, 0x26
je 0x4c8ddc
cmp al, 0x2e
je 0x4c8ddc
cmp al, 0x36
je 0x4c8ddc
cmp al, 0x3e
je 0x4c8ddc
cmp al, 0x64
je 0x4c8ddc
cmp al, 0x65
jne 0x4c8de8
cmp byte [esi + 1], 0xff
jne 0x4c8de8
cmp byte [esi + 2], 0x25
je 0x4c8df5
cmp ebx, 5
jae 0x4c8e2d
mov ebx, dword [ebp - 0x1c]
jmp 0x4c8d40
cmp ebx, 5
jae 0x4c8e23
nop word [eax + eax]
push edi
call fcn.004c87a0
add esp, 4
test eax, eax
je 0x4c8eed
add edi, eax
mov ebx, edi
sub ebx, dword [ebp - 0x18]
cmp ebx, 5
jb 0x4c8e00
mov edx, dword [ebp - 0x24]
mov ch, byte [ebp - 0x11]
cmp dword [ebp - 0x20], 8
ja 0x4c8eed
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xc]
jbe 0x4c8e36
int3
mov esi, dword [ebp - 0x18]
lea eax, [edx + 0x20]
push ebx
push esi
push eax
mov byte [edx + 0x1e], ch
mov byte [edx + 0x36], bl
call fcn.004cd990
add esp, 0xc
cmp ebx, 0x19
jbe 0x4c8e5c
mov esi, 6
jmp 0x4c8f02
mov eax, dword [ebp - 0x24]
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0x44]
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 [ebp - 0xc]
push eax
call fcn.004c8760
add esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x4c8eac
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x4c8f02
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x40]
pop edi
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0xc], esi
mov dword [ecx + 4], 0
mov eax, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov eax, dword [0x544bd4]
pop esi
mov dword [ecx], eax
xor eax, eax
mov dword [0x544bd4], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret 0x14
cmp dword [0x544bbc], 0
mov esi, 9
jne 0x4c8f08
jmp 0x4c8f02
mov esi, 8
mov dword [0x544bc8], esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4c8f25
push eax
call fcn.004c8730
mov eax, dword [ebp - 0x34]
add esp, 4
test eax, eax
je 0x4c8f25
mov dword [eax], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4c8f37
push 0x18
push eax
call fcn.0049855b
add esp, 8
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4c8f44
mov dword [eax], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4c8f51
mov dword [eax], 0
mov eax, dword [ebp - 0x40]
mov dword [0x544bcc], eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049852a
mov esp, ebp
pop ebp
ret 0x14