Function at 0x1001cc50
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1021bfec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], esi
push edi
mov edi, dword [ebp + 0x1c]
cmp eax, 2
je 0x1001cc88
cmp eax, 0x17
jne 0x1001cde1
push ecx
push esi
mov ecx, ebx
call fcn.1001cf70
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1001cde1
mov edx, dword [esi]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], cx
cmp edx, 0xffffffff
jne 0x1001ccdb
mov edx, 0x2719
lea ecx, [ebp - 0x44]
call fcn.10010b30
movq xmm0, qword [eax]
movq qword [edi + 0x20], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 0x28], eax
jmp 0x1001cd07
cmp ecx, 2
mov dword [ebp - 0x24], 0x10
mov eax, 0x1c
cmove eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
lea ecx, [edi + 0x20]
setne dl
call fcn.10011930
cmp byte [edi + 0x24], 0
je 0x1001cd44
mov edx, 0x2726
lea ecx, [ebp - 0x50]
call fcn.10010b30
lea ecx, [edi + 0x20]
movq xmm0, qword [eax]
mov edx, dword [eax + 8]
mov eax, dword [ecx]
movq qword [ebp - 0x44], xmm0
cmp eax, dword [ebp - 0x44]
jne 0x1001cda8
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
mov ecx, dword [ecx + 8]
jne 0x1001cd98
cmp ecx, edx
sete al
test al, al
je 0x1001cda8
mov byte [edi + 0x38], 1
mov eax, dword [ebx + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
push 0
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 0x28]
push dword [esi]
call dword [ebp - 0x2c]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1001cdc5
cmp eax, 0x3e5
je 0x1001cdc5
mov ecx, dword [ebx + 4]
push esi
push eax
push edi
call fcn.100115f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101677cc
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x1001cda8
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x1001cd44
push ecx
mov ecx, dword [ebx + 4]
push edi
call fcn.10011330
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101677cc
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebx + 4]
push edi
call fcn.10011580
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101677cc
mov esp, ebp
pop ebp
ret 0x18
push 0
lea eax, [ebx + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1001ce35
mov eax, dword [ebx]
push 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [eax]
lea eax, [ebp - 0x30]
push eax
call fcn.1001f200
add esp, 8
lea eax, [ebp - 0x30]
push dword [ecx + 0x18]
push 0x1001f220
push eax
call fcn.10011120
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test byte [esi + 4], 3
lea edx, [esi + 4]
jne 0x1001ce55
lea eax, [edi + 0x20]
push eax
push ecx
mov ecx, dword [esi]
call fcn.1001b330
add esp, 8
test al, al
je 0x1001cf4d
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1001ce7a
mov edx, 0x2719
lea ecx, [ebp - 0x50]
call fcn.10010b30
movq xmm0, qword [eax]
movq qword [edi + 0x20], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 0x28], eax
jmp 0x1001cea1
push dword [ebp + 0x18]
push dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
lea ecx, [edi + 0x20]
test esi, esi
setne dl
call fcn.10011930
test esi, esi
je 0x1001cf4d
mov esi, dword [ebp - 0x38]
mov edx, 0x2734
lea ecx, [ebp - 0x50]
call fcn.10010b30
movq xmm0, qword [eax]
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x20]
movq qword [ebp - 0x44], xmm0
cmp eax, dword [ebp - 0x44]
jne 0x1001cee8
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
mov ecx, dword [edi + 0x28]
jne 0x1001ced8
cmp ecx, edx
sete al
test al, al
jne 0x1001cf13
jmp 0x1001cee8
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x1001cee8
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x1001cf13
mov edx, 0x2733
lea ecx, [ebp - 0x50]
call fcn.10010b30
lea edx, [ebp - 0x34]
lea ecx, [edi + 0x20]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], eax
call fcn.10010af0
test al, al
je 0x1001cf4d
lea ecx, [ebp - 0x50]
call fcn.100050a0
sub esp, 8
movq xmm0, qword [eax]
push edi
movq qword [edi + 0x20], xmm0
mov eax, dword [eax + 8]
push ecx
mov dword [edi + 0x28], eax
push dword [esi]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.1001c550
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101677cc
mov esp, ebp
pop ebp
ret 0x18
push ecx
mov ecx, dword [ebp - 0x24]
push edi
call fcn.1001c180
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101677cc
mov esp, ebp
pop ebp
ret 0x18