Function at 0x10173810
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x70]
lea ecx, [esi + 0x70]
push dword [edi + 4]
call fcn.10173fc0
mov eax, dword [esi + 0x70]
lea ecx, [esi - 0x58]
mov dword [eax + 4], edi
mov eax, dword [esi + 0x70]
mov dword [eax], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 8], edi
mov dword [esi + 0x74], 0
mov eax, dword [esi - 0x58]
call dword [eax + 0x30]
mov eax, dword [esi + 0x48]
push ecx
sub eax, 0x10
mov edi, esp
push eax
call fcn.10002a60
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.101b6950
add esp, 4
call fcn.101b6790
mov dword [esi + 0xc], 0x11170
xor edi, edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1017389c
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x1017388c
mov eax, dword [ecx]
call dword [eax + 0x34]
mov eax, dword [esi + 0x18]
inc edi
mov ecx, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x10173880
mov eax, dword [esi + 0x30]
xor edi, edi
mov ecx, dword [esi + 0x2c]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x101738cc
lea ecx, [ecx]
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x101738bc
mov eax, dword [ecx]
call dword [eax + 0x34]
mov eax, dword [esi + 0x30]
inc edi
mov ecx, dword [esi + 0x2c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x101738b0
mov eax, dword [esi + 0x24]
xor edi, edi
mov ecx, dword [esi + 0x20]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x101738fc
lea ecx, [ecx]
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x101738ec
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esi + 0x24]
inc edi
mov ecx, dword [esi + 0x20]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x101738e0
mov eax, dword [esi + 0x3c]
xor edi, edi
mov ecx, dword [esi + 0x38]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1017392c
lea ecx, [ecx]
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x1017391c
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [esi + 0x3c]
inc edi
mov ecx, dword [esi + 0x38]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x10173910
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
je 0x101739de
mov eax, dword [esi + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10173961
push 0
push eax
call edi
cmp eax, 0x102
jne 0x10173961
mov eax, dword [esi - 0x58]
lea ecx, [esi - 0x58]
call dword [eax + 0x24]
push 0xffffffffffffffff
push dword [esi + 0x60]
call edi
mov eax, dword [esi + 0x60]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10173978
push eax
call ebx
mov dword [esi + 0x60], 0
push 0
push 4
lea eax, [esi - 0x58]
push eax
push 0x10173c20
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [esi + 0x60], eax
test eax, eax
je 0x101739de
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x64], 0
test eax, eax
jne 0x101739b6
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x5c], eax
jmp 0x101739bd
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x101739de
push 0xffffffffffffffff
push eax
call edi
push dword [esi + 0x5c]
call ebx
mov dword [esi + 0x5c], 0
pop edi
pop esi
pop ebx
ret