Function at 0x18006b410
Capabilities:
Resume thread

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov r8, qword [0x1802066f0]
mov edx, 0xfffffffc
mov rcx, qword [0x180206488]
mov qword [rsp + 0x58], rsi
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
xor edi, edi
cmp qword [0x1802066f0], rdi
je 0x18006b447
mov qword [0x1802066f0], rdi
mov rbx, rdi
mov esi, 1
xor eax, eax
lock cmpxchg dword [0x180206790], esi
je 0x18006b481
nop dword [rax + rax]
cmp rbx, 0x20
jae 0x18006b46a
xor ecx, ecx
jmp 0x18006b46c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180206790], esi
jne 0x18006b460
cmp qword [0x180206798], rdi
je 0x18006b491
xor ecx, ecx
call fcn.1800797f4
mov eax, edi
mov rbx, rdi
xchg dword [0x180206790], eax
xor eax, eax
lock cmpxchg dword [0x180206790], esi
je 0x18006b4c9
cmp rbx, 0x20
jae 0x18006b4b2
xor ecx, ecx
jmp 0x18006b4b4
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180206790], esi
jne 0x18006b4a8
cmp qword [0x180206798], rdi
je 0x18006b678
mov ecx, dword [0x18020832c]
mov ebx, edi
test ecx, ecx
je 0x18006b678
mov rdx, qword [0x180208320]
mov rax, rdx
cmp qword [rax], rdi
je 0x18006b504
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18006b4f0
jmp 0x18006b678
cmp ebx, 0xffffffff
je 0x18006b678
mov eax, ebx
mov qword [rsp + 0x60], r12
imul r12, rax, 0x38
test byte [r12 + rdx + 0x20], 2
je 0x18006b5da
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180079338
test eax, eax
jne 0x18006b673
xor edx, edx
mov qword [rsp + 0x68], r13
mov ecx, ebx
call fcn.1800796e4
mov r13d, eax
cmp qword [rsp + 0x20], rdi
je 0x18006b5c5
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x18006b5b1
mov rsi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x30], r14
mov r14d, ecx
nop dword [rax]
mov r8d, dword [rsi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18006b598
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
sub r14, 1
jne 0x18006b570
mov r14, qword [rsp + 0x30]
mov esi, 1
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180206798]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r13d, r13d
mov r13, qword [rsp + 0x68]
jne 0x18006b673
mov rdx, qword [0x180208320]
mov rcx, qword [r12 + rdx + 0x10]
call fcn.18007a12c
mov edx, dword [0x18020832c]
dec edx
cmp ebx, edx
jae 0x18006b629
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x180208320]
movups xmm0, xmmword [rcx + rax]
movups xmmword [r12 + rax], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [r12 + rax + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [r12 + rax + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [r12 + rax + 0x30], xmm1
mov ecx, dword [0x180208328]
mov eax, ecx
mov dword [0x18020832c], edx
shr eax, 1
cmp eax, 0x20
jb 0x18006b673
cmp eax, edx
jb 0x18006b673
mov r8, qword [0x180208320]
mov eax, ecx
mov rcx, qword [0x180206798]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x18006b673
shr dword [0x180208328], 1
mov qword [0x180208320], rax
mov r12, qword [rsp + 0x60]
mov eax, edi
mov rbx, rdi
xchg dword [0x180206790], eax
xor eax, eax
lock cmpxchg dword [0x180206790], esi
je 0x18006b6b1
nop
cmp rbx, 0x20
jae 0x18006b69a
xor ecx, ecx
jmp 0x18006b69c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180206790], esi
jne 0x18006b690
cmp qword [0x180206798], rdi
mov rsi, qword [rsp + 0x58]
je 0x18006b731
xor ecx, ecx
call fcn.1800797f4
test eax, eax
jne 0x18006b731
mov rcx, qword [0x180208310]
mov qword [0x180208310], rdi
test rcx, rcx
je 0x18006b6f9
nop dword [rax]
mov rbx, qword [rcx]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
test rbx, rbx
jne 0x18006b6e0
mov r8, qword [0x180208320]
xor edx, edx
mov rcx, qword [0x180206798]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180206798]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov qword [0x180206798], rdi
mov qword [0x180208320], rdi
mov qword [0x180208328], rdi
xchg dword [0x180206790], edi
add rsp, 0x38
pop rdi
pop rbx
ret