Function at 0x563572
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 [0x63a1e8]
mov ebx, 0x4000
mov esi, 0x14
xor eax, ebp
mov dword [esp + 0x410], eax
mov dword [esp + 0xc], ecx
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
push 0x4000
call fcn.005909e3
add esp, 4
lea ecx, [esp + 0x5c]
push ecx
push ebx
mov dword [esp + 0x10], eax
push eax
push 5
call fcn.00504c86
add esp, 0x10
mov edi, eax
cmp eax, 0xc0000023
je 0x5635d6
cmp edi, 0xc0000004
jne 0x563602
mov ebx, dword [esp + 0x5c]
mov eax, 0x1000
add ebx, eax
push dword [esp + 8]
call fcn.005909ec
add esp, 4
push ebx
call fcn.005909e3
add esp, 4
dec esi
jne 0x5635b0
mov dword [esp + 8], eax
jmp 0x56369b
test edi, edi
js 0x56369b
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov edi, eax
mov esi, ecx
cmp dword [esi + 0x44], edi
je 0x563704
mov eax, dword [esi]
add esi, eax
test eax, eax
cmove esi, eax
test esi, esi
jne 0x563620
push 2
call fcn.004824f0
mov ecx, dword [esp + 0xc]
add esp, 4
test al, al
je 0x5636e3
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.00482590
lea eax, [esp + 0x110]
push 8
push str.process
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, eax
push edi
call fcn.00462850
push 0xa
push str._not_found
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, esi
call fcn.00482940
jmp 0x5636df
push 2
call fcn.004824f0
add esp, 4
test al, al
je 0x5636df
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.00504f64
lea eax, [esp + 0x110]
push 0x18
push str.NtQuerySystemInformation
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, esi
call fcn.00504f90
mov ecx, dword [esp + 8]
push ecx
call fcn.005909ec
add esp, 4
mov ecx, dword [esp + 0x410]
xor ecx, ebp
call fcn.005909f1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
test esi, esi
je 0x5636e3
cmp dword [esi + 4], 0
je 0x5636e3
lea eax, [edx + 0x58]
lea ebx, [esi + 0xd8]
xor edi, edi
mov dword [esp + 0x14], eax
lea eax, [edx + 0xb8]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x10], eax
push 0x2cc
push edi
lea eax, [esp + 0x110]
push eax
call fcn.00594d60
add esp, 0xc
lea eax, [esp + 0x3d8]
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x18], edi
mov dword [eax + 0x24], edi
mov dword [eax + 0x20], edi
mov dword [eax + 0x2c], edi
mov dword [eax + 0x28], edi
mov dword [eax + 0x30], edi
mov eax, dword [ebx + 4]
mov dword [esp + 0x3dc], edi
mov dword [esp + 0x40], 0x18
mov dword [esp + 0x3d8], eax
lea eax, [esp + 0x44]
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
mov dword [eax + 0x10], edi
push ebx
lea eax, [esp + 0x44]
push eax
push 0x4a
lea eax, [esp + 0x30]
push eax
call fcn.00504c04
add esp, 0x10
test eax, eax
js 0x563814
mov edx, dword [esp + 0x24]
mov edi, 0
test edx, edx
je 0x563c51
mov eax, dword [esp + 0xc]
mov dword [esp + 4], ebx
mov bl, byte [eax + 0xd0]
mov eax, dword [esp + 0x3d8]
mov ecx, dword fs:[0x18]
mov dword [esp], edx
xor eax, dword [ecx + 0x24]
or eax, dword [esp + 0x3dc]
jne 0x563865
lea eax, [esp + 0x108]
mov dword [esp + 0x400], 0
push eax
call fcn.00591380
add esp, 4
mov ebx, dword [esp + 4]
jmp 0x56398d
mov edi, eax
push 2
call fcn.004824f0
add esp, 4
test al, al
je 0x563c4f
mov dword [esp + 4], ebx
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.00504f64
push 0xc
push str.NtOpenThread
lea eax, [esp + 0x6c]
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, ebx
mov ebx, dword [esp + 4]
call fcn.00504f90
jmp 0x563c4f
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, eax
test eax, eax
je 0x5638bd
cmp edi, 0xffffffff
jne 0x563933
push 2
call fcn.004824f0
add esp, 4
test al, al
mov ebx, dword [esp + 4]
mov eax, dword [esp]
je 0x563c46
call fcn.00482ea0
lea edi, [esp + 0x5c]
mov ecx, edi
push eax
push 2
push 0x97
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00482fd0
push 0xd
push 0x5dec1c
jmp 0x563c2f
test bl, bl
je 0x563933
xor edi, edi
push 1
call fcn.004824f0
add esp, 4
test al, al
je 0x563938
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.00482590
push 7
push str.Thread
lea eax, [esp + 0x6c]
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, eax
push dword [esp + 0x3dc]
push dword [esp + 0x3dc]
call fcn.00462c10
push 0x34
push str._should_be_suspended__but_previous_suspend_count_is
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, eax
push 0
call fcn.00462850
mov ecx, ebx
call fcn.00482940
jmp 0x563938
movzx eax, bl
sub edi, eax
mov ebx, dword [esp + 4]
mov dword [esp + 0x400], edi
push 0x2cc
push 0
lea edi, [esp + 0x110]
push edi
call fcn.00594d60
add esp, 0xc
mov dword [esp + 0x108], 0x1003f
push edi
mov edi, dword [esp + 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x563ab9
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
mov edi, 0
je 0x563bfa
mov dword [esp + 0x404], 0x20
mov eax, dword [ebx + 8]
mov dword [esp + 0x408], eax
push edi
push 0x1c
lea eax, [esp + 0x48]
push eax
push edi
push dword [esp + 0x10]
call fcn.00504d08
add esp, 0x14
xor edx, edx
test eax, eax
js 0x563a66
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0x24]
mov dword [esp + 0x3e4], edx
mov dword [esp + 0x3e0], eax
mov dword [esp + 0x3ec], edx
mov dword [esp + 0x3e8], 0xf98
push edi
push edx
push 0x1c
push edx
push eax
call fcn.00563ff0
test al, al
mov eax, dword [esp + 0xc]
je 0x563baf
cmp byte [ebp + 8], 0
je 0x563af6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
xor edi, edi
lea edx, [esp + 0x5c]
mov dword [esp + 0x3e4], edi
mov dword [esp + 0x3e0], eax
mov dword [esp + 0x3ec], edi
mov dword [esp + 0x3e8], 0xf98
push edx
push edi
push 0x1c
push edi
push eax
call fcn.00563ff0
test al, al
mov ebx, 0
mov ecx, 0
je 0x563b00
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
jmp 0x563b00
mov edi, eax
push 2
call fcn.004824f0
add esp, 4
test al, al
mov eax, dword [esp]
je 0x563c46
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.00504f64
push 0x18
push str.NtQueryInformationThread
lea eax, [esp + 0x6c]
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, ebx
mov ebx, dword [esp + 4]
call fcn.00504f90
jmp 0x563c43
push 2
call fcn.004824f0
add esp, 4
test al, al
mov eax, edi
je 0x563c46
call fcn.00482ea0
lea edi, [esp + 0x5c]
mov ecx, edi
push eax
push 2
push 0xb6
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00482fd0
push 0x10
push 0x5dec67
jmp 0x563c2f
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
xor edi, edi
cmp ebx, ecx
mov eax, edi
mov dword [esp + 0x3f0], ecx
mov dword [esp + 0x3f4], edi
sbb eax, edi
jae 0x563b93
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov dword [esp + 0x1c], ecx
push 2
call fcn.004824f0
add esp, 4
test al, al
mov eax, 0
je 0x563b99
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.00482590
push 0x15
push str.invalid_stack_range:
lea eax, [esp + 0x6c]
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, eax
push edi
push dword [esp + 0x1c]
call fcn.00462c10
push 3
push 0x5dec04
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, eax
push edi
push dword [esp + 0x20]
call fcn.00462c10
mov ecx, ebx
call fcn.00482940
xor ebx, ebx
xor eax, eax
jmp 0x563b99
sub ebx, ecx
sbb edi, edi
mov eax, edi
mov dword [esp + 0x3f8], ebx
mov dword [esp + 0x3fc], eax
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 4]
mov edi, dword [eax + 0xbc]
cmp edi, dword [eax + 0xc0]
je 0x563be7
mov ecx, 0x308
push ecx
lea eax, [esp + 0x10c]
push eax
push edi
call fcn.00594260
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov eax, 0x308
add edi, eax
mov dword [ecx + 0xbc], edi
jmp 0x563c43
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x108]
push eax
call fcn.00563d56
jmp 0x563c43
push 2
call fcn.004824f0
add esp, 4
test al, al
mov eax, dword [esp]
je 0x563c46
call fcn.00482ea0
lea edi, [esp + 0x5c]
mov ecx, edi
push eax
push 2
push 0xbc
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00482fd0
push 0xc
push 0x5dec78
lea eax, [esp + 0x6c]
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, edi
call fcn.00483090
mov eax, dword [esp]
push eax
call fcn.00500dd2
add esp, 4
xor edi, edi
mov eax, dword [esp + 0x10]
add ebx, 0x40
inc eax
cmp eax, dword [esi + 4]
jb 0x563729
jmp 0x5636df