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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5cc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x5cc]
mov ecx, 0x173
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x460280]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x42c], 6
push str.searching_upnp_device..._r_n
push 0x40
push 0x462328
call fcn.00401280
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
je 0x418859
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x40], 0
jne 0x418cb8
cmp dword [ebp - 0x420], 6
jge 0x418cb8
mov eax, dword [ebp - 0x420]
add eax, 1
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x438], 0
jmp 0x418890
mov eax, dword [ebp - 0x438]
add eax, 1
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 2
jae 0x418987
mov dword [ebp - 0x444], 0
jmp 0x4188b8
mov eax, dword [ebp - 0x444]
add eax, 1
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 2
jge 0x418982
mov dword [ebp - 0x450], 0
mov eax, dword [ebp - 0x438]
mov ecx, dword [eax*4 + 0x4601f0]
push ecx
push str.M_SEARCH__HTTP_1.1_r_nMX:_3_r_nHOST:_239.255.255.250:1900_r_nMAN:__ssdp:discover__r_nST:__s_r_n_r_n
lea edx, [ebp - 0x414]
push edx
call fcn.0043245a
add esp, 0xc
add eax, dword [ebp - 0x450]
mov dword [ebp - 0x450], eax
push 0x10
push 0
lea eax, [ebp - 0x468]
push eax
call fcn.00432b00
add esp, 0xc
mov word [ebp - 0x468], 2
mov eax, dword [ebp - 0x444]
neg eax
sbb eax, eax
and eax, 0x5000010
add eax, 0xfaffffef
mov dword [ebp - 0x464], eax
mov esi, esp
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.0043234a
mov word [ebp - 0x466], ax
mov esi, esp
push 0x10
lea eax, [ebp - 0x468]
push eax
push 0
mov ecx, dword [ebp - 0x450]
push ecx
lea edx, [ebp - 0x414]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.0043234a
jmp 0x4188a9
jmp 0x418881
push 0x10
push 0
lea eax, [ebp - 0x480]
push eax
call fcn.00432b00
add esp, 0xc
mov word [ebp - 0x480], 2
mov dword [ebp - 0x48c], 0x10
mov esi, esp
push 1
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp esi, esp
call fcn.0043234a
mov esi, esp
push 0x3e8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.0043234a
mov esi, esp
lea eax, [ebp - 0x48c]
push eax
lea ecx, [ebp - 0x480]
push ecx
push 0
push 0x3ff
lea edx, [ebp - 0x414]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp esi, esp
call fcn.0043234a
mov dword [ebp - 0x498], eax
cmp dword [ebp - 0x498], 0
jg 0x418a51
mov esi, esp
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp esi, esp
call fcn.0043234a
test eax, eax
je 0x418a4a
jmp 0x418843
xor al, al
jmp 0x418ceb
mov eax, dword [ebp - 0x498]
mov byte [ebp + eax - 0x414], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
je 0x418a8d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x5c4], ecx
mov edx, dword [ebp - 0x5c4]
push edx
call fcn.004323ff
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], 0
push str.LOCATION:
lea eax, [ebp - 0x414]
push eax
call fcn.00418400
add esp, 8
mov dword [ebp - 0x4a4], eax
cmp dword [ebp - 0x4a4], 0
je 0x418b89
mov eax, dword [ebp - 0x4a4]
add eax, 9
mov dword [ebp - 0x4a4], eax
mov eax, dword [ebp - 0x4a4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x418ae2
mov eax, dword [ebp - 0x4a4]
add eax, 1
mov dword [ebp - 0x4a4], eax
jmp 0x418ac3
push 0x457798
mov eax, dword [ebp - 0x4a4]
push eax
call fcn.00418400
add esp, 8
mov dword [ebp - 0x4b0], eax
cmp dword [ebp - 0x4b0], 0
je 0x418b89
mov eax, dword [ebp - 0x4b0]
sub eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x4bc], eax
je 0x418b89
mov eax, dword [ebp - 0x4bc]
add eax, 1
push eax
call fcn.00431bf3
add esp, 4
mov dword [ebp - 0x5b8], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x5b8]
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x4bc]
push eax
mov ecx, dword [ebp - 0x4a4]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x3c]
push eax
call fcn.00433c80
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x4bc]
mov byte [ecx + edx], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
push ecx
push str.get_location:__s_r_n
push 0x40
push 0x462328
call fcn.00401280
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x40], 0
je 0x418bb7
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x5ac], ecx
mov edx, dword [ebp - 0x5ac]
push edx
call fcn.004323ff
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x40], 0
push 0x457780
lea eax, [ebp - 0x414]
push eax
call fcn.00418400
add esp, 8
mov dword [ebp - 0x4a4], eax
cmp dword [ebp - 0x4a4], 0
je 0x418cb3
mov eax, dword [ebp - 0x4a4]
add eax, 3
mov dword [ebp - 0x4a4], eax
mov eax, dword [ebp - 0x4a4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x418c0c
mov eax, dword [ebp - 0x4a4]
add eax, 1
mov dword [ebp - 0x4a4], eax
jmp 0x418bed
push 0x457798
mov eax, dword [ebp - 0x4a4]
push eax
call fcn.00418400
add esp, 8
mov dword [ebp - 0x4c8], eax
cmp dword [ebp - 0x4c8], 0
je 0x418cb3
mov eax, dword [ebp - 0x4c8]
sub eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x4d4], eax
je 0x418cb3
mov eax, dword [ebp - 0x4d4]
add eax, 1
push eax
call fcn.00431bf3
add esp, 4
mov dword [ebp - 0x5a0], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x5a0]
mov dword [ecx + 0x40], edx
mov eax, dword [ebp - 0x4d4]
push eax
mov ecx, dword [ebp - 0x4a4]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x40]
push eax
call fcn.00433c80
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x40]
mov edx, dword [ebp - 0x4d4]
mov byte [ecx + edx], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x40]
push ecx
push str.get_search_target:__s_r_n
push 0x40
push 0x462328
call fcn.00401280
add esp, 0x10
jmp 0x418843
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
je 0x418cd6
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x40], 0
je 0x418cd6
mov dword [ebp - 0x5cc], 1
jmp 0x418ce0
mov dword [ebp - 0x5cc], 0
mov ecx, dword [ebp - 0x5cc]
call fcn.0043316f
push edx
mov ecx, ebp
push eax
lea edx, [0x418d18]
call fcn.0043236d
pop eax
pop edx
mov ecx, dword [ebp - 4]
call fcn.00432663
pop edi
pop esi
pop ebx
add esp, 0x5cc
cmp ebp, esp
call fcn.0043234a
mov esp, ebp
pop ebp
ret