Function at 0x4e6ca0
Capabilities:
Connect socket
Get socket status

Disassembly:
sub esp, 0x21c
mov eax, dword [0x557200]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x228]
push ebp
mov ebp, dword [esp + 0x228]
mov dword [esp + 8], ebx
mov ecx, dword [ebp + 4]
cmp ecx, 0xffffffff
je 0x4e6f12
cmp dword [ebp + 0x10], 0
je 0x4e6f12
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 0x4e6e29
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
je 0x4e6e29
call esi
lea ecx, [eax + 0xafc80]
cmp ecx, 0xb23b3
jne 0x4e6e2b
mov ecx, dword [ebp + 0x20]
mov eax, ecx
mov edx, dword [ebp + 0x24]
or eax, edx
jne 0x4e6d30
mov ecx, 0xb23b4
jmp 0x4e6e2b
mov eax, dword [ebp + 4]
mov dword [esp + 0x124], eax
mov dword [esp + 0x120], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
test edx, edx
jg 0x4e6d5f
jl 0x4e6d5b
test ecx, ecx
jae 0x4e6d5f
xor eax, eax
jmp 0x4e6d85
push 0
push 0xf4240
push edx
push ecx
call fcn.004b5af0
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x128]
push eax
push 0
push 0x41
call dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x4e6db6
call esi
test eax, eax
je 0x4e6e29
call esi
lea ecx, [eax + 0xafc80]
jmp 0x4e6e09
test eax, eax
jne 0x4e6dc1
mov ecx, 0xb23cc
jmp 0x4e6e0d
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e6e29
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x10]
push eax
push 0x1007
push 0xffff
push dword [ebp + 4]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4e6da6
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4e6e29
add ecx, 0xafc80
test ecx, ecx
je 0x4e6e2b
mov eax, ecx
pop esi
mov ecx, dword [esp + 0x220]
pop ebp
pop ebx
xor ecx, esp
call fcn.004b4f32
add esp, 0x21c
ret 8
xor ecx, ecx
mov edx, dword [ebx + 0x20]
mov esi, 0x560e94
push edi
mov edi, dword [ebx + 0x18]
sub edi, 4
jb 0x4e6e51
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4e6e56
add edx, 4
add esi, 4
sub edi, 4
jae 0x4e6e40
cmp edi, 0xfffffffc
je 0x4e6e8d
mov al, byte [edx]
cmp al, byte [esi]
jne 0x4e6e83
cmp edi, 0xfffffffd
je 0x4e6e8d
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x4e6e83
cmp edi, 0xfffffffe
je 0x4e6e8d
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x4e6e83
cmp edi, 0xffffffff
je 0x4e6e8d
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x4e6e8d
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x14], ebx
mov edi, dword [ebp + 0x10]
cmp word [edi + 0x2a], 0
jne 0x4e6e9e
mov dword [ebp + 0x2c], 1
mov edx, dword [edi + 0x20]
mov esi, 0x560e94
mov edi, dword [edi + 0x18]
sub edi, 4
jb 0x4e6ec1
nop
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4e6ec6
add edx, 4
add esi, 4
sub edi, 4
jae 0x4e6eb0
cmp edi, 0xfffffffc
je 0x4e6ef3
mov al, byte [edx]
cmp al, byte [esi]
jne 0x4e6efa
cmp edi, 0xfffffffd
je 0x4e6ef3
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x4e6efa
cmp edi, 0xfffffffe
je 0x4e6ef3
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x4e6efa
cmp edi, 0xffffffff
je 0x4e6ef3
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
jne 0x4e6efa
mov dword [ebp + 0x30], 1
pop edi
test ecx, ecx
je 0x4e6f0b
cmp ecx, 0xb23c8
jne 0x4e6e0d
xor eax, eax
jmp 0x4e6e0f
mov eax, 0x80
jmp 0x4e6e10