Function at 0x140022086
Capabilities:
Resume thread
Suspend thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x7c8
movaps xmmword [rsp + 0x7b0], xmm7
movaps xmmword [rsp + 0x7a0], xmm6
mov byte [rsp + 0x2f], dl
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x798], rax
mov qword [rsp + 0x40], rcx
mov r12, qword [rcx]
lea r14, [rsp + 0xf0]
mov dword [r14], 0xaaaaaaaa
mov ecx, 0x4000
call fcn.140112618
mov r15, rax
mov ebp, 0x4000
mov esi, 0x14
mov ebx, 0x1000
mov ecx, 5
mov rdx, r15
mov r8d, ebp
mov r9, r14
call fcn.1401f4a96
mov edi, eax
cmp eax, 0xc0000023
je 0x14002211a
cmp edi, 0xc0000004
jne 0x1400221d6
mov ebp, dword [rsp + 0xf0]
add ebp, ebx
test r15, r15
je 0x140022130
mov rcx, r15
call fcn.140112040
mov ecx, ebp
call fcn.140112618
mov r15, rax
dec esi
jne 0x1400220f2
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x140022195
mov dword [rsp + 0x20], edi
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
lea rdi, [rsp + 0x250]
mov rcx, rdi
mov r8d, 0x5d
mov r9d, 2
call fcn.140216ed2
lea rcx, [rsp + 0x260]
lea rdx, [0x1402bc9d0]
mov r8d, 0x18
call fcn.1400ff874
mov rcx, rdi
call fcn.140216efe
test r15, r15
je 0x1400221a2
mov rcx, r15
call fcn.140112040
mov rcx, qword [rsp + 0x798]
xor rcx, rsp
call fcn.140115e50
movaps xmm6, xmmword [rsp + 0x7a0]
movaps xmm7, xmmword [rsp + 0x7b0]
add rsp, 0x7c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test edi, edi
js 0x14002213e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
mov rbp, r15
cmp dword [rbp + 0x50], edi
je 0x14002227e
mov eax, dword [rbp]
add rbp, rax
test rax, rax
cmove rbp, rax
test rbp, rbp
jne 0x1400221ec
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x140022195
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
lea rbx, [rsp + 0x250]
mov rcx, rbx
mov r8d, 0x6f
mov r9d, 2
call fcn.14019a740
lea rcx, [rsp + 0x260]
lea rdx, str.process
mov r8d, 8
call fcn.1400ff874
mov rcx, rax
mov edx, edi
call fcn.14017ca70
lea rdx, str._not_found
mov r8d, 0xa
mov rcx, rax
call fcn.1400ff874
mov rcx, rbx
call fcn.140001d00
jmp 0x140022195
test rbp, rbp
je 0x140022195
cmp dword [rbp + 4], 0
je 0x140022195
lea rdi, [rsp + 0x750]
mov rax, qword [rsp + 0x40]
lea rcx, [rax + 0x90]
mov qword [rsp + 0x38], rcx
add rax, 0x130
mov qword [rsp + 0x58], rax
lea rsi, [rsp + 0x80]
movaps xmm6, xmmword [0x1402ae190]
xorps xmm7, xmm7
lea r12, [rbp + 0x128]
lea r13, [rsp + 0x250]
xor r14d, r14d
movaps xmmword [rdi], xmm6
mov r8d, 0x504
mov rcx, r13
xor edx, edx
call fcn.140117f60
movups xmmword [rdi + 8], xmm7
movups xmmword [rdi + 0x18], xmm7
movups xmmword [rdi + 0x28], xmm7
mov qword [rdi + 0x38], 0
mov rax, qword [r12 + 8]
mov qword [rsp + 0x720], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rax
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x70], xmm6
mov dword [rsp + 0x60], 0x30
movups xmmword [rsi - 0x18], xmm7
mov dword [rsi - 8], 0
movups xmmword [rsi], xmm7
lea rcx, [rsp + 0xa0]
mov edx, 0x4a
lea r8, [rsp + 0x60]
mov r9, r12
call fcn.1402197db
test eax, eax
js 0x1400223c5
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x14002241e
mov r13, rdi
mov rax, qword [rsp + 0x40]
mov sil, byte [rax + 0x160]
mov rax, qword [rsp + 0x720]
mov rcx, qword gs:[0x30]
cmp rax, qword [rcx + 0x48]
mov qword [rsp + 0x30], rbx
jne 0x14002243a
mov dword [rsp + 0x748], 0
lea rcx, [rsp + 0x250]
call fcn.140115070
mov rdi, r13
lea rsi, [rsp + 0x80]
jmp 0x140022644
mov ebx, eax
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x14002241e
mov dword [rsp + 0x20], ebx
lea rbx, [rsp + 0xf0]
mov rcx, rbx
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
mov r8d, 0x7e
mov r9d, 2
call fcn.140216ed2
mov r8d, 0xc
lea rcx, [rsp + 0x100]
lea rdx, str.NtOpenThread
call fcn.1400ff874
mov rcx, rbx
call fcn.140216efe
lea rcx, str.Microsoft.ProcessSnapshotInitMilestone
mov edx, 0xc
mov r8d, 0xf
call fcn.1400c47b0
jmp 0x140022805
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, eax
test eax, eax
je 0x1400224bb
cmp ebx, 0xffffffff
jne 0x14002254c
mov ecx, 2
call fcn.1400f34e0
test al, al
mov rdi, r13
lea rsi, [rsp + 0x80]
mov rbx, qword [rsp + 0x30]
je 0x1400227de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rbx, [rsp + 0xf0]
mov rcx, rbx
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
mov r8d, 0x9a
mov r9d, 2
call fcn.14019f9e0
mov r8d, 0xd
lea rcx, [rsp + 0x100]
lea rdx, [0x1402f3a1b]
jmp 0x1400227cc
test sil, sil
je 0x14002254c
mov ecx, 1
call fcn.1400f34e0
xor ebx, ebx
test al, al
je 0x140022552
lea rsi, [rsp + 0xf0]
mov rcx, rsi
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
mov r8d, 0x9f
mov r9d, 1
call fcn.14019a740
mov r8d, 7
lea rcx, [rsp + 0x100]
lea rdx, str.Thread
call fcn.1400ff874
mov rdx, qword [rsp + 0x720]
mov rcx, rax
call fcn.14010d1aa
mov r8d, 0x34
mov rcx, rax
lea rdx, str._should_be_suspended__but_previous_suspend_count_is
call fcn.1400ff874
xor ebx, ebx
mov rcx, rax
xor edx, edx
call fcn.14017ca70
mov rcx, rsi
call fcn.140001d00
jmp 0x140022552
movzx eax, sil
sub ebx, eax
mov dword [rsp + 0x748], ebx
mov r8d, 0x4d0
lea rsi, [rsp + 0x250]
mov rcx, rsi
xor edx, edx
call fcn.140117f60
cmp byte [rsp + 0x2f], 0
je 0x140022604
mov dword [rsp + 0x250], 0x10001f
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
mov rdi, r13
jne 0x14002262b
mov ecx, 2
call fcn.1400f34e0
test al, al
lea rsi, [rsp + 0x80]
je 0x1400227de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rbx, [rsp + 0xf0]
mov rcx, rbx
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
mov r8d, 0xb1
mov r9d, 2
call fcn.14019f9e0
mov r8d, 0x15
lea rcx, [rsp + 0x100]
lea rdx, [0x1402f3a66]
jmp 0x1400227cc
mov dword [rsp + 0x280], 0x10001f
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
mov rdi, r13
je 0x140022774
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
lea rsi, [rsp + 0x80]
je 0x14002271e
mov dword [rsp + 0x74c], 0x20
mov eax, dword [r12 + 0x10]
mov dword [rsp + 0x750], eax
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
mov qword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
lea r8, [rsp + 0xa0]
mov r9d, 0x30
call fcn.14021986e
test eax, eax
jns 0x140022834
mov ebx, eax
mov ecx, 2
call fcn.1400f34e0
test al, al
lea r13, [rsp + 0x250]
je 0x1400226fd
mov dword [rsp + 0x20], ebx
lea rbx, [rsp + 0xf0]
mov rcx, rbx
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
mov r8d, 0x193
mov r9d, 2
call fcn.140216ed2
mov r8d, 0x18
lea rcx, [rsp + 0x100]
lea rdx, str.NtQueryInformationThread
call fcn.1400ff874
mov rcx, rbx
call fcn.140216efe
lea rcx, str.Microsoft.ProcessSnapshotInitMilestone
mov edx, 0xe
mov r8d, 0xf
call fcn.1400c47b0
mov rbx, qword [rsp + 0x30]
jmp 0x1400227fd
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x1400227de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rbx, [rsp + 0xf0]
mov rcx, rbx
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
mov r8d, 0xbf
mov r9d, 2
call fcn.14019f9e0
mov r8d, 0xc
lea rcx, [rsp + 0x100]
lea rdx, [0x1402f3a8d]
jmp 0x1400227cc
mov ecx, 2
call fcn.1400f34e0
test al, al
lea rsi, [rsp + 0x80]
je 0x1400227de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rbx, [rsp + 0xf0]
mov rcx, rbx
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
mov r8d, 0xb9
mov r9d, 2
call fcn.14019f9e0
mov r8d, 0x10
lea rcx, [rsp + 0x100]
lea rdx, [0x1402f3a7c]
call fcn.1400ff874
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
call fcn.140183e60
lea rcx, str.Microsoft.ProcessSnapshotInitMilestone
mov edx, 0xd
mov r8d, 0xf
call fcn.1400c47b0
lea r13, [rsp + 0x250]
mov rcx, rbx
call fcn.1401f17b8
cmp byte [rsp + 0x78f], 0
jns 0x14002281c
mov rcx, qword [rsp + 0x778]
call fcn.140112038
inc r14
mov eax, dword [rbp + 4]
add r12, 0x50
cmp r14, rax
jb 0x1400222d9
jmp 0x140022195
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
mov rdx, qword [rsp + 0xa8]
mov qword [rsp + 0x728], rdx
mov qword [rsp + 0x730], 0x1788
mov r8d, 0x38
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x60]
call fcn.14020d214
test al, al
lea r13, [rsp + 0x250]
mov rbx, qword [rsp + 0x30]
je 0x1400229be
cmp byte [rsp + 0x2f], 0
je 0x140022905
movups xmmword [rsp + 0xfc], xmm6
movaps xmmword [rsp + 0xf0], xmm6
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x728], rdx
mov qword [rsp + 0x730], 0x1788
mov r8d, 0x1c
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0xf0]
call fcn.14020d214
mov edx, dword [rsp + 0xf4]
mov ecx, dword [rsp + 0xf8]
test al, al
mov eax, 0
cmove rdx, rax
cmove rcx, rax
jmp 0x14002290f
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x738], rcx
mov rax, rdx
sub rax, rcx
jae 0x1400229b6
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x1400229b4
lea rbx, [rsp + 0xf0]
mov rcx, rbx
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
mov r8d, 0x1b5
mov r9d, 2
call fcn.14019a740
mov r8d, 0x15
lea rcx, [rsp + 0x100]
lea rdx, str.invalid_stack_range:
call fcn.1400ff874
mov rcx, rax
mov rdx, qword [rsp + 0x48]
call fcn.14010d1aa
mov r8d, 3
mov rcx, rax
lea rdx, [0x1402f39f6]
call fcn.1400ff874
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.14010d1aa
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
call fcn.140001d00
xor eax, eax
mov qword [rsp + 0x740], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x248], rax
mov qword [rsp + 0x240], rax
mov qword [rsp + 0x238], rax
mov qword [rsp + 0x230], rax
lea rax, [rsp + 0x230]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea rdx, [rsp + 0x248]
lea r8, [rsp + 0x240]
lea r9, [rsp + 0x238]
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
test eax, eax
jne 0x140022a82
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x140022ac2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rbx, [rsp + 0xf0]
mov rcx, rbx
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
mov r8d, 0xd4
mov r9d, 2
call fcn.14019f9e0
mov r8d, 0xe
lea rcx, [rsp + 0x100]
lea rdx, [0x1402f3a9a]
call fcn.1400ff874
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
call fcn.140183e60
jmp 0x140022ac2
mov rax, qword [rsp + 0x248]
mov qword [rsp + 0x758], rax
mov rax, qword [rsp + 0x240]
mov qword [rsp + 0x760], rax
mov rax, qword [rsp + 0x238]
mov qword [rsp + 0x768], rax
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x770], rax
mov eax, dword [0x14031e5d0]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140022c10
mov rax, qword [0x14031e5c8]
test rax, rax
je 0x140022bfe
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xe8], rcx
mov rcx, rbx
lea rdx, [rsp + 0xe8]
call rax
test eax, eax
js 0x140022b33
mov rcx, qword [rsp + 0xe8]
mov qword [rsp + 0xd8], rcx
test rcx, rcx
jne 0x140022b9a
xor eax, eax
jmp 0x140022b9f
mov ebx, eax
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x140022bf9
lea rcx, [rsp + 0xf0]
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
mov r8d, 0xe1
mov r9d, 2
call fcn.14019a740
mov r8d, 0x16
lea rcx, [rsp + 0x100]
lea rdx, str.GetThreadDescription:
call fcn.1400ff874
mov rcx, rax
mov edx, ebx
call fcn.1401d8722
lea rcx, [rsp + 0xf0]
call fcn.140001d00
jmp 0x140022bf9
call fcn.1401124ec
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0xf0]
lea rdx, [rsp + 0xd8]
call fcn.1400c2fb0
cmp byte [rsp + 0x78f], 0
jns 0x140022bd3
mov rcx, qword [rsp + 0x778]
call fcn.140112038
mov rax, qword [rsp + 0x100]
mov qword [rdi + 0x38], rax
movups xmm0, xmmword [rsp + 0xf0]
movups xmmword [rdi + 0x28], xmm0
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov rdx, r13
call fcn.140273830
jmp 0x1400227fd
lea rcx, [0x14031e5d0]
call fcn.1401120e4
cmp dword [0x14031e5d0], 0xffffffff
jne 0x140022ae7
lea rcx, [0x1402b2b3a]
lea rdx, str.::GetThreadDescription
xor r8d, r8d
call fcn.14017b2b2
mov qword [0x14031e5c8], rax
lea rcx, [0x14031e5d0]
call fcn.140112084
jmp 0x140022ae7