Function at 0x402700
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
mov dword [ebp - 0x80], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x49d008], eax
je 0x402745
pop edi
pop esi
mov eax, 0x10dd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x49d004]
test eax, eax
jne 0x402a13
test ebx, ebx
je 0x40276c
mov ecx, dword [ebx]
test ecx, ecx
jne 0x402784
mov dword [0x49d004], 6
mov dword [0x49d010], ebx
pop edi
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov dword [ebp - 0x70], eax
call fcn.00402110
mov ebx, eax
mov ecx, esi
mov dword [ebp - 0x78], ebx
call fcn.00402110
mov dword [ebp - 0x74], eax
cmp eax, ebx
jne 0x4027b4
cmp dword [0x49ce90], edi
jne 0x402a09
xor edx, edx
jmp 0x4029c3
push 0x18
call fcn.0040d087
add esp, 4
mov dword [ebp - 0x70], eax
mov ecx, ebx
call fcn.00401f70
mov edx, eax
mov dword [ebp - 0x6c], edx
test edx, edx
jne 0x4027d9
lea edi, [eax + 8]
jmp 0x4029c3
xorps xmm0, xmm0
mov esi, ebx
movq qword [edx + 0x38], xmm0
mov ebx, edx
jmp 0x4027ea
mov ebx, dword [ebp - 0x7c]
push 0x5c
lea eax, [ebp - 0x64]
mov edi, esi
push 0
push eax
call fcn.0040e790
add esp, 0xc
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x68], 0
test ebx, ebx
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x68]
cmovne ecx, ebx
mov dword [ebp - 0x54], eax
test esi, esi
jne 0x40282c
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x402843
movzx eax, byte [esi]
push esi
push ecx
lea ecx, [ebp - 0x64]
lea eax, [eax*8 + 0x4365c8]
push eax
mov eax, dword [eax + 4]
call eax
mov esi, eax
mov edx, dword [ebp - 0x6c]
mov eax, esi
sub eax, edi
add eax, dword [ebp - 0x68]
add ebx, eax
mov dword [ebp - 0x7c], ebx
mov ebx, esi
sub ebx, dword [ebp - 0x78]
mov cl, byte [ebp - 0x7c]
mov al, bl
sub cl, dl
and al, 7
shl cl, 3
or cl, al
mov byte [edx + 0x38], cl
mov al, byte [edi]
cmp al, 0xeb
je 0x4028b9
cmp al, 0xe9
je 0x4028b9
cmp al, 0xe0
je 0x4028b9
cmp al, 0xc2
je 0x4028b9
cmp al, 0xc3
je 0x4028b9
cmp al, 0xcc
je 0x4028b9
cmp al, 0xff
jne 0x40288c
cmp byte [edi + 1], 0x25
jmp 0x4028ae
cmp al, 0x26
je 0x4028a4
cmp al, 0x2e
je 0x4028a4
cmp al, 0x36
je 0x4028a4
cmp al, 0xe3
je 0x4028a4
cmp al, 0x64
je 0x4028a4
cmp al, 0x65
jne 0x4028b0
cmp byte [edi + 1], 0xff
jne 0x4028b0
cmp byte [edi + 2], 0x25
je 0x4028b9
cmp ebx, 5
jb 0x4027e7
mov edi, dword [ebp - 0x78]
cmp ebx, 5
jae 0x4028d4
cmp byte [esi], 0x90
jne 0x4029b5
inc esi
mov ebx, esi
sub ebx, edi
cmp ebx, 5
jb 0x4028c1
mov eax, dword [ebp - 0x7c]
lea ecx, [edx + 0x1e]
cmp eax, ecx
jbe 0x4028df
int3
sub al, dl
mov byte [edx + 0x36], bl
push ebx
mov byte [edx + 0x1e], al
lea eax, [edx + 0x20]
push edi
push eax
call fcn.0040fdd0
add esp, 0xc
cmp ebx, 0x19
jbe 0x402907
mov edx, dword [ebp - 0x6c]
mov edi, 6
jmp 0x4029c3
mov esi, dword [ebp - 0x6c]
lea edx, [ebx + edi]
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x74], 0
movzx ecx, byte [esi + 0x1e]
add ecx, esi
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], edx
lea eax, [ecx + 5]
mov byte [ecx], 0xe9
sub edx, eax
mov dword [ecx + 1], edx
lea edx, [esi + 0x1e]
add ecx, 5
mov eax, edx
sub eax, ecx
cmp ecx, edx
cmova eax, dword [ebp - 0x74]
test eax, eax
je 0x402951
push eax
push 0xcc
push ecx
call fcn.0040e790
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402977
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x6c]
mov edi, eax
jmp 0x4029c3
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x80]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], esi
mov dword [ecx + 0xc], edi
mov dword [ecx + 4], 0
mov eax, dword [ebp - 8]
pop edi
mov dword [ecx + 0x14], eax
mov eax, dword [0x49d01c]
pop esi
mov dword [ecx], eax
xor eax, eax
mov dword [0x49d01c], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x49ce90], 0
mov edi, 9
jne 0x4029d6
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov dword [0x49d004], edi
test edx, edx
je 0x4029fa
push 0x48
mov esi, edx
push 0
push edx
and esi, 0xffff0000
call fcn.0040e790
mov edx, dword [ebp - 0x6c]
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x70]
mov dword [esi + 8], edx
test eax, eax
je 0x402a09
push 0x18
push eax
call fcn.0040d0b7
add esp, 8
mov eax, dword [ebp - 0x80]
mov dword [0x49d010], eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cbf7
mov esp, ebp
pop ebp
ret 0xc