Function at 0x4afaa2
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x565fa8]
mov ebx, 0x4000
mov esi, 0x14
xor eax, ebp
mov dword [esp + 0x420], eax
mov dword [esp + 8], ecx
mov eax, dword [ecx]
mov dword [esp], eax
push 0x4000
call fcn.004e6883
add esp, 4
lea ecx, [esp + 0x70]
push ecx
push ebx
mov dword [esp + 0xc], eax
push eax
push 5
call fcn.0049d1c6
add esp, 0x10
mov edi, eax
cmp eax, 0xc0000023
je 0x4afb05
cmp edi, 0xc0000004
jne 0x4afb31
mov ebx, dword [esp + 0x70]
mov eax, 0x1000
add ebx, eax
push dword [esp + 4]
call fcn.004e688c
add esp, 4
push ebx
call fcn.004e6883
add esp, 4
dec esi
jne 0x4afadf
mov dword [esp + 4], eax
jmp 0x4afbc5
test edi, edi
js 0x4afbc5
push dword [esp]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [esp + 4]
mov edi, eax
mov esi, ecx
cmp dword [esi + 0x44], edi
je 0x4afc2e
mov eax, dword [esi]
add esi, eax
test eax, eax
cmove esi, eax
test esi, esi
jne 0x4afb4a
push 2
call fcn.004278b0
mov ecx, dword [esp + 8]
add esp, 4
test al, al
je 0x4afc0d
lea esi, [esp + 0x118]
mov ecx, esi
push 2
push 0x6c
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00427940
lea eax, [esp + 0x11c]
push 8
push str.process
push eax
call fcn.00401965
add esp, 0xc
mov ecx, eax
push edi
call fcn.004072f0
push 0xa
push str._not_found
push eax
call fcn.00401965
add esp, 0xc
mov ecx, esi
call fcn.00426f60
jmp 0x4afc09
push 2
call fcn.004278b0
add esp, 4
test al, al
je 0x4afc09
lea esi, [esp + 0x118]
mov ecx, esi
push edi
push 2
push 0x5a
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.0049d4a4
lea eax, [esp + 0x11c]
push 0x18
push str.NtQuerySystemInformation
push eax
call fcn.00401965
add esp, 0xc
mov ecx, esi
call fcn.0049d4ca
mov ecx, dword [esp + 4]
push ecx
call fcn.004e688c
add esp, 4
mov ecx, dword [esp + 0x420]
xor ecx, ebp
call fcn.004e6891
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
test esi, esi
je 0x4afc0d
cmp dword [esi + 4], 0
je 0x4afc0d
mov edx, dword [esp + 8]
mov ecx, 4
lea eax, [esp + 0x48]
mov edi, 8
add eax, ecx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x70]
add ecx, eax
add edi, eax
lea eax, [edx + 0x58]
mov dword [esp + 0xc], edi
lea edi, [esi + 0xd8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
lea eax, [edx + 0xb8]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x28], eax
push 0x2cc
xor ebx, ebx
push ebx
lea eax, [esp + 0x120]
push eax
call fcn.004ead00
add esp, 0xc
lea eax, [esp + 0x3e8]
mov dword [esp], 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 + 0x2c], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x30], ebx
mov eax, dword [edi + 4]
mov dword [esp + 0x3ec], ebx
mov dword [esp + 0x3e8], eax
mov eax, 0x18
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
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 + 0x4c]
push eax
push 0x4a
lea eax, [esp + 0x38]
push eax
call fcn.0049d144
add esp, 0x10
test eax, eax
js 0x4afd10
mov ebx, dword [esp + 0x2c]
jmp 0x4afd53
mov edi, eax
xor ebx, ebx
push 2
call fcn.004278b0
add esp, 4
test al, al
je 0x4afd53
lea ebx, [esp + 0x70]
mov ecx, ebx
push edi
push 2
push 0x7b
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.0049d4a4
push 0xc
push str.NtOpenThread
push dword [esp + 0x18]
call fcn.00401965
add esp, 0xc
mov ecx, ebx
xor ebx, ebx
call fcn.0049d4ca
mov edi, dword [esp]
test ebx, ebx
mov dword [esp + 0x64], 0x5230a4
mov dword [esp + 0x68], ebx
mov byte [esp + 0x6c], 0
je 0x4b00fc
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x3e8]
movzx edi, byte [eax + 0xd0]
mov ecx, dword fs:[0x18]
xor edx, dword [ecx + 0x24]
or edx, dword [esp + 0x3ec]
jne 0x4afe8f
lea eax, [esp + 0x118]
mov dword [esp + 0x410], 0
push eax
call fcn.004e8160
add esp, 4
mov edi, dword [esp]
mov dword [esp + 0x414], 0x20
mov eax, dword [edi + 8]
xor edi, edi
mov dword [esp + 0x418], eax
push edi
push 0x1c
lea eax, [esp + 0x50]
push eax
push edi
push dword [esp + 0x78]
call fcn.0049d248
add esp, 0x14
test eax, eax
js 0x4aff29
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
mov dword [esp + 0x3f4], edi
mov dword [esp + 0x3f0], eax
mov dword [esp + 0x3fc], edi
mov dword [esp + 0x3f8], 0xf98
push edx
push edi
push 0x1c
push edi
push eax
call fcn.004b0398
mov ecx, dword [esp + 8]
test al, al
je 0x4b00b9
cmp byte [ebp + 8], 0
je 0x4b0005
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
xor edi, edi
lea edx, [esp + 0x70]
mov dword [esp + 0x3f4], edi
mov dword [esp + 0x3f0], eax
mov dword [esp + 0x3fc], edi
mov dword [esp + 0x3f8], 0xf98
push edx
push edi
push 0x1c
push edi
push eax
call fcn.004b0398
test al, al
mov ebx, 0
mov ecx, 0
je 0x4b000f
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
jmp 0x4b000f
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x4aff76
sub eax, edi
mov dword [esp + 0x410], eax
push 0x2cc
push 0
lea eax, [esp + 0x120]
mov edi, eax
push eax
call fcn.004ead00
add esp, 0xc
mov dword [esp + 0x118], 0x1003f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4affb1
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esp]
test eax, eax
jne 0x4afdb6
push 2
call fcn.004278b0
add esp, 4
test al, al
je 0x4b00fc
call fcn.00427e80
lea edi, [esp + 0x70]
mov ecx, edi
push eax
push 2
push 0xb6
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00428040
push 0xc
push 0x5282db
jmp 0x4affea
mov ebx, eax
push 2
call fcn.004278b0
add esp, 4
test al, al
je 0x4b00f9
mov eax, ebx
lea ebx, [esp + 0x70]
mov ecx, ebx
push eax
push 2
push 0x155
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.0049d4a4
push 0x18
push str.NtQueryInformationThread
push dword [esp + 0x18]
call fcn.00401965
add esp, 0xc
mov ecx, ebx
call fcn.0049d4ca
jmp 0x4b00f9
push 2
call fcn.004278b0
add esp, 4
mov edi, dword [esp]
test al, al
je 0x4b00fc
call fcn.00427e80
lea edi, [esp + 0x70]
mov ecx, edi
push eax
push 2
push 0x97
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00428040
push 0xd
push 0x5282bc
jmp 0x4affea
push 2
call fcn.004278b0
add esp, 4
mov edi, dword [esp]
test al, al
je 0x4b00fc
call fcn.00427e80
lea edi, [esp + 0x70]
mov ecx, edi
push eax
push 2
push 0xb0
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00428040
push 0x10
push 0x5282ca
push dword [esp + 0x14]
call fcn.00401965
add esp, 0xc
mov ecx, edi
mov edi, dword [esp]
call fcn.00428100
jmp 0x4b00fc
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
xor edi, edi
cmp ebx, ecx
mov eax, edi
mov dword [esp + 0x400], ecx
mov dword [esp + 0x404], edi
sbb eax, edi
jae 0x4b00a1
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov dword [esp + 0x1c], ecx
push 2
call fcn.004278b0
add esp, 4
test al, al
mov eax, 0
je 0x4b00a7
lea ebx, [esp + 0x70]
mov ecx, ebx
push 2
push 0x175
push str..._.._third_party_crashpad_crashpad_snapshot_win_process_reader_win.cc
call fcn.00427940
push 0x15
push str.invalid_stack_range:
push dword [esp + 0x18]
call fcn.00401965
add esp, 0xc
mov ecx, eax
push edi
push dword [esp + 0x1c]
call fcn.004076b0
push 3
push 0x5282a4
push eax
call fcn.00401965
add esp, 0xc
mov ecx, eax
push edi
push dword [esp + 0x20]
call fcn.004076b0
mov ecx, ebx
call fcn.00426f60
xor ebx, ebx
xor eax, eax
jmp 0x4b00a7
sub ebx, ecx
sbb edi, edi
mov eax, edi
mov ecx, dword [esp + 8]
mov dword [esp + 0x408], ebx
mov dword [esp + 0x40c], eax
mov eax, dword [ecx + 0xbc]
cmp eax, dword [ecx + 0xc0]
je 0x4b00e8
mov edi, 0x308
mov ebx, ecx
push edi
lea ecx, [esp + 0x11c]
push ecx
push eax
call fcn.004ea200
add esp, 0xc
add dword [ebx + 0xbc], edi
jmp 0x4b00f9
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x118]
push eax
call fcn.004b020a
mov edi, dword [esp]
lea ecx, [esp + 0x64]
call fcn.004723e6
mov eax, dword [esp + 0x28]
add edi, 0x40
inc eax
cmp eax, dword [esi + 4]
jb 0x4afc79
jmp 0x4afc09