Function at 0x4070c0
Capabilities:
Resume thread
Terminate 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 0x40b64d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x318
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 - 0x31c], edx
mov dword [ebp - 0x318], ecx
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x320], eax
mov al, byte [ebx + 0x10]
mov byte [ebp - 0x30d], al
mov eax, dword [ebx + 0x14]
push 0x40c3fc
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x40714c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, 0x1010000b
jmp 0x4073c3
push str.NtCreateThreadEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x407170
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, 0x10100001
jmp 0x4073c3
mov cl, byte [ebp - 0x30d]
xor edx, edx
test cl, cl
je 0x4071d1
xorps xmm0, xmm0
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x34]
movq qword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x34], xmm0
call fcn.00406bf0
push dword [ebp - 0x318]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.00406c90
lea ecx, [ebp - 0x34]
call fcn.00406e80
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x314], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00406c80
mov cl, byte [ebp - 0x30d]
mov edx, dword [ebp - 0x314]
push 0
push 0
push 0
xor eax, eax
mov dword [ebp - 0x314], 7
push 0
test cl, cl
mov dword [ebp - 0x30c], 0
cmovne eax, dword [ebp - 0x314]
push eax
push dword [ebp - 0x320]
mov eax, dword [ebp - 0x31c]
cmovne eax, edx
push eax
push dword [ebp - 0x318]
lea eax, [ebp - 0x30c]
push 0
push 0x1fffff
push eax
call edi
test eax, eax
js 0x4073bc
mov edi, dword [ebp - 0x30c]
test edi, edi
je 0x4073bc
cmp byte [ebp - 0x30d], 0
je 0x407332
push 0x2c8
lea eax, [ebp - 0x304]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x308], 0x10002
lea eax, [ebp - 0x308]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x4072a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x30c]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x30c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10100005
jmp 0x4073c3
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x308]
push eax
push dword [ebp - 0x30c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x4072ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x30c]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x30c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10100006
jmp 0x4073c3
push dword [ebp - 0x30c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40732c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x30c]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x30c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10100007
jmp 0x4073c3
mov edi, dword [ebp - 0x30c]
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40736b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x30c]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x30c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10100009
jmp 0x4073c3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x30c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4073a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x30c]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1010000a
jmp 0x4073c3
mov ecx, dword [ebp - 0x324]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x30c]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4073c3
mov dword [esi], eax
mov eax, 0x10100004
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