Function at 0x180164a80
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 [0x1804e1080]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov r13, rcx
mov qword [rsp + 0x40], 0
lea rcx, [0x1803595d8]
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 0x180164b10
test rax, rax
je 0x180164b10
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 0x180164b65
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x180164c11
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x180164b20
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x180164b20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x180164b20
test eax, eax
je 0x180164bb0
test bpl, bpl
jne 0x180164bb0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x180164b20
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x4d0
call fcn.1802d1800
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x80], 0x10000b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180164b20
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x180164c0a
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 0x180164b20
xor bpl, bpl
test esi, esi
jne 0x180164b10
test r12, r12
je 0x180164c30
test r15, r15
je 0x180164c30
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call r15
mov rcx, qword [r13 + 0x38]
test rcx, rcx
je 0x180164c3f
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 0x180164c80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x180164cad
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x180164c43
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x180164c43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x180164c43
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.18027f9e0
mov rbx, qword [rsp + 0x580]
add rsp, 0x530
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret