Function at 0x10141560
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102b1545
mov eax, dword fs:[0]
push eax
sub esp, 0x364
push ebx
push esi
push edi
mov eax, dword [0x10373f78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x18]
mov edi, dword [ebp + 0xc]
mov eax, dword [eax + 0x24]
cmp dword [edi + 0x30], eax
jne 0x10141647
cmp dword [edi + 0x34], 0
jne 0x10141647
mov dword [edi + 0x58], 0
mov eax, dword [edi + 0xc]
mov ecx, eax
mov edx, dword [edi + 8]
sub ecx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
cmp ecx, 0x2cc
jbe 0x101415dc
lea eax, [edx + 0x2cc]
jmp 0x10141617
jae 0x1014161a
mov eax, dword [edi + 0x10]
sub eax, edx
cmp eax, 0x2cc
jae 0x101415fd
lea eax, [ebp + 0xf]
push eax
push 0x2cc
lea ecx, [edi + 8]
call fcn.1009dd70
jmp 0x1014161a
mov esi, 0x2cc
sub esi, ecx
push esi
push 0
push dword [ebp - 0x10]
call fcn.10267270
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
mov dword [edi + 0xc], eax
mov eax, dword [edi + 8]
add eax, dword [edi]
push eax
mov byte [edi + 4], 1
mov dword [ebp - 4], 0xffffffff
call fcn.1014ba60
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 esi, eax
cmp esi, 0xffffffff
jne 0x101416b5
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x9b
push str.C:jenkinsworkspaceext_win_buildexternals_srccrashpad_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 - 0xc0]
call fcn.1012f040
push 0x102bbb24
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], 4
call fcn.1005d660
add esp, 8
lea ecx, [ebp - 0xc0]
call fcn.1012f290
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 esi, esi
jne 0x10141733
cmp al, 1
jne 0x10141733
push 1
push 0xa0
push str.C:jenkinsworkspaceext_win_buildexternals_srccrashpad_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 - 0x168]
call fcn.1012eeb0
push str.Thread
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], 8
call fcn.1005d660
add esp, 8
mov ecx, eax
push str._should_be_suspended__but_previous_suspend_count_is
push dword [edi + 0x34]
push dword [edi + 0x30]
call fcn.100d43d0
push eax
call fcn.1005d660
add esp, 8
mov ecx, eax
push esi
call fcn.100f9020
lea ecx, [ebp - 0x168]
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
call fcn.1012f0d0
xor esi, esi
jmp 0x1014173b
mov ebx, dword [ebp - 0x10]
movzx eax, al
sub esi, eax
mov dword [edi + 0x58], esi
lea esi, [edi + 8]
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
mov dword [ebp - 0x10], eax
cmp ecx, 0x2cc
jbe 0x1014175d
lea eax, [edx + 0x2cc]
jmp 0x1014179a
jae 0x1014179d
mov eax, dword [esi + 8]
sub eax, edx
cmp eax, 0x2cc
jae 0x1014177d
lea eax, [ebp + 0xf]
mov ecx, esi
push eax
push 0x2cc
call fcn.1009dd70
jmp 0x1014179d
mov esi, 0x2cc
sub esi, ecx
push esi
push 0
push dword [ebp - 0x10]
call fcn.10267270
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, esi
lea esi, [edi + 8]
mov dword [esi + 4], eax
mov byte [edi + 4], 1
test bl, bl
jns 0x101417b6
lea ecx, [ebp - 0x370]
and ebx, 0xffffff7f
call fcn.1012f0d0
mov ecx, dword [esi]
mov eax, dword [edi]
mov dword [ebp - 4], 0xffffffff
mov dword [ecx + eax], 0x1003f
test ebx, 0x100
je 0x101417e1
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffeff
call fcn.1012f0d0
mov eax, dword [esi]
add eax, dword [edi]
mov esi, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x10141855
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xd7
push str.C:jenkinsworkspaceext_win_buildexternals_srccrashpad_snapshotwinprocess_reader_win.cc
push str.bool___thiscall_crashpad::ProcessReaderWin::ThreadContext::InitializeNative_void__
lea ecx, [ebp - 0x218]
call fcn.1012f040
push 0x102bb48c
or ebx, 0x40
mov dword [ebp - 4], 7
push eax
mov dword [ebp - 0x10], ebx
call fcn.1005d660
add esp, 8
test bl, 0x40
je 0x101418b1
lea ecx, [ebp - 0x218]
call fcn.1012f290
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 0x10141633
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0xbf
push str.C:jenkinsworkspaceext_win_buildexternals_srccrashpad_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 - 0x2c8]
call fcn.1012f040
push 0x102bbb74
or ebx, 0x10
mov dword [ebp - 4], 8
push eax
mov dword [ebp - 0x10], ebx
call fcn.1005d660
add esp, 8
test bl, 0x10
je 0x101418b1
lea ecx, [ebp - 0x2c8]
call fcn.1012f290
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