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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov eax, edx
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], ebx
test eax, eax
jne 0x1401975
lea eax, [edx + 0x57]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x15bcfb4], eax
je 0x1401991
mov eax, 0x10dd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x15bcfb0]
test eax, eax
jne 0x1401e19
test ebx, ebx
je 0x14019b8
mov esi, dword [ebx]
test esi, esi
jne 0x14019c6
mov dword [0x15bcfb0], 6
mov dword [0x15bcfbc], ebx
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
xor ebx, ebx
cmp byte [esi], 0xff
mov dword [ebp - 0x14], eax
jne 0x14019f0
cmp byte [esi + 1], 0x25
jne 0x14019f0
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x28], eax
call fcn.01401110
test al, al
je 0x14019f0
mov esi, dword [ebp - 0x28]
mov esi, dword [esi]
cmp byte [esi], 0xeb
jne 0x1401a30
movsx eax, byte [esi + 1]
add esi, 2
add esi, eax
mov al, byte [esi]
cmp al, 0xff
jne 0x1401a24
cmp byte [esi + 1], 0x25
jne 0x1401a30
mov eax, dword [esi + 2]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x28], eax
call fcn.01401110
test al, al
je 0x1401a30
mov esi, dword [ebp - 0x28]
mov esi, dword [esi]
jmp 0x1401a30
cmp al, 0xe9
jne 0x1401a30
mov eax, dword [esi + 1]
add esi, 5
add esi, eax
mov ecx, dword [ebp - 8]
cmp byte [ecx], 0xff
jne 0x1401a5c
cmp byte [ecx + 1], 0x25
jne 0x1401a5c
mov eax, dword [ecx + 2]
mov edx, eax
mov dword [ebp - 0x28], eax
call fcn.01401110
test al, al
je 0x1401a59
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
jmp 0x1401a5c
mov ecx, dword [ebp - 8]
cmp byte [ecx], 0xeb
jne 0x1401aa8
movsx eax, byte [ecx + 1]
add ecx, 2
add ecx, eax
mov dword [ebp - 8], ecx
mov al, byte [ecx]
cmp al, 0xff
jne 0x1401a94
cmp byte [ecx + 1], 0x25
jne 0x1401aa8
mov eax, dword [ecx + 2]
mov edx, eax
mov dword [ebp - 0x28], eax
call fcn.01401110
test al, al
je 0x1401aa5
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov dword [ebp - 8], ecx
jmp 0x1401aa8
cmp al, 0xe9
jne 0x1401aa8
mov eax, dword [ecx + 1]
add ecx, 5
add ecx, eax
mov dword [ebp - 8], ecx
jmp 0x1401aa8
mov ecx, dword [ebp - 8]
cmp ecx, esi
jne 0x1401abd
cmp dword [0x15bbebc], ebx
jne 0x1401e0f
jmp 0x1401e29
push 0x144c240
push 0x18
call fcn.01428070
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1401e24
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea edx, [ebp - 0x18]
call fcn.014011d0
mov ecx, dword [0x15bcfb8]
add esp, 4
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, dword [0x15bcfc0]
test ecx, ecx
jne 0x1401b09
test eax, eax
je 0x1401b1c
mov ecx, eax
mov dword [0x15bcfb8], ecx
mov edx, dword [ecx + 8]
test edx, edx
je 0x1401b1c
cmp edx, ebx
jb 0x1401b1c
cmp edx, edi
jbe 0x1401ba8
mov ecx, eax
mov dword [0x15bcfb8], ecx
test eax, eax
je 0x1401b4a
mov edx, eax
mov eax, dword [edx + 8]
test eax, eax
je 0x1401b39
cmp eax, ebx
jb 0x1401b39
cmp eax, edi
jbe 0x1401ba8
mov ecx, dword [ecx + 4]
mov eax, ecx
mov dword [0x15bcfb8], ecx
mov edx, ecx
test eax, eax
jne 0x1401b2a
mov ecx, esi
mov edx, ebx
push edi
and ecx, 0xffff0000
call fcn.01401480
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1401e22
mov dword [ecx], 0x52727464
xor edx, edx
mov dword [ecx + 8], 0
mov edi, 0x38b
mov eax, dword [0x15bcfc0]
mov dword [ecx + 4], eax
lea eax, [ecx + 0xffa8]
mov dword [0x15bcfb8], ecx
mov dword [0x15bcfc0], ecx
mov dword [eax + 0x40], edx
mov edx, eax
sub eax, 0x48
sub edi, 1
jne 0x1401b95
mov edi, dword [ebp - 0x1c]
mov dword [ecx + 8], edx
mov ebx, dword [ecx + 8]
cmp ebx, dword [ebp - 0x18]
jb 0x1401e22
cmp ebx, edi
ja 0x1401e22
mov eax, dword [ebx + 0x40]
push 0x48
push 0xcc
push ebx
mov dword [ecx + 8], eax
call fcn.0142aac0
add esp, 0xc
test ebx, ebx
je 0x1401e24
lea eax, [ebx + 0x38]
mov byte [ebp - 1], bl
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
mov ecx, ebx
movq qword [eax], xmm0
lea edx, [ebx + 0x1e]
mov dword [ebp - 0x10], ecx
xor edi, edi
mov dword [ebp - 0x28], edx
mov eax, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], ebx
jmp 0x1401c04
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push edx
push ecx
push eax
mov edi, eax
call fcn.01402040
mov ecx, eax
mov eax, dword [ebp - 0x20]
sub eax, edi
mov dword [ebp - 0x24], ecx
add eax, ecx
mov edx, ecx
add dword [ebp - 0x10], eax
sub edx, esi
mov cl, byte [ebp - 0x10]
sub cl, byte [ebp - 1]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
and dl, 7
shl cl, 3
xor cl, dl
mov edx, dword [ebp - 0x34]
mov byte [edx + eax], cl
inc eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp eax, 8
jae 0x1401cb2
mov al, byte [edi]
cmp al, 0xeb
je 0x1401cb2
cmp al, 0xe9
je 0x1401cb2
cmp al, 0xe0
je 0x1401cb2
cmp al, 0xc2
je 0x1401cb2
cmp al, 0xc3
je 0x1401cb2
cmp al, 0xcc
je 0x1401cb2
cmp al, 0xf3
jne 0x1401d19
cmp byte [edi + 1], 0xc3
je 0x1401cb2
cmp al, 0x26
je 0x1401c91
cmp al, 0x2e
je 0x1401c91
cmp al, 0x36
je 0x1401c91
cmp al, 0x3e
je 0x1401c91
cmp al, 0x64
je 0x1401c91
cmp al, 0x65
jne 0x1401c9d
cmp byte [edi + 1], 0xff
jne 0x1401c9d
cmp byte [edi + 2], 0x25
je 0x1401cb2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
cmp edx, 5
jb 0x1401c01
cmp edx, 5
jae 0x1401cdb
mov ecx, dword [ebp - 0x24]
nop word [eax + eax]
call fcn.01401260
test eax, eax
je 0x1401dd1
add ecx, eax
mov edx, ecx
sub edx, esi
mov dword [ebp - 0x1c], edx
cmp edx, 5
jb 0x1401cc0
cmp dword [ebp - 0x18], 8
ja 0x1401dd1
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x28]
jbe 0x1401cee
int3
mov eax, dword [ebp - 0xc]
sub cl, al
push edx
push esi
mov byte [eax + 0x1e], cl
mov byte [eax + 0x36], dl
add eax, 0x20
push eax
call fcn.0142acd0
mov edi, dword [ebp - 0x1c]
add esp, 0xc
cmp edi, 0x19
jbe 0x1401d2a
mov edi, 6
jmp 0x1401e29
cmp al, 0xff
jne 0x1401c79
cmp byte [edi + 1], 0x25
jmp 0x1401c9b
mov ecx, dword [ebp - 0xc]
lea edx, [esi + edi]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], 0
mov dword [ecx + 0x44], eax
mov dword [ecx + 0x40], edx
movzx ecx, byte [ecx + 0x1e]
add ecx, dword [ebp - 0xc]
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 1], edx
add ecx, 5
sub eax, ecx
cmp ecx, dword [ebp - 0x28]
cmova eax, dword [ebp - 0x34]
test eax, eax
je 0x1401d74
push eax
push 0xcc
push ecx
call fcn.0142aac0
add esp, 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1401e29
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], esi
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 0x14], eax
mov eax, dword [0x15bcfc8]
mov dword [ecx], eax
xor eax, eax
mov dword [0x15bcfc8], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x15bbebc], 0
mov edi, 9
je 0x1401e29
mov esi, dword [ebp - 0x14]
push 0x48
push 0
push ebx
call fcn.0142aac0
mov ecx, ebx
add esp, 0xc
and ecx, 0xffff0000
mov eax, dword [ecx + 8]
mov dword [ebx + 0x40], eax
mov dword [ecx + 8], ebx
test esi, esi
je 0x1401e0f
push 0x18
push esi
call fcn.014280c5
add esp, 8
mov eax, dword [ebp - 0x30]
mov dword [0x15bcfbc], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor ebx, ebx
mov edi, 8
mov esi, dword [ebp - 0x14]
mov dword [0x15bcfb0], edi
test ebx, ebx
je 0x1401e00
jmp 0x1401de2