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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x768
mov dword [ebp - 0x75c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x760], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.0047fa50
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10007
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x4a6998
jmp 0x4a6bde
mov ecx, dword [ebp - 0x214]
sub ecx, 0x480
and ecx, 0xffffffe0
mov dword [ebp - 0x764], ecx
lea edx, [ebp - 0x758]
mov dword [ebp - 0x768], edx
cmp dword [ebp + 0x14], 0
je 0x4a6a27
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x6d8]
push edx
call fcn.004808c0
add esp, 0xc
mov eax, dword [ebp - 0x764]
add eax, 0x80
push eax
mov ecx, dword [ebp - 0x768]
push ecx
call fcn.00444910
add esp, 8
mov dword [ebp - 0x768], eax
mov edx, dword [ebp - 0x768]
lea eax, [ebp - 0x758]
sub edx, eax
mov ecx, dword [ebp - 0x764]
add ecx, edx
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x768]
push eax
call fcn.00444980
add esp, 0xc
mov dword [ebp - 0x768], eax
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x768]
push edx
call fcn.00444790
add esp, 8
mov dword [ebp - 0x768], eax
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x768]
push ecx
call fcn.004447c0
add esp, 8
mov dword [ebp - 0x768], eax
mov edx, dword [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x768]
push eax
call fcn.004447f0
add esp, 8
mov dword [ebp - 0x768], eax
mov ecx, dword [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x768]
push edx
call fcn.00444820
add esp, 8
mov dword [ebp - 0x768], eax
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x768]
push ecx
call fcn.00444850
add esp, 8
mov dword [ebp - 0x768], eax
mov edx, dword [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x768]
push eax
call fcn.00444880
add esp, 8
mov dword [ebp - 0x768], eax
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x768]
push edx
call fcn.004448b0
add esp, 8
mov dword [ebp - 0x768], eax
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x768]
push ecx
call fcn.004448e0
add esp, 8
mov dword [ebp - 0x768], eax
mov edx, dword [ebp - 0x768]
lea eax, [ebp - 0x758]
sub edx, eax
mov ecx, dword [ebp - 0x764]
add ecx, edx
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x768]
push eax
call fcn.00444940
add esp, 0xc
mov dword [ebp - 0x768], eax
mov ecx, dword [ebp - 0x764]
sub ecx, 4
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x764]
mov dword [ebp - 0x220], edx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x480
mov ecx, dword [ebp - 0x764]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x4a6b77
jmp 0x4a6bde
lea eax, [ebp - 0x760]
push eax
push 0x480
lea ecx, [ebp - 0x758]
push ecx
mov edx, dword [ebp - 0x764]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4a6ba1
jmp 0x4a6bde
push 0x480
mov ecx, dword [ebp - 0x764]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x4a6bbd
jmp 0x4a6bde
lea eax, [ebp - 0x2d8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x4a6bd4
jmp 0x4a6bde
mov dword [ebp - 0x75c], 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x75c]
mov esp, ebp
pop ebp
ret