Function at 0x1001f0b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c194
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x1008b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x4c]
mov byte [edi + 0x160], 1
cmp eax, 0xffffffff
je 0x1001f0f4
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x4c], 0xffffffff
mov eax, dword [edi + 0xdc]
push 0xbcd
mov esi, dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001f115
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi + 0xdc]
call fcn.1001ed30
mov dword [ebp - 4], 0
or ebx, 0xffffffff
mov esi, dword [edi + 0x170]
test esi, esi
je 0x1001f153
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1001f153
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1001f153
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x168]
test esi, esi
je 0x1001f183
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1001f183
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1001f183
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea esi, [edi + 0x138]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1001f1ac
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
lea esi, [edi + 0x110]
mov dword [ebp - 4], 3
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1001f1d5
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
lea esi, [edi + 0xe8]
mov dword [ebp - 4], 4
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1001f1fe
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 5
mov esi, dword [edi + 0xe0]
test esi, esi
je 0x1001f22d
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1001f22d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1001f22d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [edi + 0xb4]
push eax
call fcn.1003104f
lea eax, [edi + 0x8c]
push eax
call fcn.1003104f
lea eax, [edi + 0x5c]
push eax
call fcn.10030d06
add esp, 0xc
lea ecx, [edi + 0x54]
call fcn.10021190
push dword [edi + 0x54]
call fcn.1002ee9b
mov eax, dword [edi + 0x48]
lea esi, [edi + 0x34]
add esp, 4
cmp eax, 0x10
jb 0x1001f27a
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10004990
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x1001f290
mov esi, dword [esi]
mov byte [esi], 0
lea esi, [edi + 0x1c]
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x1001f2a9
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10004990
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x1001f2bf
mov esi, dword [esi]
mov byte [esi], 0
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x1001f2d5
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.10004990
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x1001f300
mov eax, dword [edi]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret