Function at 0x10006e90
Capabilities:
Allocate or change rwx memory
Check for software breakpoints

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x14
push ebp
push esi
xor esi, esi
push edi
test eax, eax
je 0x10006ea2
mov dword [eax], esi
mov edi, dword [esp + 0x30]
test edi, edi
je 0x10006eac
mov dword [edi], esi
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x10006eb7
mov dword [ebp], esi
cmp dword [esp + 0x28], esi
jne 0x10006ecb
pop edi
pop esi
mov eax, 0x57
pop ebp
add esp, 0x14
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1002bff0], eax
je 0x10006ee7
pop edi
pop esi
mov eax, 0x10dd
pop ebp
add esp, 0x14
ret 0x14
mov eax, dword [0x1002bff4]
test eax, eax
jne 0x100071c8
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10006f12
mov eax, dword [ecx]
test eax, eax
jne 0x10006f20
mov dword [0x1002bff4], 6
mov dword [0x1002bff8], ecx
pop edi
pop esi
mov eax, 6
pop ebp
add esp, 0x14
ret 0x14
push ebx
xor ebx, ebx
push ebx
push eax
call fcn.100071e0
push ebx
push dword [esp + 0x30]
mov dword [esp + 0x3c], eax
call fcn.100071e0
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x34]
jne 0x10006f55
cmp dword [0x1002bfe8], ebx
jne 0x100071bc
xor ebp, ebp
jmp 0x10007186
mov esi, dword [esp + 0x34]
test edi, edi
je 0x10006f5f
mov dword [edi], esi
test ebp, ebp
je 0x10006f66
mov dword [ebp], eax
push 0x18
call fcn.10008fbd
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10006f7e
lea esi, [eax + 8]
jmp 0x10007186
push esi
call fcn.10006850
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x10006f99
lea esi, [eax + 8]
jmp 0x10007186
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10006fa3
mov dword [eax], ebx
xorps xmm0, xmm0
lea eax, [ebx + 0x1e]
movq qword [ebx + 0x38], xmm0
mov ecx, ebx
mov dword [esp + 0x14], eax
mov edi, esi
xor eax, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push edi
lea eax, [esp + 0x20]
mov esi, edi
push eax
push ecx
call fcn.10007e40
mov ecx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x18]
mov ebx, edi
sub ebx, dword [esp + 0x34]
sub eax, esi
mov edx, dword [esp + 0x2c]
add eax, edi
add ecx, eax
mov al, bl
mov dword [esp + 0x38], ecx
and al, 7
sub cl, dl
shl cl, 3
xor cl, al
mov eax, dword [esp + 0x10]
mov byte [edx + eax + 0x38], cl
inc eax
mov dword [esp + 0x10], eax
cmp eax, 8
jae 0x10007071
mov al, byte [esi]
cmp al, 0xeb
je 0x10007071
cmp al, 0xe9
je 0x10007071
cmp al, 0xe0
je 0x10007071
cmp al, 0xc2
je 0x10007071
cmp al, 0xc3
je 0x10007071
cmp al, 0xcc
je 0x10007071
cmp al, 0xf3
jne 0x100070d7
cmp byte [esi + 1], 0xc3
je 0x10007071
cmp al, 0x26
je 0x10007058
cmp al, 0x2e
je 0x10007058
cmp al, 0x36
je 0x10007058
cmp al, 0x3e
je 0x10007058
cmp al, 0x64
je 0x10007058
cmp al, 0x65
jne 0x10007064
cmp byte [esi + 1], 0xff
jne 0x10007064
cmp byte [esi + 2], 0x25
je 0x10007071
mov ecx, dword [esp + 0x38]
cmp ebx, 5
jb 0x10006fc0
cmp ebx, 5
jae 0x10007098
push edi
call fcn.10006b60
add esp, 4
test eax, eax
je 0x10007174
add edi, eax
mov ebx, edi
sub ebx, dword [esp + 0x34]
cmp ebx, 5
jb 0x10007076
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x10], 8
ja 0x10007174
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x14]
jbe 0x100070ae
int3
mov edi, dword [esp + 0x34]
sub al, dl
push ebx
mov byte [edx + 0x1e], al
lea eax, [edx + 0x20]
push edi
push eax
mov byte [edx + 0x36], bl
call fcn.1000a5c0
add esp, 0xc
cmp ebx, 0x19
jbe 0x100070e8
mov esi, 6
jmp 0x10007182
cmp al, 0xff
jne 0x10007040
cmp byte [esi + 1], 0x25
jmp 0x10007062
mov esi, dword [esp + 0x2c]
lea edx, [ebx + edi]
mov eax, dword [esp + 0x20]
movzx ecx, byte [esi + 0x1e]
add ecx, esi
mov dword [esi + 0x44], eax
mov dword [esi + 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.10006b20
add esp, 8
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000713f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10007182
mov eax, dword [esp + 0x28]
mov dword [ebp + 8], eax
pop ebx
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], edi
mov dword [ebp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x14], eax
mov eax, dword [0x1002c000]
pop edi
mov dword [ebp], eax
xor eax, eax
pop esi
mov dword [0x1002c000], ebp
pop ebp
add esp, 0x14
ret 0x14
cmp dword [0x1002bfe8], 0
mov esi, 9
jne 0x10007192
mov ebx, dword [esp + 0x2c]
mov dword [0x1002bff4], esi
test ebx, ebx
je 0x100071ad
jmp 0x10007196
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.10006af0
mov eax, dword [esp + 0x34]
add esp, 4
test eax, eax
je 0x100071ad
mov dword [eax], 0
test ebp, ebp
je 0x100071bc
push 0x18
push ebp
call fcn.1000930c
add esp, 8
mov eax, dword [esp + 0x28]
mov dword [0x1002bff8], eax
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0x14