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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, 0x102b716e
push esi
push edi
call fcn.10124b2c
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x1000243d
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10002446
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1000244f
mov dword [eax], esi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10002461
lea eax, [edi + 0x57]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x101e7f58], eax
je 0x1000247b
pop edi
mov eax, 0x10dd
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x101e7f5c]
test eax, eax
jne 0x1000284b
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x100024a5
mov eax, dword [ecx]
test eax, eax
jne 0x100024b2
mov dword [0x101e7f5c], 6
mov dword [0x101e7f60], ecx
pop edi
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 0x14
push ebx
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.10002870
push ebx
push edi
mov dword [ebp - 8], eax
call fcn.10002870
mov edx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], edx
cmp edx, eax
jne 0x100024e6
cmp dword [0x101e7f50], ebx
jne 0x10002826
jmp 0x1000285a
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x100024ef
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x100024f8
mov dword [eax], edx
push 0x18
call fcn.10124b6c
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10002855
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.10001f50
mov ecx, dword [0x101e7f4c]
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x101e7f48]
test ecx, ecx
jne 0x10002544
test eax, eax
je 0x10002557
mov ecx, eax
mov dword [0x101e7f4c], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x10002557
cmp edx, ebx
jb 0x10002557
cmp edx, edi
jbe 0x100025e6
mov ecx, eax
mov dword [0x101e7f4c], ecx
test eax, eax
je 0x10002589
mov edx, eax
test eax, eax
je 0x10002578
mov eax, dword [edx + 8]
test eax, eax
je 0x10002578
cmp eax, ebx
jb 0x10002578
cmp eax, edi
jbe 0x100025e6
mov ecx, dword [ecx + 4]
mov edx, ecx
mov dword [0x101e7f4c], ecx
mov eax, ecx
test edx, edx
jne 0x10002565
push edi
movzx eax, si
mov ecx, esi
sub ecx, eax
push ebx
push ecx
call fcn.10001dc0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10002853
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x101e7f48]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x101e7f4c], ecx
mov dword [0x101e7f48], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x100025d3
mov esi, dword [ebp - 8]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [ebp + 0xc]
jb 0x10002853
cmp ebx, edi
ja 0x10002853
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.101291d0
add esp, 0xc
test ebx, ebx
je 0x10002855
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10002621
mov dword [eax], ebx
lea eax, [ebx + 0x38]
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
movq qword [eax], xmm0
lea ecx, [ebx + 0x1e]
mov eax, ebx
mov dword [ebp - 0x28], ecx
mov edi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
mov byte [ebp + 0xf], bl
nop dword [eax + eax]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push 0
push edi
lea ecx, [ebp - 0x18]
mov esi, edi
push ecx
push eax
call fcn.10003930
mov ecx, dword [ebp - 0x10]
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov edx, edi
sub edx, dword [ebp - 8]
sub eax, esi
inc dword [ebp - 0xc]
add eax, edi
add ecx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], ecx
mov al, dl
mov ch, cl
and al, 7
sub ch, byte [ebp + 0xf]
mov cl, ch
mov byte [ebp - 1], ch
shl cl, 3
or cl, al
mov eax, dword [ebp - 0x20]
mov byte [eax], cl
inc eax
cmp dword [ebp - 0xc], 8
mov dword [ebp - 0x20], eax
jae 0x10002706
mov al, byte [esi]
cmp al, 0xeb
je 0x10002706
cmp al, 0xe9
je 0x10002706
cmp al, 0xe0
je 0x10002706
cmp al, 0xc2
je 0x10002706
cmp al, 0xc3
je 0x10002706
cmp al, 0xcc
je 0x10002706
cmp al, 0xf3
jne 0x100026cc
cmp byte [esi + 1], 0xc3
je 0x10002706
cmp al, 0xff
jne 0x100026d6
cmp byte [esi + 1], 0x25
jmp 0x100026f8
cmp al, 0x26
je 0x100026ee
cmp al, 0x2e
je 0x100026ee
cmp al, 0x36
je 0x100026ee
cmp al, 0x3e
je 0x100026ee
cmp al, 0x64
je 0x100026ee
cmp al, 0x65
jne 0x100026fa
cmp byte [esi + 1], 0xff
jne 0x100026fa
cmp byte [esi + 2], 0x25
je 0x10002706
mov eax, dword [ebp - 0x10]
cmp edx, 5
jb 0x10002650
cmp edx, 5
jae 0x10002733
nop dword [eax + eax]
push edi
call fcn.100020a0
add esp, 4
test eax, eax
je 0x100027f0
add edi, eax
mov edx, edi
sub edx, dword [ebp - 8]
mov dword [ebp - 0x24], edx
cmp edx, 5
jb 0x10002710
mov ch, byte [ebp - 1]
cmp dword [ebp - 0xc], 8
ja 0x100027f0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jbe 0x10002746
int3
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 8]
push edx
push edi
mov byte [eax], ch
lea eax, [ebx + 0x20]
push eax
mov byte [ebx + 0x36], dl
call fcn.101294d0
mov esi, dword [ebp - 0x24]
add esp, 0xc
cmp esi, 0x19
jbe 0x10002771
mov esi, 6
jmp 0x1000285a
mov eax, dword [ebp - 0x30]
lea ecx, [esi + edi]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x28]
push ecx
mov dword [ebx + 0x40], ecx
movzx eax, byte [eax]
add eax, ebx
push eax
call fcn.10002070
push dword [ebp - 0x18]
push eax
call fcn.10002030
add esp, 0x10
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0x40
push esi
push edi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100027bc
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x1000285a
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx + 4], 0
mov eax, dword [ebp - 0x2c]
pop ebx
mov dword [ecx + 0x14], eax
mov eax, dword [0x101e7f68]
pop edi
mov dword [ecx], eax
xor eax, eax
mov dword [0x101e7f68], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp dword [0x101e7f50], 0
mov esi, 9
je 0x1000285a
mov edi, dword [ebp - 0x14]
push ebx
call fcn.10001ff0
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x10002817
mov dword [eax], 0
test edi, edi
je 0x10002826
push 0x18
push edi
call fcn.10124b9c
add esp, 8
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x10002833
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10002840
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [0x101e7f60], eax
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
xor ebx, ebx
mov esi, 8
mov edi, dword [ebp - 0x14]
mov dword [0x101e7f5c], esi
test ebx, ebx
je 0x10002817
jmp 0x10002801