Function at 0x5f95c0
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.005648ee
add esp, 4
jmp 0x5f9632
mov esi, dword [esp + 0x70]
mov eax, 0x1000
add esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5f9626
push eax
call fcn.0056477d
add esp, 4
push esi
call fcn.005648ee
add esp, 4
dec ebx
je 0x5f969c
lea ecx, [esp + 0x70]
push ecx
push esi
mov dword [esp + 0x14], eax
push eax
push 5
call fcn.005eda00
add esp, 0x10
mov edi, eax
cmp eax, 0xc0000023
je 0x5f960a
cmp edi, 0xc0000004
je 0x5f960a
test edi, edi
js 0x5f9698
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 0x5f970b
mov eax, dword [ebx]
test eax, eax
je 0x5f9685
add ebx, eax
jne 0x5f9672
push 2
call fcn.005380c0
add esp, 4
test al, al
je 0x5f96e4
jmp 0x5f99ed
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
push 2
call fcn.005380c0
add esp, 4
test al, al
je 0x5f96e4
lea ebx, [esp + 0xc8]
mov ecx, ebx
push edi
push 2
push 0x5f
push str.process_reader_win.cc
call fcn.005edd30
lea eax, [esp + 0xd0]
push 0x18
push str.NtQuerySystemInformation
push eax
call fcn.00538270
add esp, 0xc
mov ecx, ebx
call fcn.005edd60
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x5f96f5
push ecx
call fcn.0056477d
add esp, 4
mov ecx, dword [esp + 0x168]
xor ecx, ebp
call fcn.00566245
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x5f96e8
cmp dword [ebx + 4], 0
je 0x5f96e8
lea edi, [esp + 0x78]
lea ecx, [ebx + 0xd8]
lea eax, [edx + 0x68]
mov dword [esp + 0x18], eax
xor esi, esi
jmp 0x5f988d
mov dword [esp + 0xb8], 0
mov ecx, edi
push 0x2cc
call fcn.00556000
mov byte [esp + 0x74], 1
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x70]
push eax
call fcn.004eddd0
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.005eda90
add esp, 0x14
test eax, eax
jns 0x5f9a3f
mov edi, eax
push 2
call fcn.005380c0
add esp, 4
test al, al
je 0x5f97f0
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.005edd30
push 0x18
push str.NtQueryInformationThread
lea eax, [esp + 0xd8]
push eax
call fcn.00538270
add esp, 0xc
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.005edd60
lea edi, [esp + 0x78]
push esi
call fcn.004f4ea0
add esp, 4
jmp 0x5f984c
mov edi, eax
push 2
call fcn.005380c0
add esp, 4
test al, al
je 0x5f9848
lea esi, [esp + 0xc8]
mov ecx, esi
push edi
push 2
push 0x80
push str.process_reader_win.cc
call fcn.005edd30
push 0xc
push str.NtOpenThread
lea eax, [esp + 0xd8]
push eax
call fcn.00538270
add esp, 0xc
mov ecx, esi
call fcn.005edd60
lea edi, [esp + 0x78]
cmp byte [esp + 0x8f], 0
mov esi, dword [esp + 0x1c]
jns 0x5f9869
push dword [esp + 0x84]
call fcn.00562f60
add esp, 4
mov dword [esp + 0xc8], edi
lea ecx, [esp + 0xc8]
call fcn.00555930
inc esi
mov ecx, dword [esp + 0x10]
add ecx, 0x40
cmp esi, dword [ebx + 4]
jae 0x5f96e4
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.005ed970
add esp, 0x10
test eax, eax
js 0x5f97ff
mov esi, dword [esp + 0x30]
test esi, esi
lea edi, [esp + 0x78]
je 0x5f984c
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 0x5f972d
mov byte [esp + 4], dl
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x5f9ce8
push 2
call fcn.005380c0
add esp, 4
test al, al
lea edi, [esp + 0x78]
je 0x5f97f4
call fcn.004f27a0
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.00417d50
push 0xd
push 0x63b506
lea eax, [esp + 0xd8]
push eax
call fcn.00538270
add esp, 0xc
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.00416650
jmp 0x5f97f4
lea ebx, [esp + 0xc8]
mov ecx, ebx
push 2
push 0x71
push str.process_reader_win.cc
call fcn.0040b160
lea eax, [esp + 0xd0]
push 8
push str.process
push eax
call fcn.00538270
add esp, 0xc
mov ecx, eax
push edi
call fcn.0042a3e0
push 0xa
push str._not_found
push eax
call fcn.00538270
add esp, 0xc
mov ecx, ebx
call fcn.0040a930
jmp 0x5f96e4
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.005fa200
test al, al
mov esi, dword [esp + 8]
je 0x5f9b5b
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], 0
cmp esi, edi
jbe 0x5f9b3e
push 2
call fcn.005380c0
add esp, 4
mov ecx, 0
test al, al
mov eax, 0
je 0x5f9b49
mov dword [esp + 0x14], esi
lea ecx, [esp + 0xc8]
push 2
push 0x1cb
push str.process_reader_win.cc
call fcn.0040b160
push 0x15
push str.invalid_stack_range:
lea eax, [esp + 0xd8]
push eax
call fcn.00538270
add esp, 0xc
xor esi, esi
mov ecx, eax
push esi
push edi
call fcn.00592ea0
push 3
push 0x626386
push eax
call fcn.00538270
add esp, 0xc
mov ecx, eax
push esi
push dword [esp + 0x18]
call fcn.00592ea0
lea ecx, [esp + 0xc8]
call fcn.0040a930
xor eax, eax
xor ecx, ecx
jmp 0x5f9b49
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 0x5f9df3
mov ecx, dword [0x658820]
test ecx, ecx
je 0x5f9c14
mov dword [esp + 0x2c], 0xffffffff
call dword [0x63e19c]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 8]
call ecx
test eax, eax
js 0x5f9c52
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x5f9e38
push edi
call fcn.00564782
add esp, 4
push eax
push edi
lea eax, [esp + 0xd0]
push eax
call fcn.00543680
add esp, 0xc
cmp byte [esp + 0x8f], 0
lea esi, [esp + 0x78]
jns 0x5f9bef
push dword [esp + 0x84]
call fcn.00562f60
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.004f5220
add esp, 4
mov esi, dword [esp + 8]
mov edi, dword [esi + 0xdc]
cmp edi, dword [esi + 0xe0]
jae 0x5f9c32
mov ecx, edi
lea edx, [esp + 0x70]
call fcn.005fa0d0
add edi, 0x58
jmp 0x5f9c43
lea ecx, [esi + 0xd8]
lea edx, [esp + 0x70]
call fcn.005f9fd0
mov edi, eax
mov dword [esi + 0xdc], edi
mov esi, dword [esp + 4]
jmp 0x5f97f0
mov edi, eax
push 1
call fcn.005380c0
add esp, 4
test al, al
je 0x5f9c14
lea ecx, [esp + 0xc8]
push 1
push 0x1dc
push str.process_reader_win.cc
call fcn.0040b160
push 0x16
push str.GetThreadDescription:
lea eax, [esp + 0xd8]
push eax
call fcn.00538270
add esp, 0xc
mov dword [esp + 0x14], eax
push edi
lea esi, [esp + 0x24]
push esi
call fcn.00419220
add esp, 8
movsx eax, byte [esp + 0x2b]
mov ecx, esi
test eax, eax
jns 0x5f9cb6
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push dword [esp + 0x1c]
call fcn.00538270
add esp, 0xc
cmp byte [esp + 0x2b], 0
jns 0x5f9cd7
push dword [esp + 0x20]
call fcn.00562f60
add esp, 4
lea ecx, [esp + 0xc8]
call fcn.0040a930
jmp 0x5f9c10
mov edi, eax
mov dl, byte [esp + 4]
mov eax, edx
xor al, 1
test edi, edi
setne cl
or cl, al
jne 0x5f9d7f
xor edi, edi
push 1
call fcn.005380c0
add esp, 4
test al, al
je 0x5f9d84
mov dword [esp + 4], esi
lea esi, [esp + 0xc8]
mov ecx, esi
push 1
push 0xa1
push str.process_reader_win.cc
call fcn.0040b160
push 7
push str.Thread
lea eax, [esp + 0xd8]
push eax
call fcn.00538270
add esp, 0xc
mov ecx, eax
push dword [esp + 0x94]
push dword [esp + 0x94]
call fcn.00592ea0
push 0x34
push str._should_be_suspended__but_previous_suspend_count_is
push eax
call fcn.00538270
add esp, 0xc
mov ecx, eax
push 0
call fcn.0042a3e0
mov ecx, esi
mov esi, dword [esp + 4]
call fcn.0040a930
jmp 0x5f9d84
movzx eax, dl
sub edi, eax
mov dword [esp + 0xb8], edi
lea ecx, [esp + 0x70]
mov edx, esi
call fcn.005f9200
test al, al
lea edi, [esp + 0x78]
je 0x5f97f4
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x5f975a
push 2
call fcn.005380c0
add esp, 4
test al, al
je 0x5f97f4
call fcn.004f27a0
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.00417d50
push 0xc
push 0x63b551
jmp 0x5f99cd
push 0x658824
call fcn.00562fa8
add esp, 4
cmp dword [0x658824], 0xffffffff
jne 0x5f9b7c
push 0
push str.::GetThreadDescription
push 0x62339e
call fcn.004f4fa0
add esp, 0xc
mov dword [0x658820], eax
push 0x658824
call fcn.00562ff7
add esp, 4
jmp 0x5f9b7c
int3