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

Disassembly:
mov eax, 0x6751b2
call fcn.006313fc
sub esp, 0xd4
push ebx
push esi
push edi
xor eax, eax
lea edi, [esp + 0x2c]
stosd dword es:[edi], eax
mov ebx, ecx
push 2
mov dword [esp + 0x14], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
push dword [esp + 0xf4]
mov word [esp + 0x30], ax
mov eax, 0x6c07
mov word [esp + 0x32], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
mov esi, dword [esp + 0xf8]
mov dword [esp + 0xe8], eax
test esi, esi
jne 0x508bea
mov esi, 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
push esi
call fcn.00409db4
pop ecx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00409b2f
jmp 0x508dde
cmp esi, 1
je 0x508c01
cmp esi, 2
je 0x508c01
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
jmp 0x508de9
mov eax, dword [0x76be8c]
test al, 1
jne 0x508c37
or eax, 1
mov dword [0x76be8c], eax
mov ecx, 0x76be28
mov byte [esp + 0xe8], 1
call fcn.004c83a4
push 0x685478
call fcn.00630c6d
pop ecx
mov byte [esp + 0xe8], 0
push str.native
push 0x689a20
call fcn.004909f5
push eax
lea eax, [esp + 0x60]
push str._s__s___s_
push eax
call fcn.00472228
add esp, 0x14
lea eax, [esp + 0x6c]
mov byte [esp + 0xe8], 2
push eax
call fcn.0050792b
lea eax, [esp + 0x3c]
mov byte [esp + 0xe8], 3
push eax
call fcn.00507abc
cmp byte [0x766a9a], 0
mov eax, dword [0x766b38]
mov byte [esp + 0xe8], 4
jne 0x508c98
mov eax, dword [0x75f034]
push eax
call fcn.005092f4
push eax
lea ecx, [esp + 0x8c]
call fcn.004c6176
mov dword [esp + 0xc], str.ssdp:alive
cmp esi, 1
je 0x508cc0
mov dword [esp + 0xc], str.ssdp:byebye
push 0
lea eax, [esp + 0xcc]
push eax
call fcn.0046c95e
mov esi, eax
lea eax, [esp + 0xb0]
mov byte [esp + 0xe8], 5
push eax
call fcn.0049116e
cmp dword [esi + 0x14], 0x10
mov byte [esp + 0xe8], 6
jb 0x508cf6
mov esi, dword [esi]
cmp dword [esp + 0x80], 8
push ebp
mov ebp, dword [esp + 0x70]
jae 0x508d09
lea ebp, [esp + 0x70]
cmp dword [esp + 0x54], 0x10
mov ebx, dword [esp + 0x40]
jae 0x508d18
lea ebx, [esp + 0x40]
cmp dword [eax + 0x14], 0x10
jb 0x508d20
mov eax, dword [eax]
cmp dword [esp + 0x6c], 0x10
mov edi, dword [esp + 0x58]
jae 0x508d2f
lea edi, [esp + 0x58]
cmp dword [0x76be70], 0x10
mov edx, dword [0x76be5c]
jae 0x508d43
mov edx, 0x76be5c
cmp dword [0x76be40], 0x10
mov ecx, dword [0x76be2c]
jae 0x508d57
mov ecx, 0x76be2c
push esi
push ebp
push ebx
push dword [esp + 0x1c]
push eax
push edi
push edx
push ecx
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0xc0]
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.00472228
add esp, 0x2c
lea ecx, [esp + 0x18]
push eax
call fcn.00409822
xor ebx, ebx
lea ecx, [esp + 0x9c]
xor ebp, ebp
push ebx
inc ebp
push ebp
call fcn.0040a0e9
push ebx
push ebp
lea ecx, [esp + 0xbc]
call fcn.0040a0e9
push ebx
push ebp
lea ecx, [esp + 0xd4]
call fcn.0040a0e9
push ebx
push ebp
lea ecx, [esp + 0x48]
call fcn.0040a0e9
push ebx
push ebp
lea ecx, [esp + 0x78]
call fcn.0042341c
push ebx
push ebp
lea ecx, [esp + 0x60]
call fcn.0040a0e9
mov ebx, dword [esp + 0x14]
pop ebp
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x508ded
lea eax, [esp + 0x14]
push 0x10
lea ecx, [esp + 0x30]
push ecx
push 0
push dword [esp + 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
lea ecx, [esp + 0x14]
push 0
push 1
setg bl
call fcn.0040a0e9
mov ecx, dword [esp + 0xe0]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8