Function at 0x10067aa0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
lea edi, [ebp - 0x3c]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101434c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
push 0
push 4
call fcn.1005c270
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x10067d6d
mov dword [ebp - 0x2c], 0x1c
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1005bfeb
test eax, eax
je 0x10067d5a
mov dword [ebp - 8], 1
cmp dword [ebp - 0x2c], 0x10
jb 0x10067c8c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.1005d076
cmp dword [ebp - 0x20], eax
jne 0x10067c8c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.1005d076
cmp dword [ebp - 0x24], eax
je 0x10067c8c
mov esi, esp
mov edx, dword [ebp - 0x24]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.1005d076
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10067b8d
mov esi, esp
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.1005d076
cmp eax, 0xffffffff
jne 0x10067b8d
mov esi, esp
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1005d076
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0
je 0x10067c8c
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10067be0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
mov esi, esp
push edx
push 0
mov eax, dword [0x10145bdc]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.1005d076
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x10067bde
mov dword [ebp - 8], 0
jmp 0x10067c3e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x10067c3e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10145bdc]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.1005d076
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x10067c37
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
mov dword [edx], eax
jmp 0x10067c3e
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x10067c6c
mov esi, esp
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.1005d076
mov esi, esp
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1005d076
jmp 0x10067ca8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [ebp - 0x34]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
mov dword [ebp - 0x2c], 0x1c
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.1005b181
test eax, eax
jne 0x10067b01
cmp dword [ebp - 8], 0
je 0x10067cc9
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.1005d076
cmp eax, 0x12
je 0x10067cc9
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x10067d5a
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x10067d5a
mov dword [ebp - 0x3c], 0
jmp 0x10067ced
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx + 8]
jae 0x10067d33
lfence
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 0x3c]
mov eax, dword [ecx + edx*4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.1005d076
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, esp
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edx + eax*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1005d076
jmp 0x10067ce4
mov esi, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10145bdc]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.1005d076
mov edx, dword [ebp + 8]
mov dword [edx], 0
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1005d076
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x10067d9c]
call fcn.1005cb49
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c3ab
add esp, 0x3c
cmp ebp, esp
call fcn.1005d076
mov esp, ebp
pop ebp
ret