Function at 0x10068ba0
Capabilities:
Suspend thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101788bc
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10207514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 5
lea ecx, [ebx + 0xb0]
mov al, 1
xchg byte [ecx], al
mov eax, dword [ebx + 0x8c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10068d36
mov eax, dword [eax + 8]
test eax, eax
je 0x10068d36
cmp byte [eax + 8], 0
je 0x10068d36
mov eax, dword [ebx + 0x90]
test eax, eax
je 0x10068c21
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebx + 0x8c]
push 0x3e8
call fcn.10108700
test al, al
jne 0x10068d36
mov edi, dword [ebx + 0x8c]
mov eax, dword [edi + 8]
test eax, eax
je 0x10068cbc
cmp byte [eax + 8], 0
je 0x10068cbc
mov esi, dword [edi + 8]
add esi, 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
je 0x10068c6b
mov eax, dword [esi]
test eax, eax
je 0x10068c6b
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 6
mov eax, dword [edi + 8]
test eax, eax
je 0x10068ca0
cmp byte [eax + 8], 0
je 0x10068ca0
mov eax, dword [edi + 8]
mov edi, dword [eax + 0xc]
mov byte [ebp - 4], 5
test esi, esi
je 0x10068cbe
mov eax, dword [esi]
test eax, eax
je 0x10068c97
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x18], 0
jmp 0x10068cbe
mov byte [ebp - 4], 5
test esi, esi
je 0x10068cbc
mov eax, dword [esi]
test eax, eax
je 0x10068cb5
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x18], 0
xor edi, edi
push edi
push 0
push 0x43
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10068d30
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10068d25
cmp dword [ebp - 0x14], 0x103
jne 0x10068d25
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x101bedd0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlFreeUserThreadStack
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10068d1c
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
jmp 0x10068d36
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
lea ecx, [ebx + 0xb4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
call fcn.1006f130
mov byte [ebp - 4], 3
lea esi, [ebx + 0x90]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 8
mov eax, dword [esi]
test eax, eax
je 0x10068d6c
push eax
call edi
mov dword [esi], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 8]
call fcn.10009450
mov byte [ebp - 4], 2
mov esi, dword [ebx + 0x8c]
test esi, esi
je 0x10068d9e
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x10068d9e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [ebx + 0x5c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_destroy_in_situ]
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebx + 0x54]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0xa
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [eax], eax
mov eax, dword [ecx]
mov dword [ebp - 0x14], edx
mov dword [eax + 4], eax
mov dword [ecx + 4], 0
cmp edx, dword [ecx]
je 0x10068e28
mov ebx, ecx
nop
mov edi, dword [edx]
lea esi, [edx + 8]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x28]
call fcn.100186f0
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x1c]
call fcn.100186f0
mov byte [ebp - 4], 0xa
lea ecx, [esi + 4]
call fcn.10009450
push 0x48
push dword [ebp - 0x14]
call fcn.10161fa4
add esp, 8
mov edx, edi
mov dword [ebp - 0x14], edx
cmp edi, dword [ebx]
jne 0x10068de0
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
push 0x48
push dword [ecx]
call fcn.10161fa4
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.1006f130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10161f63
mov esp, ebp
pop ebp
ret