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

Disassembly:
mov eax, 0x67522d
call fcn.006313fc
sub esp, 0x930
cmp byte [0x766a9a], 0
mov eax, dword [0x766b38]
push ebx
push ebp
push esi
push edi
push 0x10
pop edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
jne 0x508e67
mov eax, dword [0x75f034]
push eax
call fcn.005092f4
push eax
lea ecx, [esp + 0xc0]
call fcn.004c6176
mov eax, dword [0x76bef4]
xor ebx, ebx
inc ebx
test bl, al
jne 0x508eb2
or eax, ebx
mov dword [0x76bef4], eax
and dword [esp + 0x948], 0
mov ecx, 0x76be90
call fcn.004c83a4
push 0x68546e
call fcn.00630c6d
or dword [esp + 0x94c], 0xffffffff
pop ecx
lea eax, [esp + 0x74]
push eax
call fcn.0050792b
push str.native
push 0x689a20
mov dword [esp + 0x950], ebx
call fcn.004909f5
push eax
lea eax, [esp + 0x68]
push str._s__s___s_
push eax
call fcn.00472228
add esp, 0x14
lea eax, [esp + 0x8c]
mov byte [esp + 0x948], 2
push eax
call fcn.00507abc
push 0
lea eax, [esp + 0x12c]
mov byte [esp + 0x94c], 3
push eax
call fcn.0046c95e
mov esi, eax
lea eax, [esp + 0xe0]
mov byte [esp + 0x948], 4
push eax
call fcn.0049116e
mov byte [esp + 0x948], 5
cmp dword [esi + 0x14], edi
jb 0x508f37
mov esi, dword [esi]
cmp dword [esp + 0x88], 8
mov ebp, dword [esp + 0x74]
jae 0x508f49
lea ebp, [esp + 0x74]
mov ebx, dword [esp + 0x8c]
cmp dword [esp + 0xa0], edi
jae 0x508f60
lea ebx, [esp + 0x8c]
cmp dword [eax + 0x14], edi
jb 0x508f67
mov eax, dword [eax]
cmp dword [esp + 0x70], edi
mov edi, dword [esp + 0x5c]
jae 0x508f75
lea edi, [esp + 0x5c]
cmp dword [0x76bed8], 0x10
mov edx, dword [0x76bec4]
jae 0x508f89
mov edx, 0x76bec4
cmp dword [0x76bea8], 0x10
mov ecx, dword [0x76be94]
jae 0x508f9d
mov ecx, 0x76be94
push esi
push ebp
push ebx
push eax
push edi
push edx
push ecx
lea eax, [esp + 0xd4]
push eax
push 0x4b0
push dword [0x741814]
lea eax, [esp + 0x5c]
push eax
call fcn.00472228
add esp, 0x2c
push 0
push 1
lea ecx, [esp + 0xe8]
call fcn.0040a0e9
push 0
push 1
lea ecx, [esp + 0x130]
mov byte [esp + 0x950], 8
call fcn.0040a0e9
mov ebp, dword [esp + 0x14]
push 0xa
pop ebx
mov dword [esp + 0x10], ebx
xor eax, eax
lea edi, [esp + 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
push 0
push 0x7ff
lea eax, [esp + 0x150]
push eax
push dword [ebp]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
lea ecx, [esp + 0xa4]
lea eax, [esp + 0x4c]
push eax
call fcn.004c6122
test esi, esi
jns 0x50906f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push str.recvfrom_ERROR:__d
push 1
call fcn.00509302
add esp, 0xc
cmp esi, 0x2738
je 0x50929c
cmp esi, 0x2746
jne 0x5092a9
jmp 0x50929c
lea eax, [esp + 0x140]
mov byte [esp + esi + 0x140], 0
push eax
push dword [ebp]
lea eax, [esp + 0xac]
push eax
push str.DEBUG:_UPnP:_Received_UPnP_packet__from__A___socket__p_:_n_s
push 0
call fcn.00509302
add esp, 0x14
lea eax, [esp + 0x140]
push str.M_SEARCH
push eax
call fcn.00479db3
test al, al
je 0x509249
xor ebx, ebx
lea edi, [esp + 0x140]
push edi
mov esi, edi
call fcn.00479d08
push 0x6ac978
push esi
mov edi, eax
call fcn.00479db3
test al, al
jne 0x5090db
test edi, edi
jne 0x5090bc
jmp 0x5090e6
add esi, 2
inc esi
cmp byte [esi], 0x20
je 0x5090de
mov ebx, esi
lea eax, [esp + 0x110]
push eax
call fcn.004793b2
mov esi, eax
push ebx
lea eax, [esp + 0xfc]
mov byte [esp + 0x94c], 9
push eax
call fcn.004627fd
push esi
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x950], 0xa
push eax
call fcn.00479357
xor ebx, ebx
lea ecx, [esp + 0xf8]
push ebx
push 1
call fcn.0040a0e9
push ebx
push 1
lea ecx, [esp + 0x118]
mov byte [esp + 0x950], 0xd
call fcn.0040a0e9
mov eax, dword [esp + 0x1c]
push 0x10
pop edi
cmp dword [esp + 0x30], edi
jae 0x509158
lea eax, [esp + 0x1c]
push str.ut:client:service:pairing
push eax
call fcn.00479db3
test al, al
jne 0x5091a6
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x509175
lea eax, [esp + 0x1c]
push str.ssdp:all
push eax
call fcn.00479db3
test al, al
jne 0x5091a6
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x509192
lea eax, [esp + 0x1c]
push eax
push str.DEBUG:_UPnP:_Not_replying_to_Service_Type___S_
push ebx
call fcn.005094ae
add esp, 0xc
jmp 0x50922f
push str.DEBUG:_UPnP:_Got_an_m_search_event
push ebx
call fcn.00509302
mov eax, dword [esp + 0x3c]
pop ecx
pop ecx
cmp dword [esp + 0x48], edi
jae 0x5091c1
lea eax, [esp + 0x34]
push edi
lea ecx, [esp + 0x50]
push ecx
push ebx
push dword [esp + 0x50]
push eax
push dword [ebp]
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
lea ecx, [esp + 0xcc]
lea eax, [esp + 0x4c]
push eax
call fcn.004c6122
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x48], edi
jae 0x5091f7
lea ecx, [esp + 0x34]
push ecx
push dword [ebp]
lea eax, [esp + 0xd4]
push eax
push str.SENDING_RESPONSE__to__A___socket__p_:_n_s
push ebx
call fcn.00509302
add esp, 0x14
cmp esi, dword [esp + 0x44]
je 0x50922f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp]
push str.DEBUG:_UPnP:_Send_error__socket__p_:__d
push ebx
call fcn.005094ae
add esp, 0x10
push ebx
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x950], 8
call fcn.0040a0e9
mov ebx, dword [esp + 0x10]
jmp 0x50929c
push str.DEBUG:_UPnP:_Got_a_reply_notify_event
push 0
call fcn.00509302
pop ecx
pop ecx
lea edi, [esp + 0x140]
push edi
mov esi, edi
call fcn.00479d08
push str.location:
push esi
mov edi, eax
call fcn.00479db3
test al, al
jne 0x50927d
test edi, edi
jne 0x50925e
jmp 0x50929c
add esi, 8
inc esi
cmp byte [esi], 0x20
je 0x509280
push esi
push str.UPnP:_Found_location_from_upnp_notify:__s_n
push 0
call fcn.00509302
add esp, 0xc
push esi
call fcn.005079f5
dec ebx
mov dword [esp + 0x10], ebx
test ebx, ebx
jg 0x508ff7
xor ebx, ebx
lea ecx, [esp + 0x34]
push ebx
push 1
call fcn.0040a0e9
push ebx
push 1
lea ecx, [esp + 0x94]
call fcn.0040a0e9
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.0040a0e9
push ebx
push 1
lea ecx, [esp + 0x7c]
call fcn.0042341c
mov ecx, dword [esp + 0x940]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 4