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

Disassembly:
mov eax, 0x1414
call fcn.004116a0
mov eax, dword [0x529244]
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
mov dword [esp + 0xc], esi
je 0x4113ab
cmp dword [0x52a924], esi
jne 0x410fdb
push str._yp_tch__no_server_id__calling_add_to_yp__n
call fcn.0040b170
add esp, 4
call fcn.004107d0
cmp dword [0x52a924], esi
je 0x4113ab
mov eax, dword [0x528e20]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 2
mov dword [0x4289dc], eax
mov dword [0x52a2a8], esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1414
ret
push esi
call fcn.0040dd30
mov ebp, eax
add esp, 4
cmp ebp, esi
jge 0x410ff9
push str._yp_tch__error_creating_socket__n
call fcn.0040b170
jmp 0x4113a8
mov dx, word [0x41b3d0]
xor ecx, ecx
mov dword [esp + 0x10], ecx
push edx
mov dword [esp + 0x18], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call sub.WSOCK32.dll_htons
mov word [esp + 0x12], ax
lea eax, [esp + 0x14]
push eax
push str.yp.shoutcast.com
call fcn.0040df70
add esp, 8
test eax, eax
jne 0x41105f
push str._yp_tch__error_resolving_yp.shoutcast.com_n
call fcn.0040b170
push ebp
call fcn.0040dd10
add esp, 8
mov dword [0x52a2a8], esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1414
ret
lea ecx, [esp + 0x10]
push 0x10
push ecx
push ebp
call sub.WSOCK32.dll_connect
test eax, eax
je 0x411095
push str._yp_tch__error_connecting_to_yp.shoutcast.com_n
call fcn.0040b170
push ebp
call fcn.0040dd10
add esp, 8
mov dword [0x52a2a8], esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1414
ret
lea edx, [esp + 0x1020]
push edx
push 0x52a960
call fcn.0040afa0
mov eax, dword [0x42466c]
mov ecx, dword [0x424668]
push eax
mov eax, dword [0x41b94c]
lea edx, [esp + 0x102c]
push ecx
mov ecx, dword [0x42465c]
push edx
xor edx, edx
push eax
mov dx, word [0x41b2cc]
mov eax, dword [0x52a924]
push ecx
push edx
push eax
lea ecx, [esp + 0x44]
push str.GET__tchsrv_id_ldp_dli_dalt_ldct_scm_luht_lu_HTTP_1.0_r_nHost:_yp.shoutcast.com_r_nAccept:___r_n_r_n
push ecx
call fcn.00411644
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x2c
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
lea edx, [esp + 0x24]
push ecx
push edx
push ebp
call sub.WSOCK32.dll_send
push 1
push ebp
call fcn.0040dcf0
lea eax, [esp + 0x28]
push 0x1000
push eax
push ebp
call fcn.0040deb0
lea ecx, [esp + 0x34]
push 0x42117c
push ecx
call fcn.004116d0
add esp, 0x1c
test eax, eax
jne 0x411168
lea edx, [esp + 0x20]
push edx
push str._yp_tch__yp.shoutcast.com_gave_error___s__n
call fcn.0040b170
push ebp
mov dword [0x424648], 0x12c
call fcn.0040dd10
add esp, 0xc
mov dword [0x52a2a8], esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1414
ret
mov dword [0x424668], esi
mov dword [0x42466c], esi
lea eax, [esp + 0x20]
push 0x1000
push eax
push ebp
call fcn.0040deb0
add esp, 0xc
test eax, eax
jl 0x41119e
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jae 0x411174
push ebx
mov bl, 0x20
lea ecx, [esp + 0x24]
push 0x1000
push ecx
push ebp
call fcn.0040deb0
add esp, 0xc
test eax, eax
jl 0x411361
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x411361
push 0xb
lea edx, [esp + 0x28]
push str.icy_tchfrq:
push edx
call fcn.004121c0
add esp, 0xc
test eax, eax
jne 0x41121c
mov cl, byte [esp + 0x2f]
lea eax, [esp + 0x2f]
cmp cl, bl
jne 0x4111ff
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
je 0x4111f7
push eax
call fcn.00411639
add esp, 4
cmp eax, 1
mov dword [0x528e20], eax
jge 0x41121c
mov dword [0x528e20], 5
push 0xb
lea eax, [esp + 0x28]
push str.icy_backup:
push eax
call fcn.004121c0
add esp, 0xc
test eax, eax
jne 0x411284
mov al, byte [esp + 0x2f]
lea edx, [esp + 0x2f]
cmp al, bl
jne 0x411248
mov al, byte [edx + 1]
inc edx
cmp al, bl
je 0x411240
mov ecx, 0x40
xor eax, eax
mov edi, 0x42450c
push 0x100
push edx
push 0x42450c
rep stosd dword es:[edi], eax
call fcn.004114b0
mov al, byte [0x41b7f8]
add esp, 0xc
test al, al
je 0x411284
push 0x42450c
push str._yp_tch__new_backup_server__s_n
call fcn.0040b170
add esp, 8
push 0xd
lea ecx, [esp + 0x28]
push str.icy_response:
push ecx
call fcn.004121c0
add esp, 0xc
test eax, eax
jne 0x411306
mov al, byte [esp + 0x31]
lea edi, [esp + 0x31]
cmp al, bl
jne 0x4112b0
mov al, byte [edi + 1]
inc edi
cmp al, bl
je 0x4112a8
mov esi, 0x4226a0
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4112db
test cl, cl
je 0x4112d7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4112db
add eax, 2
add esi, 2
test cl, cl
jne 0x4112b7
xor eax, eax
jmp 0x4112e0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41135f
push edi
push str._yp_tch__yp.shoutcast.com_gave_error___s__n
call fcn.0040b170
add esp, 8
mov dword [0x424648], 0x12c
mov dword [esp + 0x10], 1
xor esi, esi
push 0xa
lea eax, [esp + 0x28]
push str.icy_error:
push eax
call fcn.004121c0
add esp, 0xc
test eax, eax
jne 0x4111a1
cmp dword [esp + 0x10], esi
je 0x4111a1
mov cl, byte [esp + 0x2e]
lea eax, [esp + 0x2e]
cmp cl, bl
jne 0x411340
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
je 0x411338
push eax
push str._yp_tch__yp.shoutcast.com_gave_extended_error___s__n
call fcn.0040b170
add esp, 8
mov dword [0x52a924], esi
mov dword [0x52a928], esi
jmp 0x4111a1
xor esi, esi
mov eax, dword [esp + 0x10]
pop ebx
cmp eax, esi
jne 0x411382
mov al, byte [0x41b7f8]
test al, al
je 0x4113a2
push str._yp_tch__yp.shoutcast.com_touched__n
call fcn.0040b170
add esp, 4
jmp 0x4113a2
mov dword [0x52a928], esi
mov eax, dword [0x528e20]
mov dword [0x52a924], esi
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
shl ecx, 2
mov dword [0x4289dc], ecx
push ebp
call fcn.0040dd10
add esp, 4
mov dword [0x52a2a8], esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1414
ret