Function at 0x10012c20
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Execute shellcode via indirect call
Hook routines via microsoft detours
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x101900e0]
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 + 0x34], ebx
test edi, edi
jne 0x10012c65
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100e6bb9
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10197518], eax
je 0x10012c8f
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100e6bb9
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x10197514]
test eax, eax
jne 0x100130af
test ebx, ebx
je 0x10012cb6
mov ecx, dword [ebx]
test ecx, ecx
jne 0x10012cd2
mov dword [0x10197514], 6
mov dword [0x10197520], ebx
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100e6bb9
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x24], eax
call fcn.10012410
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.10012410
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x14]
jne 0x10012d05
cmp dword [0x10197530], ebx
jne 0x100130a4
jmp 0x100130cd
push 0x18
call fcn.100e67ed
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x14]
add esp, 4
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.10011a50
mov ecx, dword [0x1019751c]
add esp, 4
mov edi, dword [esp + 0x28]
mov eax, dword [0x10197524]
test ecx, ecx
jne 0x10012d49
test eax, eax
je 0x10012d62
mov ecx, eax
mov dword [0x1019751c], ecx
mov edx, dword [ecx + 8]
mov ebx, dword [esp + 0x10]
test edx, edx
je 0x10012d66
cmp edx, ebx
jb 0x10012d66
cmp edx, edi
jbe 0x10012df4
jmp 0x10012d66
mov ebx, dword [esp + 0x10]
mov ecx, eax
mov dword [0x1019751c], ecx
test eax, eax
je 0x10012d95
mov edx, eax
cmp dword [edx + 8], 0
je 0x10012d84
cmp dword [edx + 8], ebx
jb 0x10012d84
cmp dword [edx + 8], edi
jbe 0x10012df4
mov ecx, dword [ecx + 4]
mov eax, ecx
mov dword [0x1019751c], ecx
mov edx, ecx
test eax, eax
jne 0x10012d74
movzx eax, si
mov ecx, esi
push edi
sub ecx, eax
mov edx, ebx
call fcn.10012010
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100130c6
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x10197524]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x1019751c], ecx
mov dword [0x10197524], ecx
nop
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x10012de0
mov esi, dword [esp + 0x14]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [esp + 0x10]
jb 0x100130c6
cmp ebx, edi
ja 0x100130c6
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.100e93c0
add esp, 0xc
test ebx, ebx
je 0x100130c8
lea eax, [ebx + 0x38]
mov dword [esp + 0x1c], ebx
xorps xmm0, xmm0
mov dword [esp + 0x30], eax
movq qword [eax], xmm0
lea eax, [ebx + 0x1e]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
mov byte [esp + 0x1a], bl
mov dword [esp + 0x10], ebx
push 0x70
lea eax, [esp + 0x44]
mov edi, esi
push 0
push eax
call fcn.100e93c0
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x60], eax
test ebx, ebx
mov dword [esp + 0x6c], 0
lea ecx, [esp + 0x70]
mov dword [esp + 0x38], 0
lea eax, [esp + 0x38]
cmovne ecx, ebx
mov dword [esp + 0x64], eax
test esi, esi
jne 0x10012e9e
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10012eb6
movzx eax, byte [esi]
push esi
push ecx
lea ecx, [esp + 0x48]
lea eax, [eax*8 + 0x10198830]
push eax
mov eax, dword [eax + 4]
call eax
mov esi, eax
inc dword [esp + 0x20]
mov eax, esi
sub eax, edi
add eax, dword [esp + 0x38]
add ebx, eax
mov dword [esp + 0x1c], ebx
mov ebx, esi
mov edx, dword [esp + 0x1c]
mov ch, dl
sub ch, byte [esp + 0x1a]
sub ebx, dword [esp + 0x14]
mov cl, ch
mov al, bl
shl cl, 3
and al, 7
mov byte [esp + 0x1b], ch
or cl, al
mov eax, dword [esp + 0x30]
mov byte [eax], cl
inc eax
cmp dword [esp + 0x20], 8
mov dword [esp + 0x30], eax
jae 0x10012f5c
mov cl, byte [edi]
cmp cl, 0xeb
je 0x10012f5c
cmp cl, 0xe9
je 0x10012f5c
cmp cl, 0xe0
je 0x10012f5c
cmp cl, 0xc2
je 0x10012f5c
cmp cl, 0xc3
je 0x10012f5c
cmp cl, 0xcc
je 0x10012f5c
lea eax, [edi + 1]
cmp cl, 0xf3
jne 0x10012fc3
cmp byte [eax], 0xc3
je 0x10012f5c
cmp cl, 0x26
je 0x10012f48
cmp cl, 0x2e
je 0x10012f48
cmp cl, 0x36
je 0x10012f48
cmp cl, 0x3e
je 0x10012f48
cmp cl, 0x64
je 0x10012f48
cmp cl, 0x65
jne 0x10012f53
cmp byte [eax], 0xff
jne 0x10012f53
cmp byte [edi + 2], 0x25
je 0x10012f5c
cmp ebx, 5
jb 0x10012e50
cmp ebx, 5
jae 0x10012fd1
mov ecx, esi
call fcn.10011b50
test eax, eax
je 0x10013078
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, eax
cmp ebx, 5
jb 0x10012f61
mov edx, dword [esp + 0x1c]
mov ch, byte [esp + 0x1b]
cmp dword [esp + 0x20], 8
ja 0x10013078
mov esi, dword [esp + 0x28]
cmp edx, esi
jbe 0x10012f9b
int3
mov edi, dword [esp + 0x10]
push ebx
push eax
mov byte [esi], ch
lea eax, [edi + 0x20]
mov byte [edi + 0x36], bl
push eax
call fcn.100e8870
add esp, 0xc
cmp ebx, 0x19
jbe 0x10012fd7
mov esi, 6
mov ebx, edi
jmp 0x100130cd
cmp cl, 0xff
jne 0x10012f2a
cmp byte [eax], 0x25
jmp 0x10012f51
mov eax, dword [esp + 0x14]
jmp 0x10012f87
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
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.100119b0
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 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 0x10013033
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x10]
mov esi, eax
jmp 0x100130cd
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov dword [ecx + 8], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0x10], edi
mov dword [ecx + 0xc], ebx
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x14], eax
mov eax, dword [0x10197534]
mov dword [ecx], eax
xor eax, eax
mov dword [0x10197534], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100e6bb9
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x10197530], 0
mov esi, 9
mov ebx, dword [esp + 0x10]
je 0x100130cd
mov edi, dword [esp + 0x24]
mov ecx, ebx
call fcn.10012320
test edi, edi
je 0x100130a4
push 0x18
push edi
call fcn.100e6822
add esp, 8
mov eax, dword [esp + 0x34]
mov dword [0x10197520], eax
mov eax, esi
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100e6bb9
mov esp, ebp
pop ebp
ret 0xc
xor ebx, ebx
mov esi, 8
mov edi, dword [esp + 0x24]
mov dword [0x10197514], esi
test ebx, ebx
je 0x10013095
jmp 0x1001308e