Function at 0x1005b7c0
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x268
mov eax, dword [0x10163164]
xor eax, esp
mov dword [esp + 0x264], eax
cmp dword [ecx + 4], 0xffffffff
mov eax, 0x10163ad8
push esi
lea esi, [ecx + 4]
mov dword [esp + 0xc], 0
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
jne 0x1005b88c
mov ecx, dword [ecx]
mov eax, 2
cmp word [edi], ax
mov edx, 0x17
cmovne eax, edx
lea edx, [esp + 0x10]
push edx
push 0x11
push 2
push eax
mov dword [esp + 0x30], eax
add ecx, 0x14
push esi
lea eax, [esp + 0x3c]
push eax
call fcn.1003ebf0
cmp dword [eax], 0
jne 0x1005b879
mov eax, dword [esp + 0x20]
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 0
movups xmm0, xmmword [esp + 0x30]
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], 0
movups xmmword [esi + 0x24], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [esi + 0x34], xmm0
mov dword [esi + 0x3c], 0
cmp dword [esp + 0x10], 0
jne 0x1005ba1c
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov esi, dword [esi]
movzx ecx, word [edi]
cmp esi, 0xffffffff
jne 0x1005b8a6
mov edi, 0x2719
call fcn.10008d10
mov dword [esp + 0x18], eax
jmp 0x1005b8e4
cmp ecx, 2
mov edx, 0x1c
mov eax, 0x10
cmovne eax, edx
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1005b8cf
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
jmp 0x1005b8f0
call fcn.10008d10
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edi
call fcn.10008d10
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 4]
cmp ecx, eax
jne 0x1005b915
cmp edi, 0x2734
je 0x1005b945
cmp ecx, eax
mov eax, dword [esp + 0x1c]
cmovne eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
call fcn.10008d10
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 4]
jne 0x1005ba02
cmp dword [esp + 0x1c], 0x2733
jne 0x1005ba02
cmp esi, 0xffffffff
jne 0x1005b95d
mov edi, 0x2719
call fcn.10008d10
mov dword [esp + 0x14], eax
jmp 0x1005b9fe
push 0
lea eax, [esp + 0x5c]
mov dword [esp + 0x168], esi
push eax
lea eax, [esp + 0x168]
mov dword [esp + 0x168], 1
push eax
push 0
lea eax, [esi + 1]
mov dword [esp + 0x6c], esi
push eax
mov dword [esp + 0x6c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1005b9eb
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 4
push eax
push 0x1007
push ecx
mov ecx, esi
call fcn.1003e7a0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1005b9e5
call fcn.10008d10
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jmp 0x1005b9fe
mov edi, dword [esp + 0x10]
jmp 0x1005ba02
call fcn.10008d10
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
test edi, edi
jne 0x1005ba1c
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
xor ecx, esp
call fcn.100b8868
mov esp, ebp
pop ebp
ret 4
mov edx, str.connect
lea ecx, [esp + 0x10]
call fcn.10008cc0
int3