Function at 0x180156640
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x530
mov rax, qword [0x1804c4e78]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov r13, rcx
mov qword [rsp + 0x40], 0
lea rcx, [0x180340b78]
mov r14, rdx
mov bpl, 1
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LdrLockLoaderLock
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LdrUnlockLoaderLock
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test r12, r12
je 0x1801566d0
test rax, rax
je 0x1801566d0
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call r12
nop word [rax + rax]
xor esi, esi
xor ebx, ebx
nop dword [rax]
nop dword [rax + rax]
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r9d, r9d
mov r8d, 0x81a
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call sub.ntdll.dll_NtGetNextThread
mov edi, eax
test rbx, rbx
je 0x180156725
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x1801567d1
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x1801566e0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x1801566e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1801566e0
test eax, eax
je 0x180156770
test bpl, bpl
jne 0x180156770
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1801566e0
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x4d0
call fcn.180288120
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x80], 0x10000b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1801566e0
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x1801567ca
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x50]
mov dword [rsp + 0x38], edi
lea r8, [rsp + 0x48]
mov rax, qword [rcx]
lea rdx, [rsp + 0x38]
call qword [rax + 0x10]
inc esi
jmp 0x1801566e0
xor bpl, bpl
test esi, esi
jne 0x1801566d0
test r12, r12
je 0x1801567f0
test r15, r15
je 0x1801567f0
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call r15
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x1801567ff
mov rax, qword [rcx]
call qword [rax + 0x10]
xor esi, esi
mov ebx, esi
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r9d, r9d
mov r8d, 0x81a
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
call sub.ntdll.dll_NtGetNextThread
mov edi, eax
test rbx, rbx
je 0x180156840
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x18015686d
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x180156803
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x180156803
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x180156803
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.18026ad00
mov rbx, qword [rsp + 0x580]
add rsp, 0x530
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret