Function at 0x140029a10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140209000]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
mov r8b, 1
xor edx, edx
lea rcx, str._Database
call fcn.140088ef0
test al, al
je 0x140029cd9
movzx eax, byte [0x140213dba]
test al, al
sete al
mov byte [rsp + 0x20], al
xor r9d, r9d
lea r8, [0x1401bb23f]
lea rcx, str.Rebuild_Full
call fcn.140089db0
test al, al
je 0x140029ae9
lea ecx, [rbx + 8]
call fcn.1401981c0
lea rcx, [0x140012520]
mov qword [rax], rcx
mov qword [rbp + 0x37], rax
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x14001cc60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x59], rax
test rax, rax
je 0x140029beb
cmp dword [rbp - 0x51], ebx
je 0x140029bdf
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x29]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140029bdf
xorps xmm0, xmm0
movaps xmmword [rbp + 7], xmm0
movdqa xmmword [rbp - 0x59], xmm0
mov rax, qword [0x140213af0]
mov rdx, qword [rax + 0x4140]
cmp byte [rdx + 0xf8], 0
jne 0x140029b30
mov r8d, dword [rdx + 0x1f4]
mov eax, r8d
neg eax
sbb ecx, ecx
add ecx, 2
cmp qword [rdx + 0x1e8], 0
je 0x140029b23
neg r8d
sbb ecx, ecx
add ecx, 6
movss xmm1, dword [0x1401e8ce8]
call fcn.14007d480
movzx eax, byte [0x140213dba]
test al, al
sete al
mov byte [rsp + 0x20], al
xor r9d, r9d
lea r8, [0x1401bb23f]
lea rcx, str.Rebuild_Archives
call fcn.140089db0
test al, al
je 0x140029bc5
mov ecx, 8
call fcn.1401981c0
lea rcx, [0x140012670]
mov qword [rax], rcx
mov qword [rbp + 0x3f], rax
lea rcx, [rbp - 0x41]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x14001cc60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140029c06
cmp dword [rbp - 0x41], 0
je 0x140029bfa
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x19], xmm0
lea rcx, [rbp - 0x19]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140029bfa
xorps xmm0, xmm0
movaps xmmword [rbp + 0x17], xmm0
movdqa xmmword [rbp - 0x49], xmm0
movzx eax, byte [0x140213dba]
test al, al
jne 0x140029c15
movzx eax, byte [0x140213dbe]
test al, al
je 0x140029c15
mov al, 1
jmp 0x140029c17
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x51], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x41], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor al, al
mov byte [rsp + 0x20], al
xor r9d, r9d
lea r8, [0x1401bb23f]
lea rcx, str.Rebuild_Thumbnails
call fcn.140089db0
test al, al
je 0x140029ca4
mov ecx, 8
call fcn.1401981c0
lea rcx, [0x1400127b0]
mov qword [rax], rcx
mov qword [rbp + 0x47], rax
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x14001cc60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x39], rax
test rax, rax
je 0x140029d02
cmp dword [rbp - 0x31], 0
je 0x140029cf6
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140029cf6
xorps xmm0, xmm0
movaps xmmword [rbp + 0x27], xmm0
movdqa xmmword [rbp - 0x39], xmm0
movzx eax, byte [0x140213dba]
mov byte [rsp + 0x20], al
xor r9d, r9d
lea r8, [0x1401bb23f]
lea rcx, str.Cancel_Rebuild
call fcn.140089db0
test al, al
je 0x140029cd4
mov eax, 1
xchg byte [0x140213db8], al
call fcn.140089c80
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1401981a0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x31], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3