Function at 0x140116298
Capabilities:
Terminate thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0xb0]
xor r12d, r12d
test rcx, rcx
je 0x1401162c9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x1401162db
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rdi + 0xd8], r12d
je 0x1401163f1
lea rcx, [0x140489878]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [rdi + 0xd8], 1
je 0x14011630b
mov rcx, qword [rdi + 0xe0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test byte [rdi + 0xd8], 2
je 0x140116320
mov rcx, qword [rdi + 0xe8]
call fcn.1400c6f9c
test byte [rdi + 0xd8], 4
je 0x140116335
mov rcx, qword [rdi + 0xf0]
call fcn.1400be530
mov rsi, qword [0x14048ab20]
mov rcx, qword [rsi + 8]
lea rax, [rcx - 8]
cmp qword [rax], rdi
jne 0x140116354
cmp qword [rsi], rcx
je 0x1401163b4
mov qword [rsi + 8], rax
jmp 0x1401163b4
call fcn.1400c1a18
lea rdx, str.warning:_removing_Breakpad_handler_out_of_order_n
lea rcx, [rax + 0x60]
call fcn.1400c6160
mov rsi, qword [0x14048ab20]
mov rbx, qword [rsi]
cmp rbx, qword [rsi + 8]
je 0x1401163b4
lea rbp, [rbx + 8]
cmp qword [rbx], rdi
jne 0x1401163a6
mov r8, qword [rsi + 8]
mov rdx, rbp
mov rcx, rbx
sub r8, rbp
and r8, 0xfffffffffffffff8
call fcn.1400be580
add qword [rsi + 8], 0xfffffffffffffff8
mov rsi, qword [0x14048ab20]
jmp 0x1401163ae
add rbx, 8
add rbp, 8
cmp rbx, qword [rsi + 8]
jne 0x14011637d
mov rax, qword [rsi + 8]
cmp qword [rsi], rax
jne 0x1401163e4
mov rcx, qword [rsi]
test rcx, rcx
je 0x1401163ca
call fcn.1400be0f4
mov rcx, rsi
mov qword [rsi], r12
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r12
call fcn.1400be0f4
mov qword [0x14048ab20], r12
lea rcx, [0x140489878]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 0x18], r12
jne 0x140116444
mov rcx, qword [rdi + 0xf8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0x108]
mov qword [rdi + 0xf8], r12
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x130]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x138]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lock dec dword [0x14048ab28]
jne 0x14011645a
lea rcx, [0x140489878]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rax, qword [rdi + 0x160]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rdi + 0x160]
mov qword [rax + 8], rax
mov qword [rdi + 0x168], r12
cmp rcx, qword [rdi + 0x160]
je 0x140116496
mov rbx, qword [rcx]
call fcn.1400be0f4
mov rcx, rbx
cmp rbx, qword [rdi + 0x160]
jne 0x140116482
mov rcx, qword [rdi + 0x160]
call fcn.1400be0f4
cmp qword [rdi + 0x88], 8
jb 0x1401164b5
mov rcx, qword [rdi + 0x70]
call fcn.1400be0f4
mov qword [rdi + 0x80], r12
mov ebx, 7
mov qword [rdi + 0x88], rbx
mov word [rdi + 0x70], r12w
cmp qword [rdi + 0x60], 8
jb 0x1401164dd
mov rcx, qword [rdi + 0x48]
call fcn.1400be0f4
mov qword [rdi + 0x60], rbx
mov qword [rdi + 0x58], r12
mov word [rdi + 0x48], r12w
cmp qword [rdi + 0x38], 8
jb 0x1401164fa
mov rcx, qword [rdi + 0x20]
call fcn.1400be0f4
mov qword [rdi + 0x38], rbx
mov qword [rdi + 0x30], r12
mov word [rdi + 0x20], r12w
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x140116520
mov rcx, rbx
call fcn.140115694
mov rcx, rbx
call fcn.1400be0f4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret