Function at 0x1401700
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, 0x34
push esi
xor esi, esi
push edi
test eax, eax
je 0x1401713
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x140171c
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1401725
mov dword [eax], esi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x1401737
lea eax, [edi + 0x57]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x15b71a4], eax
je 0x1401751
pop edi
mov eax, 0x10dd
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x15b71a8]
test eax, eax
jne 0x1401b22
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x140177b
mov eax, dword [ecx]
test eax, eax
jne 0x1401788
mov dword [0x15b71a8], 6
mov dword [0x15b71ac], 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 - 0x10], ebx
call fcn.01401b40
push ebx
push edi
mov dword [ebp - 8], eax
call fcn.01401b40
mov edx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], edx
cmp edx, eax
jne 0x14017bc
cmp dword [0x15b719c], ebx
jne 0x1401afd
jmp 0x1401b31
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x14017c5
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x14017ce
mov dword [eax], edx
push 0x157f9c5
push 0x18
call fcn.01423f36
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
test esi, esi
je 0x1401b2c
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.01401320
mov ecx, dword [0x15b7198]
add esp, 0xc
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x15b7194]
test ecx, ecx
jne 0x140181f
test eax, eax
je 0x1401832
mov ecx, eax
mov dword [0x15b7198], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x1401832
cmp edx, ebx
jb 0x1401832
cmp edx, edi
jbe 0x14018c3
mov ecx, eax
mov dword [0x15b7198], ecx
test eax, eax
je 0x1401864
mov edx, eax
test eax, eax
je 0x1401853
mov eax, dword [edx + 8]
test eax, eax
je 0x1401853
cmp eax, ebx
jb 0x1401853
cmp eax, edi
jbe 0x14018c3
mov ecx, dword [ecx + 4]
mov edx, ecx
mov dword [0x15b7198], ecx
mov eax, ecx
test edx, edx
jne 0x1401840
push edi
mov eax, esi
and eax, 0xffff0000
push ebx
push eax
call fcn.01401190
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1401b2a
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov esi, 0x38b
mov eax, dword [0x15b7194]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x15b7198], ecx
mov dword [0x15b7194], ecx
nop
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub esi, 1
jne 0x14018b0
mov esi, dword [ebp - 8]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [ebp + 0xc]
jb 0x1401b2a
cmp ebx, edi
ja 0x1401b2a
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.01426740
add esp, 0xc
test ebx, ebx
je 0x1401b2c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x14018fe
mov dword [eax], ebx
lea eax, [ebx + 0x38]
mov byte [ebp + 0xf], bl
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
movq qword [eax], xmm0
mov ecx, ebx
lea eax, [ebx + 0x1e]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x24], eax
mov edi, esi
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
push edi
lea eax, [ebp - 0x1c]
mov esi, edi
push eax
push ecx
call fcn.01402a00
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov eax, dword [ebp - 0x20]
mov edx, edi
sub edx, dword [ebp - 8]
sub eax, esi
add eax, edi
mov dword [ebp - 0x18], edx
add ecx, eax
and dl, 7
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
sub cl, byte [ebp + 0xf]
mov byte [ebp - 1], cl
shl cl, 3
xor cl, dl
mov edx, dword [ebp - 0x2c]
mov byte [edx + eax], cl
inc eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp eax, 8
jae 0x14019d7
mov al, byte [esi]
cmp al, 0xeb
je 0x14019d7
cmp al, 0xe9
je 0x14019d7
cmp al, 0xe0
je 0x14019d7
cmp al, 0xc2
je 0x14019d7
cmp al, 0xc3
je 0x14019d7
cmp al, 0xcc
je 0x14019d7
cmp al, 0xf3
jne 0x140199d
cmp byte [esi + 1], 0xc3
je 0x14019d7
cmp al, 0xff
jne 0x14019a7
cmp byte [esi + 1], 0x25
jmp 0x14019c9
cmp al, 0x26
je 0x14019bf
cmp al, 0x2e
je 0x14019bf
cmp al, 0x36
je 0x14019bf
cmp al, 0x3e
je 0x14019bf
cmp al, 0x64
je 0x14019bf
cmp al, 0x65
jne 0x14019cb
cmp byte [esi + 1], 0xff
jne 0x14019cb
cmp byte [esi + 2], 0x25
je 0x14019d7
mov ecx, dword [ebp - 0xc]
cmp edx, 5
jb 0x1401923
cmp edx, 5
jae 0x1401a00
nop dword [eax]
push edi
call fcn.01401420
add esp, 4
test eax, eax
je 0x1401ac7
add edi, eax
mov edx, edi
sub edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
cmp edx, 5
jb 0x14019e0
cmp dword [ebp - 0x14], 8
ja 0x1401ac7
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x1c]
jbe 0x1401a13
int3
mov ecx, dword [ebp - 0x24]
mov al, byte [ebp - 1]
mov edi, dword [ebp - 8]
push edx
mov byte [ecx], al
lea eax, [ebx + 0x20]
push edi
push eax
mov byte [ebx + 0x36], dl
call fcn.014261c0
mov esi, dword [ebp - 0x18]
add esp, 0xc
cmp esi, 0x19
jbe 0x1401a41
mov esi, 6
jmp 0x1401b31
mov eax, dword [ebp - 0x30]
lea edx, [esi + edi]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x40], edx
movzx ecx, byte [eax]
add ecx, ebx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
lea eax, [ecx + 5]
mov dword [ecx + 1], edx
push dword [ebp - 0x1c]
push eax
call fcn.014013e0
add esp, 8
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push 0x40
push esi
push edi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1401a93
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x1401b31
mov ecx, dword [ebp - 0x10]
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 - 0x28]
pop ebx
mov dword [ecx + 0x14], eax
mov eax, dword [0x15b71b4]
pop edi
mov dword [ecx], eax
xor eax, eax
mov dword [0x15b71b4], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp dword [0x15b719c], 0
mov esi, 9
je 0x1401b31
mov edi, dword [ebp - 0x10]
push ebx
call fcn.014013b0
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x1401aee
mov dword [eax], 0
test edi, edi
je 0x1401afd
push 0x18
push edi
call fcn.01423f28
add esp, 8
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1401b0a
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1401b17
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [0x15b71ac], 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 - 0x10]
mov dword [0x15b71a8], esi
test ebx, ebx
je 0x1401aee
jmp 0x1401ad8