Function at 0x10029ee0
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Execute shellcode via indirect call
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x10085018]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1008bca4], eax
je 0x10029f29
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1002bf12
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x1008bca8]
test eax, eax
jne 0x1002a367
mov ecx, dword [0x1008bc5c]
test ecx, ecx
jne 0x10029f52
mov dword [0x1008bca8], 6
lea eax, [ecx + 6]
jmp 0x1002a35d
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], eax
call fcn.10029a30
mov edi, eax
mov ecx, 0x10001320
mov dword [esp + 0x14], edi
call fcn.10029a30
mov dword [esp + 0x28], eax
cmp eax, edi
jne 0x10029f88
cmp dword [0x1008bc8c], ebx
jne 0x1002a35b
jmp 0x1002a32f
push 0x18
call fcn.1002c24d
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x10]
add esp, 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.100295a0
mov ecx, dword [0x1008bca0]
add esp, 4
mov edi, dword [esp + 0x20]
mov eax, dword [0x1008bc98]
test ecx, ecx
jne 0x10029fcc
test eax, eax
je 0x10029fe5
mov ecx, eax
mov dword [0x1008bca0], ecx
mov edx, dword [ecx + 8]
mov ebx, dword [esp + 0xc]
test edx, edx
je 0x10029fe9
cmp edx, ebx
jb 0x10029fe9
cmp edx, edi
jbe 0x1002a076
jmp 0x10029fe9
mov ebx, dword [esp + 0xc]
mov ecx, eax
mov dword [0x1008bca0], ecx
test eax, eax
je 0x1002a018
mov edx, eax
cmp dword [edx + 8], 0
je 0x1002a007
cmp dword [edx + 8], ebx
jb 0x1002a007
cmp dword [edx + 8], edi
jbe 0x1002a076
mov ecx, dword [ecx + 4]
mov eax, ecx
mov dword [0x1008bca0], ecx
mov edx, ecx
test eax, eax
jne 0x10029ff7
movzx eax, si
mov ecx, esi
push edi
sub ecx, eax
mov edx, ebx
call fcn.10029870
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1002a328
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x1008bc98]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x1008bca0], ecx
mov dword [0x1008bc98], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x1002a062
mov esi, dword [esp + 0x14]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [esp + 0xc]
jb 0x1002a328
cmp ebx, edi
ja 0x1002a328
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.1002de20
add esp, 0xc
test ebx, ebx
je 0x1002a32a
lea eax, [ebx + 0x38]
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
mov dword [esp + 0x30], eax
movq qword [eax], xmm0
mov edx, ebx
lea eax, [ebx + 0x1e]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov byte [esp + 0x12], bl
mov dword [esp + 0xc], ebx
nop dword [eax]
nop dword [eax + eax]
lea eax, [esp + 0x64]
mov dword [esp + 0x48], 0
test edx, edx
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x4c], 0
xorps xmm0, xmm0
mov dword [esp + 0x50], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x64], 0
cmovne ecx, edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], 0
mov edi, esi
movups xmmword [esp + 0x38], xmm0
test esi, esi
jne 0x1002a139
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1002a155
movzx eax, byte [esi]
mov edx, dword [eax*8 + 0x1008c824]
lea eax, [eax*8 + 0x1008c820]
push esi
push ecx
push eax
lea ecx, [esp + 0x44]
call edx
mov esi, eax
mov edx, dword [esp + 0x24]
mov eax, esi
inc dword [esp + 0x1c]
sub eax, edi
add eax, dword [esp + 0x2c]
mov ebx, esi
sub ebx, dword [esp + 0x14]
add edx, eax
mov ch, dl
mov dword [esp + 0x24], edx
sub ch, byte [esp + 0x12]
mov al, bl
and al, 7
mov byte [esp + 0x13], ch
mov cl, ch
shl cl, 3
or cl, al
mov eax, dword [esp + 0x30]
mov byte [eax], cl
inc eax
cmp dword [esp + 0x1c], 8
mov dword [esp + 0x30], eax
jae 0x1002a1fb
mov cl, byte [edi]
cmp cl, 0xeb
je 0x1002a1fb
cmp cl, 0xe9
je 0x1002a1fb
cmp cl, 0xe0
je 0x1002a1fb
cmp cl, 0xc2
je 0x1002a1fb
cmp cl, 0xc3
je 0x1002a1fb
cmp cl, 0xcc
je 0x1002a1fb
lea eax, [edi + 1]
cmp cl, 0xf3
jne 0x1002a262
cmp byte [eax], 0xc3
je 0x1002a1fb
cmp cl, 0x26
je 0x1002a1e7
cmp cl, 0x2e
je 0x1002a1e7
cmp cl, 0x36
je 0x1002a1e7
cmp cl, 0x3e
je 0x1002a1e7
cmp cl, 0x64
je 0x1002a1e7
cmp cl, 0x65
jne 0x1002a1f2
cmp byte [eax], 0xff
jne 0x1002a1f2
cmp byte [edi + 2], 0x25
je 0x1002a1fb
cmp ebx, 5
jb 0x1002a0e0
cmp ebx, 5
jae 0x1002a270
mov ecx, esi
call fcn.10029630
test eax, eax
je 0x1002a314
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, eax
cmp ebx, 5
jb 0x1002a200
mov edx, dword [esp + 0x24]
mov ch, byte [esp + 0x13]
cmp dword [esp + 0x1c], 8
ja 0x1002a314
mov esi, dword [esp + 0x20]
cmp edx, esi
jbe 0x1002a23a
int3
mov edi, dword [esp + 0xc]
push ebx
push eax
mov byte [esi], ch
lea eax, [edi + 0x20]
mov byte [edi + 0x36], bl
push eax
call fcn.1002d8a0
add esp, 0xc
cmp ebx, 0x19
jbe 0x1002a276
mov esi, 6
mov ebx, edi
jmp 0x1002a32f
cmp cl, 0xff
jne 0x1002a1c9
cmp byte [eax], 0x25
jmp 0x1002a1f0
mov eax, dword [esp + 0x14]
jmp 0x1002a226
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
add esi, ebx
mov dword [edi + 0x44], eax
movzx ecx, byte [edx]
add ecx, edi
mov dword [edi + 0x40], esi
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub esi, eax
mov dword [ecx + 1], esi
add ecx, 5
call fcn.10029570
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push 0x40
push ebx
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1002a2cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0xc]
mov esi, eax
jmp 0x1002a32f
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x1008bc5c
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], ebx
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x14], eax
mov eax, dword [0x1008bc88]
mov dword [ecx], eax
xor eax, eax
mov dword [0x1008bc88], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.1002bf12
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x1008bc8c], 0
mov esi, 9
mov ebx, dword [esp + 0xc]
jne 0x1002a341
jmp 0x1002a32f
xor ebx, ebx
mov esi, 8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [0x1008bca8], esi
test ebx, ebx
je 0x1002a34c
mov ecx, ebx
call fcn.10029a00
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1002a35b
push 0x18
push eax
call fcn.1002c23a
add esp, 8
mov eax, esi
mov dword [0x1008bc9c], 0x1008bc5c
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002bf12
mov esp, ebp
pop ebp
ret 0xc