Function at 0x14012a490
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x510
mov rax, qword [0x1402c2498]
xor rax, rsp
mov qword [rsp + 0x500], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1402cb898], 0
mov ebp, eax
jne 0x14012a4e7
lea rcx, str.GC_stop_world___called_before_GC_thr_init__
call qword [0x1402c23e0]
call qword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [0x1402cc710], 0
je 0x14012a4f5
call fcn.140128e60
lea rcx, [0x1402ce920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
lea r14, [0x1402cb8a0]
lea r12, [0x1402cc0a0]
lea r15, [0x1402cc0a0]
nop dword [rax]
mov rbx, qword [r14]
test rbx, rbx
je 0x14012a789
nop dword [rax]
cmp qword [rbx + 0x18], rsi
je 0x14012a77d
cmp qword [rbx + 0x28], rsi
jne 0x14012a77d
cmp dword [rbx + 8], ebp
je 0x14012a77d
cmp dword [0x1402cc748], esi
je 0x14012a580
cmp dword [0x1402c3848], esi
jne 0x14012a580
cmp rbx, r15
je 0x14012a580
xor r8d, r8d
mov rcx, rbx
and rcx, 0xfffffffffffff000
lea edx, [r8 + 1]
call fcn.1401285e0
nop dword [rax + rax]
mov eax, 0xffffffff
xchg byte [0x1402c3854], al
cmp al, 0xff
je 0x14012a580
mov edi, esi
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x14012a5b2
cmp dword [rsp + 0x20], 0x103
jne 0x14012a655
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x14012a602
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x60], 0x100003
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x14012a66a
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x14012a602
lea rcx, str.ResumeThread_failed_in_suspend_loop
call qword [0x1402c23e0]
call qword [sym.imp.KERNEL32.dll_DebugBreak]
cmp edi, 1
jle 0x14012a62f
nop
xor ecx, ecx
mov byte [0x1402c3854], sil
call qword [sym.imp.KERNEL32.dll_Sleep]
nop word [rax + rax]
mov eax, 0xffffffff
xchg byte [0x1402c3854], al
cmp al, 0xff
je 0x14012a620
inc edi
cmp edi, 0xf4240
jl 0x14012a591
lea rcx, str.SuspendThread_loop_failed
call qword [0x1402c23e0]
call qword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x14012a591
nop
mov rcx, rbx
mov byte [0x1402c3854], sil
call fcn.1401291a0
jmp 0x14012a77d
mov rax, qword [rsp + 0xa8]
mov qword [rbx + 0x368], rax
mov rax, qword [rsp + 0xb0]
mov qword [rbx + 0x370], rax
mov rax, qword [rsp + 0xb8]
mov qword [rbx + 0x378], rax
mov rax, qword [rsp + 0xc0]
mov qword [rbx + 0x380], rax
mov rax, qword [rsp + 0xd0]
mov qword [rbx + 0x388], rax
mov rax, qword [rsp + 0xd8]
mov qword [rbx + 0x390], rax
mov rax, qword [rsp + 0xe0]
mov qword [rbx + 0x398], rax
mov rax, qword [rsp + 0xe8]
mov qword [rbx + 0x3a0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rbx + 0x3a8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rbx + 0x3b0], rax
mov rax, qword [rsp + 0x100]
mov qword [rbx + 0x3b8], rax
mov rax, qword [rsp + 0x108]
mov qword [rbx + 0x3c0], rax
mov rax, qword [rsp + 0x110]
mov qword [rbx + 0x3c8], rax
mov rax, qword [rsp + 0x118]
mov qword [rbx + 0x3d0], rax
mov rax, qword [rsp + 0x120]
mov qword [rbx + 0x3d8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rbx + 0x360], rax
mov byte [rbx + 0x3b], 1
nop
mov rax, qword [0x1402cc698]
mov byte [0x1402c3854], sil
test rax, rax
je 0x14012a77d
mov rdx, qword [rbx + 0x10]
mov ecx, 0xa
call rax
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14012a530
add r14, 8
cmp r14, r12
jl 0x14012a520
lea rcx, [0x1402ce920]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1402cc710], esi
je 0x14012a7d9
xchg dword [0x1402cc674], esi
test esi, esi
jns 0x14012a7d9
mov rcx, qword [0x1402cc5b8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x14012a7d9
lea rcx, str.SetEvent_failed
call qword [0x1402c23e0]
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140136b90
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret