Function at 0x50a9f8
Capabilities:
Resolve function by parsing pe exports
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1a0
mov eax, dword [0x597010]
xor eax, ebp
mov dword [esp + 0x198], eax
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x90]
mov dword [eax], 0xffffffff
mov ebx, 0x4000
mov esi, 0x14
push 0x4000
call fcn.00528453
add esp, 4
lea ecx, [esp + 0x90]
push ecx
push ebx
mov dword [esp + 0x1c], eax
push eax
push 5
call fcn.004fb7f3
add esp, 0x10
mov edi, eax
cmp eax, 0xc0000023
je 0x50aa70
cmp edi, 0xc0000004
jne 0x50ab0e
mov ebx, dword [esp + 0x90]
mov eax, 0x1000
add ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50aa8f
push eax
call fcn.0052845c
add esp, 4
push ebx
call fcn.00528453
add esp, 4
dec esi
jne 0x50aa43
cmp dword [0x59d910], 2
jg 0x50aae9
lea ebx, [esp + 0xf0]
mov esi, eax
mov ecx, ebx
push 2
push 0x5e
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00470c60
mov dword [ebx], 0x57b8dc
mov dword [ebx + 0xa4], edi
lea eax, [esp + 0xf8]
push 0x18
push str.NtQuerySystemInformation
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, ebx
call fcn.004fbaec
mov eax, esi
test eax, eax
je 0x50aaf6
push eax
call fcn.0052845c
add esp, 4
mov ecx, dword [esp + 0x198]
xor ecx, ebp
call fcn.00528e13
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
test edi, edi
js 0x50ab9a
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
mov eax, dword [esp + 0x14]
mov edx, eax
mov esi, dword [esp + 0x10]
cmp dword [edx + 0x44], edi
je 0x50aba3
mov ecx, dword [edx]
test ecx, ecx
je 0x50ab3b
add edx, ecx
jne 0x50ab2c
cmp dword [0x59d910], 2
jg 0x50aae9
lea ebx, [esp + 0xf0]
mov ecx, ebx
push 2
push 0x70
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00470c60
lea eax, [esp + 0xf8]
push 8
push str.process
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, eax
push edi
call fcn.0042ad10
push 0xa
push str._not_found
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, ebx
call fcn.00471070
mov eax, dword [esp + 0x14]
jmp 0x50aae9
mov eax, dword [esp + 0x14]
jmp 0x50aa9b
test edx, edx
je 0x50aae9
cmp dword [edx + 4], 0
je 0x50aae9
lea eax, [esi + 0x58]
mov dword [esp + 0x24], eax
pcmpeqd xmm0, xmm0
xor ebx, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebx
shl ebx, 6
movdqa xmmword [esp + 0x90], xmm0
xor esi, esi
dec esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], esi
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
xor edi, edi
mov dword [esp + 0x90], edi
mov byte [esp + 0x94], 0
lea eax, [esp + 0x98]
pxor xmm0, xmm0
movdqu xmmword [eax + 0x3c], xmm0
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
lea eax, [edx + ebx + 0xd8]
mov ecx, dword [eax + 4]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x70], 0x18
lea ecx, [esp + 0x74]
mov dword [ecx + 0x10], edi
movdqu xmmword [ecx], xmm0
push eax
lea eax, [esp + 0x74]
push eax
push 0x4a
lea eax, [esp + 0x5c]
push eax
call fcn.004fb770
add esp, 0x10
test eax, eax
js 0x50ae16
mov esi, dword [esp + 0x50]
test esi, esi
je 0x50b4ea
mov eax, dword [esp + 0x10]
mov dl, byte [eax + 0xd0]
mov eax, dword [esp + 0xb0]
mov ecx, dword fs:[0x18]
xor eax, dword [ecx + 0x24]
or eax, dword [esp + 0xb4]
jne 0x50ae71
mov dword [esp + 0xd8], 0
lea ecx, [esp + 0x98]
push 0x2cc
call fcn.0042e706
mov byte [esp + 0x94], 1
mov eax, dword [esp + 0x98]
add eax, dword [esp + 0x90]
push eax
call fcn.00410440
add esp, 4
mov eax, dword [esp + 0x28]
add eax, ebx
add eax, 0xb8
mov dword [esp + 0xdc], 0x20
mov eax, dword [eax + 0x28]
mov dword [esp + 0xe0], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x7c], xmm0
movdqa xmmword [esp + 0x70], xmm0
xor ebx, ebx
push ebx
push 0x1c
lea eax, [esp + 0x78]
push eax
push ebx
push esi
call fcn.004fb876
add esp, 0x14
test eax, eax
js 0x50af2a
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqa xmmword [esp + 0x50], xmm0
mov eax, dword [esp + 0x74]
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], 0xf98
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x50]
push edx
push ebx
push 0x1c
push ebx
push eax
call fcn.0050b6b4
test al, al
je 0x50b172
cmp byte [ebp + 8], 0
je 0x50b0bd
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0xfc], xmm0
movdqa xmmword [esp + 0xf0], xmm0
mov eax, dword [esp + 0x50]
xor edi, edi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], 0xf98
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xf0]
push edx
push edi
push 0x1c
push edi
push eax
call fcn.0050b6b4
mov ebx, 0
mov edx, 0
test al, al
je 0x50b0c7
mov ebx, dword [esp + 0xf4]
mov edx, dword [esp + 0xf8]
jmp 0x50b0c7
cmp dword [0x59d910], 2
jg 0x50b4ea
mov edi, eax
lea esi, [esp + 0xf0]
mov ecx, esi
push 2
push 0x7f
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00470c60
mov dword [esp + 0xf0], 0x57b8dc
mov dword [esp + 0x194], edi
push 0xc
push str.NtOpenThread
lea eax, [esp + 0x100]
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, esi
call fcn.004fbaec
jmp 0x50b4ea
mov byte [esp + 0x1c], dl
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x50af8c
mov edi, eax
mov al, byte [esp + 0x1c]
test al, al
je 0x50afc8
test edi, edi
jne 0x50afc8
xor edi, edi
cmp dword [0x59d910], 1
jg 0x50afcd
cmp dword [0x599b48], 0
je 0x50afcd
mov dword [esp + 0xc], esi
lea esi, [esp + 0xf0]
mov ecx, esi
push 1
push 0xa0
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00470c60
push 7
push str.Thread
lea eax, [esp + 0x100]
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, eax
push dword [esp + 0xb4]
push dword [esp + 0xb4]
call fcn.0042b130
push 0x34
push str._should_be_suspended__but_previous_suspend_count_is
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, eax
push 0
call fcn.0042ad10
mov ecx, esi
mov esi, dword [esp + 0xc]
call fcn.00471070
jmp 0x50afcd
cmp dword [0x59d910], 2
jg 0x50b4e1
mov edi, eax
mov ebx, esi
lea esi, [esp + 0xf0]
mov ecx, esi
push 2
push 0x1aa
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00470c60
mov dword [esp + 0xf0], 0x57b8dc
mov dword [esp + 0x194], edi
push 0x18
push str.NtQueryInformationThread
lea eax, [esp + 0x100]
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, esi
mov esi, ebx
call fcn.004fbaec
jmp 0x50b4e1
cmp dword [0x59d910], 2
jg 0x50b4e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, esi
lea esi, [esp + 0xf0]
mov ecx, esi
push eax
push 2
push 0x9b
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00471a00
push 0xd
push 0x58e9fb
jmp 0x50b04f
movzx eax, al
sub edi, eax
mov dword [esp + 0xd8], edi
lea ecx, [esp + 0x98]
push 0x2cc
call fcn.0042e706
mov byte [esp + 0x94], 1
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
mov dword [ecx + eax], 0x1003f
mov eax, dword [esp + 0x98]
add eax, dword [esp + 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x50b06d
cmp dword [0x59d910], 2
jg 0x50b06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, esi
lea esi, [esp + 0xf0]
mov ecx, esi
push eax
push 2
push 0xd7
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00471a00
push 0x10
push 0x58e95b
lea eax, [esp + 0x100]
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, esi
mov esi, edi
call fcn.00471b70
jmp 0x50b4e1
test eax, eax
je 0x50b4e1
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x50acfa
cmp dword [0x59d910], 2
jg 0x50b4e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, esi
lea esi, [esp + 0xf0]
mov ecx, esi
push eax
push 2
push 0xbf
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00471a00
push 0xc
push 0x58ea46
jmp 0x50b04f
xor edi, edi
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], edi
cmp ebx, edx
mov eax, edi
sbb eax, edi
jae 0x50b15a
xor eax, eax
cmp dword [0x59d910], 2
mov ecx, 0
jg 0x50b162
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xf0]
push 2
push 0x1ca
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
mov esi, edx
call fcn.00470c60
push 0x15
push str.invalid_stack_range:
lea eax, [esp + 0x100]
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, eax
push edi
push ebx
call fcn.0042b130
push 3
push 0x57d3dd
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, eax
push edi
push esi
call fcn.0042b130
lea ecx, [esp + 0xf0]
mov esi, dword [esp + 0xc]
call fcn.00471070
xor eax, eax
xor ecx, ecx
jmp 0x50b162
sub ebx, edx
sbb edi, edi
mov eax, ebx
mov ecx, edi
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ecx
xor ebx, ebx
mov eax, dword [0x5abc64]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x50b511
mov ecx, dword [0x5abc60]
test ecx, ecx
je 0x50b2e5
mov dword [esp + 0x4c], 0xffffffff
call dword [section..00cfg]
lea eax, [esp + 0x4c]
push eax
push esi
call ecx
test eax, eax
js 0x50b245
mov edi, esi
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x50b560
push esi
call fcn.00542c14
add esp, 4
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf8], ebx
lea ecx, [esp + 0xf0]
push ecx
push eax
push esi
call fcn.004648a0
add esp, 0xc
cmp byte [esp + 0xaf], 0
jns 0x50b216
push dword [esp + 0xa4]
call fcn.00528424
add esp, 4
mov eax, dword [esp + 0xf8]
lea ecx, [esp + 0x98]
mov dword [ecx + 0x14], eax
movq xmm0, qword [esp + 0xf0]
movq qword [ecx + 0xc], xmm0
push esi
call fcn.00509ac4
add esp, 4
mov esi, edi
jmp 0x50b2e5
cmp dword [0x59d910], 1
jg 0x50b2e5
cmp dword [0x599b48], 0
je 0x50b2e5
mov edi, eax
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xf0]
push 1
push 0x1db
push str....._third_partycrashpadcrashpad_snapshotwinprocess_reader_win.cc
call fcn.00470c60
push 0x16
push str.GetThreadDescription:
lea eax, [esp + 0x100]
push eax
call fcn.0042d698
add esp, 0xc
mov ebx, eax
push edi
lea esi, [esp + 0x44]
push esi
call fcn.004717f0
add esp, 8
movzx eax, byte [esp + 0x4b]
mov ecx, esi
test al, al
jns 0x50b2b7
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
push ebx
call fcn.0042d698
add esp, 0xc
cmp byte [esp + 0x4b], 0
jns 0x50b2d5
push dword [esp + 0x40]
call fcn.00528424
add esp, 4
lea ecx, [esp + 0xf0]
call fcn.00471070
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 0xbc]
cmp edi, dword [ebx + 0xc0]
je 0x50b313
mov ecx, edi
lea edx, [esp + 0x90]
call fcn.0050b641
add edi, 0x58
mov dword [ebx + 0xbc], edi
jmp 0x50b4e1
mov dword [esp + 0xc], esi
sub edi, dword [ebx + 0xb8]
sar edi, 3
imul edi, edi, 0xba2e8ba3
lea esi, [edi + 1]
cmp esi, 0x2e8ba2f
jae 0x50b556
lea eax, [edi + edi]
cmp eax, esi
cmova esi, eax
cmp edi, 0x1745d17
mov eax, 0x2e8ba2e
cmovae esi, eax
test esi, esi
je 0x50b36b
cmp esi, 0x2e8ba2f
jae 0x50b55b
imul eax, esi, 0x58
push eax
call fcn.005283f4
add esp, 4
mov ebx, eax
jmp 0x50b36d
xor ebx, ebx
imul eax, edi, 0x58
mov dword [esp + 0x18], eax
lea edi, [ebx + eax]
imul esi, esi, 0x58
add esi, ebx
mov ecx, edi
lea edx, [esp + 0x90]
call fcn.0050b641
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x18]
lea edx, [ebx + eax]
add edx, 0x58
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xb8]
mov ebx, dword [eax + 0xbc]
mov dword [esp + 0x1c], ecx
cmp ebx, ecx
je 0x50b4b4
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
lea eax, [ebx - 0x50]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx - 0x44]
mov dword [esp + 0x38], eax
lea eax, [ecx + edx]
add eax, 0xffffffb0
mov dword [esp + 0x18], eax
xor esi, esi
mov al, byte [ebx + esi - 0x54]
mov byte [edi + esi - 0x54], al
mov eax, dword [ebx + esi - 0x58]
mov dword [edi + esi - 0x58], eax
mov eax, dword [esp + 0x18]
lea ecx, [eax + esi]
mov eax, dword [esp + 0x3c]
add eax, esi
push eax
call fcn.00431c86
cmp byte [ebx + esi - 0x39], 0
js 0x50b423
lea eax, [edi + esi]
add eax, 0xffffffbc
lea ecx, [ebx + esi - 0x44]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
movq xmm0, qword [ecx]
movq qword [eax], xmm0
jmp 0x50b437
mov eax, dword [esp + 0x38]
lea ecx, [eax + esi]
push dword [ebx + esi - 0x40]
push dword [ebx + esi - 0x44]
call fcn.0044d7c8
lea eax, [ebx + esi]
add eax, 0xffffffa8
mov ecx, dword [eax + 0x50]
mov dword [edi + esi - 8], ecx
movups xmm0, xmmword [eax + 0x40]
movups xmmword [edi + esi - 0x18], xmm0
movdqu xmm0, xmmword [eax + 0x20]
movups xmm1, xmmword [eax + 0x30]
movups xmmword [edi + esi - 0x28], xmm1
movdqu xmmword [edi + esi - 0x38], xmm0
add esi, 0xffffffa8
cmp eax, dword [esp + 0x1c]
jne 0x50b3df
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xb8]
add edi, esi
mov ebx, dword [eax + 0xbc]
mov dword [eax + 0xb8], edi
mov edi, ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xbc], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc0], ecx
cmp ebx, edi
je 0x50b4d0
mov esi, dword [esp + 0xc]
add ebx, 0xffffffa8
mov ecx, ebx
call fcn.0050b600
cmp ebx, edi
jne 0x50b4a4
jmp 0x50b4d4
mov dword [eax + 0xb8], edi
mov dword [eax + 0xbc], edx
mov dword [eax + 0xc0], esi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
jmp 0x50b4d4
mov esi, dword [esp + 0xc]
test edi, edi
je 0x50b4e1
push edi
call fcn.00528424
add esp, 4
push esi
call fcn.004f1f00
add esp, 4
lea ecx, [esp + 0x90]
call fcn.0050b600
mov ebx, dword [esp + 0x20]
inc ebx
mov edx, dword [esp + 0x28]
cmp ebx, dword [edx + 4]
pcmpeqd xmm0, xmm0
jb 0x50abc6
jmp 0x50ab91
push 0x5abc64
call fcn.00528497
add esp, 4
cmp dword [0x5abc64], 0xffffffff
jne 0x50b193
push 0
push str.::GetThreadDescription
push 0x57d4ca
call fcn.004f8a2c
add esp, 0xc
mov dword [0x5abc60], eax
push 0x5abc64
call fcn.0052850d
add esp, 4
jmp 0x50b193
call fcn.0053bf0b
call fcn.0042d55a
int3