Function at 0x100225f0
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, 0xac
mov eax, dword [0x10088064]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x38], ebx
test edi, edi
jne 0x10022635
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.1005c833
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1008a51c], eax
je 0x1002265f
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.1005c833
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x1008a518]
test eax, eax
jne 0x10022adf
test ebx, ebx
je 0x10022686
mov ecx, dword [ebx]
test ecx, ecx
jne 0x100226a2
mov dword [0x1008a518], 6
mov dword [0x1008a524], ebx
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.1005c833
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
call fcn.10022050
mov ebx, eax
mov ecx, edi
mov dword [esp + 0x14], ebx
call fcn.10022050
mov dword [esp + 0x3c], eax
cmp eax, ebx
jne 0x100226d7
cmp dword [0x1008a4ec], esi
jne 0x10022ad4
jmp 0x10022aac
push 0x18
call fcn.1005ca4f
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
mov ecx, ebx
lea edx, [esp + 0x18]
push eax
call fcn.10021bc0
mov ecx, dword [0x1008a520]
add esp, 4
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [0x1008a528]
test ecx, ecx
jne 0x1002271b
test eax, eax
je 0x1002272e
mov ecx, eax
mov dword [0x1008a520], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x1002272e
cmp edx, ebx
jb 0x1002272e
cmp edx, edi
jbe 0x100227b2
mov ecx, eax
mov dword [0x1008a520], ecx
test eax, eax
je 0x1002275a
test ecx, ecx
je 0x1002274d
mov eax, dword [ecx + 8]
test eax, eax
je 0x1002274d
cmp eax, ebx
jb 0x1002274d
cmp eax, edi
jbe 0x100227b2
mov ecx, dword [ecx + 4]
mov dword [0x1008a520], ecx
test ecx, ecx
jne 0x1002273e
mov ecx, dword [esp + 0x14]
mov edx, ebx
movzx eax, cx
push edi
sub ecx, eax
call fcn.10021ea0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10022aa7
mov dword [ecx + 8], esi
xor edx, edx
mov dword [ecx], 0x52727464
mov esi, 0x38b
mov eax, dword [0x1008a528]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x1008a520], ecx
mov dword [0x1008a528], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x100227a2
mov dword [ecx + 8], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x24], edx
cmp edx, ebx
jb 0x10022aa7
cmp edx, edi
ja 0x10022aa7
mov eax, dword [edx + 0x40]
xorps xmm0, xmm0
mov dword [ecx + 8], eax
mov ebx, edx
mov dword [edx], 0xcccccccc
lea eax, [edx + 0x38]
mov esi, dword [esp + 0x14]
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 + 0x34], edx
mov dword [esp + 0x20], eax
movq qword [eax], xmm0
mov dword [esp + 0x18], 0
nop
lea eax, [esp + 0x6c]
mov dword [esp + 0x40], 0
test ebx, ebx
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x44], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], 0
cmovne ecx, ebx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov edi, esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x2c], 0
test esi, esi
jne 0x100228d1
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100228ed
movzx eax, byte [esi]
mov edx, dword [eax*8 + 0x1008b834]
lea eax, [eax*8 + 0x1008b830]
push esi
push ecx
push eax
lea ecx, [esp + 0x4c]
call edx
mov esi, eax
mov edx, dword [esp + 0x24]
mov eax, esi
sub eax, edi
add eax, dword [esp + 0x2c]
add ebx, eax
mov dword [esp + 0x1c], ebx
mov ebx, esi
mov ah, byte [esp + 0x1c]
sub ebx, dword [esp + 0x14]
sub ah, dl
mov edx, dword [esp + 0x20]
mov cl, bl
inc dword [esp + 0x20]
and cl, 7
mov al, ah
mov byte [esp + 0x13], ah
shl al, 3
or cl, al
mov byte [edx], cl
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, 8
jae 0x10022997
mov al, byte [edi]
cmp al, 0xeb
je 0x10022997
cmp al, 0xe9
je 0x10022997
cmp al, 0xe0
je 0x10022997
cmp al, 0xc2
je 0x10022997
cmp al, 0xc3
je 0x10022997
cmp al, 0xcc
je 0x10022997
cmp al, 0xf3
jne 0x1002298d
cmp byte [edi + 1], 0xc3
je 0x10022997
cmp al, 0x26
je 0x10022973
cmp al, 0x2e
je 0x10022973
cmp al, 0x36
je 0x10022973
cmp al, 0x3e
je 0x10022973
cmp al, 0x64
je 0x10022973
cmp al, 0x65
jne 0x1002297f
cmp byte [edi + 1], 0xff
jne 0x1002297f
cmp byte [edi + 2], 0x25
je 0x10022997
cmp ebx, 5
jae 0x100229cd
mov ebx, dword [esp + 0x1c]
jmp 0x10022860
cmp al, 0xff
jne 0x1002295b
cmp byte [edi + 1], 0x25
jmp 0x1002297d
cmp ebx, 5
jae 0x100229c4
nop dword [eax]
mov ecx, esi
call fcn.10021c50
test eax, eax
je 0x10022a97
add esi, eax
mov ebx, esi
sub ebx, dword [esp + 0x14]
cmp ebx, 5
jb 0x100229a0
mov ah, byte [esp + 0x13]
mov ecx, dword [esp + 0x18]
cmp ecx, 8
ja 0x10022a97
lea ecx, [edx + 0x1e]
cmp dword [esp + 0x1c], ecx
jbe 0x100229d7
int3
mov esi, dword [esp + 0x14]
push ebx
mov byte [ecx], ah
lea eax, [edx + 0x20]
push esi
push eax
mov byte [edx + 0x36], bl
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp ebx, 0x19
jbe 0x100229fd
mov esi, 6
jmp 0x10022aac
mov edi, dword [esp + 0x24]
add esi, ebx
movzx ecx, byte [edi + 0x1e]
lea edx, [edi + 0x1e]
mov eax, dword [esp + 0x3c]
add ecx, edi
mov dword [edi + 0x44], eax
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.10021b90
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 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 0x10022a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10022aac
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], ebx
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x14], eax
mov eax, dword [0x1008a530]
mov dword [ecx], eax
xor eax, eax
mov dword [0x1008a530], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.1005c833
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x1008a4ec], 0
mov esi, 9
jne 0x10022ab2
jmp 0x10022aac
mov esi, 8
mov dword [0x1008a518], esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10022ac1
mov ecx, eax
call fcn.10022020
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10022ad4
push 0x18
push eax
call fcn.1005cd99
add esp, 8
mov eax, dword [esp + 0x38]
mov dword [0x1008a524], eax
mov eax, esi
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005c833
mov esp, ebp
pop ebp
ret 0xc