Function at 0x100686a0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e50a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x101a12fc]
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 eax, dword [0x101a0448]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [eax]
push 2
push 0
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x194]
push 0
push eax
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0x198], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push esi
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10068e54
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0
push eax
push 0
push 0
push 2
push dword [ebp - 0x194]
call dword [sym.imp.ntdll.dll_NtQueryObject]
cmp eax, 0xc0000004
jne 0x100687f9
mov eax, dword [ebp - 0x19c]
add eax, 0x2000
push str._dbg_gethandlename:objectTypeInfo
mov dword [ebp - 0x19c], eax
lea esi, [eax + 0x20]
push esi
call fcn.100cac00
push esi
mov ebx, eax
mov dword [ebp - 0x114], esi
push 0
push ebx
mov dword [ebp - 0x118], ebx
call fcn.100dd9d6
add esp, 0x14
push 0
push dword [ebp - 0x19c]
mov dword [ebp - 4], 0
push ebx
push 2
push dword [ebp - 0x194]
call dword [sym.imp.ntdll.dll_NtQueryObject]
test eax, eax
jne 0x100687dd
push dword [ebx + 4]
lea eax, [ebp - 0x140]
push eax
call fcn.1009edd0
mov ecx, dword [ebp - 0x198]
add esp, 8
push eax
call fcn.10020500
cmp dword [ebp - 0x12c], 0x10
jb 0x100687dd
push dword [ebp - 0x140]
call fcn.100dd8b4
add esp, 4
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x100687f3
push 0
push ebx
call fcn.100cacb0
add esp, 8
mov ebx, dword [ebp - 0x198]
lea eax, [ebp - 0x194]
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0x188]
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x11c]
push eax
call fcn.10067750
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 4], 1
mov dword [edi + 0x10], 0
jb 0x10068841
mov eax, dword [edi]
jmp 0x10068843
mov eax, edi
mov byte [eax], 0
mov esi, dword [ebx + 0x14]
cmp esi, 0x10
jb 0x10068852
mov eax, dword [ebx]
jmp 0x10068854
mov eax, ebx
mov ecx, str.Process
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10068880
test dl, dl
je 0x1006887c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10068880
add eax, 2
add ecx, 2
test dl, dl
jne 0x10068860
xor eax, eax
jmp 0x10068885
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100689fd
push dword [ebp - 0x194]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessId]
call ebx
mov esi, eax
test esi, esi
jne 0x100688f1
push eax
push eax
push 0x400
lea eax, [ebp - 0x190]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
push eax
push dword [ebp - 0x1a8]
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebp - 0x1a4]
call eax
test eax, eax
je 0x10068d3f
push dword [ebp - 0x190]
call ebx
push dword [ebp - 0x190]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
test esi, esi
je 0x10068d3f
mov eax, dword [0x101a0448]
push esi
cmp esi, dword [eax + 8]
lea eax, [ebp - 0x128]
push eax
jne 0x10068947
call fcn.100542b0
add esp, 8
mov esi, eax
cmp dword [esi + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x10068919
mov esi, dword [esi]
push str.Debuggee
call dword [0x100ef930]
push eax
push esi
lea eax, [ebp - 0x140]
push str.PID:__s___s_
push eax
call fcn.1009f310
add esp, 0x14
mov ecx, edi
push eax
call fcn.10020500
jmp 0x10068d25
call fcn.10069720
add esp, 8
cmp dword [ebp - 0x118], 0
mov byte [ebp - 4], 3
push esi
jbe 0x100689c0
lea eax, [ebp - 0x158]
push eax
call fcn.100542b0
add esp, 8
cmp dword [ebp - 0x114], 0x10
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 4
cmovae ecx, dword [ebp - 0x128]
cmp dword [eax + 0x14], 0x10
jb 0x1006898c
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x140]
push str.PID:__s___s_
push eax
call fcn.1009f310
add esp, 0x10
mov ecx, edi
push eax
call fcn.10020500
lea ecx, [ebp - 0x140]
call fcn.1006b340
lea ecx, [ebp - 0x158]
jmp 0x10068d2b
lea eax, [ebp - 0x140]
push eax
call fcn.100542b0
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x100689db
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x158]
push str.PID:__s
push eax
call fcn.1009f310
add esp, 0xc
mov ecx, edi
push eax
call fcn.10020500
jmp 0x10068d1a
cmp esi, 0x10
jb 0x10068a06
mov eax, dword [ebx]
jmp 0x10068a08
mov eax, ebx
mov ecx, str.Thread
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10068a30
test dl, dl
je 0x10068a2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10068a30
add eax, 2
add ecx, 2
test dl, dl
jne 0x10068a10
xor eax, eax
jmp 0x10068a35
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10068d3f
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 0x194]
lea ecx, [ebp - 0x189]
call fcn.10067f90
mov ebx, dword [ebp - 0x190]
mov esi, dword [ebp - 0x1a0]
test ebx, ebx
je 0x10068a70
test esi, esi
jne 0x10068ad4
push 0
push 0
push 0x40
lea eax, [ebp - 0x114]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
push eax
push dword [ebp - 0x1a8]
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebp - 0x1a4]
call eax
test eax, eax
je 0x10068ad4
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 0x114]
lea ecx, [ebp - 0x189]
call fcn.10067f90
push dword [ebp - 0x114]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
mov esi, dword [ebp - 0x1a0]
mov ebx, dword [ebp - 0x190]
test ebx, ebx
je 0x10068d3f
test esi, esi
je 0x10068d3f
mov eax, dword [0x101a0448]
cmp esi, dword [eax + 8]
jne 0x10068c41
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.100a9a60
add esp, 8
test al, al
je 0x10068bac
cmp byte [ebp - 0x110], 0
je 0x10068bac
lea eax, [ebp - 0x170]
push esi
push eax
call fcn.100542b0
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 6
push ebx
push eax
call fcn.100542b0
add esp, 0x10
mov esi, eax
mov ebx, dword [ebp - 0x114]
mov byte [ebp - 4], 7
cmp dword [ebx + 0x14], 0x10
jb 0x10068b52
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x10068b5a
mov esi, dword [esi]
push str.Debuggee
call dword [0x100ef930]
push eax
push ebx
lea eax, [ebp - 0x110]
push eax
push esi
lea eax, [ebp - 0x158]
push str.TID:__s___s___PID:__s___s_
push eax
call fcn.1009f310
add esp, 0x1c
mov ecx, edi
push eax
call fcn.10020500
lea ecx, [ebp - 0x158]
call fcn.1006b340
lea ecx, [ebp - 0x140]
call fcn.1006b340
lea ecx, [ebp - 0x170]
jmp 0x10068d36
lea eax, [ebp - 0x140]
push esi
push eax
call fcn.100542b0
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 8
push ebx
push eax
call fcn.100542b0
add esp, 0x10
mov esi, eax
mov ebx, dword [ebp - 0x114]
mov byte [ebp - 4], 9
cmp dword [ebx + 0x14], 0x10
jb 0x10068be7
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x10068bef
mov esi, dword [esi]
push str.Debuggee
call dword [0x100ef930]
push eax
push ebx
lea eax, [ebp - 0x110]
push eax
push esi
lea eax, [ebp - 0x170]
push str.TID:__s__PID:__s___s_
push eax
call fcn.1009f310
add esp, 0x1c
mov ecx, edi
push eax
call fcn.10020500
lea ecx, [ebp - 0x170]
call fcn.1006b340
lea ecx, [ebp - 0x158]
call fcn.1006b340
lea ecx, [ebp - 0x140]
jmp 0x10068d36
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.10069720
add esp, 8
cmp dword [ebp - 0x118], 0
lea eax, [ebp - 0x140]
push esi
mov byte [ebp - 4], 0xa
push eax
jbe 0x10068cc2
call fcn.100542b0
mov esi, eax
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 0xb
push ebx
push eax
call fcn.100542b0
add esp, 0x10
cmp dword [ebp - 0x114], 0x10
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0xc
cmovae ecx, dword [ebp - 0x128]
cmp dword [esi + 0x14], 0x10
jb 0x10068ca1
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x10068ca9
mov eax, dword [eax]
push ecx
push esi
push eax
lea eax, [ebp - 0x170]
push str.TID:__s__PID:__s___s_
push eax
call fcn.1009f310
add esp, 0x14
jmp 0x10068d07
call fcn.100542b0
mov esi, eax
lea eax, [ebp - 0x158]
mov byte [ebp - 4], 0xd
push ebx
push eax
call fcn.100542b0
add esp, 0x10
cmp dword [esi + 0x14], 0x10
mov byte [ebp - 4], 0xe
jb 0x10068ce9
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x10068cf1
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x170]
push str.TID:__s__PID:__s
push eax
call fcn.1009f310
add esp, 0x10
push eax
mov ecx, edi
call fcn.10020500
lea ecx, [ebp - 0x170]
call fcn.1006b340
lea ecx, [ebp - 0x158]
call fcn.1006b340
lea ecx, [ebp - 0x140]
call fcn.1006b340
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call fcn.1006b340
cmp dword [edi + 0x10], 0
jne 0x10068de2
push 0
push 0
lea eax, [ebp - 0x188]
push eax
push 0x10069700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xc8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x10068ddb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call fcn.1006b900
add esp, 4
mov dword [ebp - 0x114], 0xf
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
push 0xffffffffffffffff
push 0
push eax
call fcn.10005df0
lea eax, [ebp - 0x128]
mov ecx, edi
push eax
call fcn.10020500
cmp dword [ebp - 0x114], 0x10
jb 0x10068de2
push dword [ebp - 0x128]
call fcn.100dd8b4
add esp, 4
jmp 0x10068de2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x194]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x10068e13
mov edx, dword [ecx]
lea eax, [ebp - 0x188]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ebx, dword [ebp - 0x198]
cmp dword [ebx + 0x10], 0
jne 0x10068f6b
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
cmp byte [0x101bac41], 0
je 0x10068ee7
cmp dword [0x101bb600], eax
je 0x10068ef2
push 0x101bbfc0
call dword [0x101bc9c4]
jmp 0x10068ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1006b900
add esp, 4
mov dword [ebp - 0x114], 0xf
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
push 0xffffffffffffffff
push 0
push eax
call fcn.10005df0
lea eax, [ebp - 0x128]
cmp edi, eax
je 0x10068ec7
cmp dword [edi + 0x14], 0x10
jb 0x10068ea8
push dword [edi]
call fcn.100dd8b4
add esp, 4
lea eax, [ebp - 0x128]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov ecx, edi
push eax
mov byte [edi], 0
call fcn.10008120
cmp dword [ebp - 0x114], 0x10
jb 0x10068e19
push dword [ebp - 0x128]
call fcn.100dd8b4
add esp, 4
jmp 0x10068e19
push 0x101bc980
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x189], 1
lea eax, [ebp - 0x1ac]
mov dword [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x114]
mov ecx, 0x101ba200
push eax
call fcn.100ac500
mov eax, dword [ebp - 0x114]
cmp eax, dword [0x101ba200]
je 0x10068f39
add eax, 0xc
cmp ebx, eax
je 0x10068f39
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.10005df0
cmp byte [0x101bac41], 0
mov dword [ebp - 4], 0xffffffff
je 0x10068f60
call esi
cmp dword [0x101bb600], eax
je 0x10068f6b
push 0x101bbfc0
call dword [0x101bc9d4]
jmp 0x10068f6b
push 0x101bc980
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
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.100dd9b4
mov esp, ebp
pop ebp
ret