Function at 0x10008890
Capabilities:
Connect socket
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0xbc]
test eax, eax
je 0x10008c1e
lea eax, [edi + 0x144]
push eax
lea ecx, [ebp - 8]
call fcn.100074c0
cmp dword [edi + 0x50], 3
jne 0x10008c03
mov eax, dword [ebp - 8]
mov ecx, edi
mov dword [edi + 0x50], 0
push ebx
push esi
mov dword [eax], 0
mov eax, dword [edi]
call dword [eax + 0xc0]
xor eax, eax
mov dword [edi + 0xc], 1
mov word [ebp - 0x24], ax
mov ecx, edi
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x24]
mov dword [edi + 0x10], 5
push dword [ebp + 0xc]
mov dword [edi + 0x14], 0
push eax
push dword [ebp + 8]
mov dword [edi + 0x18], 1
mov dword [ebp - 4], 0
call fcn.10007940
test eax, eax
je 0x10008bb3
mov cx, word [ebp - 0x5c]
mov esi, 0x1c
lea edx, [esi - 0xc]
cmp cx, 2
je 0x100089b9
cmp cx, 0x17
je 0x100089b9
mov ebx, dword [ebp + 0x18]
test bx, bx
je 0x10008a36
cmp cx, 2
je 0x100089ef
cmp cx, 0x17
je 0x100089ef
movzx eax, word [ebp - 0x24]
mov ecx, dword [0x1000f854]
mov dword [ebp + 0x14], eax
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov dword [ebp + 0x18], eax
mov ecx, eax
mov eax, dword [0x1000f4ac]
cmp eax, dword [ecx + 4]
jg 0x10008c27
jmp 0x10008994
mov ecx, dword [ebp + 0x18]
mov eax, dword [0x1000f4cc]
cmp eax, dword [ecx + 4]
jg 0x10008c79
cmp word [ebp + 0x14], 2
mov eax, 0x1000f490
mov ecx, 0x1000f4b0
cmovne eax, ecx
jmp 0x100089f2
mov ebx, dword [ebp + 0x18]
test bx, bx
jne 0x1000894f
cmp cx, 2
mov eax, esi
cmove eax, edx
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10008a36
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x48], 4
jmp 0x10008bc0
lea eax, [ebp - 0x5c]
movups xmm0, xmmword [eax]
push ebx
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
mov eax, dword [eax + 0x18]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp word [ebp - 0x40], 2
mov ecx, 0x10
mov word [ebp - 0x3e], ax
mov eax, esi
cmove eax, ecx
push eax
lea eax, [ebp - 0x40]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x100089dd
call fcn.10006bc0
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov dword [edi + 0x24], eax
call ebx
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x1c]
call dword [eax + 0x84]
cmp eax, 2
je 0x10008b91
cmp dword [ebp + 0x10], 0
je 0x10008afa
push 0x30
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10008b6a
cmp word [ebp - 0x24], 2
mov eax, 0x10
cmove esi, eax
lea eax, [ebp - 0x24]
push esi
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10008aba
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x10008b70
call esi
cmp eax, 0x2733
jne 0x10008b70
lea eax, [edi + 0x44]
push eax
push 0
push edi
push 0x10008e40
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [edi + 0x40], eax
test eax, eax
je 0x10008b83
push dword [edi + 4]
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14
cmp word [ebp - 0x24], 2
mov eax, 0x10
cmove esi, eax
lea eax, [ebp - 0x24]
push esi
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10008b6a
push 0x23
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x10008b6a
mov dword [edi + 0x4c], 1
push 0
mov dword [edi + 0x50], 1
call ebx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x88]
cmp eax, 2
jne 0x10008aba
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
push str.CTcpClient::Start
push 0xb
mov ecx, edi
call fcn.10008860
jmp 0x10008bc9
mov dword [edi + 0x48], 8
push 0x65f
jmp 0x10008bc7
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov ecx, edi
push eax
push str.CTcpClient::Start
push 5
call fcn.10008860
jmp 0x10008bc9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi + 0x48], 3
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push eax
call ebx
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 5
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 4]
push esi
call ebx
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14
push 0x139f
mov dword [edi + 0x48], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
mov dword [eax], 0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x14
push 0x1000f4ac
call fcn.100099ea
add esp, 4
cmp dword [0x1000f4ac], 0xffffffff
jne 0x10008991
xorps xmm0, xmm0
mov word [0x1000f4aa], 0
mov eax, 2
movq qword [0x1000f4a2], xmm0
push 0x1000f4ac
mov word [0x1000f490], ax
movups xmmword [0x1000f492], xmm0
call fcn.100099a0
add esp, 4
jmp 0x10008991
push 0x1000f4cc
call fcn.100099ea
add esp, 4
cmp dword [0x1000f4cc], 0xffffffff
jne 0x100089a5
xorps xmm0, xmm0
mov word [0x1000f4ca], 0
mov eax, 0x17
movq qword [0x1000f4c2], xmm0
push 0x1000f4cc
mov word [0x1000f4b0], ax
movups xmmword [0x1000f4b2], xmm0
call fcn.100099a0
add esp, 4
jmp 0x100089a5