Function at 0x528b85
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x6dc06c
call fcn.006899cc
sub esp, 0x8cc
cmp byte [0x7ecb82], 0
mov eax, dword [0x7ecc20]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp + 0x64], ecx
mov dword [ebp + 0x40], edi
jne 0x528bb8
mov eax, dword [0x7e58b8]
push eax
call fcn.005290e0
push eax
lea ecx, [ebp - 0x68]
call fcn.004df668
mov eax, dword fs:[0x2c]
mov ecx, dword [0x81c3a0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7f2ae4]
cmp eax, dword [ecx + 4]
jg 0x528fe2
lea eax, [ebp - 0x54]
push eax
call fcn.005277bd
xor ebx, ebx
lea eax, [ebp - 0x3c]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00529024
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
call fcn.00527947
push ebx
push 0
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 3
push eax
call fcn.00482783
mov esi, eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], edi
jb 0x528c2c
mov esi, dword [esi]
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
mov dword [ebp + 0x68], eax
jb 0x528c3e
mov eax, dword [ebp - 0x54]
mov dword [ebp + 0x68], eax
lea ebx, [ebp - 0x24]
cmp dword [ebp - 0x10], edi
jb 0x528c49
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0xa8]
push eax
call fcn.004a6d35
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], edi
jb 0x528c60
mov eax, dword [eax]
cmp dword [ebp - 0x28], 0x10
lea edi, [ebp - 0x3c]
jb 0x528c6c
mov edi, dword [ebp - 0x3c]
cmp dword [0x7f2ac8], 0x10
mov edx, 0x7f2ab4
jb 0x528c80
mov edx, dword [0x7f2ab4]
cmp dword [0x7f2a98], 0x10
mov ecx, 0x7f2a84
jb 0x528c94
mov ecx, dword [0x7f2a84]
push esi
push dword [ebp + 0x68]
push ebx
push eax
push edi
push edx
push ecx
lea eax, [ebp - 0x68]
push eax
push 0x4b0
push dword [0x7c2fb4]
lea eax, [ebp + 0x10]
push eax
call fcn.004756fb
add esp, 0x2c
lea ecx, [ebp - 0xa8]
call fcn.0040fad0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 8
call fcn.0040fad0
mov ebx, dword [ebp + 0x64]
mov dword [ebp + 0x5c], 0xa
xor eax, eax
lea edi, [ebp]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp]
push eax
push 0
push 0x7ff
lea eax, [ebp - 0x8d8]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
lea ecx, [ebp - 0x7c]
lea eax, [ebp]
push eax
call fcn.004df614
test esi, esi
jns 0x528d4a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push str.recvfrom_ERROR:__d
push 1
call fcn.005290ee
add esp, 0xc
cmp esi, 0x2738
je 0x528f9f
cmp esi, 0x2746
jne 0x528fae
jmp 0x528f9f
lea eax, [ebp - 0x8d8]
mov byte [ebp + esi - 0x8d8], 0
push eax
push dword [ebx]
lea eax, [ebp - 0x7c]
push eax
push str.DEBUG:_UPnP:_Received_UPnP_packet__from__A___socket__p_:_n_s
push 0
call fcn.005290ee
add esp, 0x14
lea eax, [ebp - 0x8d8]
push str.M_SEARCH
push eax
call fcn.0048f8b4
test al, al
je 0x528f4d
xor ebx, ebx
lea edi, [ebp - 0x8d8]
push edi
mov esi, edi
call fcn.0048f809
push 0x717470
push esi
mov edi, eax
call fcn.0048f8b4
test al, al
jne 0x528dae
test edi, edi
jne 0x528d8f
jmp 0x528db9
add esi, 2
inc esi
cmp byte [esi], 0x20
je 0x528db1
mov ebx, esi
lea eax, [ebp - 0xd8]
push eax
call fcn.0048ecf5
mov esi, eax
mov byte [ebp - 4], 9
mov dword [ebp + 0x58], 0xf
test ebx, ebx
je 0x528dfd
xor eax, eax
mov ecx, ebx
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x54], eax
mov byte [ebp + 0x44], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x528de6
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp + 0x44]
call fcn.00414b60
xor ebx, ebx
jmp 0x528e08
xor ebx, ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x54], ebx
mov byte [ebp + 0x44], bl
push esi
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.0048ec9a
mov eax, dword [ebp + 0x58]
push 0x10
pop edi
cmp eax, edi
jb 0x528e51
mov ecx, dword [ebp + 0x44]
inc eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x60], ecx
cmp eax, 0x1000
jb 0x528e48
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], 0xf
mov byte [ebp + 0x44], bl
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xd
call fcn.0040fad0
lea eax, [ebp + 0x28]
cmp dword [ebp + 0x3c], edi
jb 0x528e78
mov eax, dword [ebp + 0x28]
push str.ut:client:service:pairing
push eax
call fcn.0048f8b4
test al, al
jne 0x528ec0
lea eax, [ebp + 0x28]
cmp dword [ebp + 0x3c], edi
jb 0x528e92
mov eax, dword [ebp + 0x28]
push str.ssdp:all
push eax
call fcn.0048f8b4
test al, al
jne 0x528ec0
lea eax, [ebp + 0x28]
cmp dword [ebp + 0x3c], edi
jb 0x528eac
mov eax, dword [ebp + 0x28]
push eax
push str.DEBUG:_UPnP:_Not_replying_to_Service_Type___S_
push ebx
call fcn.00529289
mov ebx, dword [ebp + 0x64]
add esp, 0xc
jmp 0x528f3f
push str.DEBUG:_UPnP:_Got_an_m_search_event
push ebx
call fcn.005290ee
lea eax, [ebp + 0x10]
pop ecx
pop ecx
cmp dword [ebp + 0x24], edi
jb 0x528ed8
mov eax, dword [ebp + 0x10]
push edi
lea ecx, [ebp]
push ecx
push ebx
push dword [ebp + 0x20]
mov ebx, dword [ebp + 0x64]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
lea ecx, [ebp - 0x90]
lea eax, [ebp]
push eax
call fcn.004df614
lea ecx, [ebp + 0x10]
cmp dword [ebp + 0x24], edi
jb 0x528f09
mov ecx, dword [ebp + 0x10]
push ecx
push dword [ebx]
lea eax, [ebp - 0x90]
push eax
push str.SENDING_RESPONSE__to__A___socket__p_:_n_s
push 0
call fcn.005290ee
add esp, 0x14
cmp esi, dword [ebp + 0x20]
je 0x528f3f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebx]
push str.DEBUG:_UPnP:_Send_error__socket__p_:__d
push 0
call fcn.00529289
add esp, 0x10
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 8
call fcn.0040fad0
jmp 0x528f9f
push str.DEBUG:_UPnP:_Got_a_reply_notify_event
push 0
call fcn.005290ee
pop ecx
pop ecx
lea edi, [ebp - 0x8d8]
push edi
mov esi, edi
call fcn.0048f809
push str.location:
push esi
mov edi, eax
call fcn.0048f8b4
test al, al
jne 0x528f80
test edi, edi
jne 0x528f61
jmp 0x528f9f
add esi, 8
inc esi
cmp byte [esi], 0x20
je 0x528f83
push esi
push str.UPnP:_Found_location_from_upnp_notify:__s_n
push 0
call fcn.005290ee
add esp, 0xc
push esi
call fcn.00527880
mov eax, dword [ebp + 0x5c]
dec eax
mov dword [ebp + 0x5c], eax
test eax, eax
jg 0x528cdc
lea ecx, [ebp + 0x10]
call fcn.0040fad0
lea ecx, [ebp - 0x24]
call fcn.0040fad0
lea ecx, [ebp - 0x3c]
call fcn.0040fad0
lea ecx, [ebp - 0x54]
call fcn.0044823e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x6c
leave
ret 4
mov esi, 0x7f2ae4
push esi
call fcn.00689c05
cmp dword [0x7f2ae4], 0xffffffff
pop ecx
jne 0x528be7
and dword [ebp - 4], 0
mov ecx, 0x7f2a80
call fcn.004e1a38
push 0x6f1985
call fcn.006899b7
or dword [ebp - 4], 0xffffffff
push esi
call fcn.00689bbb
pop ecx
pop ecx
jmp 0x528be7