Function at 0x10017690
Capabilities:
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b77d
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x1008f0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x100890a8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x304], eax
cmp dword [ebp - 0x304], 0
jne 0x100176ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 0x1010000b
jmp 0x100179dc
push str.NtCreateThreadEx
mov edx, dword [ebp - 0x304]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x314], 0
jne 0x10017720
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 0x10100001
jmp 0x100179dc
mov dword [ebp - 0x308], 0
movzx edx, byte [ebp + 0x18]
test edx, edx
je 0x10017774
push 0x1c
lea ecx, [ebp - 0x30]
call fcn.10005020
lea ecx, [ebp - 0x30]
call fcn.10015ca0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.10015da0
lea ecx, [ebp - 0x30]
call fcn.100160f0
mov dword [ebp - 0x308], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10015d70
mov dword [ebp - 0x31c], 7
mov dword [ebp - 0x300], 0
movzx ecx, byte [ebp + 0x18]
test ecx, ecx
je 0x1001779e
mov edx, dword [ebp - 0x31c]
mov dword [ebp - 0x30c], edx
jmp 0x100177a8
mov dword [ebp - 0x30c], 0
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100177be
mov ecx, dword [ebp - 0x308]
mov dword [ebp - 0x310], ecx
jmp 0x100177c7
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x310], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x30c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x310]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1fffff
lea ecx, [ebp - 0x300]
push ecx
call dword [ebp - 0x314]
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
jl 0x10017811
cmp dword [ebp - 0x300], 0
jne 0x10017826
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x318]
mov dword [edx], eax
mov eax, 0x10100004
jmp 0x100179dc
movzx ecx, byte [ebp + 0x18]
test ecx, ecx
je 0x10017930
push 0x2cc
push 0
lea edx, [ebp - 0x2fc]
push edx
call fcn.10026310
add esp, 0xc
mov dword [ebp - 0x2fc], 0x10002
lea eax, [ebp - 0x2fc]
push eax
mov ecx, dword [ebp - 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1001789b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
push 0
mov eax, dword [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10100005
jmp 0x100179dc
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24c], edx
lea eax, [ebp - 0x2fc]
push eax
mov ecx, dword [ebp - 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x100178ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
push 0
mov eax, dword [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10100006
jmp 0x100179dc
mov edx, dword [ebp - 0x300]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10017930
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push 0
mov edx, dword [ebp - 0x300]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10100007
jmp 0x100179dc
push 0x4e20
mov ecx, dword [ebp - 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
je 0x1001797f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
push 0
mov eax, dword [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x300]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x10100009
jmp 0x100179dc
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
jne 0x100179c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x300]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1010000a
jmp 0x100179dc
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x300]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10023850
mov esp, ebp
pop ebp
ret