Function at 0x10011880
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101aa2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x100118fd
mov ecx, dword [0x101ace90]
mov eax, dword [0x101ace94]
cmp ecx, 0x257edfd1
jne 0x100118be
cmp eax, 0xb2ab117a
je 0x100118cd
cmp ecx, 0x257edfd0
jne 0x100118d1
cmp eax, 0xb2ab117a
jne 0x100118d1
mov al, 1
jmp 0x100118e5
mov eax, dword [0x101ace88]
mov ecx, 0x101ace88
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [edi], 0x2719
add eax, 2
mov dword [edi + 4], 0x101ace88
mov dword [edi + 8], eax
jmp 0x10011914
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov ecx, edi
setne dl
call fcn.10011660
mov ebx, dword [0x101ace90]
mov esi, dword [0x101ace94]
cmp ebx, 0x257edfd1
jne 0x10011930
cmp esi, 0xb2ab117a
je 0x10011940
cmp ebx, 0x257edfd0
jne 0x10011944
cmp esi, 0xb2ab117a
jne 0x10011944
mov al, 1
jmp 0x10011964
mov eax, dword [0x101ace88]
mov ecx, 0x101ace88
push 0x2734
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x101ace94]
mov ebx, dword [0x101ace90]
movzx eax, al
lea edx, [ebp - 0x220]
add eax, 2
mov dword [ebp - 0x220], 0x2734
mov ecx, edi
mov dword [ebp - 0x21c], 0x101ace88
mov dword [ebp - 0x218], eax
call fcn.1000ee30
test al, al
jne 0x10011a0e
cmp ebx, 0x257edfd1
jne 0x100119a5
cmp esi, 0xb2ab117a
je 0x100119b5
cmp ebx, 0x257edfd0
jne 0x100119b9
cmp esi, 0xb2ab117a
jne 0x100119b9
mov al, 1
jmp 0x100119d9
mov eax, dword [0x101ace88]
mov ecx, 0x101ace88
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x101ace94]
mov ebx, dword [0x101ace90]
movzx eax, al
lea edx, [ebp - 0x220]
add eax, 2
mov dword [ebp - 0x220], 0x2733
mov ecx, edi
mov dword [ebp - 0x21c], 0x101ace88
mov dword [ebp - 0x218], eax
call fcn.1000ee30
test al, al
je 0x10011b5f
mov eax, dword [ebp - 0x210]
cmp eax, 0xffffffff
jne 0x10011a65
cmp ebx, 0x257edfd1
jne 0x10011a29
cmp esi, 0xb2ab117a
je 0x10011a39
cmp ebx, 0x257edfd0
jne 0x10011a46
cmp esi, 0xb2ab117a
jne 0x10011a46
mov al, 1
mov dword [edi], 0x2719
jmp 0x10011b4f
mov eax, dword [0x101ace88]
mov ecx, 0x101ace88
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov dword [edi], 0x2719
jmp 0x10011b4f
push 0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x208], eax
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x104], eax
push ecx
push 0
inc eax
mov dword [ebp - 0x20c], 1
push eax
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x10011b05
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0x1007
xorps xmm0, xmm0
mov dword [ebp - 0x224], 4
push 0xffff
movq qword [edi], xmm0
push ecx
mov dword [edi + 8], 0
call dword [sym.imp.WS2_32.dll_getsockopt]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.10011660
cmp esi, 0xffffffff
je 0x10011b5f
mov esi, dword [ebp - 0x214]
jmp 0x10011b0d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, dword [0x101ace90]
mov eax, dword [0x101ace94]
cmp ecx, 0x257edfd1
jne 0x10011b27
cmp eax, 0xb2ab117a
je 0x10011b36
cmp ecx, 0x257edfd0
jne 0x10011b3d
cmp eax, 0xb2ab117a
jne 0x10011b3d
test esi, esi
setne al
jmp 0x10011b4d
mov eax, dword [0x101ace88]
mov ecx, 0x101ace88
push esi
mov eax, dword [eax + 0x18]
call eax
mov dword [edi], esi
movzx eax, al
add eax, 2
mov dword [edi + 4], 0x101ace88
mov dword [edi + 8], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100459e9
mov esp, ebp
pop ebp
ret