Function at 0x140021570
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x14013d0a8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, r8
mov r14d, edx
mov r12, rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1042
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
xor r13d, r13d
lea rdi, [0x1401424a0]
cmp eax, 0xffffffff
jne 0x140021652
test r14d, r14d
jle 0x1400215d7
mov ebx, r13d
jmp 0x14002165a
mov rcx, rdi
call fcn.140030320
lea ebx, [rax - 1]
mov eax, ebx
mov dword [rbp - 0x69], eax
mov dword [rbp - 0x65], r13d
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbp - 0x61], rax
lea rcx, str.Searching_for_Bookmarks
call fcn.1400b0640
mov rdx, rax
lea rcx, str.Searching_for_Bookmarks
call fcn.1400b0780
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x31], r13
cmp dword [rbp - 0x69], r13d
je 0x140021704
test r12, r12
je 0x140021670
lea rdx, [rbp + 0xf]
mov rcx, r12
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp + 0x17]
add eax, dword [rbp + 0xf]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x41], eax
mov eax, dword [rbp + 0x1b]
add eax, dword [rbp + 0x13]
jmp 0x14002168b
add ebx, r14d
test r14d, r14d
jle 0x1400215e2
lea rdi, [0x1401424a0]
mov rcx, rdi
call fcn.140030320
sub eax, ebx
jmp 0x1400215e4
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x41], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp - 0x3d], eax
mov edx, 2
mov rcx, r12
call qword [sym.imp.USER32.dll_GetAncestor]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetParent]
mov rsi, rax
mov qword [rbp - 0x31], rax
test rax, rax
je 0x1400216dd
call qword [sym.imp.USER32.dll_GetDesktopWindow]
cmp rsi, rax
je 0x1400216dd
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetParent]
mov rsi, rax
test rax, rax
jne 0x1400216b6
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
lea r9, [rbp - 0x69]
lea r8, [0x1400219f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp - 0x39], rax
mov rcx, rdi
call fcn.140030320
cmp ebx, eax
jae 0x14002177f
mov qword [rbp - 0x21], rdi
xor sil, sil
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
movsxd r8, ebx
lea rdx, [rbp - 0x19]
mov rcx, rdi
call fcn.140021860
mov rax, qword [rbp - 9]
test rax, rax
je 0x140021741
movzx esi, byte [rax + 0xa]
and sil, 1
lea rcx, [rbp - 0x19]
call fcn.140028220
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test sil, sil
jne 0x140021844
cmp byte [r15], sil
jne 0x14002177f
mov rcx, rdi
call fcn.140030320
inc dword [rbp - 0x65]
mov dword [rbp - 0x69], eax
add ebx, r14d
mov rcx, rdi
call fcn.140030320
cmp ebx, eax
jb 0x140021714
xor dil, dil
cmp dword [rbp - 0x69], 0
je 0x14002180a
mov rcx, qword [rbp - 0x49]
test rcx, rcx
jne 0x1400217a9
mov ecx, gethostbyaddr
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x140021795
xor r9d, r9d
mov edx, VarUI4FromDisp
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp - 0x31]
test rbx, rbx
je 0x14002180a
nop dword [rax]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
cmp rbx, rax
je 0x14002180a
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
test rax, rax
jne 0x1400217e0
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x140021819
call fcn.1400b0810
nop
movzx eax, dil
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400b5660
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8b, 1
mov edx, ebx
mov rcx, r12
call fcn.140072b30
mov dil, 1
jmp 0x140021782