Function at 0x4073f0
Capabilities:
Allocate or change rwx memory
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b68d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x348
mov eax, dword [0x410008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x348], edx
mov esi, ecx
mov dword [ebp - 0x33c], esi
mov eax, dword [ebx + 0x10]
lea ecx, [ebp - 0x64]
mov edi, dword [ebx + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x340], edi
mov dword [ebp - 0x350], eax
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x4c], 0
movq qword [ebp - 0x54], xmm0
call fcn.00406bf0
push esi
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
call fcn.00406c90
test al, al
jne 0x40748a
mov esi, 0x10200001
jmp 0x4077ac
lea ecx, [ebp - 0x64]
call fcn.00406fa0
mov esi, eax
mov dword [ebp - 0x34c], esi
nop word [eax + eax]
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x64]
call fcn.00406fb0
test al, al
je 0x4074c3
cmp dword [ebp - 0x344], 0xf
jne 0x4074d1
lea ecx, [ebp - 0x64]
call fcn.00406d00
test al, al
jne 0x4074a0
jmp 0x4074e1
lea ecx, [ebp - 0x64]
call fcn.00406fa0
mov esi, eax
mov dword [ebp - 0x34c], eax
test esi, esi
jne 0x4074ef
mov esi, 0x10200002
jmp 0x4077ac
push esi
push 0
push 0x1a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x407512
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov esi, 0x10200003
jmp 0x4077ac
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x407537
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10200005
jmp 0x4077ac
push 0x2c8
lea eax, [ebp - 0x334]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x338], 0x10001
lea eax, [ebp - 0x338]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x407589
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10200006
jmp 0x4077ac
push 0x40
push 0x3000
push 0x100
push 0
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x4075c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x340]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10200004
jmp 0x4077ac
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x3a], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x31], eax
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x2c], eax
lea eax, [edi + 6]
mov dword [ebp - 0x1a], eax
lea eax, [edi + 4]
push 0
push 0x30
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x44]
push eax
push edi
push dword [ebp - 0x33c]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xc704ec83
mov word [ebp - 0x3c], 0x2404
mov dword [ebp - 0x36], 0x9c525150
mov byte [ebp - 0x32], 0xb9
mov byte [ebp - 0x2d], 0xb8
mov dword [ebp - 0x28], 0xa3d0ff51
mov dword [ebp - 0x20], 0x58595a9d
mov word [ebp - 0x1c], 0x5c6
mov word [ebp - 0x16], 0xc300
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x407682
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x340]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, 0x10200007
jmp 0x4077ac
lea eax, [ebp - 0x338]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x4076ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x340]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, 0x10200008
jmp 0x4077ac
push 0
push 0
push 0
push dword [ebp - 0x34c]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40771f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x340]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov esi, 0x10200009
jmp 0x4077ac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, dword [ebp - 0x33c]
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], edx
mov byte [ebp - 0x45], 1
push 0
push 1
lea eax, [ebp - 0x45]
push eax
lea eax, [edi + 6]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, dword [ebp - 0x348]
sbb edx, dword [ebp - 0x344]
test edx, edx
ja 0x4077a7
jb 0x407774
cmp eax, 0x7d0
ja 0x4077a7
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 0x45], 0
jne 0x407742
push 0
push 4
push dword [ebp - 0x350]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor esi, esi
jmp 0x4077ac
mov esi, 0x1020000a
lea ecx, [ebp - 0x64]
call fcn.00406c80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a480
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret