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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x2c
push esi
xor esi, esi
push edi
test eax, eax
je 0x1401733
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x140173c
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1401745
mov dword [eax], esi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x1401757
lea eax, [edi + 0x57]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x45bc244], eax
je 0x1401771
pop edi
mov eax, 0x10dd
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x45bc248]
test eax, eax
jne 0x1401ba2
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x140179b
mov eax, dword [ecx]
test eax, eax
jne 0x14017a8
mov dword [0x45bc248], 6
mov dword [0x45bc24c], ecx
pop edi
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 0x14
xor ecx, ecx
push ebx
push ecx
push eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
call fcn.01401bb0
push 0
mov ebx, eax
push edi
mov dword [ebp - 4], ebx
call fcn.01401bb0
mov ecx, eax
mov dword [ebp - 0x2c], ecx
cmp ecx, ebx
jne 0x14017df
cmp dword [0x45bc23c], esi
jne 0x1401b7d
jmp 0x1401b48
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x14017e8
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x14017f1
mov dword [eax], ecx
push 0x4580a35
push 0x18
call fcn.01424c76
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1401b43
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call fcn.01401330
mov ecx, dword [0x45bc238]
add esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x20]
mov eax, dword [0x45bc234]
test ecx, ecx
jne 0x140183d
test eax, eax
je 0x1401850
mov ecx, eax
mov dword [0x45bc238], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x1401850
cmp edx, ebx
jb 0x1401850
cmp edx, edi
jbe 0x14018d3
mov ecx, eax
mov dword [0x45bc238], ecx
test eax, eax
je 0x140187c
test ecx, ecx
je 0x140186f
mov eax, dword [ecx + 8]
test eax, eax
je 0x140186f
cmp eax, ebx
jb 0x140186f
cmp eax, edi
jbe 0x14018d3
mov ecx, dword [ecx + 4]
mov dword [0x45bc238], ecx
test ecx, ecx
jne 0x1401860
mov ecx, dword [ebp - 4]
push edi
movzx eax, cx
sub ecx, eax
push ebx
push ecx
call fcn.014011a0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1401b43
mov dword [ecx + 8], esi
xor edx, edx
mov dword [ecx], 0x52727464
mov esi, 0x38b
mov eax, dword [0x45bc234]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x45bc238], ecx
mov dword [0x45bc234], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x14018c3
mov dword [ecx + 8], edx
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
cmp edx, ebx
jb 0x1401b43
cmp edx, edi
ja 0x1401b43
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
mov ecx, edx
mov eax, dword [ebp + 0x10]
mov dword [edx], 0xcccccccc
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 [ebp - 0x28], ecx
test eax, eax
je 0x140196c
mov dword [eax], edx
mov edi, dword [ebp - 4]
lea eax, [edx + 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
movq qword [eax], xmm0
mov ebx, edx
lea eax, [edx + 0x1e]
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], eax
nop dword [eax + eax]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
push edi
lea eax, [ebp - 0x14]
mov esi, edi
push eax
push ebx
call fcn.01402a80
mov edx, dword [ebp - 0xc]
mov edi, eax
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 8]
sub eax, esi
add eax, edi
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, edi
mov ch, byte [ebp - 0x10]
sub ebx, dword [ebp - 4]
sub ch, dl
mov al, ch
mov byte [ebp + 0xf], ch
shl al, 3
mov cl, bl
and cl, 7
or cl, al
mov eax, dword [ebp - 0x20]
mov byte [eax], cl
inc eax
cmp dword [ebp - 8], 8
mov dword [ebp - 0x20], eax
jae 0x1401a45
mov al, byte [esi]
cmp al, 0xeb
je 0x1401a45
cmp al, 0xe9
je 0x1401a45
cmp al, 0xe0
je 0x1401a45
cmp al, 0xc2
je 0x1401a45
cmp al, 0xc3
je 0x1401a45
cmp al, 0xcc
je 0x1401a45
cmp al, 0xf3
jne 0x1401a0a
cmp byte [esi + 1], 0xc3
jmp 0x1401a36
cmp al, 0xff
jne 0x1401a14
cmp byte [esi + 1], 0x25
jmp 0x1401a36
cmp al, 0x26
je 0x1401a2c
cmp al, 0x2e
je 0x1401a2c
cmp al, 0x36
je 0x1401a2c
cmp al, 0x3e
je 0x1401a2c
cmp al, 0x64
je 0x1401a2c
cmp al, 0x65
jne 0x1401a38
cmp byte [esi + 1], 0xff
jne 0x1401a38
cmp byte [esi + 2], 0x25
je 0x1401a45
cmp ebx, 5
jae 0x1401a7d
mov ebx, dword [ebp - 0x10]
jmp 0x1401990
cmp ebx, 5
jae 0x1401a73
nop word [eax + eax]
push edi
call fcn.01401430
add esp, 4
test eax, eax
je 0x1401b33
add edi, eax
mov ebx, edi
sub ebx, dword [ebp - 4]
cmp ebx, 5
jb 0x1401a50
mov edx, dword [ebp - 0xc]
mov ch, byte [ebp + 0xf]
cmp dword [ebp - 8], 8
ja 0x1401b33
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jbe 0x1401a86
int3
mov esi, dword [ebp - 4]
lea eax, [edx + 0x20]
push ebx
push esi
push eax
mov byte [edx + 0x1e], ch
mov byte [edx + 0x36], bl
call fcn.01427250
add esp, 0xc
cmp ebx, 0x19
jbe 0x1401aac
mov esi, 6
jmp 0x1401b48
mov eax, dword [ebp - 0xc]
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x44], ecx
movzx ecx, byte [eax + 0x1e]
add ecx, eax
mov dword [eax + 0x40], edx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
lea eax, [ecx + 5]
mov dword [ecx + 1], edx
push dword [ebp - 0x14]
push eax
call fcn.014013f0
add esp, 8
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 0x40
push ebx
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1401afc
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x1401b48
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
pop ebx
pop edi
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0xc], esi
mov dword [ecx + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0x14], eax
mov eax, dword [0x45bc254]
mov dword [ecx], eax
xor eax, eax
mov dword [0x45bc254], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp dword [0x45bc23c], 0
mov esi, 9
jne 0x1401b4e
jmp 0x1401b48
mov esi, 8
mov dword [0x45bc248], esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1401b6b
push eax
call fcn.014013c0
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x1401b6b
mov dword [eax], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1401b7d
push 0x18
push eax
call fcn.01424c68
add esp, 8
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1401b8a
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1401b97
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [0x45bc24c], eax
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14