Function at 0x4082f0
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Execute shellcode via indirect call
Hook routines via microsoft detours

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x98
push ebx
push ebp
push esi
xor ebx, ebx
test eax, eax
push edi
je 0x408306
mov dword [eax], ebx
mov ebp, dword [esp + 0xb8]
test ebp, ebp
je 0x408318
mov dword [ebp], 0
mov edi, dword [esp + 0xbc]
test edi, edi
je 0x408329
mov dword [edi], 0
mov esi, dword [esp + 0xb0]
test esi, esi
jne 0x408346
pop edi
pop esi
pop ebp
mov eax, 0x57
pop ebx
add esp, 0x98
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x571e80], eax
je 0x408366
pop edi
pop esi
pop ebp
mov eax, 0x10dd
pop ebx
add esp, 0x98
ret 0x14
mov eax, dword [0x571e84]
test eax, eax
jne 0x408a5e
mov ecx, dword [esp + 0xac]
test ecx, ecx
jne 0x408390
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x98
ret 0x14
mov eax, dword [ecx]
test eax, eax
jne 0x4083b3
pop edi
pop esi
mov eax, 6
pop ebp
mov dword [0x571e84], eax
mov dword [0x571e88], ecx
pop ebx
add esp, 0x98
ret 0x14
xor ecx, ecx
push ecx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ecx
call fcn.00408a70
push 0
push esi
mov dword [esp + 0x20], eax
call fcn.00408a70
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
mov dword [esp + 0xb0], eax
jne 0x4083f4
mov eax, dword [0x571e78]
test eax, eax
jne 0x408a4f
jmp 0x408a03
test ebp, ebp
mov esi, dword [esp + 0x10]
je 0x4083ff
mov dword [ebp], esi
test edi, edi
je 0x40840c
mov eax, dword [esp + 0xb0]
mov dword [edi], eax
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
mov dword [esp + 0x28], eax
jne 0x408428
mov ebx, 8
jmp 0x408a03
cmp esi, 0x7ff80000
lea ebp, [esi - 0x7ff80000]
ja 0x40843b
mov ebp, 0x80000
cmp esi, 0x80000000
lea ebx, [esi + 0x7ff80000]
jb 0x40844e
mov ebx, 0xfff80000
cmp byte [esi], 0xe9
jne 0x408486
mov ecx, dword [esi + 1]
lea eax, [ecx + esi + 5]
cmp eax, esi
jae 0x408474
cmp eax, 0x80000000
jae 0x40846d
lea ebx, [eax + 0x7ff80000]
jmp 0x408486
mov ebx, 0xfff80000
jmp 0x408486
cmp eax, 0x7ff80000
lea ebp, [eax - 0x7ff80000]
ja 0x408486
mov ebp, 0x80000
mov eax, dword [0x571e74]
test eax, eax
mov edx, dword [0x571e70]
jne 0x4084a0
test edx, edx
je 0x4084b3
mov eax, edx
mov dword [0x571e74], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4084b3
cmp ecx, ebp
jb 0x4084b3
cmp ecx, ebx
jbe 0x40856c
test edx, edx
mov eax, edx
mov dword [0x571e74], eax
je 0x4084e1
test eax, eax
je 0x4084d5
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4084d5
cmp ecx, ebp
jb 0x4084d5
cmp ecx, ebx
jbe 0x40856c
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x571e74], eax
jne 0x4084c2
mov esi, dword [esp + 0x10]
mov edx, esi
and edx, 0xffff
sub esi, edx
push esi
push ebp
call fcn.00408bc0
xor edi, edi
add esp, 8
cmp eax, edi
jne 0x408511
push ebx
push esi
call fcn.00408af0
add esp, 8
cmp eax, edi
je 0x408629
mov dword [0x571e74], eax
mov dword [eax], 0x52727464
mov eax, dword [0x571e74]
mov dword [eax + 8], edi
mov edx, dword [0x571e70]
mov ecx, dword [0x571e74]
mov dword [ecx + 4], edx
mov eax, dword [0x571e74]
mov dword [0x571e70], eax
xor ecx, ecx
add eax, 0xffa8
mov edx, 0x38b
lea esp, [esp]
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
dec edx
jne 0x408550
mov eax, dword [0x571e74]
mov esi, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov eax, dword [0x571e74]
mov edx, dword [eax + 8]
cmp edx, ebp
mov dword [esp + 0x20], edx
jb 0x408617
cmp edx, ebx
ja 0x408617
mov ecx, dword [edx + 0x40]
mov dword [eax + 8], ecx
mov eax, 0xcccccccc
mov ecx, 0x12
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xb4]
test eax, eax
mov dword [esp + 0x18], edx
je 0x4085a8
mov dword [eax], edx
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
lea edi, [edx + 0x38]
xor eax, eax
mov ecx, edi
mov dword [ecx], eax
mov ebx, edx
add edx, 0x1e
mov dword [ecx + 4], eax
mov ecx, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], eax
xor eax, eax
cmp ebx, eax
lea edx, [esp + 0x64]
mov dword [esp + 0x58], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x5c], edx
mov esi, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], eax
mov edx, ebx
jne 0x40860b
lea edx, [esp + 0x68]
cmp ecx, eax
jne 0x408637
push 0xd
call ebp
xor eax, eax
jmp 0x40864b
mov dword [esp + 0x18], 0
mov ebx, 8
jmp 0x408a03
mov dword [esp + 0x18], edi
mov ebx, 8
jmp 0x408a03
movzx eax, byte [ecx]
push ecx
lea eax, [eax*8 + 0x57f1b0]
push edx
push eax
lea ecx, [esp + 0x44]
call dword [eax + 4]
mov edx, eax
sub edx, esi
add edx, dword [esp + 0x2c]
mov ecx, eax
add ebx, edx
sub eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov ebx, eax
mov eax, dword [esp + 0x14]
mov dl, byte [edi + eax]
mov al, byte [esp + 0x20]
mov byte [esp + 0x27], dl
mov dl, byte [esp + 0x1c]
sub dl, al
mov al, bl
and al, 7
shl dl, 3
xor dl, al
mov eax, dword [esp + 0x14]
mov byte [edi + eax], dl
inc eax
cmp eax, 8
mov dword [esp + 0x14], eax
jae 0x4086f4
mov al, byte [esi]
cmp al, 0xeb
je 0x4086f4
cmp al, 0xe9
je 0x4086f4
cmp al, 0xe0
je 0x4086f4
cmp al, 0xc2
je 0x4086f4
cmp al, 0xc3
je 0x4086f4
cmp al, 0xcc
je 0x4086f4
cmp al, 0xf3
jne 0x4086b4
cmp byte [esi + 1], 0xc3
je 0x4086f4
cmp al, 0xff
jne 0x4086be
cmp byte [esi + 1], 0x25
je 0x4086f4
cmp al, 0x26
je 0x4086d6
cmp al, 0x2e
je 0x4086d6
cmp al, 0x36
je 0x4086d6
cmp al, 0x3e
je 0x4086d6
cmp al, 0x64
je 0x4086d6
cmp al, 0x65
jne 0x4086e2
cmp byte [esi + 1], 0xff
jne 0x4086e2
cmp byte [esi + 2], 0x25
je 0x4086f4
cmp ebx, 5
jae 0x4088fc
mov ebx, dword [esp + 0x1c]
jmp 0x4085c9
cmp ebx, 5
jae 0x4088fc
mov esi, dword [esp + 0x10]
mov dl, byte [ecx]
cmp dl, 0x90
je 0x4088dd
cmp dl, 0x66
jne 0x408721
cmp byte [ecx + 1], 0x90
jne 0x408721
mov eax, 2
jmp 0x4088e2
cmp dl, 0xf
jne 0x408779
mov al, byte [ecx + 1]
cmp al, 0x1f
jne 0x408779
cmp byte [ecx + 2], 0
jne 0x40873d
mov eax, 3
jmp 0x4088e2
cmp al, 0x1f
jne 0x408779
cmp byte [ecx + 2], 0x40
jne 0x408757
cmp byte [ecx + 3], 0
jne 0x408757
mov eax, 4
jmp 0x4088e2
cmp al, 0x1f
jne 0x408779
cmp byte [ecx + 2], 0x44
jne 0x408779
mov al, byte [ecx + 3]
test al, al
jne 0x408779
mov al, byte [ecx + 4]
test al, al
jne 0x408779
mov eax, 5
jmp 0x4088e2
cmp dl, 0x66
jne 0x4087a8
cmp byte [ecx + 1], 0xf
jne 0x4087a8
cmp byte [ecx + 2], 0x1f
jne 0x4087a8
cmp byte [ecx + 3], 0x44
jne 0x4087a8
mov al, byte [ecx + 4]
test al, al
jne 0x4087a8
mov al, byte [ecx + 5]
test al, al
jne 0x4087a8
mov eax, 6
jmp 0x4088e2
cmp dl, 0xf
jne 0x408813
mov al, byte [ecx + 1]
cmp al, 0x1f
jne 0x408813
cmp byte [ecx + 2], 0x80
jne 0x4087dc
cmp byte [ecx + 3], 0
jne 0x4087dc
cmp byte [ecx + 4], 0
jne 0x4087dc
cmp byte [ecx + 5], 0
jne 0x4087dc
cmp byte [ecx + 6], 0
jne 0x4087dc
mov eax, 7
jmp 0x4088e2
cmp al, 0x1f
jne 0x408813
cmp byte [ecx + 2], 0x84
jne 0x408813
mov al, byte [ecx + 3]
test al, al
jne 0x408813
mov al, byte [ecx + 4]
test al, al
jne 0x408813
mov al, byte [ecx + 5]
test al, al
jne 0x408813
mov al, byte [ecx + 6]
test al, al
jne 0x408813
mov al, byte [ecx + 7]
test al, al
jne 0x408813
mov eax, 8
jmp 0x4088e2
cmp dl, 0x66
jne 0x4088d8
mov al, byte [ecx + 1]
cmp al, 0xf
jne 0x408857
cmp byte [ecx + 2], 0x1f
jne 0x408857
cmp byte [ecx + 3], 0x84
jne 0x408857
cmp byte [ecx + 4], 0
jne 0x408857
cmp byte [ecx + 5], 0
jne 0x408857
cmp byte [ecx + 6], 0
jne 0x408857
cmp byte [ecx + 7], 0
jne 0x408857
cmp byte [ecx + 8], 0
jne 0x408857
mov eax, 9
jmp 0x4088e2
cmp al, 0x66
jne 0x4088d8
cmp byte [ecx + 2], 0xf
jne 0x408892
cmp byte [ecx + 3], 0x1f
jne 0x408892
cmp byte [ecx + 4], 0x84
jne 0x408892
cmp byte [ecx + 5], 0
jne 0x408892
cmp byte [ecx + 6], 0
jne 0x408892
cmp byte [ecx + 7], 0
jne 0x408892
cmp byte [ecx + 8], 0
jne 0x408892
cmp byte [ecx + 9], 0
jne 0x408892
mov eax, 0xa
jmp 0x4088e2
cmp al, 0x66
jne 0x4088d8
cmp byte [ecx + 2], 0x66
jne 0x4088d8
cmp byte [ecx + 3], 0xf
jne 0x4088d8
cmp byte [ecx + 4], 0x1f
jne 0x4088d8
cmp byte [ecx + 5], 0x84
jne 0x4088d8
mov al, byte [ecx + 6]
test al, al
jne 0x4088d8
mov al, byte [ecx + 7]
test al, al
jne 0x4088d8
mov al, byte [ecx + 8]
test al, al
jne 0x4088d8
mov al, byte [ecx + 9]
test al, al
jne 0x4088d8
mov al, byte [ecx + 0xa]
test al, al
jne 0x4088d8
mov eax, 0xb
jmp 0x4088e2
cmp dl, 0xcc
jne 0x4088f3
mov eax, 1
add ecx, eax
mov ebx, ecx
sub ebx, esi
cmp ebx, 5
jb 0x408701
jmp 0x4088fc
cmp ebx, 5
jb 0x4089f5
cmp dword [esp + 0x14], 8
ja 0x4089f5
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x34]
jbe 0x40891b
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
sub al, dl
mov byte [ebp], al
mov ecx, ebx
mov eax, ecx
shr ecx, 2
mov byte [edx + 0x36], bl
lea edi, [edx + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 0x19
rep movsb byte es:[edi], byte [esi]
jbe 0x408951
mov ebx, 6
jmp 0x408a03
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0x10]
mov dword [edx + 0x44], eax
movzx eax, byte [ebp]
add eax, edx
lea ecx, [ebx + esi]
mov dword [edx + 0x40], ecx
lea edx, [eax + 5]
mov byte [eax], 0xe9
inc eax
sub ecx, edx
lea edi, [eax + 4]
cmp edi, ebp
mov dword [eax], ecx
jae 0x408994
mov ecx, ebp
sub ecx, edi
mov edx, ecx
shr ecx, 2
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
push 0x40
push ebx
xor edi, edi
push esi
mov dword [esp + 0x40], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4089b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x408a03
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edi
mov dword [eax + 0xc], esi
mov dword [eax + 8], ecx
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x30]
pop edi
mov dword [eax + 0x14], ecx
mov edx, dword [0x571e90]
pop esi
mov dword [eax], edx
pop ebp
mov dword [0x571e90], eax
xor eax, eax
pop ebx
add esp, 0x98
ret 0x14
mov eax, dword [0x571e78]
test eax, eax
mov ebx, 9
jne 0x408a09
mov dword [0x571e84], ebx
mov esi, dword [esp + 0x18]
test esi, esi
je 0x408a3e
xor eax, eax
mov edx, esi
and edx, 0xffff0000
mov ecx, 0x12
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [edx + 8]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0xb4]
test eax, eax
mov dword [edx + 8], esi
je 0x408a3e
mov dword [eax], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x408a4f
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0xac]
mov eax, ebx
mov dword [0x571e88], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 0x14