Function at 0x10067dc0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
push esi
push edi
lea edi, [ebp - 0x2fc]
mov ecx, 0xbf
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], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, 1
test eax, eax
je 0x10067fea
mov esi, esp
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0x5a
mov edx, dword [ebp - 0xc]
push edx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.1005d076
push eax
call dword [0x10145bd8]
cmp esi, esp
call fcn.1005d076
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x10], 0
je 0x10067e52
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1005d076
cmp dword [ebp - 0x20], 0
jge 0x10067e6d
cmp dword [ebp - 0x20], 0x8000001a
je 0x10067e68
mov dword [ebp - 8], 0
jmp 0x10067fea
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 1
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadId]
cmp esi, esp
call fcn.1005d076
mov esi, eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, esp
call fcn.1005d076
cmp esi, eax
jne 0x10067ea7
jmp 0x10067dfc
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.1005d076
cmp eax, 0xffffffff
jne 0x10067ec4
jmp 0x10067dfc
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x10067f15
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0x80
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 2
mov esi, esp
push ecx
push 0
mov edx, dword [0x10145bdc]
push edx
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 0x10067f13
mov dword [ebp - 8], 0
jmp 0x10067f73
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x10067f73
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 - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10067f6c
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
jmp 0x10067f73
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x10067fa1
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.1005d076
mov esi, esp
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1005d076
jmp 0x10067fea
mov dword [ebp - 0x2f4], 0x10001
mov esi, esp
lea eax, [ebp - 0x2f4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
cmp esi, esp
call fcn.1005d076
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
jmp 0x10067dfc
cmp dword [ebp - 8], 0
jne 0x10068091
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x10068091
mov dword [ebp - 0x2fc], 0
jmp 0x1006801b
mov eax, dword [ebp - 0x2fc]
add eax, 1
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x2fc]
cmp edx, dword [ecx + 8]
jae 0x1006806a
lfence
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov esi, esp
mov edx, dword [ebp - 0x2fc]
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 - 0x2fc]
mov ecx, dword [edx + eax*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1005d076
jmp 0x1006800c
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 eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x100680c4]
call fcn.1005cb49
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005c3ab
add esp, 0x2fc
cmp ebp, esp
call fcn.1005d076
mov esp, ebp
pop ebp
ret