Function at 0x14005ef00
Capabilities:
Terminate thread

Disassembly:
push rdi
push r14
sub rsp, 0x38
mov rax, qword [0x1402bf070]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rdi, rcx
mov rcx, qword [rcx + 0x98]
test rcx, rcx
je 0x14005ef2c
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x14005ef3e
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor r14d, r14d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x30], rsi
cmp dword [rdi + 0xc0], r14d
je 0x14005f099
lea rcx, [0x1402cbad0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rdi + 0xc0]
test al, 1
je 0x14005ef82
mov rcx, qword [rdi + 0xc8]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, dword [rdi + 0xc0]
test al, 2
je 0x14005ef98
mov rcx, qword [rdi + 0xd0]
call fcn.1401e4128
mov eax, dword [rdi + 0xc0]
test al, 4
je 0x14005efa8
mov rcx, qword [rdi + 0xd8]
call fcn.1401df014
mov rsi, qword [0x1402cbb00]
mov rax, qword [rsi + 8]
add rax, 0xfffffffffffffff8
cmp qword [rax], rdi
jne 0x14005efc2
mov qword [rsi + 8], rax
jmp 0x14005f02a
mov ecx, 2
call fcn.1401e83e8
mov rcx, rax
lea rdx, str.warning:_removing_Breakpad_handler_out_of_order_n
call fcn.14005eeb0
mov rsi, qword [0x1402cbb00]
mov rbx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rbx, rax
je 0x14005f02a
mov qword [rsp + 0x60], rbp
lea rbp, [rbx + 8]
cmp qword [rbx], rdi
jne 0x14005f018
sub rax, rbp
mov rdx, rbp
mov r8, rax
mov rcx, rbx
call fcn.1401df2e0
add qword [rsi + 8], 0xfffffffffffffff8
mov rax, qword [rsi + 8]
jmp 0x14005f020
add rbx, 8
add rbp, 8
cmp rbx, rax
jne 0x14005eff7
mov rbp, qword [rsp + 0x60]
mov rcx, qword [rsi]
cmp rcx, qword [rsi + 8]
jne 0x14005f08c
test rcx, rcx
je 0x14005f078
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x14005f068
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005f263
mov rcx, r8
call fcn.1400b9f90
mov qword [rsi], r14
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r14
mov edx, 0x18
mov rcx, rsi
call fcn.1400b9f90
mov qword [0x1402cbb00], r14
lea rcx, [0x1402cbad0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 0x18], r14
jne 0x14005f0ec
mov rcx, qword [rdi + 0xe0]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0xe0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rdi + 0xf0]
mov qword [rdi + 0xe0], r14
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x120]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
lock xadd dword [0x1402cbaf8], eax
cmp eax, 1
jne 0x14005f10b
lea rcx, [0x1402cbad0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x148]
mov rax, qword [rcx + 8]
mov qword [rax], r14
mov rcx, qword [rcx]
test rcx, rcx
je 0x14005f136
mov rbx, qword [rcx]
mov edx, 0x20
call fcn.1400b9f90
mov rcx, rbx
test rbx, rbx
jne 0x14005f121
mov rcx, qword [rdi + 0x148]
mov edx, 0x20
call fcn.1400b9f90
mov rdx, qword [rdi + 0x78]
cmp rdx, 8
jb 0x14005f187
mov rcx, qword [rdi + 0x60]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14005f182
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005f263
mov rcx, r8
call fcn.1400b9f90
mov qword [rdi + 0x70], r14
mov qword [rdi + 0x78], 7
mov word [rdi + 0x60], r14w
mov rdx, qword [rdi + 0x58]
cmp rdx, 8
jb 0x14005f1d8
mov rcx, qword [rdi + 0x40]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14005f1d3
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005f263
mov rcx, r8
call fcn.1400b9f90
mov qword [rdi + 0x50], r14
mov qword [rdi + 0x58], 7
mov word [rdi + 0x40], r14w
mov rdx, qword [rdi + 0x38]
cmp rdx, 8
jb 0x14005f225
mov rcx, qword [rdi + 0x20]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14005f220
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005f263
mov rcx, r8
call fcn.1400b9f90
mov qword [rdi + 0x30], r14
mov qword [rdi + 0x38], 7
mov word [rdi + 0x20], r14w
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14005f244
call fcn.14005f270
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1400b9f70
add rsp, 0x38
pop r14
pop rdi
ret
call fcn.1401e40b0
int3