Function at 0x5f97f0
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 [0x644040]
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.0056454e
add esp, 4
jmp 0x5f9862
mov esi, dword [esp + 0x70]
mov eax, 0x1000
add esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5f9856
push eax
call fcn.005643dd
add esp, 4
push esi
call fcn.0056454e
add esp, 4
dec ebx
je 0x5f98cc
lea ecx, [esp + 0x70]
push ecx
push esi
mov dword [esp + 0x14], eax
push eax
push 5
call fcn.005edc30
add esp, 0x10
mov edi, eax
cmp eax, 0xc0000023
je 0x5f983a
cmp edi, 0xc0000004
je 0x5f983a
test edi, edi
js 0x5f98c8
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 0x5f993b
mov eax, dword [ebx]
test eax, eax
je 0x5f98b5
add ebx, eax
jne 0x5f98a2
push 2
call fcn.00538880
add esp, 4
test al, al
je 0x5f9914
jmp 0x5f9c1d
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
push 2
call fcn.00538880
add esp, 4
test al, al
je 0x5f9914
lea ebx, [esp + 0xc8]
mov ecx, ebx
push edi
push 2
push 0x5f
push str.process_reader_win.cc
call fcn.005edf60
lea eax, [esp + 0xd0]
push 0x18
push str.NtQuerySystemInformation
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, ebx
call fcn.005edf90
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x5f9925
push ecx
call fcn.005643dd
add esp, 4
mov ecx, dword [esp + 0x168]
xor ecx, ebp
call fcn.00565ea5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x5f9918
cmp dword [ebx + 4], 0
je 0x5f9918
lea edi, [esp + 0x78]
lea ecx, [ebx + 0xd8]
lea eax, [edx + 0x68]
mov dword [esp + 0x18], eax
xor esi, esi
jmp 0x5f9abd
mov dword [esp + 0xb8], 0
mov ecx, edi
push 0x2cc
call fcn.00555c60
mov byte [esp + 0x74], 1
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x70]
push eax
call fcn.004ede10
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.005edcc0
add esp, 0x14
test eax, eax
jns 0x5f9c6f
mov edi, eax
push 2
call fcn.00538880
add esp, 4
test al, al
je 0x5f9a20
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.005edf60
push 0x18
push str.NtQueryInformationThread
lea eax, [esp + 0xd8]
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.005edf90
lea edi, [esp + 0x78]
push esi
call fcn.004f4b00
add esp, 4
jmp 0x5f9a7c
mov edi, eax
push 2
call fcn.00538880
add esp, 4
test al, al
je 0x5f9a78
lea esi, [esp + 0xc8]
mov ecx, esi
push edi
push 2
push 0x80
push str.process_reader_win.cc
call fcn.005edf60
push 0xc
push str.NtOpenThread
lea eax, [esp + 0xd8]
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, esi
call fcn.005edf90
lea edi, [esp + 0x78]
cmp byte [esp + 0x8f], 0
mov esi, dword [esp + 0x1c]
jns 0x5f9a99
push dword [esp + 0x84]
call fcn.00562bc0
add esp, 4
mov dword [esp + 0xc8], edi
lea ecx, [esp + 0xc8]
call fcn.00555540
inc esi
mov ecx, dword [esp + 0x10]
add ecx, 0x40
cmp esi, dword [ebx + 4]
jae 0x5f9914
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.005edba0
add esp, 0x10
test eax, eax
js 0x5f9a2f
mov esi, dword [esp + 0x30]
test esi, esi
lea edi, [esp + 0x78]
je 0x5f9a7c
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 0x5f995d
mov byte [esp + 4], dl
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x5f9f18
push 2
call fcn.00538880
add esp, 4
test al, al
lea edi, [esp + 0x78]
je 0x5f9a24
call fcn.004f27f0
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.0045af70
push 0xd
push 0x63b526
lea eax, [esp + 0xd8]
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.0044fb10
jmp 0x5f9a24
lea ebx, [esp + 0xc8]
mov ecx, ebx
push 2
push 0x71
push str.process_reader_win.cc
call fcn.0040b630
lea eax, [esp + 0xd0]
push 8
push str.process
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, eax
push edi
call fcn.00429600
push 0xa
push str._not_found
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, ebx
call fcn.0040ae00
jmp 0x5f9914
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.005fa430
test al, al
mov esi, dword [esp + 8]
je 0x5f9d8b
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], 0
cmp esi, edi
jbe 0x5f9d6e
push 2
call fcn.00538880
add esp, 4
mov ecx, 0
test al, al
mov eax, 0
je 0x5f9d79
mov dword [esp + 0x14], esi
lea ecx, [esp + 0xc8]
push 2
push 0x1cb
push str.process_reader_win.cc
call fcn.0040b630
push 0x15
push str.invalid_stack_range:
lea eax, [esp + 0xd8]
push eax
call fcn.00538a30
add esp, 0xc
xor esi, esi
mov ecx, eax
push esi
push edi
call fcn.00592b00
push 3
push 0x626386
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, eax
push esi
push dword [esp + 0x18]
call fcn.00592b00
lea ecx, [esp + 0xc8]
call fcn.0040ae00
xor eax, eax
xor ecx, ecx
jmp 0x5f9d79
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 [0x658824]
mov ecx, dword [0x64784c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5fa023
mov ecx, dword [0x658820]
test ecx, ecx
je 0x5f9e44
mov dword [esp + 0x2c], 0xffffffff
call dword [0x63e1cc]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 8]
call ecx
test eax, eax
js 0x5f9e82
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x5fa068
push edi
call fcn.005643e2
add esp, 4
push eax
push edi
lea eax, [esp + 0xd0]
push eax
call fcn.00530880
add esp, 0xc
cmp byte [esp + 0x8f], 0
lea esi, [esp + 0x78]
jns 0x5f9e1f
push dword [esp + 0x84]
call fcn.00562bc0
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.004f4e80
add esp, 4
mov esi, dword [esp + 8]
mov edi, dword [esi + 0xdc]
cmp edi, dword [esi + 0xe0]
jae 0x5f9e62
mov ecx, edi
lea edx, [esp + 0x70]
call fcn.005fa300
add edi, 0x58
jmp 0x5f9e73
lea ecx, [esi + 0xd8]
lea edx, [esp + 0x70]
call fcn.005fa200
mov edi, eax
mov dword [esi + 0xdc], edi
mov esi, dword [esp + 4]
jmp 0x5f9a20
mov edi, eax
push 1
call fcn.00538880
add esp, 4
test al, al
je 0x5f9e44
lea ecx, [esp + 0xc8]
push 1
push 0x1dc
push str.process_reader_win.cc
call fcn.0040b630
push 0x16
push str.GetThreadDescription:
lea eax, [esp + 0xd8]
push eax
call fcn.00538a30
add esp, 0xc
mov dword [esp + 0x14], eax
push edi
lea esi, [esp + 0x24]
push esi
call fcn.0044fc50
add esp, 8
movsx eax, byte [esp + 0x2b]
mov ecx, esi
test eax, eax
jns 0x5f9ee6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push dword [esp + 0x1c]
call fcn.00538a30
add esp, 0xc
cmp byte [esp + 0x2b], 0
jns 0x5f9f07
push dword [esp + 0x20]
call fcn.00562bc0
add esp, 4
lea ecx, [esp + 0xc8]
call fcn.0040ae00
jmp 0x5f9e40
mov edi, eax
mov dl, byte [esp + 4]
mov eax, edx
xor al, 1
test edi, edi
setne cl
or cl, al
jne 0x5f9faf
xor edi, edi
push 1
call fcn.00538880
add esp, 4
test al, al
je 0x5f9fb4
mov dword [esp + 4], esi
lea esi, [esp + 0xc8]
mov ecx, esi
push 1
push 0xa1
push str.process_reader_win.cc
call fcn.0040b630
push 7
push str.Thread
lea eax, [esp + 0xd8]
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, eax
push dword [esp + 0x94]
push dword [esp + 0x94]
call fcn.00592b00
push 0x34
push str._should_be_suspended__but_previous_suspend_count_is
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, eax
push 0
call fcn.00429600
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.0040ae00
jmp 0x5f9fb4
movzx eax, dl
sub edi, eax
mov dword [esp + 0xb8], edi
lea ecx, [esp + 0x70]
mov edx, esi
call fcn.005f9430
test al, al
lea edi, [esp + 0x78]
je 0x5f9a24
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x5f998a
push 2
call fcn.00538880
add esp, 4
test al, al
je 0x5f9a24
call fcn.004f27f0
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.0045af70
push 0xc
push 0x63b571
jmp 0x5f9bfd
push 0x658824
call fcn.00562c08
add esp, 4
cmp dword [0x658824], 0xffffffff
jne 0x5f9dac
push 0
push str.::GetThreadDescription
push 0x62339e
call fcn.004f4c00
add esp, 0xc
mov dword [0x658820], eax
push 0x658824
call fcn.00562c57
add esp, 4
jmp 0x5f9dac
int3