Function at 0x4a9492
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x54c03c]
mov ebx, 0x4000
xor esi, esi
xor eax, ebp
mov dword [esp + 0x418], eax
mov dword [esp + 8], ecx
mov eax, dword [ecx]
mov dword [esp + 0xc], eax
push 0x4000
call fcn.004d45ba
add esp, 4
lea ecx, [esp + 0x58]
push ecx
push ebx
mov dword [esp + 8], eax
push eax
push 5
call fcn.00497c3c
add esp, 0x10
mov edi, eax
cmp eax, 0xc0000023
je 0x4a94f3
cmp edi, 0xc0000004
jne 0x4a9520
mov ebx, dword [esp + 0x58]
mov eax, 0x1000
add ebx, eax
push dword [esp]
call fcn.004d45c3
add esp, 4
push ebx
call fcn.004d45ba
add esp, 4
inc esi
cmp esi, 0x14
jb 0x4a94cd
mov dword [esp], eax
jmp 0x4a95b0
test edi, edi
js 0x4a95b0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [esp]
mov edi, eax
mov esi, ecx
cmp dword [esi + 0x44], edi
je 0x4a9616
mov eax, dword [esi]
add esi, eax
test eax, eax
cmove esi, eax
test esi, esi
jne 0x4a9539
push 2
call fcn.00414940
mov ecx, dword [esp + 4]
add esp, 4
test al, al
je 0x4a95f5
lea esi, [esp + 0x110]
mov ecx, esi
push 2
push 0x6c
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.004149d0
lea eax, [esp + 0x118]
push str.process
push eax
call fcn.004015c0
add esp, 8
mov ecx, eax
push edi
call fcn.004154c0
push str._not_found
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00413fc0
jmp 0x4a95f2
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x4a95f2
lea esi, [esp + 0x110]
mov ecx, esi
push edi
push 2
push 0x5a
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00497f88
lea eax, [esp + 0x118]
push str.NtQuerySystemInformation
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00497fae
mov ecx, dword [esp]
push ecx
call fcn.004d45c3
add esp, 4
mov ecx, dword [esp + 0x418]
xor ecx, ebp
call fcn.004d45c8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
test esi, esi
je 0x4a95f5
cmp dword [esi + 4], 0
je 0x4a95f5
mov eax, dword [esp + 8]
lea edi, [esi + 0xd8]
lea eax, [eax + 0x68]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
push 0x2cc
xor ebx, ebx
push ebx
lea eax, [esp + 0x118]
push eax
call fcn.004daa90
add esp, 0xc
lea eax, [esp + 0x3e0]
mov dword [esp + 0xc], edi
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x28], ebx
mov eax, dword [edi + 4]
mov dword [esp + 0x3e4], ebx
mov dword [esp + 0x3e0], eax
mov eax, 0x18
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x10], ebx
push edi
lea eax, [esp + 0x40]
push eax
push 0x4a
lea eax, [esp + 0x2c]
push eax
call fcn.00497f09
add esp, 0x10
mov edi, eax
test eax, eax
js 0x4a97f5
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4a9aa2
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x3e0]
movzx edi, byte [eax + 0x80]
mov ecx, dword fs:[0x18]
xor edx, dword [ecx + 0x24]
or edx, dword [esp + 0x3e4]
jne 0x4a983a
lea eax, [esp + 0x110]
mov dword [esp + 0x408], 0
push eax
call fcn.004d6ba0
add esp, 4
mov eax, dword [esp + 0xc]
mov dword [esp + 0x40c], 0x20
xor edi, edi
mov eax, dword [eax + 8]
mov dword [esp + 0x410], eax
push edi
push 0x1c
lea eax, [esp + 0x44]
push eax
push edi
push ebx
call fcn.00497cb8
add esp, 0x14
test eax, eax
js 0x4a98cf
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x20]
mov dword [esp + 0x3ec], edi
mov dword [esp + 0x3e8], eax
mov dword [esp + 0x3f4], edi
mov dword [esp + 0x3f0], 0xf98
push edx
push edi
push 0x1c
push edi
mov edi, ecx
push eax
call fcn.004a9038
test al, al
mov dword [esp + 4], ebx
je 0x4a9a5b
cmp byte [ebp + 8], 0
je 0x4a99a4
mov eax, dword [esp + 0x20]
mov ecx, edi
xor edi, edi
lea edx, [esp + 0x58]
mov dword [esp + 0x3ec], edi
mov dword [esp + 0x3e8], eax
mov dword [esp + 0x3f4], edi
mov dword [esp + 0x3f0], 0xf98
push edx
push edi
push 0x1c
push edi
push eax
call fcn.004a9038
test al, al
mov edx, 0
mov ecx, 0
je 0x4a99ae
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
jmp 0x4a99ae
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x4a9aa2
lea ebx, [esp + 0x58]
mov ecx, ebx
push edi
push 2
push 0x7b
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00497f88
push str.NtOpenThread
lea eax, [esp + 0x64]
push eax
call fcn.004015c0
add esp, 8
mov ecx, ebx
call fcn.00497fae
jmp 0x4a9aa2
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x4a9921
sub eax, edi
mov dword [esp + 0x408], eax
push 0x2cc
push 0
lea eax, [esp + 0x118]
mov edi, eax
push eax
call fcn.004daa90
add esp, 0xc
mov dword [esp + 0x110], 0x1003f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4a9957
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x4a971b
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x4a9a99
call sub.KERNEL32.dll_GetLastError
lea edi, [esp + 0x58]
mov ecx, edi
push eax
push 2
push 0xb6
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00415cc0
push 0x5115c0
jmp 0x4a998b
mov edi, eax
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x4a9a99
mov dword [esp + 4], ebx
lea ebx, [esp + 0x58]
mov ecx, ebx
push edi
push 2
push 0x188
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00497f88
push str.NtQueryInformationThread
lea eax, [esp + 0x64]
push eax
call fcn.004015c0
add esp, 8
mov ecx, ebx
mov ebx, dword [esp + 4]
call fcn.00497fae
jmp 0x4a9a99
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x4a9a99
call sub.KERNEL32.dll_GetLastError
lea edi, [esp + 0x58]
mov ecx, edi
push eax
push 2
push 0x97
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00415cc0
push 0x5115a1
jmp 0x4a998b
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x4a9a99
call sub.KERNEL32.dll_GetLastError
lea edi, [esp + 0x58]
mov ecx, edi
push eax
push 2
push 0xb0
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00415cc0
push 0x5115af
lea eax, [esp + 0x6c]
push eax
call fcn.004015c0
add esp, 8
mov ecx, edi
call fcn.00415de0
jmp 0x4a9a99
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
xor edi, edi
cmp edx, ecx
mov eax, edi
mov dword [esp + 0x3f8], ecx
mov dword [esp + 0x3fc], edi
sbb eax, edi
jae 0x4a9a3d
xor ebx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
push 2
call fcn.00414940
add esp, 4
test al, al
mov eax, 0
je 0x4a9a45
lea ebx, [esp + 0x58]
mov ecx, ebx
push 2
push 0x1a8
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.004149d0
push str.invalid_stack_range:
lea eax, [esp + 0x64]
push eax
call fcn.004015c0
add esp, 8
mov ecx, eax
push edi
push dword [esp + 0x14]
call fcn.00415780
push 0x511570
push eax
call fcn.004015c0
add esp, 8
mov ecx, eax
push edi
push dword [esp + 0x18]
call fcn.00415780
mov ecx, ebx
call fcn.00413fc0
xor ebx, ebx
xor eax, eax
jmp 0x4a9a45
sub edx, ecx
sbb edi, edi
mov ebx, edx
mov eax, edi
mov dword [esp + 0x400], ebx
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
mov dword [esp + 0x404], eax
mov eax, dword [edi + 0x6c]
mov edx, dword [edi + 0x70]
cmp edx, eax
je 0x4a9a87
mov ebx, edi
mov edi, 0x308
push edi
lea ecx, [esp + 0x114]
push ecx
push eax
call fcn.004d9f90
add esp, 0xc
add dword [ebx + 0x6c], edi
mov ebx, dword [esp + 4]
jmp 0x4a9a99
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x110]
push eax
push edx
call fcn.004a9c08
push ebx
call fcn.00494b8a
add esp, 4
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
inc eax
add edi, 0x40
cmp eax, dword [esi + 4]
jb 0x4a9633
jmp 0x4a95f2