Function at 0x180069ad0
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rsi
xor esi, esi
mov qword [rsp + 0x60], rdi
mov ebx, esi
mov qword [rsp + 0x38], r13
xor eax, eax
mov r13d, 1
lock cmpxchg dword [0x18013a130], r13d
je 0x180069b23
nop dword [rax]
cmp rbx, 0x20
jae 0x180069b0a
xor ecx, ecx
jmp 0x180069b0d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18013a130], r13d
jne 0x180069b00
cmp qword [0x18013a138], rsi
je 0x180069b33
xor ecx, ecx
call fcn.180087d0c
mov eax, esi
mov ecx, 0x64
xchg dword [0x18013a130], eax
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov rbx, rsi
lock cmpxchg dword [0x18013a130], r13d
je 0x180069b79
cmp rbx, 0x20
jae 0x180069b60
xor ecx, ecx
jmp 0x180069b63
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18013a130], r13d
jne 0x180069b56
cmp qword [0x18013a138], rsi
je 0x180069d24
mov ecx, dword [0x18013c78c]
mov ebx, esi
test ecx, ecx
je 0x180069d24
mov rdx, qword [0x18013c780]
mov rax, rdx
cmp qword [rax], rsi
je 0x180069bb4
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180069ba0
jmp 0x180069d24
cmp ebx, 0xffffffff
je 0x180069d24
mov qword [rsp + 0x50], rbp
mov ebp, ebx
mov eax, ebx
mov qword [rsp + 0x30], r15
imul r15, rax, 0x38
test byte [r15 + rdx + 0x20], 2
je 0x180069c81
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180087810
test eax, eax
jne 0x180069d1a
xor edx, edx
mov qword [rsp + 0x68], r12
mov ecx, ebx
call fcn.180087bfc
mov r12d, eax
cmp qword [rsp + 0x20], rsi
je 0x180069c6c
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x180069c58
mov rdi, qword [rsp + 0x20]
mov esi, ecx
nop dword [rax]
mov r8d, dword [rdi]
test r8d, r8d
je 0x180069c4f
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x180069c4f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rsi, r13
jne 0x180069c20
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18013a138]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r12d, r12d
mov r12, qword [rsp + 0x68]
jne 0x180069d1a
mov rdx, qword [0x18013c780]
mov rcx, qword [r15 + rdx + 0x10]
call fcn.180088588
mov edx, dword [0x18013c78c]
dec edx
cmp ebp, edx
jae 0x180069cd0
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x18013c780]
movups xmm0, xmmword [rcx + rax]
movups xmmword [r15 + rax], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [r15 + rax + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [r15 + rax + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [r15 + rax + 0x30], xmm1
mov ecx, dword [0x18013c788]
mov eax, ecx
mov dword [0x18013c78c], edx
shr eax, 1
cmp eax, 0x20
jb 0x180069d1a
cmp eax, edx
jb 0x180069d1a
mov r8, qword [0x18013c780]
mov eax, ecx
mov rcx, qword [0x18013a138]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180069d1a
shr dword [0x18013c788], 1
mov qword [0x18013c780], rax
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x30]
mov eax, esi
mov rbx, rsi
xchg dword [0x18013a130], eax
xor eax, eax
lock cmpxchg dword [0x18013a130], r13d
je 0x180069d63
nop dword [rax]
cmp rbx, 0x20
jae 0x180069d4a
xor ecx, ecx
jmp 0x180069d4d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18013a130], r13d
jne 0x180069d40
cmp qword [0x18013a138], 0
mov r13, qword [rsp + 0x38]
je 0x180069de5
xor ecx, ecx
call fcn.180087d0c
test eax, eax
jne 0x180069de5
mov rcx, qword [0x18013c770]
mov qword [0x18013c770], rsi
test rcx, rcx
je 0x180069da9
mov rbx, qword [rcx]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
test rbx, rbx
jne 0x180069d90
mov r8, qword [0x18013c780]
xor edx, edx
mov rcx, qword [0x18013a138]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18013a138]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov qword [0x18013a138], rsi
mov qword [0x18013c780], rsi
mov qword [0x18013c788], 0
mov eax, esi
xchg dword [0x18013a130], eax
mov rdi, qword [0x180138838]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x180069e3c
nop dword [rax]
mov rcx, qword [0x18013a3c0]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x1d8]
call rdx
mov rsi, rax
test rax, rax
je 0x180069e32
mov rdx, qword [rbx + 0x10]
mov rcx, rax
call fcn.18004cd20
mov r8, rax
mov rdx, rsi
call fcn.18007a030
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x180069e00
xor esi, esi
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x18013a3c8]
lea rdx, [0x180138b88]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r8, qword [0x18013a128]
mov edx, 0xfffffffc
mov rcx, qword [0x18013a480]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rdi, qword [0x18013a110]
test rdi, rdi
je 0x180069e89
mov rbx, qword [rdi + 0xf0]
jmp 0x180069e8c
mov rbx, rsi
call fcn.1800028b0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180069ea0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
test rcx, rcx
je 0x180069eae
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180069ebd
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x18013a110]
mov qword [rdi + 0xe0], rsi
mov qword [rdi + 0xf0], rsi
test rax, rax
je 0x180069edd
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x18013a110]
test rax, rax
je 0x180069efb
mov rbx, qword [rax + 0xe8]
jmp 0x180069efe
mov rbx, rsi
mov rcx, qword [rbx + 0x30]
lea rdi, [rax + 8]
test rcx, rcx
je 0x180069f18
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x18013a110]
mov qword [rdi + 0xd0], rsi
mov qword [rdi + 0xe0], rsi
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
test rax, rax
je 0x180069f3b
dec dword [rax + 0x3b0]
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]