Function at 0x5faf10
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, 0x170
mov eax, dword [0x646040]
xor eax, ebp
mov dword [esp + 0x168], eax
mov dword [esp + 8], ecx
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x70]
mov dword [eax], 0xffffffff
mov esi, 0x4000
mov ebx, 0x14
push 0x4000
call fcn.00565a15
add esp, 4
jmp 0x5faf82
mov esi, dword [esp + 0x70]
mov eax, 0x1000
add esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5faf76
push eax
call fcn.0056586d
add esp, 4
push esi
call fcn.00565a15
add esp, 4
dec ebx
je 0x5fafec
lea ecx, [esp + 0x70]
push ecx
push esi
mov dword [esp + 0x14], eax
push eax
push 5
call fcn.005ef340
add esp, 0x10
mov edi, eax
cmp eax, 0xc0000023
je 0x5faf5a
cmp edi, 0xc0000004
je 0x5faf5a
test edi, edi
js 0x5fafe8
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
mov ecx, dword [esp + 0xc]
mov ebx, ecx
mov edx, dword [esp + 8]
cmp dword [ebx + 0x44], edi
je 0x5fb05b
mov eax, dword [ebx]
test eax, eax
je 0x5fafd5
add ebx, eax
jne 0x5fafc2
push 2
call fcn.00561770
add esp, 4
test al, al
je 0x5fb034
jmp 0x5fb33d
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
push 2
call fcn.00561770
add esp, 4
test al, al
je 0x5fb034
lea ebx, [esp + 0xc8]
mov ecx, ebx
push edi
push 2
push 0x5f
push str.process_reader_win.cc
call fcn.005ef670
lea eax, [esp + 0xd0]
push 0x18
push str.NtQuerySystemInformation
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, ebx
call fcn.005ef6a0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x5fb045
push ecx
call fcn.0056586d
add esp, 4
mov ecx, dword [esp + 0x168]
xor ecx, ebp
call fcn.00567335
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x5fb038
cmp dword [ebx + 4], 0
je 0x5fb038
lea edi, [esp + 0x78]
lea ecx, [ebx + 0xd8]
lea eax, [edx + 0x68]
mov dword [esp + 0x18], eax
xor esi, esi
jmp 0x5fb1dd
mov dword [esp + 0xb8], 0
mov ecx, edi
push 0x2cc
call fcn.00557070
mov byte [esp + 0x74], 1
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x70]
push eax
call fcn.004ecc90
add esp, 4
mov dword [esp + 0xbc], 0x20
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0xc0], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x5c], xmm0
movdqa xmmword [esp + 0x50], xmm0
xor eax, eax
push eax
push 0x1c
lea ecx, [esp + 0x58]
push ecx
push eax
push esi
call fcn.005ef3d0
add esp, 0x14
test eax, eax
jns 0x5fb38f
mov edi, eax
push 2
call fcn.00561770
add esp, 4
test al, al
je 0x5fb140
mov dword [esp + 4], esi
lea esi, [esp + 0xc8]
mov ecx, esi
push edi
push 2
push 0x1ab
push str.process_reader_win.cc
call fcn.005ef670
push 0x18
push str.NtQueryInformationThread
lea eax, [esp + 0xd8]
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.005ef6a0
lea edi, [esp + 0x78]
push esi
call fcn.004f3c00
add esp, 4
jmp 0x5fb19c
mov edi, eax
push 2
call fcn.00561770
add esp, 4
test al, al
je 0x5fb198
lea esi, [esp + 0xc8]
mov ecx, esi
push edi
push 2
push 0x80
push str.process_reader_win.cc
call fcn.005ef670
push 0xc
push str.NtOpenThread
lea eax, [esp + 0xd8]
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, esi
call fcn.005ef6a0
lea edi, [esp + 0x78]
cmp byte [esp + 0x8f], 0
mov esi, dword [esp + 0x1c]
jns 0x5fb1b9
push dword [esp + 0x84]
call fcn.00564050
add esp, 4
mov dword [esp + 0xc8], edi
lea ecx, [esp + 0xc8]
call fcn.00556670
inc esi
mov ecx, dword [esp + 0x10]
add ecx, 0x40
cmp esi, dword [ebx + 4]
jae 0x5fb034
mov dword [esp + 0x1c], esi
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
xor esi, esi
dec esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], esi
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
xor edx, edx
mov dword [esp + 0x70], edx
mov byte [esp + 0x74], 0
pxor xmm0, xmm0
movdqu xmmword [edi + 0x3c], xmm0
movdqu xmmword [edi + 0x30], xmm0
movdqu xmmword [edi + 0x20], xmm0
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
mov eax, dword [ecx + 4]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], 0x18
lea eax, [esp + 0x54]
mov dword [eax + 0x10], edx
movdqu xmmword [eax], xmm0
mov dword [esp + 0x10], ecx
push ecx
lea eax, [esp + 0x54]
push eax
push 0x4a
lea eax, [esp + 0x3c]
push eax
call fcn.005ef2b0
add esp, 0x10
test eax, eax
js 0x5fb14f
mov esi, dword [esp + 0x30]
test esi, esi
lea edi, [esp + 0x78]
je 0x5fb19c
mov eax, dword [esp + 8]
mov dl, byte [eax + 0xf0]
mov eax, dword [esp + 0x90]
mov ecx, dword fs:[0x18]
xor eax, dword [ecx + 0x24]
or eax, dword [esp + 0x94]
je 0x5fb07d
mov byte [esp + 4], dl
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x5fb638
push 2
call fcn.00561770
add esp, 4
test al, al
lea edi, [esp + 0x78]
je 0x5fb144
call fcn.004f17a0
mov dword [esp + 4], esi
lea esi, [esp + 0xc8]
mov ecx, esi
push eax
push 2
push 0x9c
push str.process_reader_win.cc
call fcn.005bb140
push 0xd
push 0x63d526
lea eax, [esp + 0xd8]
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.005bb1a0
jmp 0x5fb144
lea ebx, [esp + 0xc8]
mov ecx, ebx
push 2
push 0x71
push str.process_reader_win.cc
call fcn.004096e0
lea eax, [esp + 0xd0]
push 8
push str.process
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, eax
push edi
call fcn.0042a0a0
push 0xa
push str._not_found
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, ebx
call fcn.00407fc0
jmp 0x5fb034
mov dword [esp + 4], esi
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0x3c], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov eax, dword [esp + 0x54]
xor edx, edx
mov dword [esp + 0x9c], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], 0xf98
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x30]
push esi
push edx
push 0x1c
push edx
push eax
call fcn.005fbb50
test al, al
mov esi, dword [esp + 8]
je 0x5fb4ab
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], 0
cmp esi, edi
jbe 0x5fb48e
push 2
call fcn.00561770
add esp, 4
mov ecx, 0
test al, al
mov eax, 0
je 0x5fb499
mov dword [esp + 0x14], esi
lea ecx, [esp + 0xc8]
push 2
push 0x1cb
push str.process_reader_win.cc
call fcn.004096e0
push 0x15
push str.invalid_stack_range:
lea eax, [esp + 0xd8]
push eax
call fcn.0052f110
add esp, 0xc
xor esi, esi
mov ecx, eax
push esi
push edi
call fcn.005944c0
push 3
push 0x628386
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, eax
push esi
push dword [esp + 0x18]
call fcn.005944c0
lea ecx, [esp + 0xc8]
call fcn.00407fc0
xor eax, eax
xor ecx, ecx
jmp 0x5fb499
sub edi, esi
mov ecx, 0
sbb ecx, ecx
mov eax, edi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
mov esi, dword [esp + 8]
mov eax, dword [0x65a824]
mov ecx, dword [0x64984c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5fb743
mov ecx, dword [0x65a820]
test ecx, ecx
je 0x5fb564
mov dword [esp + 0x2c], 0xffffffff
call dword [0x6401dc]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 8]
call ecx
test eax, eax
js 0x5fb5a2
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x5fb788
push edi
call fcn.00565872
add esp, 4
push eax
push edi
lea eax, [esp + 0xd0]
push eax
call fcn.005426d0
add esp, 0xc
cmp byte [esp + 0x8f], 0
lea esi, [esp + 0x78]
jns 0x5fb53f
push dword [esp + 0x84]
call fcn.00564050
add esp, 4
mov eax, dword [esp + 0xd0]
mov dword [esi + 0x14], eax
movq xmm0, qword [esp + 0xc8]
movq qword [esi + 0xc], xmm0
push edi
call fcn.004f3f80
add esp, 4
mov esi, dword [esp + 8]
mov edi, dword [esi + 0xdc]
cmp edi, dword [esi + 0xe0]
jae 0x5fb582
mov ecx, edi
lea edx, [esp + 0x70]
call fcn.005fba20
add edi, 0x58
jmp 0x5fb593
lea ecx, [esi + 0xd8]
lea edx, [esp + 0x70]
call fcn.005fb920
mov edi, eax
mov dword [esi + 0xdc], edi
mov esi, dword [esp + 4]
jmp 0x5fb140
mov edi, eax
push 1
call fcn.00561770
add esp, 4
test al, al
je 0x5fb564
lea ecx, [esp + 0xc8]
push 1
push 0x1dc
push str.process_reader_win.cc
call fcn.004096e0
push 0x16
push str.GetThreadDescription:
lea eax, [esp + 0xd8]
push eax
call fcn.0052f110
add esp, 0xc
mov dword [esp + 0x14], eax
push edi
lea esi, [esp + 0x24]
push esi
call fcn.0044f690
add esp, 8
movsx eax, byte [esp + 0x2b]
mov ecx, esi
test eax, eax
jns 0x5fb606
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push dword [esp + 0x1c]
call fcn.0052f110
add esp, 0xc
cmp byte [esp + 0x2b], 0
jns 0x5fb627
push dword [esp + 0x20]
call fcn.00564050
add esp, 4
lea ecx, [esp + 0xc8]
call fcn.00407fc0
jmp 0x5fb560
mov edi, eax
mov dl, byte [esp + 4]
mov eax, edx
xor al, 1
test edi, edi
setne cl
or cl, al
jne 0x5fb6cf
xor edi, edi
push 1
call fcn.00561770
add esp, 4
test al, al
je 0x5fb6d4
mov dword [esp + 4], esi
lea esi, [esp + 0xc8]
mov ecx, esi
push 1
push 0xa1
push str.process_reader_win.cc
call fcn.004096e0
push 7
push str.Thread
lea eax, [esp + 0xd8]
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, eax
push dword [esp + 0x94]
push dword [esp + 0x94]
call fcn.005944c0
push 0x34
push str._should_be_suspended__but_previous_suspend_count_is
push eax
call fcn.0052f110
add esp, 0xc
mov ecx, eax
push 0
call fcn.0042a0a0
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.00407fc0
jmp 0x5fb6d4
movzx eax, dl
sub edi, eax
mov dword [esp + 0xb8], edi
lea ecx, [esp + 0x70]
mov edx, esi
call fcn.005fab50
test al, al
lea edi, [esp + 0x78]
je 0x5fb144
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x5fb0aa
push 2
call fcn.00561770
add esp, 4
test al, al
je 0x5fb144
call fcn.004f17a0
mov dword [esp + 4], esi
lea esi, [esp + 0xc8]
mov ecx, esi
push eax
push 2
push 0xc0
push str.process_reader_win.cc
call fcn.005bb140
push 0xc
push 0x63d571
jmp 0x5fb31d
push 0x65a824
call fcn.00565714
add esp, 4
cmp dword [0x65a824], 0xffffffff
jne 0x5fb4cc
push 0
push str.::GetThreadDescription
push 0x62539e
call fcn.004f3d00
add esp, 0xc
mov dword [0x65a820], eax
push 0x65a824
call fcn.00565763
add esp, 4
jmp 0x5fb4cc
int3