Function at 0x411b50
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x487140]
xor eax, esp
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp], eax
push ebx
push esi
mov esi, dword [esp + 0x20]
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
test esi, esi
mov word [esp + 0xa], ax
je 0x411b99
push esi
call sub.WS2_32.dll_inet_addr
jmp 0x411b9d
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x411d5d
test esi, esi
je 0x411d96
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x411d40
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x276d
jg 0x411c81
je 0x411c58
sub eax, 0x2714
cmp eax, 0x2e
ja case.default.0x411c8f
movzx edx, byte [eax + 0x411dd4]
jmp dword [edx*4 + 0x411dc0]
push str.WSAError:_The_network_subsystem_has_failed._n
jmp 0x411d1d
mov ecx, dword [0x4f482c]
push str.WSAError:_A_blocking_Windows_Sockets_1.1_call_is_in_progress__or_the_service_provider_is_still_processing_a_callback_function._n
push ecx
call fcn.00441300
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043049e
add esp, 0x14
ret 0xc
mov edx, dword [0x4f482c]
push str.WSAError:_The_name_parameter_is_not_a_valid_part_of_the_user_address_space._n
push edx
call fcn.00441300
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043049e
add esp, 0x14
ret 0xc
push str.WSAError:_A_blocking_Windows_Socket_1.1_call_was_canceled_through_WSACancelBlockingCall._n
jmp 0x411d1d
mov ecx, dword [0x4f482c]
push str.WSAError:_A_successful_WSAStartup_call_must_occur_before_using_this_function._n
push ecx
call fcn.00441300
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043049e
add esp, 0x14
ret 0xc
sub eax, 0x2af9
cmp eax, 3
ja case.default.0x411c8f
jmp dword [eax*4 + 0x411e04]
mov edx, dword [0x4f482c]
push str.WSAError:_Authoritative_answer_host_not_found._n
push edx
call fcn.00441300
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043049e
add esp, 0x14
ret 0xc
push str.WSAError:_Nonauthoritative_host_not_found__or_server_failure._n
jmp 0x411d1d
mov ecx, dword [0x4f482c]
push str.WSAError:_A_nonrecoverable_error_occurred._n
push ecx
call fcn.00441300
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043049e
add esp, 0x14
ret 0xc
mov edx, dword [0x4f482c]
push str.WSAError:_Valid_name__no_data_record_of_requested_type._n
push edx
call fcn.00441300
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043049e
add esp, 0x14
ret 0xc
push str.WSAError:_Unknown_socket_error._n
mov eax, dword [0x4f482c]
push eax
call fcn.00441300
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043049e
add esp, 0x14
ret 0xc
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
mov eax, ecx
push edi
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov edx, dword [ebx + 4]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x411dab
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x411dab
push eax
mov eax, dword [0x4f4838]
add ebx, 0x2c
push ebx
push str._s:_Socket_connect_error___d_n
push eax
call fcn.00441300
add esp, 0x10
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043049e
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0043049e
add esp, 0x14
ret 0xc