Function at 0x437480
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x4d2084]
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 0x4374c9
push esi
call sub.WS2_32.dll_inet_addr
jmp 0x4374cd
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x43768d
test esi, esi
je 0x4376c6
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x437670
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x276d
jg 0x4375b1
je 0x437588
sub eax, 0x2714
cmp eax, 0x2e
ja case.default.0x4375bf
movzx edx, byte [eax + 0x437704]
jmp dword [edx*4 + 0x4376f0]
push str.WSAError:_The_network_subsystem_has_failed._n
jmp 0x43764d
mov ecx, dword [0x52f0ec]
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.0048dda0
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047ece2
add esp, 0x14
ret 0xc
mov edx, dword [0x52f0ec]
push str.WSAError:_The_name_parameter_is_not_a_valid_part_of_the_user_address_space._n
push edx
call fcn.0048dda0
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047ece2
add esp, 0x14
ret 0xc
push str.WSAError:_A_blocking_Windows_Socket_1.1_call_was_canceled_through_WSACancelBlockingCall._n
jmp 0x43764d
mov ecx, dword [0x52f0ec]
push str.WSAError:_A_successful_WSAStartup_call_must_occur_before_using_this_function._n
push ecx
call fcn.0048dda0
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047ece2
add esp, 0x14
ret 0xc
sub eax, 0x2af9
cmp eax, 3
ja case.default.0x4375bf
jmp dword [eax*4 + 0x437734]
mov edx, dword [0x52f0ec]
push str.WSAError:_Authoritative_answer_host_not_found._n
push edx
call fcn.0048dda0
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047ece2
add esp, 0x14
ret 0xc
push str.WSAError:_Nonauthoritative_host_not_found__or_server_failure._n
jmp 0x43764d
mov ecx, dword [0x52f0ec]
push str.WSAError:_A_nonrecoverable_error_occurred._n
push ecx
call fcn.0048dda0
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047ece2
add esp, 0x14
ret 0xc
mov edx, dword [0x52f0ec]
push str.WSAError:_Valid_name__no_data_record_of_requested_type._n
push edx
call fcn.0048dda0
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047ece2
add esp, 0x14
ret 0xc
push str.WSAError:_Unknown_socket_error._n
mov eax, dword [0x52f0ec]
push eax
call fcn.0048dda0
add esp, 8
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047ece2
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 0x4376db
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4376db
push eax
mov eax, dword [0x52f0f8]
add ebx, 0x2c
push ebx
push str._s:_Socket_connect_error___d_n
push eax
call fcn.0048dda0
add esp, 0x10
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0047ece2
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0047ece2
add esp, 0x14
ret 0xc