Function at 0x4924d0
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4fb128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], ebx
mov ecx, dword [edi + 4]
cmp ecx, 0xffffffff
je 0x492723
cmp dword [edi + 0x10], 0
je 0x492723
push esi
push dword [ebx + 0x14]
lea eax, [ebx + 0x28]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4926a0
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x49270e
call esi
add eax, 0xafc80
cmp eax, 0xb23b3
jne 0x49254e
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov eax, ecx
or eax, edx
jne 0x492561
mov eax, 0xb23b4
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 4]
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], 1
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], 1
test edx, edx
jg 0x492592
jl 0x49258e
test ecx, ecx
jae 0x492592
xor eax, eax
jmp 0x4925c4
push 0
push 0xf4240
push edx
push ecx
call fcn.00486c30
mov dword [ebp - 0x220], ebx
mov ebx, dword [ebp - 0x210]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x218], ecx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x41
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x214], eax
cmp eax, 0xffffffff
jne 0x492601
call esi
test eax, eax
jne 0x492669
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8
test eax, eax
jne 0x49261d
pop esi
pop edi
mov eax, 0xb23cc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x108]
push eax
push dword [edi + 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4926a0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1007
push 0xffff
push dword [edi + 4]
mov dword [ebp - 0x210], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x492683
call esi
test eax, eax
je 0x49270e
call esi
pop esi
pop edi
add eax, 0xafc80
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x214]
test eax, eax
jne 0x49266b
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi + 0x10]
mov dword [edi + 0x14], ebx
cmp word [esi + 0x2a], 0
jne 0x4926b4
mov dword [edi + 0x2c], 1
mov ecx, dword [esi + 0x20]
mov esi, dword [esi + 0x18]
mov edx, 0x5020ac
sub esi, 4
jb 0x4926d5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4926da
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4926c4
cmp esi, 0xfffffffc
je 0x492707
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x49270e
cmp esi, 0xfffffffd
je 0x492707
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x49270e
cmp esi, 0xfffffffe
je 0x492707
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x49270e
cmp esi, 0xffffffff
je 0x492707
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x49270e
mov dword [edi + 0x30], 1
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 0x80
pop ebx
call fcn.0047232c
mov esp, ebp
pop ebp
ret 8