Function at 0x4c91fa
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x410], eax
mov dword [esp + 0xc], ecx
mov eax, dword [ecx]
mov dword [esp + 8], eax
mov ebx, 0x4000
mov esi, 0x14
push 0x4000
call fcn.004fe863
add esp, 4
lea ecx, [esp + 0x5c]
push ecx
push ebx
mov dword [esp + 8], eax
push eax
push 5
call fcn.004b4492
add esp, 0x10
mov edi, eax
cmp eax, 0xc0000023
je 0x4c925e
cmp edi, 0xc0000004
jne 0x4c9288
mov ebx, dword [esp + 0x5c]
mov eax, 0x1000
add ebx, eax
push dword [esp]
call fcn.004fe86c
add esp, 4
push ebx
call fcn.004fe863
add esp, 4
dec esi
jne 0x4c9238
mov dword [esp], eax
jmp 0x4c931c
test edi, edi
js 0x4c931c
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
mov ecx, dword [esp]
mov esi, ecx
cmp dword [esi + 0x44], edi
je 0x4c9384
mov eax, dword [esi]
add esi, eax
test eax, eax
cmove esi, eax
test esi, esi
jne 0x4c92a1
push 2
call fcn.00424cb0
mov ecx, dword [esp + 4]
add esp, 4
test al, al
je 0x4c9363
lea esi, [esp + 0x108]
mov ecx, esi
push 2
push 0x6c
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00424d40
lea eax, [esp + 0x110]
push 8
push str.process
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, eax
push edi
call fcn.00406f20
push 0xa
push str._not_found
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, esi
call fcn.004250e0
jmp 0x4c9360
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x4c9360
lea esi, [esp + 0x108]
mov ecx, esi
push edi
push 2
push 0x5a
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.004b4770
lea eax, [esp + 0x110]
push 0x18
push str.NtQuerySystemInformation
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, esi
call fcn.004b479c
mov ecx, dword [esp]
push ecx
call fcn.004fe86c
add esp, 4
mov ecx, dword [esp + 0x410]
xor ecx, ebp
call fcn.004fe871
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
test esi, esi
je 0x4c9363
cmp dword [esi + 4], 0
je 0x4c9363
mov ecx, dword [esp + 0xc]
lea eax, [ecx + 0x58]
mov dword [esp + 0x10], eax
lea eax, [ecx + 0xb8]
mov dword [esp + 0x1c], eax
lea edi, [esi + 0xd8]
xor eax, eax
mov dword [esp + 0x20], eax
push 0x2cc
xor ebx, ebx
push ebx
lea eax, [esp + 0x110]
push eax
call fcn.00502350
add esp, 0xc
lea eax, [esp + 0x3d8]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax + 0x20], xmm0
mov dword [eax + 0x30], ebx
mov eax, dword [edi + 4]
mov dword [esp + 0x3dc], ebx
mov dword [esp + 0x3d8], eax
mov dword [esp + 0x40], 0x18
lea eax, [esp + 0x44]
mov dword [eax + 0x10], ebx
movups xmmword [eax], xmm0
mov dword [esp + 8], edi
push edi
lea eax, [esp + 0x44]
push eax
push 0x4a
lea eax, [esp + 0x30]
push eax
call fcn.004b4410
add esp, 0x10
test eax, eax
js 0x4c954f
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
test eax, eax
je 0x4c97dd
mov eax, dword [esp + 0xc]
mov bl, byte [eax + 0xd0]
mov eax, dword [esp + 0x3d8]
mov ecx, dword fs:[0x18]
xor eax, dword [ecx + 0x24]
or eax, dword [esp + 0x3dc]
jne 0x4c9598
mov dword [esp + 0x400], 0
lea eax, [esp + 0x108]
push eax
call fcn.004ffef0
add esp, 4
mov dword [esp + 0x404], 0x20
mov eax, dword [esp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 0x408], eax
xor ebx, ebx
push ebx
push 0x1c
lea eax, [esp + 0x48]
push eax
push ebx
push dword [esp + 0x14]
call fcn.004b4514
add esp, 0x14
test eax, eax
js 0x4c9633
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3e4], ebx
mov dword [esp + 0x3e0], eax
mov dword [esp + 0x3ec], ebx
mov dword [esp + 0x3e8], 0xf98
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
push ebx
push 0x1c
push ebx
push eax
call fcn.00492d98
test al, al
je 0x4c9788
cmp byte [ebp + 8], 0
je 0x4c96d7
mov eax, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x3e4], edi
mov dword [esp + 0x3e0], eax
mov dword [esp + 0x3ec], edi
mov dword [esp + 0x3e8], 0xf98
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x5c]
push edx
push edi
push 0x1c
push edi
push eax
call fcn.00492d98
mov ebx, 0
mov ecx, 0
test al, al
je 0x4c96e1
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
jmp 0x4c96e1
mov edi, eax
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x4c97dd
lea ebx, [esp + 0x5c]
mov ecx, ebx
push edi
push 2
push 0x7b
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.004b4770
push 0xc
push str.NtOpenThread
lea eax, [esp + 0x6c]
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, ebx
call fcn.004b479c
jmp 0x4c97dd
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x4c97d1
mov edi, eax
test eax, eax
jne 0x4c967f
test bl, bl
je 0x4c967f
xor edi, edi
push 1
call fcn.00424cb0
add esp, 4
test al, al
je 0x4c9684
lea ebx, [esp + 0x5c]
mov ecx, ebx
push 1
push 0x9c
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00424d40
push 7
push str.Thread
lea eax, [esp + 0x6c]
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, eax
push dword [esp + 0x3dc]
push dword [esp + 0x3dc]
call fcn.004072e0
push 0x34
push str._should_be_suspended__but_previous_suspend_count_is
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, eax
push 0
call fcn.00406f20
mov ecx, ebx
call fcn.004250e0
jmp 0x4c9684
mov edi, eax
push 2
call fcn.00424cb0
add esp, 4
test al, al
je 0x4c97d1
lea ebx, [esp + 0x5c]
mov ecx, ebx
push edi
push 2
push 0x15b
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.004b4770
push 0x18
push str.NtQueryInformationThread
lea eax, [esp + 0x6c]
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, ebx
call fcn.004b479c
jmp 0x4c97d1
movzx eax, bl
sub edi, eax
mov dword [esp + 0x400], edi
push 0x2cc
push 0
lea edi, [esp + 0x110]
push edi
call fcn.00502350
add esp, 0xc
mov dword [esp + 0x108], 0x1003f
push edi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4c97d1
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x4c9476
jmp 0x4c97d1
xor edi, edi
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3f0], ecx
mov dword [esp + 0x3f4], edi
cmp ebx, ecx
mov eax, edi
sbb eax, edi
jae 0x4c9774
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
xor ebx, ebx
push 2
call fcn.00424cb0
add esp, 4
mov ecx, 0
test al, al
je 0x4c977a
lea ebx, [esp + 0x5c]
mov ecx, ebx
push 2
push 0x17b
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00424d40
push 0x15
push str.invalid_stack_range:
lea eax, [esp + 0x6c]
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, eax
push edi
push dword [esp + 0x18]
call fcn.004072e0
push 3
push 0x536794
push eax
call fcn.00401b1f
add esp, 0xc
mov ecx, eax
push edi
push dword [esp + 0x1c]
call fcn.004072e0
mov ecx, ebx
call fcn.004250e0
xor ebx, ebx
xor ecx, ecx
jmp 0x4c977a
sub ebx, ecx
sbb edi, edi
mov ecx, edi
mov dword [esp + 0x3f8], ebx
mov dword [esp + 0x3fc], ecx
mov ebx, dword [esp + 0xc]
mov edi, dword [ebx + 0xbc]
cmp edi, dword [ebx + 0xc0]
je 0x4c97c0
mov eax, 0x308
push eax
lea eax, [esp + 0x10c]
push eax
push edi
call fcn.00501dd0
add esp, 0xc
mov eax, 0x308
add edi, eax
mov dword [ebx + 0xbc], edi
jmp 0x4c97d1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x108]
push eax
call fcn.004c98e6
push dword [esp + 4]
call fcn.004b112a
add esp, 4
mov eax, dword [esp + 0x20]
inc eax
mov edi, dword [esp + 8]
add edi, 0x40
cmp eax, dword [esi + 4]
jb 0x4c93ab
jmp 0x4c9360