Function at 0x1000c850
Capabilities:
Create thread
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x1000c86a
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, 1
test eax, eax
je 0x1000cbc3
mov dword [ebp - 0x11c], 0
xor ecx, ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x100]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10c], 0
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], 0x4b
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x120], 0
jmp 0x1000c8f4
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
cmp ecx, dword [ebp - 0x104]
jae 0x1000c918
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + edx*4 - 0x100]
cmp eax, dword [ebp + 8]
jne 0x1000c916
jmp 0x1000c918
jmp 0x1000c8e5
mov ecx, dword [ebp - 0x120]
cmp ecx, dword [ebp - 0x104]
jne 0x1000c94e
cmp dword [ebp - 0x104], 0x40
jae 0x1000c94e
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x100], eax
mov ecx, dword [ebp - 0x104]
add ecx, 1
mov dword [ebp - 0x104], ecx
xor edx, edx
test edx, edx
jne 0x1000c8d9
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x1000c97c
jmp 0x1000cbc3
push 0
push 0xc
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jg 0x1000c9a5
jmp 0x1000cbc3
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 0x1f4f
ja 0x1000c9f8
cmp dword [ebp - 0x124], 0x1f4e
jae case.0x1000c9f1.0
mov eax, dword [ebp - 0x124]
sub eax, 0x1f41
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xa
ja case.default.0x1000c9f1
mov ecx, dword [ebp - 0x124]
jmp dword [ecx*4 + 0x1000cbcf]
cmp dword [ebp - 0x124], 0x7532
ja 0x1000ca64
cmp dword [ebp - 0x124], 0x7532
je 0x1000cb53
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x128], edx
sub dword [ebp - 0x128], 0x1f50
cmp dword [ebp - 0x128], 0
je case.0x1000c9f1.9
sub dword [ebp - 0x128], 1
cmp dword [ebp - 0x128], 0
je 0x1000cb21
sub dword [ebp - 0x128], 1
cmp dword [ebp - 0x128], 0
je 0x1000cb3a
jmp case.default.0x1000c9f1
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x12c], eax
sub dword [ebp - 0x12c], 0x7534
cmp dword [ebp - 0x12c], 0
je 0x1000cb64
sub dword [ebp - 0x12c], 1
cmp dword [ebp - 0x12c], 0
je 0x1000cb7a
jmp case.default.0x1000c9f1
lea ecx, [ebp - 0x11c]
push ecx
call fcn.1000c680
add esp, 4
jmp case.default.0x1000c9f1
mov edx, dword [ebp - 0x118]
push edx
push 0
push 0x1000bb90
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.default.0x1000c9f1
mov eax, dword [ebp - 0x11c]
push eax
push 0
push 0x1000c1b0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.default.0x1000c9f1
mov ecx, dword [ebp - 0x118]
push ecx
push 0
push 0x1000c440
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.default.0x1000c9f1
mov edx, dword [ebp - 0x11c]
push edx
push 0
push 0x1000bd40
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.default.0x1000c9f1
mov eax, dword [ebp - 0x11c]
push eax
push 0
push 0x1000c0f0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.default.0x1000c9f1
mov ecx, dword [ebp - 0x118]
push ecx
push 0
push 0x1000c2b0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
jmp case.default.0x1000c9f1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.1000c3c0
jmp case.default.0x1000c9f1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0
call fcn.1000c790
add esp, 4
jmp case.default.0x1000c9f1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
push 1
call fcn.1000c790
add esp, 4
mov dword [ebp - 0x11c], 0x1f4d
push 0
push 0xc
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jg 0x1000cbbe
jmp 0x1000cbc3
jmp 0x1000c86b
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret