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

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x6b39dd
call fcn.00664608
sub esp, 0x8cc
cmp byte [0x7bd10a], 0
mov eax, dword [0x7bd1a8]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp + 0x64], ecx
mov dword [ebp + 0x40], edi
jne 0x506ea9
mov eax, dword [0x7b5eac]
push eax
call fcn.005073d1
push eax
lea ecx, [ebp - 0x68]
call fcn.004bfece
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7ec658]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x7c306c]
cmp eax, dword [ecx + 4]
jg 0x5072d3
lea eax, [ebp - 0x54]
push eax
call fcn.00505aa1
xor ebx, ebx
lea eax, [ebp - 0x3c]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00507315
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
call fcn.00505c1e
push ebx
push 0
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 3
push eax
call fcn.00464561
mov esi, eax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 4
push eax
call fcn.004887f2
mov byte [ebp - 4], 5
cmp dword [esi + 0x14], edi
jb 0x506f2d
mov esi, dword [esi]
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0x54]
mov dword [ebp + 0x68], ecx
jb 0x506f3f
mov ecx, dword [ebp - 0x54]
mov dword [ebp + 0x68], ecx
lea ebx, [ebp - 0x24]
cmp dword [ebp - 0x10], edi
jb 0x506f4a
mov ebx, dword [ebp - 0x24]
cmp dword [eax + 0x14], edi
jb 0x506f51
mov eax, dword [eax]
cmp dword [ebp - 0x28], 0x10
lea edi, [ebp - 0x3c]
jb 0x506f5d
mov edi, dword [ebp - 0x3c]
cmp dword [0x7c3050], 0x10
mov edx, 0x7c303c
jb 0x506f71
mov edx, dword [0x7c303c]
cmp dword [0x7c3020], 0x10
mov ecx, 0x7c300c
jb 0x506f85
mov ecx, dword [0x7c300c]
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 [0x793f10]
lea eax, [ebp + 0x10]
push eax
call fcn.004577d4
add esp, 0x2c
lea ecx, [ebp - 0xa8]
call fcn.00410858
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 8
call fcn.00410858
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.004bfe7a
test esi, esi
jns 0x50703b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push str.recvfrom_ERROR:__d
push 1
call fcn.005073df
add esp, 0xc
cmp esi, 0x2738
je 0x507290
cmp esi, 0x2746
jne 0x50729f
jmp 0x507290
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.005073df
add esp, 0x14
lea eax, [ebp - 0x8d8]
push str.M_SEARCH
push eax
call fcn.00471422
test al, al
je 0x50723e
xor ebx, ebx
lea edi, [ebp - 0x8d8]
push edi
mov esi, edi
call fcn.00471377
push 0x6ee798
push esi
mov edi, eax
call fcn.00471422
test al, al
jne 0x50709f
test edi, edi
jne 0x507080
jmp 0x5070aa
add esi, 2
inc esi
cmp byte [esi], 0x20
je 0x5070a2
mov ebx, esi
lea eax, [ebp - 0xd8]
push eax
call fcn.00470879
mov esi, eax
mov byte [ebp - 4], 9
mov dword [ebp + 0x58], 0xf
test ebx, ebx
je 0x5070ee
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 0x5070d7
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp + 0x44]
call fcn.00410407
xor ebx, ebx
jmp 0x5070f9
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.0047081e
mov eax, dword [ebp + 0x58]
push 0x10
pop edi
cmp eax, edi
jb 0x507142
mov ecx, dword [ebp + 0x44]
inc eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x60], ecx
cmp eax, 0x1000
jb 0x507139
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x60]
push eax
push ecx
call fcn.006643a9
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.00410858
lea eax, [ebp + 0x28]
cmp dword [ebp + 0x3c], edi
jb 0x507169
mov eax, dword [ebp + 0x28]
push str.ut:client:service:pairing
push eax
call fcn.00471422
test al, al
jne 0x5071b1
lea eax, [ebp + 0x28]
cmp dword [ebp + 0x3c], edi
jb 0x507183
mov eax, dword [ebp + 0x28]
push str.ssdp:all
push eax
call fcn.00471422
test al, al
jne 0x5071b1
lea eax, [ebp + 0x28]
cmp dword [ebp + 0x3c], edi
jb 0x50719d
mov eax, dword [ebp + 0x28]
push eax
push str.DEBUG:_UPnP:_Not_replying_to_Service_Type___S_
push ebx
call fcn.0050757a
mov ebx, dword [ebp + 0x64]
add esp, 0xc
jmp 0x507230
push str.DEBUG:_UPnP:_Got_an_m_search_event
push ebx
call fcn.005073df
lea eax, [ebp + 0x10]
pop ecx
pop ecx
cmp dword [ebp + 0x24], edi
jb 0x5071c9
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.004bfe7a
lea ecx, [ebp + 0x10]
cmp dword [ebp + 0x24], edi
jb 0x5071fa
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.005073df
add esp, 0x14
cmp esi, dword [ebp + 0x20]
je 0x507230
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.0050757a
add esp, 0x10
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 8
call fcn.00410858
jmp 0x507290
push str.DEBUG:_UPnP:_Got_a_reply_notify_event
push 0
call fcn.005073df
pop ecx
pop ecx
lea edi, [ebp - 0x8d8]
push edi
mov esi, edi
call fcn.00471377
push str.location:
push esi
mov edi, eax
call fcn.00471422
test al, al
jne 0x507271
test edi, edi
jne 0x507252
jmp 0x507290
add esi, 8
inc esi
cmp byte [esi], 0x20
je 0x507274
push esi
push str.UPnP:_Found_location_from_upnp_notify:__s_n
push 0
call fcn.005073df
add esp, 0xc
push esi
call fcn.00505b64
mov eax, dword [ebp + 0x5c]
dec eax
mov dword [ebp + 0x5c], eax
test eax, eax
jg 0x506fcd
lea ecx, [ebp + 0x10]
call fcn.00410858
lea ecx, [ebp - 0x24]
call fcn.00410858
lea ecx, [ebp - 0x3c]
call fcn.00410858
lea ecx, [ebp - 0x54]
call fcn.00427afc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x6c
leave
ret 4
mov esi, 0x7c306c
push esi
call fcn.00664835
cmp dword [0x7c306c], 0xffffffff
pop ecx
jne 0x506ed8
and dword [ebp - 4], 0
mov ecx, 0x7c3008
call fcn.004c218b
push 0x6c8f09
call fcn.006645f3
or dword [ebp - 4], 0xffffffff
push esi
call fcn.006647eb
pop ecx
pop ecx
jmp 0x506ed8