Function at 0x500be0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x190
mov eax, dword [0x542040]
xor eax, ebp
mov dword [esp + 0x188], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x80]
mov dword [eax], 0xffffffff
mov esi, 0x4000
mov ebx, 0x14
push 0x4000
call fcn.0048d9c3
add esp, 4
jmp 0x500c58
mov esi, dword [esp + 0x80]
mov eax, 0x1000
add esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x500c4c
push eax
call fcn.0048d9cc
add esp, 4
push esi
call fcn.0048d9c3
add esp, 4
dec ebx
je 0x500cc1
lea ecx, [esp + 0x80]
push ecx
push esi
mov dword [esp + 0x18], eax
push eax
push 5
call fcn.004f9d70
add esp, 0x10
mov edi, eax
cmp eax, 0xc0000023
je 0x500c2d
cmp edi, 0xc0000004
je 0x500c2d
test edi, edi
js 0x500cbd
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
mov ecx, dword [esp + 0x10]
mov ebx, ecx
cmp dword [ebx + 0x44], edi
je 0x500d32
mov eax, dword [ebx]
test eax, eax
je 0x500caa
add ebx, eax
jne 0x500c97
push 2
call fcn.0046d8e0
add esp, 4
test al, al
je 0x500d09
jmp 0x501046
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
push 2
call fcn.0046d8e0
add esp, 4
test al, al
je 0x500d09
lea ebx, [esp + 0xe0]
mov ecx, ebx
push edi
push 2
push 0x5f
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.004fa0a0
lea eax, [esp + 0xe8]
push 0x18
push str.NtQuerySystemInformation
push eax
call fcn.00454f30
add esp, 0xc
mov ecx, ebx
call fcn.004fa0d0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x500d1a
push ecx
call fcn.0048d9cc
add esp, 4
mov ecx, dword [esp + 0x188]
xor ecx, ebp
call fcn.0048e2e5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
test ebx, ebx
je 0x500d0d
cmp dword [ebx + 4], 0
je 0x500d0d
lea edi, [esp + 0x88]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x80]
mov dword [esp + 0x20], eax
lea eax, [ecx + 0x108]
mov dword [esp + 0x28], eax
lea ecx, [ebx + 0xd8]
xor esi, esi
jmp 0x500ed7
mov dword [esp + 0xc8], 0
mov ecx, edi
push 0x2cc
call fcn.00455e50
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x88]
add eax, dword [esp + 0x80]
push eax
call fcn.00410410
add esp, 4
mov dword [esp + 0xcc], 0x20
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
mov dword [esp + 0xd0], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x6c], xmm0
movdqa xmmword [esp + 0x60], xmm0
xor eax, eax
push eax
push 0x1c
lea ecx, [esp + 0x68]
push ecx
push eax
push esi
call fcn.004f9e00
add esp, 0x14
test eax, eax
jns 0x5011a8
mov edi, eax
push 2
call fcn.0046d8e0
add esp, 4
test al, al
je 0x500e34
mov dword [esp + 0xc], esi
lea esi, [esp + 0xe0]
mov ecx, esi
push edi
push 2
push 0x1ab
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.004fa0a0
push 0x18
push str.NtQueryInformationThread
lea eax, [esp + 0xf0]
push eax
call fcn.00454f30
add esp, 0xc
mov ecx, esi
mov esi, dword [esp + 0xc]
call fcn.004fa0d0
lea edi, [esp + 0x88]
push esi
call fcn.0044f540
add esp, 4
jmp 0x500e96
mov edi, eax
push 2
call fcn.0046d8e0
add esp, 4
test al, al
je 0x500e8f
lea esi, [esp + 0xe0]
mov ecx, esi
push edi
push 2
push 0x80
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.004fa0a0
push 0xc
push str.NtOpenThread
lea eax, [esp + 0xf0]
push eax
call fcn.00454f30
add esp, 0xc
mov ecx, esi
call fcn.004fa0d0
lea edi, [esp + 0x88]
cmp byte [esp + 0x9f], 0
mov esi, dword [esp + 0x2c]
jns 0x500eb3
push dword [esp + 0x94]
call fcn.0048d98d
add esp, 4
mov dword [esp + 0xe0], edi
lea ecx, [esp + 0xe0]
call fcn.00455c70
inc esi
mov ecx, dword [esp + 0x18]
add ecx, 0x40
cmp esi, dword [ebx + 4]
jae 0x500d09
mov dword [esp + 0x2c], esi
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x80], xmm0
xor esi, esi
dec esi
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], esi
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
xor edx, edx
mov dword [esp + 0x80], edx
mov byte [esp + 0x84], 0
pxor xmm0, xmm0
movdqu xmmword [edi + 0x3c], xmm0
movdqu xmmword [edi + 0x30], xmm0
movdqu xmmword [edi + 0x20], xmm0
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
mov eax, dword [ecx + 4]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x60], 0x18
lea eax, [esp + 0x64]
mov dword [eax + 0x10], edx
movdqu xmmword [eax], xmm0
mov dword [esp + 0x18], ecx
push ecx
lea eax, [esp + 0x64]
push eax
push 0x4a
lea eax, [esp + 0x4c]
push eax
call fcn.004f9ce0
add esp, 0x10
test eax, eax
js 0x500e46
mov esi, dword [esp + 0x40]
test esi, esi
lea edi, [esp + 0x88]
je 0x500e96
mov eax, dword [esp + 0x14]
mov dl, byte [eax + 0x120]
mov eax, dword [esp + 0xa0]
mov ecx, dword fs:[0x18]
xor eax, dword [ecx + 0x24]
or eax, dword [esp + 0xa4]
je 0x500d68
mov byte [esp + 0xc], dl
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x501098
push 2
call fcn.0046d8e0
add esp, 4
test al, al
lea edi, [esp + 0x88]
je 0x500e3b
call fcn.004d4ac0
mov dword [esp + 0xc], esi
lea esi, [esp + 0xe0]
mov ecx, esi
push eax
push 2
push 0x9c
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.004d4c90
push 0xd
push 0x539e8d
lea eax, [esp + 0xf0]
push eax
call fcn.00454f30
add esp, 0xc
mov ecx, esi
mov esi, dword [esp + 0xc]
call fcn.004d4cf0
jmp 0x500e3b
lea ebx, [esp + 0xe0]
mov ecx, ebx
push 2
push 0x71
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00429cd0
lea eax, [esp + 0xe8]
push 8
push str.process
push eax
call fcn.00454f30
add esp, 0xc
mov ecx, eax
push edi
call fcn.00411d80
push 0xa
push str._not_found
push eax
call fcn.00454f30
add esp, 0xc
mov ecx, ebx
call fcn.0042a1b0
jmp 0x500d09
mov edi, eax
mov dl, byte [esp + 0xc]
mov eax, edx
xor al, 1
test edi, edi
setne cl
or cl, al
jne 0x50112f
xor edi, edi
push 1
call fcn.0046d8e0
add esp, 4
test al, al
je 0x501134
mov dword [esp + 0xc], esi
lea esi, [esp + 0xe0]
mov ecx, esi
push 1
push 0xa1
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00429cd0
push 7
push str.Thread
lea eax, [esp + 0xf0]
push eax
call fcn.00454f30
add esp, 0xc
mov ecx, eax
push dword [esp + 0xa4]
push dword [esp + 0xa4]
call fcn.00412450
push 0x34
push str._should_be_suspended__but_previous_suspend_count_is
push eax
call fcn.00454f30
add esp, 0xc
mov ecx, eax
push 0
call fcn.00411d80
mov ecx, esi
mov esi, dword [esp + 0xc]
call fcn.0042a1b0
jmp 0x501134
movzx eax, dl
sub edi, eax
mov dword [esp + 0xc8], edi
lea ecx, [esp + 0x80]
push esi
call fcn.00500820
test al, al
lea edi, [esp + 0x88]
je 0x500e3b
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x500d9e
push 2
call fcn.0046d8e0
add esp, 4
test al, al
je 0x500e3b
call fcn.004d4ac0
mov dword [esp + 0xc], esi
lea esi, [esp + 0xe0]
mov ecx, esi
push eax
push 2
push 0xc0
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.004d4c90
push 0xc
push 0x539ed8
jmp 0x501026
mov dword [esp + 0xc], esi
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x4c], xmm0
movdqa xmmword [esp + 0x40], xmm0
mov eax, dword [esp + 0x64]
xor edx, edx
mov dword [esp + 0xac], edx
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb0], 0xf98
mov ecx, dword [esp + 0x20]
lea esi, [esp + 0x40]
push esi
push edx
push 0x1c
push edx
push eax
call fcn.00501930
test al, al
je 0x501333
cmp byte [ebp + 8], 0
je 0x501273
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0xec], xmm0
movdqa xmmword [esp + 0xe0], xmm0
mov eax, dword [esp + 0x40]
xor edi, edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], 0xf98
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xe0]
push edx
push edi
push 0x1c
push edi
push eax
call fcn.00501930
mov ecx, 0
mov esi, 0
test al, al
je 0x50127d
mov ecx, dword [esp + 0xe4]
mov esi, dword [esp + 0xe8]
jmp 0x50127d
xor edi, edi
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], edi
cmp ecx, esi
mov eax, edi
sbb eax, edi
jae 0x50131d
mov dword [esp + 0x1c], ecx
push 2
call fcn.0046d8e0
add esp, 4
mov ecx, 0
test al, al
mov eax, 0
je 0x501325
mov dword [esp + 0x24], esi
lea esi, [esp + 0xe0]
mov ecx, esi
push 2
push 0x1cb
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00429cd0
push 0x15
push str.invalid_stack_range:
lea eax, [esp + 0xf0]
push eax
call fcn.00454f30
add esp, 0xc
mov ecx, eax
push edi
push dword [esp + 0x20]
call fcn.00412450
push 3
push 0x5328a0
push eax
call fcn.00454f30
add esp, 0xc
mov ecx, eax
push edi
push dword [esp + 0x28]
call fcn.00412450
mov ecx, esi
call fcn.0042a1b0
xor eax, eax
xor ecx, ecx
jmp 0x501325
sub ecx, esi
sbb edi, edi
mov eax, ecx
mov ecx, edi
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
mov eax, dword [0x55732c]
mov ecx, dword [0x545744]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5014e6
mov ecx, dword [0x557328]
test ecx, ecx
mov esi, dword [esp + 0xc]
je 0x5013f3
mov dword [esp + 0x3c], 0xffffffff
call dword [0x53cee4]
lea eax, [esp + 0x3c]
push eax
push esi
call ecx
test eax, eax
js 0x50143d
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x5014d7
push edi
call fcn.004a76c4
add esp, 4
push eax
push edi
lea eax, [esp + 0xe8]
push eax
call fcn.00466a10
add esp, 0xc
cmp byte [esp + 0x9f], 0
lea ecx, [esp + 0x88]
jns 0x5013d2
push dword [esp + 0x94]
call fcn.0048d98d
lea ecx, [esp + 0x8c]
add esp, 4
mov eax, dword [esp + 0xe8]
mov dword [ecx + 0x14], eax
movq xmm0, qword [esp + 0xe0]
movq qword [ecx + 0xc], xmm0
push edi
call fcn.004529e0
add esp, 4
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x10c]
cmp edi, dword [eax + 0x110]
jb 0x50141a
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x80]
push eax
call fcn.005016e0
mov edi, eax
jmp 0x50142e
lea eax, [esp + 0x80]
push eax
push edi
call fcn.005017f0
add esp, 8
add edi, 0x58
mov eax, dword [esp + 0x14]
mov dword [eax + 0x10c], edi
jmp 0x500e34
mov edi, eax
push 1
call fcn.0046d8e0
add esp, 4
test al, al
je 0x5013f3
lea ecx, [esp + 0xe0]
push 1
push 0x1dc
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00429cd0
push 0x16
push str.GetThreadDescription:
lea eax, [esp + 0xf0]
push eax
call fcn.00454f30
add esp, 0xc
mov dword [esp + 0x1c], eax
push edi
lea esi, [esp + 0x34]
push esi
call fcn.004d4ad0
add esp, 8
movsx eax, byte [esp + 0x3b]
mov ecx, esi
test eax, eax
jns 0x5014a1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push dword [esp + 0x24]
call fcn.00454f30
add esp, 0xc
cmp byte [esp + 0x3b], 0
jns 0x5014c2
push dword [esp + 0x30]
call fcn.0048d98d
add esp, 4
lea ecx, [esp + 0xe0]
call fcn.0042a1b0
mov esi, dword [esp + 0xc]
jmp 0x5013f3
push str....._third_partylibc_srcinclude_string_view:268:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
push 0x524b41
call fcn.004bbec0
push 0x55732c
call fcn.0048d9d1
add esp, 4
cmp dword [0x55732c], 0xffffffff
jne 0x501354
push 0
push str.::GetThreadDescription
push 0x529b4a
call fcn.00450940
add esp, 0xc
mov dword [0x557328], eax
push 0x55732c
call fcn.0048da4b
add esp, 4
jmp 0x501354