Function at 0x410ca0
Capabilities:
Connect socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0x814
mov eax, dword [0x529244]
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0xc], esi
je 0x410f5b
cmp dword [0x52a924], esi
je 0x410f5b
push esi
call fcn.0040dd30
mov ebp, eax
add esp, 4
cmp ebp, esi
jge 0x410cee
push str._yp_rem__error_creating_socket__n
call fcn.0040b170
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x814
ret
mov cx, word [0x41b3d0]
xor eax, eax
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0x14], 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call sub.WSOCK32.dll_htons
lea edx, [esp + 0x14]
mov word [esp + 0x12], ax
push edx
push str.yp.shoutcast.com
call fcn.0040df70
add esp, 8
test eax, eax
jne 0x410d4c
push str._yp_rem__error_resolving_yp.shoutcast.com_n
call fcn.0040b170
push ebp
call fcn.0040dd10
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x814
ret
lea eax, [esp + 0x10]
push 0x10
push eax
push ebp
call sub.WSOCK32.dll_connect
test eax, eax
je 0x410d7a
push str._yp_rem__error_connecting_to_yp.shoutcast.com_n
call fcn.0040b170
push ebp
call fcn.0040dd10
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x814
ret
mov edx, dword [0x52a924]
xor ecx, ecx
mov cx, word [0x41b2cc]
lea eax, [esp + 0x20]
push ecx
push edx
push str.GET__remsrv_id_ldp_d_HTTP_1.0_r_nHost:_yp.shoutcast.com_r_nAccept:___r_n_r_n
push eax
call fcn.00411644
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
push ecx
lea ecx, [esp + 0x28]
push ecx
push ebp
call sub.WSOCK32.dll_send
push 1
push ebp
call fcn.0040dcf0
lea edx, [esp + 0x28]
push 0x800
push edx
push ebp
call fcn.0040deb0
lea eax, [esp + 0x34]
push 0x42117c
push eax
call fcn.004116d0
add esp, 0x1c
test eax, eax
jne 0x410e08
lea ecx, [esp + 0x20]
push ecx
push str._yp_rem__yp.shoutcast.com_gave_error___s__n
call fcn.0040b170
push ebp
call fcn.0040dd10
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x814
ret
lea edx, [esp + 0x20]
push 0x800
push edx
push ebp
call fcn.0040deb0
add esp, 0xc
test eax, eax
jl 0x410e32
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jae 0x410e08
push ebx
mov dword [0x52a924], esi
mov bl, 0x20
lea eax, [esp + 0x24]
push 0x800
push eax
push ebp
call fcn.0040deb0
add esp, 0xc
test eax, eax
jl 0x410f3c
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x410f3c
push 0xd
lea ecx, [esp + 0x28]
push str.icy_response:
push ecx
call fcn.004121c0
add esp, 0xc
test eax, eax
jne 0x410eed
mov al, byte [esp + 0x31]
lea edi, [esp + 0x31]
cmp al, bl
jne 0x410e99
mov al, byte [edi + 1]
inc edi
cmp al, bl
je 0x410e91
mov esi, 0x4226a0
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x410ec4
test cl, cl
je 0x410ec0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x410ec4
add eax, 2
add esi, 2
test cl, cl
jne 0x410ea0
xor eax, eax
jmp 0x410ec9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410f3c
push edi
push str._yp_rem__yp.shoutcast.com_gave_error___s__n
call fcn.0040b170
add esp, 8
mov dword [0x424648], 0x12c
mov dword [esp + 0x10], 1
push 0xa
lea eax, [esp + 0x28]
push str.icy_error:
push eax
call fcn.004121c0
add esp, 0xc
test eax, eax
jne 0x410e3b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410e3b
mov cl, byte [esp + 0x2e]
lea eax, [esp + 0x2e]
cmp cl, bl
jne 0x410f29
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
je 0x410f21
push eax
push str._yp_add__yp.shoutcast.com_gave_extended_error___s__n
call fcn.0040b170
add esp, 8
jmp 0x410e3b
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
jne 0x410f52
push str._yp_rem__yp.shoutcast.com_removed_me__n
call fcn.0040b170
add esp, 4
push ebp
call fcn.0040dd10
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x814
ret