Function at 0x401df0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11dc
call fcn.0041d320
mov eax, dword [0x426014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1190]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401e3b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Fail_to_start_WSA:__ld._n
call fcn.00401db0
add esp, 8
jmp 0x402120
movzx eax, byte [esi + 5]
cdq
mov ecx, eax
mov dword [ebp - 0xfb6], 0
movzx eax, byte [esi + 4]
mov ebx, edx
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
mov dword [ebp - 0xfac], 0x7d0
movzx eax, byte [esi + 3]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 2]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi + 1]
movups xmm0, xmmword [ebp + 0x10]
cdq
shld ebx, ecx, 8
movups xmmword [ebp - 0x1000], xmm0
shl ecx, 8
or ebx, edx
or ecx, eax
movzx eax, byte [esi]
shld ebx, ecx, 8
cdq
shl ecx, 8
or ebx, edx
or ecx, eax
mov dword [ebp - 0x11dc], ebx
mov eax, 0x20
mov dword [ebp - 0x11d8], ecx
mov word [ebp - 0xfd0], ax
lea eax, [ebp - 0xfac]
push eax
lea eax, [ebp - 0x7d8]
mov dword [ebp - 0xfce], ecx
push eax
push 0
push 0x1e
lea eax, [ebp - 0xfd0]
mov dword [ebp - 0xfca], ebx
push eax
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
test eax, eax
je 0x401f12
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAAddressToString___for_remote_address_failed_with_error_code__ld_n
call fcn.00401db0
add esp, 8
jmp 0x402113
lea eax, [ebp - 0x7d8]
push eax
push str._s._n
call fcn.00401d70
lea eax, [ebp - 0x1000]
mov dword [ebp - 0x11cc], 0
mov dword [ebp - 0x11c8], eax
add esp, 8
lea eax, [ebp - 0x7d8]
mov dword [ebp - 0x11b8], 0
mov dword [ebp - 0x11b4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x1194]
movlpd qword [ebp - 0x11c4], xmm0
push eax
push 0x13b0
lea eax, [ebp - 0x11d0]
movlpd qword [ebp - 0x11b0], xmm0
push eax
mov dword [ebp - 0x11a8], 0
movlpd qword [ebp - 0x11a0], xmm0
mov dword [ebp - 0x1198], 0
mov dword [ebp - 0x11d0], 0x3c
mov dword [ebp - 0x11bc], 0x10
mov dword [ebp - 0x11a4], 0
call dword [sym.imp.WS2_32.dll_WSALookupServiceBeginW]
test eax, eax
je 0x401fd5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Fail_to_begin_look_up_service_with_error_code__ld_n
call fcn.00401db0
add esp, 8
jmp 0x402113
push str.WSALookupServiceBegin___is_OK__n
call fcn.00401db0
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_WSALookupServiceNextW]
mov ebx, dword [ebp + 0xc]
add esp, 4
nop
lea eax, [ebp - 0xfa8]
mov dword [ebp - 0xfb0], 0x7d0
push eax
lea eax, [ebp - 0xfb0]
push eax
push 0x13b0
push dword [ebp - 0x1194]
call esi
test eax, eax
jne 0x4020f3
push str.WSALookupServiceNext___is_OK__n
call fcn.00401db0
mov ecx, dword [ebp - 0xf70]
add esp, 4
test ecx, ecx
je 0x4020cf
mov edx, dword [ecx]
lea eax, [ebp - 0x11d1]
mov ecx, dword [ecx + 4]
push eax
push ebx
push edi
call fcn.00402140
add esp, 0xc
test eax, eax
jne 0x401ff0
push dword [ebp - 0x1194]
call dword [sym.imp.WS2_32.dll_WSALookupServiceEnd]
movzx edi, byte [ebp - 0x11d1]
push edi
push str.Channel_number:__d._n
call fcn.00401db0
add esp, 8
push 3
push 1
push 0x20
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x402120
mov eax, 0x20
mov dword [ebp - 0xfd6], edi
mov word [ebp - 0xff0], ax
mov eax, dword [ebp - 0x11d8]
mov dword [ebp - 0xfee], eax
mov eax, dword [ebp - 0x11dc]
mov dword [ebp - 0xfea], eax
lea eax, [ebp - 0xff0]
push 0x1e
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4020de
push str.Fail_to_connect_to_the_service._n
jmp 0x402118
push str.Blob_is_NULL__n
call fcn.00401db0
jmp 0x401feb
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Fail_to_next_look_up_service_with_error_code__ld_n
call fcn.00401db0
add esp, 8
push dword [ebp - 0x1194]
call dword [sym.imp.WS2_32.dll_WSALookupServiceEnd]
push str.The_service_is_not_found__n
call fcn.00401db0
add esp, 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 0x18