Function at 0x140049e22
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2c8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x230], xmm7
movaps xmmword [rbp + 0x220], xmm6
mov qword [rbp + 0x218], 0xfffffffffffffffe
mov byte [rbp + 0x217], dl
mov qword [rbp + 0x1e0], rcx
mov r14, qword [rcx]
mov qword [rbp + 0x200], 0
mov ecx, 0x4000
call fcn.1400b81f8
mov r13, rax
mov edi, 0x4000
xor ebx, ebx
lea r15, [rbp + 0x150]
mov r12d, 0x1000
mov qword [rbp + 0x200], r13
mov ecx, 5
mov rdx, r13
mov r8d, edi
mov r9, r15
call fcn.1400264c4
mov esi, eax
cmp eax, 0xc0000023
je 0x140049ec1
cmp esi, 0xc0000004
jne 0x140049f6d
mov edi, dword [rbp + 0x150]
add edi, r12d
mov rcx, r13
call fcn.1400b72ac
mov qword [rbp + 0x200], 0
mov rcx, rdi
call fcn.1400b81f8
mov r13, rax
inc ebx
cmp ebx, 0x14
jne 0x140049e92
mov qword [rbp + 0x200], r13
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
lea rdx, str.process_types::SYSTEM_PROCESS_INFORMATION_Traits____cdecl_crashpad::_anonymous_namespace_::GetProcessInformation_HANDLE__std::unique_ptr_uint8_t________Traits__crashpad::process_types::internal::Traits64_
lea r8, str.xplat_third_partycrashpad_snapshotwinprocess_reader_win.cc
lea rcx, [rbp + 0x18]
mov r9d, 0x5e
call fcn.1400078c2
mov qword [rbp + 0x1f8], r13
lea rdx, [0x140125261]
lea rcx, [rbp + 0x18]
call fcn.1400035ea
lea rcx, [rbp + 0x18]
call fcn.140026a18
mov rcx, qword [rbp + 0x1f8]
call fcn.1400b72ac
movaps xmm6, xmmword [rbp + 0x220]
movaps xmm7, xmmword [rbp + 0x230]
add rsp, 0x2c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
test esi, esi
js 0x140049eef
mov qword [rbp + 0x200], r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
mov r15, r13
mov qword [rbp + 0x1f8], r13
cmp dword [r15 + 0x50], edi
je 0x14004a00c
mov eax, dword [r15]
add r15, rax
test rax, rax
cmove r15, rax
test r15, r15
jne 0x140049f91
mov qword [rbp + 0x200], r13
mov dword [rsp + 0x20], 2
lea rdx, str.process_types::SYSTEM_PROCESS_INFORMATION_Traits____cdecl_crashpad::_anonymous_namespace_::GetProcessInformation_HANDLE__std::unique_ptr_uint8_t________Traits__crashpad::process_types::internal::Traits64_
lea r8, str.xplat_third_partycrashpad_snapshotwinprocess_reader_win.cc
lea rcx, [rbp + 0x18]
mov r9d, WSACleanup
call fcn.1400067ee
lea rdx, str.process
lea rcx, [rbp + 0x18]
call fcn.1400035ea
mov rcx, rax
mov edx, edi
call fcn.140007320
lea rdx, str._not_found
mov rcx, rax
call fcn.1400035ea
lea rcx, [rbp + 0x18]
call fcn.140006ed2
jmp 0x140049f3f
lea rdi, [rbp + 0x160]
mov rax, qword [rbp + 0x1e0]
lea rcx, [rax + 0x98]
mov qword [rbp + 0x1e8], rcx
add rax, 0x140
mov qword [rbp + 0x1d8], rax
xor r12d, r12d
xorps xmm6, xmm6
movaps xmm7, xmmword [section..rdata]
lea rbx, [rbp + 0x18]
xor r14d, r14d
cmp r14d, dword [r15 + 4]
jae 0x140049f3f
mov eax, r14d
mov qword [rbp + 0x150], r12
mov byte [rbp + 0x158], r12b
mov qword [rdi + 0x10], r12
movups xmmword [rdi], xmm6
movups xmmword [rbp + 0x188], xmm7
mov byte [rbp + 0x178], r12b
mov dword [rdi + 0x68], r12d
movups xmmword [rdi + 0x58], xmm6
movups xmmword [rdi + 0x48], xmm6
movups xmmword [rdi + 0x38], xmm6
lea rsi, [rax + rax*4]
shl rsi, 4
lea r9, [r15 + rsi]
add r9, 0x128
mov rax, qword [r9 + 8]
mov qword [rbp + 0x198], rax
mov dword [rbp - 0x20], 0x30
lea rax, [rbp - 0x18]
mov dword [rax + 0x10], r12d
movups xmmword [rax], xmm6
movups xmmword [rax + 0x18], xmm6
lea rcx, [rbp - 0x50]
mov edx, 0x4a
lea r8, [rbp - 0x20]
call fcn.14002694c
test eax, eax
js 0x14004a206
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x208], rax
test rax, rax
je 0x14004a62a
mov rax, qword [rbp + 0x1e0]
mov bl, byte [rax + 0x170]
mov rax, qword [rbp + 0x198]
mov rcx, qword gs:[0x30]
cmp rax, qword [rcx + 0x48]
jne 0x14004a24a
mov dword [rbp + 0x1c0], 0
mov edx, 0x4d0
mov rcx, rdi
mov r8, rdi
call fcn.140044f34
mov byte [rbp + 0x158], 1
mov rcx, qword [rbp + 0x160]
add rcx, qword [rbp + 0x150]
call fcn.1400b9390
mov dword [rbp + 0x1c4], 0x20
mov eax, dword [r15 + rsi + 0x138]
mov dword [rbp + 0x1c8], eax
mov qword [rsp + 0x20], 0
mov rcx, qword [rbp + 0x208]
xor edx, edx
lea r8, [rbp - 0x50]
mov r9d, 0x30
call fcn.14002658f
test eax, eax
js 0x14004a2ae
mov rdx, qword [rbp - 0x48]
mov qword [rbp + 0x1a0], rdx
mov qword [rbp + 0x1a8], 0x1788
mov r8d, 0x38
mov rcx, qword [rbp + 0x1e8]
lea r9, [rbp - 0x20]
call fcn.14004c294
test al, al
je 0x14004a4ca
cmp byte [rbp + 0x217], 0
je 0x14004a3b9
mov rdx, qword [rbp - 0x20]
mov qword [rbp + 0x1a0], rdx
mov qword [rbp + 0x1a8], 0xf98
mov r8d, 0x1c
mov rcx, qword [rbp + 0x1e8]
lea r9, [rbp + 0x18]
call fcn.14004c294
test al, al
jne 0x14004a448
xor esi, esi
xor r13d, r13d
jmp 0x14004a44f
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov rcx, rbx
lea rdx, str.HANDLE___cdecl_crashpad::_anonymous_namespace_::OpenThread_const_process_types::SYSTEM_THREAD_INFORMATION_Traits_____Traits__crashpad::process_types::internal::Traits64_
lea r8, str.xplat_third_partycrashpad_snapshotwinprocess_reader_win.cc
mov r9d, 0x7f
call fcn.1400078c2
mov rcx, rbx
lea rdx, [0x140126a47]
call fcn.1400035ea
mov rcx, rbx
call fcn.140026a18
jmp 0x14004a62a
mov rcx, qword [rbp + 0x208]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
je 0x14004a2f7
cmp eax, 0xffffffff
jne 0x14004a367
call fcn.1400078ab
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rcx, [rbp + 0x18]
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace_::FillThreadContextAndSuspendCount_HANDLE__ProcessReaderWin::Thread___crashpad::ProcessSuspensionState__bool___Traits__crashpad::process_types::internal::Traits64_
lea r8, str.xplat_third_partycrashpad_snapshotwinprocess_reader_win.cc
mov r9d, 0x9b
call fcn.1400078c2
lea rbx, [rbp + 0x18]
mov rcx, rbx
lea rdx, [0x140126a6e]
call fcn.1400035ea
jmp 0x14004a43b
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rcx, [rbp + 0x18]
lea rdx, str.void___cdecl_crashpad::ProcessReaderWin::ReadThreadData_bool___Traits__crashpad::process_types::internal::Traits64_
lea r8, str.xplat_third_partycrashpad_snapshotwinprocess_reader_win.cc
mov r9d, 0x1aa
call fcn.1400078c2
lea rbx, [rbp + 0x18]
mov rcx, rbx
lea rdx, [0x140126a2c]
call fcn.1400035ea
mov rcx, rbx
call fcn.140026a18
jmp 0x14004a61e
test bl, bl
lea rcx, [rbp + 0x18]
je 0x14004a367
mov dword [rsp + 0x20], 1
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace_::FillThreadContextAndSuspendCount_HANDLE__ProcessReaderWin::Thread___crashpad::ProcessSuspensionState__bool___Traits__crashpad::process_types::internal::Traits64_
lea r8, str.xplat_third_partycrashpad_snapshotwinprocess_reader_win.cc
mov r9d, 0xa0
call fcn.1400067ee
lea rbx, [rbp + 0x18]
mov rcx, rbx
lea rdx, str.Thread
call fcn.1400035ea
mov rdx, qword [rbp + 0x198]
mov rcx, rax
call fcn.14001cc5e
mov rcx, rax
lea rdx, str._should_be_suspended__but_previous_suspend_count_is
call fcn.1400035ea
mov rcx, rax
xor edx, edx
call fcn.140007320
mov rcx, rbx
call fcn.140006ed2
xor eax, eax
jmp 0x14004a36c
movzx ecx, bl
sub eax, ecx
mov dword [rbp + 0x1c0], eax
cmp byte [rbp + 0x217], 0
je 0x14004a390
lea rcx, [rbp + 0x150]
mov rdx, qword [rbp + 0x208]
call fcn.1400496da
jmp 0x14004a3d9
mov ecx, 0x800
call fcn.1400775f6
test al, al
je 0x14004a3c6
mov r8d, 0x800
lea rcx, [rbp + 0x150]
mov rdx, qword [rbp + 0x208]
call fcn.1400497b2
jmp 0x14004a3d9
mov rsi, qword [rbp - 0x18]
mov r13, qword [rbp - 0x10]
jmp 0x14004a44f
lea rcx, [rbp + 0x150]
mov rdx, qword [rbp + 0x208]
call fcn.140049600
test al, al
lea rbx, [rbp + 0x18]
je 0x14004a61e
mov rcx, qword [rbp + 0x208]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x14004a146
call fcn.1400078ab
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rcx, [rbp + 0x18]
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace_::FillThreadContextAndSuspendCount_HANDLE__ProcessReaderWin::Thread___crashpad::ProcessSuspensionState__bool___Traits__crashpad::process_types::internal::Traits64_
lea r8, str.xplat_third_partycrashpad_snapshotwinprocess_reader_win.cc
mov r9d, 0xbf
call fcn.1400078c2
lea rbx, [rbp + 0x18]
mov rcx, rbx
lea rdx, [0x140126a61]
call fcn.1400035ea
mov rcx, rbx
call fcn.1400078f2
jmp 0x14004a61e
mov esi, dword [rbp + 0x1c]
mov r13d, dword [rbp + 0x20]
mov qword [rbp + 0x1b0], r13
mov rax, rsi
sub rax, r13
jae 0x14004a4c3
mov dword [rsp + 0x20], 2
lea rcx, [rbp + 0x18]
lea rdx, str.void___cdecl_crashpad::ProcessReaderWin::ReadThreadData_bool___Traits__crashpad::process_types::internal::Traits64_
lea r8, str.xplat_third_partycrashpad_snapshotwinprocess_reader_win.cc
mov r9d, 0x1ca
call fcn.1400067ee
lea rcx, [rbp + 0x18]
lea rdx, str.invalid_stack_range:
call fcn.1400035ea
mov rcx, rax
mov rdx, rsi
call fcn.14001cc5e
mov rcx, rax
lea rdx, [0x1401301f6]
call fcn.1400035ea
mov rcx, rax
mov rdx, r13
call fcn.14001cc5e
lea rcx, [rbp + 0x18]
call fcn.140006ed2
xor eax, eax
mov qword [rbp + 0x1b8], rax
mov eax, dword [0x14018a4f0]
mov ecx, dword [0x140185358]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004a63e
mov rax, qword [0x14018a4e8]
test rax, rax
je 0x14004a607
mov rcx, qword [rbp + 0x208]
lea rdx, [rbp + 0x1d0]
call rax
mov ebx, eax
test eax, eax
js 0x14004a541
mov rcx, qword [rbp + 0x1d0]
mov qword [rbp + 0x120], rcx
test rcx, rcx
lea rsi, [rbp + 0x18]
mov qword [rbp + 0x1f0], rcx
je 0x14004a5c7
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
jmp 0x14004a5c9
mov dword [rsp + 0x20], 1
lea rcx, [rbp + 0x18]
lea rdx, str.void___cdecl_crashpad::ProcessReaderWin::ReadThreadData_bool___Traits__crashpad::process_types::internal::Traits64_
lea r8, str.xplat_third_partycrashpad_snapshotwinprocess_reader_win.cc
mov r9d, 0x1db
call fcn.1400067ee
lea r13, [rbp + 0x18]
mov rcx, r13
lea rdx, str.GetThreadDescription:
call fcn.1400035ea
mov rsi, rax
lea rcx, [rbp + 0x130]
mov edx, ebx
call fcn.1400066b8
lea rdx, [rbp + 0x130]
cmp qword [rbp + 0x148], 0xf
jbe 0x14004a5a2
mov rdx, qword [rbp + 0x130]
mov r8, qword [rbp + 0x140]
mov rcx, rsi
call fcn.14000468b
lea rcx, [rbp + 0x130]
call fcn.140005a44
mov rcx, r13
call fcn.140006ed2
jmp 0x14004a607
xor eax, eax
mov qword [rbp + 0x128], rax
mov rcx, rsi
lea rdx, [rbp + 0x120]
call fcn.14001d6fb
lea rcx, [rbp + 0x178]
mov rdx, rsi
call fcn.140008fca
mov rcx, rsi
call fcn.140005a44
mov rcx, qword [rbp + 0x1f0]
test rcx, rcx
je 0x14004a607
call fcn.1400404a4
mov rcx, qword [rbp + 0x1d8]
lea rdx, [rbp + 0x150]
call fcn.14004ae06
lea rbx, [rbp + 0x18]
mov rcx, qword [rbp + 0x208]
call fcn.14001f3fe
lea rcx, [rbp + 0x150]
call fcn.14004ada6
inc r14d
jmp 0x14004a049
lea rcx, [0x14018a4f0]
call fcn.1400b7088
cmp dword [0x14018a4f0], 0xffffffff
jne 0x14004a4ef
lea rcx, [0x140130f44]
lea rdx, str.::GetThreadDescription
xor r8d, r8d
call fcn.140020424
mov qword [0x14018a4e8], rax
lea rcx, [0x14018a4f0]
call fcn.1400b7120
jmp 0x14004a4ef