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

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x6dbffe
call fcn.006899cc
sub esp, 0x74
and dword [ebp + 0x38], 0
and dword [ebp + 0x3c], 0
push ebx
push esi
push 2
pop eax
push dword [ebp + 0x64]
mov word [ebp + 0x30], ax
mov ebx, ecx
mov eax, 0x6c07
mov dword [ebp + 0x40], ebx
mov word [ebp + 0x32], ax
call dword [sym.imp.WS2_32.dll_htonl]
xor edx, edx
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x44], edx
mov dword [ebp + 0x54], edx
mov dword [ebp + 0x58], 0xf
mov byte [ebp + 0x44], dl
mov esi, dword [ebp + 0x68]
mov dword [ebp - 4], edx
test esi, esi
jne 0x52894b
push str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nST:upnp:rootdevice_r_nMAN:_ssdp:discover__r_nMX:3_r_n_r_n
mov byte [ebp + 0x64], dl
lea ecx, [ebp + 0x44]
push dword [ebp + 0x64]
push 0x62
call fcn.00416cb0
jmp 0x528aca
cmp esi, 1
je 0x528960
cmp esi, 2
je 0x528960
mov dword [ebp + 0x54], edx
mov byte [ebp + 0x44], dl
jmp 0x528acc
mov eax, dword fs:[0x2c]
mov ecx, dword [0x81c3a0]
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7f2a7c]
cmp eax, dword [ecx + 4]
jg 0x528b3b
lea eax, [ebp - 0x24]
push eax
call fcn.00529024
lea eax, [ebp]
mov byte [ebp - 4], 2
push eax
call fcn.005277bd
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.00527947
cmp byte [0x7ecb82], 0
mov eax, dword [0x7ecc20]
mov byte [ebp - 4], 4
jne 0x5289bb
mov eax, dword [0x7e58b8]
push eax
call fcn.005290e0
push eax
lea ecx, [ebp - 0x38]
call fcn.004df668
push 1
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.00482783
mov edi, eax
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x5289e5
mov edi, dword [edi]
cmp dword [ebp + 0x14], 8
lea eax, [ebp]
mov dword [ebp + 0x64], eax
jb 0x5289f7
mov eax, dword [ebp]
mov dword [ebp + 0x64], eax
cmp dword [ebp + 0x2c], 0x10
lea eax, [ebp + 0x18]
mov dword [ebp + 0x68], eax
jb 0x528a09
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x68], eax
mov ebx, str.ssdp:alive
cmp esi, 1
je 0x528a18
mov ebx, str.ssdp:byebye
lea eax, [ebp - 0x68]
push eax
call fcn.004a6d35
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x528a2d
mov eax, dword [eax]
cmp dword [ebp - 0x10], 0x10
lea esi, [ebp - 0x24]
jb 0x528a39
mov esi, dword [ebp - 0x24]
cmp dword [0x7f2a60], 0x10
mov edx, 0x7f2a4c
jb 0x528a4d
mov edx, dword [0x7f2a4c]
cmp dword [0x7f2a30], 0x10
mov ecx, 0x7f2a1c
jb 0x528a61
mov ecx, dword [0x7f2a1c]
push edi
push dword [ebp + 0x64]
push dword [ebp + 0x68]
push ebx
push eax
push esi
push edx
push ecx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push str.NOTIFY__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nLOCATION:_http:___A_r_nSERVER:__s__s_UPnP_1.1__s__s_r_nNTS:__s_r_nST:_ut:client:service:pairing_r_nUSN:_uuid:_s_r_nFRIENDLYNAME:_S_r_nHH:_s_r_n_r_n
push eax
call fcn.004756fb
add esp, 0x2c
lea ecx, [ebp + 0x44]
pop edi
cmp ecx, eax
je 0x528a97
mov byte [ebp + 0x64], 0
push dword [ebp + 0x64]
push eax
call fcn.00416240
lea ecx, [ebp - 0x50]
call fcn.0040fad0
lea ecx, [ebp - 0x68]
call fcn.0040fad0
lea ecx, [ebp - 0x80]
call fcn.0040fad0
lea ecx, [ebp + 0x18]
call fcn.0040fad0
lea ecx, [ebp]
call fcn.0044823e
lea ecx, [ebp - 0x24]
call fcn.0040fad0
mov ebx, dword [ebp + 0x40]
xor edx, edx
cmp dword [ebp + 0x58], 0x10
lea eax, [ebp + 0x44]
jb 0x528ad8
mov eax, dword [ebp + 0x44]
push 0x10
lea ecx, [ebp + 0x30]
push ecx
push edx
push dword [ebp + 0x54]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
mov eax, dword [ebp + 0x58]
setg bl
cmp eax, 0x10
jb 0x528b26
mov ecx, dword [ebp + 0x44]
inc eax
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], ecx
cmp eax, 0x1000
jb 0x528b1d
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x5c
leave
ret 8
mov edi, 0x7f2a7c
push edi
call fcn.00689c05
cmp dword [0x7f2a7c], 0xffffffff
pop ecx
jne 0x528981
mov ecx, 0x7f2a18
mov byte [ebp - 4], 1
call fcn.004e1a38
push 0x6f198f
call fcn.006899b7
push edi
mov byte [ebp - 4], 0
call fcn.00689bbb
pop ecx
pop ecx
jmp 0x528981