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

Disassembly:
sub esp, 0x430
mov eax, dword [0x64aa84]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x43c], eax
mov edi, ecx
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4deb22
mov eax, dword [edi + 0x48]
test eax, eax
jne 0x4dedc4
mov eax, dword [esp + 0x10]
cmp eax, 7
jge 0x4dedc4
inc eax
mov dword [esp + 0x10], eax
mov ebx, 0x644a3c
mov dword [esp + 0x14], 2
xor esi, esi
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x40]
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
push ecx
call fcn.0057a44a
mov ebp, eax
xor edx, edx
add esp, 0xc
mov eax, esi
neg eax
mov dword [esp + 0x1c], edx
sbb eax, eax
mov dword [esp + 0x20], edx
and eax, 0x5000010
mov dword [esp + 0x24], edx
add eax, 0xfaffffef
push 0x76c
mov dword [esp + 0x2c], edx
mov word [esp + 0x20], 2
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [esp + 0x20]
push ecx
push 0
push ebp
lea edx, [esp + 0x4c]
mov word [esp + 0x2e], ax
mov eax, dword [edi + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
inc esi
cmp esi, 2
jl 0x4deb43
mov eax, dword [esp + 0x14]
add ebx, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x4deb41
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
push 1
mov dword [esp + 0x34], ecx
push edx
mov dword [esp + 0x3c], ecx
push eax
mov dword [esp + 0x44], ecx
mov word [esp + 0x38], 2
mov dword [esp + 0x24], 0x10
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ecx, dword [edi + 0xc]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0x18]
push edx
mov edx, dword [edi + 0x10]
lea eax, [esp + 0x30]
push eax
push 0
push 0x3ff
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x4dec65
mov ecx, dword [esp + 0x30]
cmp ecx, dword [edi + 0x478]
je 0x4deca2
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
lea edx, [ebx + 0x384]
cmp eax, edx
jae 0x4deb10
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4debd2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi + 8]
lea eax, [edi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x4dedab
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
add ebx, 0x384
cmp eax, ebx
jae 0x4deb10
dec dword [esp + 0x10]
jmp 0x4deb10
mov byte [esp + eax + 0x3c], 0
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4decbe
push eax
call fcn.005abee6
add esp, 4
mov dword [edi + 0x44], 0
lea edx, [esp + 0x3c]
push str.LOCATION:
push edx
call fcn.0051ee60
mov esi, eax
add esp, 8
test esi, esi
je 0x4ded1e
mov al, byte [esi + 9]
add esi, 9
cmp al, 0x20
jne 0x4dece8
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4dece0
push 0x5eb6c0
push esi
call fcn.0051ee60
add esp, 8
test eax, eax
je 0x4ded1e
sub eax, esi
mov ebx, eax
je 0x4ded1e
lea eax, [ebx + 1]
push eax
call fcn.005abeeb
push ebx
push esi
push eax
mov dword [edi + 0x44], eax
call fcn.0057c5e0
mov ecx, dword [edi + 0x44]
add esp, 0x10
mov byte [ebx + ecx], 0
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4ded35
push eax
call fcn.005abee6
add esp, 4
mov dword [edi + 0x48], 0
lea edx, [esp + 0x3c]
push 0x5fc3c0
push edx
call fcn.0051ee60
mov esi, eax
add esp, 8
test esi, esi
je 0x4deb10
mov al, byte [esi + 3]
add esi, 3
cmp al, 0x20
jne 0x4ded68
jmp 0x4ded60
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4ded60
push 0x5eb6c0
push esi
call fcn.0051ee60
add esp, 8
test eax, eax
je 0x4deb10
sub eax, esi
mov ebx, eax
je 0x4deb10
lea eax, [ebx + 1]
push eax
call fcn.005abeeb
push ebx
push esi
push eax
mov dword [edi + 0x48], eax
call fcn.0057c5e0
mov ecx, dword [edi + 0x48]
add esp, 0x10
mov byte [ebx + ecx], 0
jmp 0x4deb10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x42c]
call fcn.0057981f
add esp, 0x430
ret
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4dedee
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4dedee
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x42c]
call fcn.0057981f
add esp, 0x430
ret
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.0057981f
add esp, 0x430
ret