Function at 0x460d20
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f5fd
mov eax, dword fs:[0]
push eax
sub esp, 0x210
push ebx
push esi
push edi
mov eax, dword [0x5ca018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
cmp dword [esi + 0x2d0], eax
jne 0x460e6c
cmp dword [esi + 0x2d4], 0
jne 0x460e6c
cmp byte [ebp + 0x10], 0
je 0x460dc6
push 4
push 0x90
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpad_snapshotwinprocess_reader_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::FillThreadContextAndSuspendCount_struct_crashpad::process_types::internal::Traits32__void__struct_crashpad::ProcessReaderWin::Thread__enum_crashpad::ProcessSuspensionState_bool_
lea ecx, [ebp - 0x164]
call fcn.00403189
push 0x5733ac
push str.Check_failed:_suspension_state__ProcessSuspensionState::kRunning
mov ebx, 1
mov dword [ebp - 4], 0
push eax
mov dword [ebp + 0xc], ebx
call fcn.0040533a
add esp, 8
push eax
call fcn.0040533a
add esp, 8
jmp 0x460dc9
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x460de3
lea ecx, [ebp - 0x164]
and ebx, 0xfffffffe
call fcn.004082e7
cmp byte [ebp + 0x14], 0
mov dword [esi + 0x2f8], 0
je 0x460e38
push 4
push 0x92
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpad_snapshotwinprocess_reader_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::FillThreadContextAndSuspendCount_struct_crashpad::process_types::internal::Traits32__void__struct_crashpad::ProcessReaderWin::Thread__enum_crashpad::ProcessSuspensionState_bool_
lea ecx, [ebp - 0xb4]
call fcn.00403189
push 0x5733ac
push str.Check_failed:__is_64_reading_32
or ebx, 2
mov dword [ebp - 4], 1
push eax
mov dword [ebp + 0xc], ebx
call fcn.0040533a
add esp, 8
push eax
call fcn.0040533a
add esp, 8
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x460e4f
lea ecx, [ebp - 0xb4]
call fcn.004082e7
push esi
call fcn.00405097
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, eax
cmp edi, 0xffffffff
jne 0x460eda
call fcn.00401b13
push eax
push 2
push 0x97
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpad_snapshotwinprocess_reader_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::FillThreadContextAndSuspendCount_struct_crashpad::process_types::internal::Traits32__void__struct_crashpad::ProcessReaderWin::Thread__enum_crashpad::ProcessSuspensionState_bool_
lea ecx, [ebp - 0xbc]
call fcn.00405484
push str.SuspendThread
push eax
mov dword [ebp - 4], 2
mov dword [ebp + 0xc], 4
call fcn.0040533a
add esp, 8
lea ecx, [ebp - 0xbc]
call fcn.004042b9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp + 0x10]
test edi, edi
jne 0x460f5e
cmp al, 1
jne 0x460f5e
push 1
push 0x9c
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpad_snapshotwinprocess_reader_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::FillThreadContextAndSuspendCount_struct_crashpad::process_types::internal::Traits32__void__struct_crashpad::ProcessReaderWin::Thread__enum_crashpad::ProcessSuspensionState_bool_
lea ecx, [ebp - 0xb4]
call fcn.00403189
push edi
push str._should_be_suspended__but_previous_suspend_count_is
push dword [esi + 0x2d4]
mov dword [ebp - 4], 3
push dword [esi + 0x2d0]
mov dword [ebp + 0xc], 8
push str.Thread
push eax
call fcn.0040533a
add esp, 8
mov ecx, eax
call fcn.004016bd
push eax
call fcn.0040533a
add esp, 8
mov ecx, eax
call fcn.00402aae
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
call fcn.004082e7
xor edi, edi
jmp 0x460f66
mov ebx, dword [ebp + 0xc]
movzx eax, al
sub edi, eax
push 0x2c8
lea eax, [esi + 4]
mov dword [esi + 0x2f8], edi
push 0
push eax
call fcn.00403292
add esp, 0xc
mov dword [esi], 0x1003f
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x460ff5
call fcn.00401b13
push eax
push 2
push 0xb6
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpad_snapshotwinprocess_reader_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::FillThreadContextAndSuspendCount_struct_crashpad::process_types::internal::Traits32__void__struct_crashpad::ProcessReaderWin::Thread__enum_crashpad::ProcessSuspensionState_bool_
lea ecx, [ebp - 0x16c]
call fcn.00405484
push str.GetThreadContext
or ebx, 0x10
mov dword [ebp - 4], 4
push eax
mov dword [ebp + 0xc], ebx
call fcn.0040533a
add esp, 8
test bl, 0x10
je 0x461051
lea ecx, [ebp - 0x16c]
call fcn.004042b9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x460e58
call fcn.00401b13
push eax
push 2
push 0xbc
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpad_snapshotwinprocess_reader_win.cc
push str.bool___cdecl_crashpad::_anonymous_namespace::FillThreadContextAndSuspendCount_struct_crashpad::process_types::internal::Traits32__void__struct_crashpad::ProcessReaderWin::Thread__enum_crashpad::ProcessSuspensionState_bool_
lea ecx, [ebp - 0x21c]
call fcn.00405484
push str.ResumeThread
or ebx, 0x20
mov dword [ebp - 4], 5
push eax
mov dword [ebp + 0xc], ebx
call fcn.0040533a
add esp, 8
test bl, 0x20
je 0x461051
lea ecx, [ebp - 0x21c]
call fcn.004042b9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret