Function at 0x10009d8e
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x728
push ebx
xor ebx, ebx
push 0x114010c
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.10013960
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10009dc0
or eax, 0xffffffff
jmp 0x1000a177
cmp dword [0x10038aa4], 6
mov dword [ebp - 4], ebx
jb 0x10009e0f
cmp dword [0x10039ed0], 3
jne 0x10009e4e
push 0x1e37
call fcn.10015230
mov dword [esp], 0x1003a4f8
push dword [0x1003a704]
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x728]
push 0x208
push eax
call fcn.10013ca0
lea eax, [ebp - 4]
push eax
call fcn.10015460
add esp, 0x18
jmp 0x10009e4e
call fcn.1001d810
test eax, eax
je 0x10009e4e
push 0x1b2c
call fcn.10015230
push dword [0x1003a704]
mov dword [ebp - 4], eax
push 0x1003a4f8
push eax
lea eax, [ebp - 0x728]
push 0x104
push eax
call fcn.10013ca0
lea eax, [ebp - 4]
push eax
call fcn.10015460
add esp, 0x1c
push esi
push edi
cmp word [ebp - 0x728], bx
je 0x10009e98
xor esi, esi
inc esi
push esi
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x728]
push eax
call fcn.1001b220
add esp, 0x10
test eax, eax
je 0x10009e83
push 0x1388
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x410
lea eax, [ebp - 0x728]
push ebx
push eax
call fcn.10013ba0
add esp, 0xc
xor edi, edi
cmp dword [ebp + 0x14], ebx
jbe 0x10009f03
xor esi, esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
lea eax, [eax + edi*2]
mov cx, word [eax]
mov word [esi + edx + 0x114], cx
movzx eax, word [eax]
push eax
push ebx
call fcn.100160d0
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
mov dword [esi + ecx + 0x10c], eax
mov eax, dword [ebp - 8]
cmp dword [esi + eax + 0x10c], ebx
jl 0x10009edc
inc dword [eax]
mov eax, dword [ebp - 8]
or dword [esi + eax + 0x110], 0xffffffff
mov eax, dword [ebp - 8]
mov dword [esi + eax + 0x118], ebx
mov eax, dword [ebp - 8]
inc dword [eax + 0x108]
inc edi
add esi, 0x114
cmp edi, dword [ebp + 0x14]
jb 0x10009ea1
mov eax, dword [ebp - 8]
push 0x100394fc
push 0x32
add eax, 8
push 0x14
push eax
call fcn.10016af0
add esp, 0x10
cmp dword [ebp - 0xc], ebx
jne 0x10009f2b
push 0x1d4c0
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
push dword [ebp - 8]
push 0x10009a2c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x10009f50
mov dword [ebp - 4], 0xfffffffe
jmp 0x1000a0f1
push 0x2b2c
call fcn.10015350
push ebx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push 0x1002a360
push dword [ebp + 8]
lea eax, [ebp - 0x318]
push dword [0x1003ac0c]
push 0xff
push eax
push 0x1002a3af
call fcn.10016ff0
lea eax, [ebp - 0x10]
push eax
call fcn.10015460
push 0x2a20
call fcn.10015350
mov ecx, dword [ebp - 8]
add ecx, 8
push ecx
push eax
mov dword [ebp - 4], eax
mov edi, 0x1ff
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.10013c30
lea eax, [ebp - 4]
add esp, 0x40
push eax
call fcn.10015460
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x14], ebx
jbe 0x1000a038
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 4], ebx
jbe 0x10009feb
push 0x1002a6e4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + eax + 0x114]
push eax
push 0x1002a370
lea eax, [ebp - 0x218]
push eax
call esi
mov ecx, edi
sub ecx, eax
push ecx
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp + eax - 0x218]
push eax
call fcn.10013c30
add dword [ebp - 0x10], 0x114
add esp, 0x10
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jb 0x10009fd4
lea eax, [ebp - 0x218]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000a041
push ebx
lea ecx, [ebp - 0x14]
push ecx
sub eax, edx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.10014fb0
add esp, 0x18
test eax, eax
jns 0x1000a081
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 4], 0xfffffffd
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1000a0f1
push 0x100
lea eax, [ebp - 0x318]
push ebx
push eax
call fcn.10013ba0
push 0x200
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.10013ba0
add esp, 0x18
push 0x88b8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], ebx
cmp ecx, ebx
jbe 0x1000a0e5
mov eax, dword [ebp - 8]
add eax, 0x114
cmp dword [eax + 4], ebx
je 0x1000a0dd
mov edi, dword [ebp - 4]
mov dx, word [eax]
mov esi, dword [ebp + 0x18]
inc dword [ebp - 4]
mov word [esi + edi*2], dx
add eax, 0x114
dec ecx
jne 0x1000a0c8
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x1000a0f1
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x1000a155
mov eax, dword [ebp + 0x14]
cmp eax, ebx
jbe 0x1000a155
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
xor esi, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov eax, dword [esi + eax + 0x10c]
or edi, 0xffffffff
cmp eax, edi
je 0x1000a12f
push eax
call ebx
mov eax, dword [ebp - 8]
mov dword [esi + eax + 0x10c], edi
mov eax, dword [ebp - 8]
mov eax, dword [esi + eax + 0x110]
cmp eax, edi
je 0x1000a14a
push eax
call ebx
mov eax, dword [ebp - 8]
mov dword [esi + eax + 0x110], edi
add esi, 0x114
dec dword [ebp - 0xc]
jne 0x1000a111
lea eax, [ebp - 8]
push 0x114010c
push eax
call fcn.10013990
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.10013990
mov eax, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret