Function at 0x1000f0b0
Capabilities:
Create udp socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74c
mov dword [ebp - 0x6e0], 0
mov dword [ebp - 0x70c], 0
mov dword [ebp - 0x6cc], 1
mov dword [ebp - 0x708], 0
mov dword [ebp - 4], 1
cmp dword [ebp + 0x1c], 0
je 0x1000f0f7
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffffff
push 0x11
push 2
mov ecx, dword [ebp + 0x18]
neg ecx
sbb ecx, ecx
and ecx, 0x15
add ecx, 2
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x6d4], eax
cmp dword [ebp - 0x6d4], 0
jge 0x1000f154
cmp dword [ebp + 0x1c], 0
je 0x1000f12d
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffff9b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1004c624
push 0x1004c62c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
add esp, 0x10
xor eax, eax
jmp 0x1000f9d6
push 0x80
push 0
lea eax, [ebp - 0x6c8]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x1000f1d1
lea ecx, [ebp - 0x6c8]
mov dword [ebp - 0x710], ecx
mov edx, 0x17
mov eax, dword [ebp - 0x710]
mov word [eax], dx
cmp dword [ebp + 0x14], 0
je 0x1000f1a5
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x710]
mov word [ecx + 2], ax
mov edx, dword [ebp - 0x710]
add edx, 8
mov eax, dword [0x1004701c]
mov dword [edx], eax
mov ecx, dword [0x10047020]
mov dword [edx + 4], ecx
mov eax, dword [0x10047024]
mov dword [edx + 8], eax
mov ecx, dword [0x10047028]
mov dword [edx + 0xc], ecx
jmp 0x1000f213
lea edx, [ebp - 0x6c8]
mov dword [ebp - 0x714], edx
mov eax, 2
mov ecx, dword [ebp - 0x714]
mov word [ecx], ax
cmp dword [ebp + 0x14], 0
je 0x1000f206
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x714]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x714]
mov dword [eax + 4], 0
cmp dword [ebp + 0x18], 0
jne 0x1000f3b8
lea ecx, [ebp - 0x3c]
push ecx
push 0
push str.223.255.255.255
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call sub.IPHLPAPI.DLL_GetBestRoute
test eax, eax
jne 0x1000f3b8
mov dword [ebp - 0x724], 0
mov dword [ebp - 0x718], 0
push 0x1c
call fcn.10019ae0
add esp, 4
mov dword [ebp - 0x71c], eax
push 0
lea edx, [ebp - 0x718]
push edx
mov eax, dword [ebp - 0x71c]
push eax
call sub.IPHLPAPI.DLL_GetIpAddrTable
cmp eax, 0x7a
jne 0x1000f2a0
push 0
lea ecx, [ebp - 0x71c]
push ecx
call fcn.10019b10
add esp, 8
mov edx, dword [ebp - 0x718]
push edx
call fcn.10019ae0
add esp, 4
mov dword [ebp - 0x71c], eax
cmp dword [ebp - 0x71c], 0
je 0x1000f3b8
push 0
lea eax, [ebp - 0x718]
push eax
mov ecx, dword [ebp - 0x71c]
push ecx
call sub.IPHLPAPI.DLL_GetIpAddrTable
mov dword [ebp - 0x724], eax
mov dword [ebp - 0x720], 0
jmp 0x1000f2e3
mov edx, dword [ebp - 0x720]
add edx, 1
mov dword [ebp - 0x720], edx
mov eax, dword [ebp - 0x71c]
mov ecx, dword [ebp - 0x720]
cmp ecx, dword [eax]
jge 0x1000f39d
mov edx, dword [ebp - 0x720]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x71c]
mov ecx, dword [eax + edx + 8]
cmp ecx, dword [ebp - 0x2c]
jne 0x1000f398
push 4
push 0
lea edx, [ebp - 0x728]
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x720]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x71c]
mov edx, dword [ecx + eax + 4]
mov dword [ebp - 0x728], edx
push 4
lea eax, [ebp - 0x728]
push eax
push 9
push 0
mov ecx, dword [ebp - 0x6d4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1000f37d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1004c65c
push 0x1004c668
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
add esp, 0x10
mov edx, dword [ebp - 0x720]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x71c]
mov ecx, dword [eax + edx + 4]
mov dword [ebp - 0x6c4], ecx
jmp 0x1000f39d
jmp 0x1000f2d4
push 0
lea edx, [ebp - 0x71c]
push edx
call fcn.10019b10
add esp, 8
mov dword [ebp - 0x71c], 0
push 4
lea eax, [ebp - 0x6cc]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 0x6d4]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1000f40f
cmp dword [ebp + 0x1c], 0
je 0x1000f3e8
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffff9b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x1004c688
push 0x1004c694
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
add esp, 0x10
xor eax, eax
jmp 0x1000f9d6
cmp dword [ebp + 0xc], 0
je 0x1000f480
cmp dword [ebp + 0x18], 0
je 0x1000f41d
jmp 0x1000f480
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x72c], eax
cmp dword [ebp - 0x72c], 0xffffffff
je 0x1000f480
mov ecx, dword [ebp - 0x72c]
mov dword [ebp - 0x6c4], ecx
push 4
lea edx, [ebp - 0x72c]
push edx
push 9
push 0
mov eax, dword [ebp - 0x6d4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1000f480
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt
push 0x1004c6c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
add esp, 0x10
mov ecx, dword [ebp + 0x18]
neg ecx
sbb ecx, ecx
and ecx, 0xc
add ecx, 0x10
push ecx
lea edx, [ebp - 0x6c8]
push edx
mov eax, dword [ebp - 0x6d4]
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1000f4e9
cmp dword [ebp + 0x1c], 0
je 0x1000f4b5
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xffffff9b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind
push 0x1004c6e8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
add esp, 0x10
mov edx, dword [ebp - 0x6d4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000f9d6
cmp dword [ebp + 0x1c], 0
je 0x1000f4f8
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x6dc], eax
mov dword [ebp - 0x44], 0
jmp 0x1000f522
mov edx, dword [ebp - 0x708]
add edx, 1
mov dword [ebp - 0x708], edx
mov eax, dword [ebp - 0x708]
cmp dword [eax*4 + 0x1003b2a8], 0
je 0x1000f9c3
cmp dword [ebp - 0x44], 0
jne 0x1000f700
cmp dword [ebp + 0x18], 0
je 0x1000f570
cmp dword [ebp - 4], 0
je 0x1000f558
mov dword [ebp - 0x740], str._FF02::C_
jmp 0x1000f562
mov dword [ebp - 0x740], str._FF05::C_
mov ecx, dword [ebp - 0x740]
mov dword [ebp - 0x744], ecx
jmp 0x1000f57a
mov dword [ebp - 0x744], 0x1004c720
mov edx, dword [ebp - 0x6dc]
push edx
mov eax, dword [ebp - 0x708]
mov ecx, dword [eax*4 + 0x1003b2a8]
push ecx
mov edx, dword [ebp - 0x744]
push edx
push str.M_SEARCH__HTTP_1.1_r_nHOST:__s:1900_r_nST:__s_r_nMAN:__ssdp:discover__r_nMX:__u_r_n_r_n
push 0x600
lea eax, [ebp - 0x648]
push eax
call fcn.10019db0
add esp, 0x18
mov dword [ebp - 0x44], eax
push 0x20
push 0
lea ecx, [ebp - 0x704]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x700], 0
mov dword [ebp - 0x6fc], 2
cmp dword [ebp + 0x18], 0
je 0x1000f609
cmp dword [ebp - 4], 0
je 0x1000f5f1
mov dword [ebp - 0x748], str.FF02::C
jmp 0x1000f5fb
mov dword [ebp - 0x748], str.FF05::C
mov edx, dword [ebp - 0x748]
mov dword [ebp - 0x74c], edx
jmp 0x1000f613
mov dword [ebp - 0x74c], str.239.255.255.250
lea eax, [ebp - 0x6d8]
push eax
lea ecx, [ebp - 0x704]
push ecx
push str.1900
mov edx, dword [ebp - 0x74c]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x6e4], eax
cmp dword [ebp - 0x6e4], 0
je 0x1000f66a
cmp dword [ebp + 0x1c], 0
je 0x1000f651
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffff9b
push str.getaddrinfo___failed
mov ecx, dword [ebp - 0x6e4]
push ecx
call main
add esp, 8
jmp 0x1000f9c3
mov edx, dword [ebp - 0x6d8]
mov dword [ebp - 0x40], edx
jmp 0x1000f67e
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x1000f6d9
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x18]
push edx
push 0
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x648]
push ecx
mov edx, dword [ebp - 0x6d4]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jge 0x1000f6d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sendto
push 0x1004c778
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call main
add esp, 0x10
jmp 0x1000f675
jmp 0x1000f675
mov eax, dword [ebp - 0x6d8]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0x44], 0
jge 0x1000f700
cmp dword [ebp + 0x1c], 0
je 0x1000f6fb
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xffffff9b
jmp 0x1000f9c3
lea edx, [ebp - 0x70c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x600
lea ecx, [ebp - 0x648]
push ecx
mov edx, dword [ebp - 0x6d4]
push edx
call fcn.10012b80
add esp, 0x14
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jge 0x1000f748
cmp dword [ebp + 0x1c], 0
je 0x1000f73e
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffff9b
jmp 0x1000f9c3
cmp dword [ebp - 0x44], 0
jne 0x1000f79b
cmp dword [ebp - 0x6e0], 0
je 0x1000f76b
cmp dword [ebp + 0x1c], 0
je 0x1000f766
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0
jmp 0x1000f9c3
cmp dword [ebp + 0x18], 0
je 0x1000f796
cmp dword [ebp - 4], 0
je 0x1000f78f
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x708]
sub edx, 1
mov dword [ebp - 0x708], edx
jmp 0x1000f796
mov dword [ebp - 4], 1
jmp 0x1000f9be
mov dword [ebp - 0x73c], 0
mov dword [ebp - 0x734], 0
mov dword [ebp - 0x730], 0
mov dword [ebp - 0x738], 0
lea eax, [ebp - 0x738]
push eax
lea ecx, [ebp - 0x730]
push ecx
lea edx, [ebp - 0x734]
push edx
lea eax, [ebp - 0x73c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
lea edx, [ebp - 0x648]
push edx
call fcn.1000f9e0
add esp, 0x18
cmp dword [ebp - 0x730], 0
je 0x1000f9be
cmp dword [ebp - 0x73c], 0
je 0x1000f9be
mov eax, dword [ebp - 0x6e0]
mov dword [ebp - 0x6d0], eax
jmp 0x1000f828
mov ecx, dword [ebp - 0x6d0]
mov edx, dword [ecx]
mov dword [ebp - 0x6d0], edx
cmp dword [ebp - 0x6d0], 0
je 0x1000f8ae
mov eax, dword [ebp - 0x734]
push eax
mov ecx, dword [ebp - 0x73c]
push ecx
mov edx, dword [ebp - 0x6d0]
mov eax, dword [edx + 4]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1000f8a9
mov ecx, dword [ebp - 0x6d0]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x734]
movsx ecx, byte [edx + eax]
test ecx, ecx
jne 0x1000f8a9
mov edx, dword [ebp - 0x738]
push edx
mov eax, dword [ebp - 0x730]
push eax
mov ecx, dword [ebp - 0x6d0]
mov edx, dword [ecx + 8]
push edx
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1000f8a9
mov eax, dword [ebp - 0x6d0]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x738]
movsx eax, byte [ecx + edx]
test eax, eax
jne 0x1000f8a9
jmp 0x1000f8ae
jmp 0x1000f81a
cmp dword [ebp - 0x6d0], 0
je 0x1000f8bc
jmp 0x1000f513
mov ecx, dword [ebp - 0x738]
mov edx, dword [ebp - 0x734]
lea eax, [edx + ecx + 0x14]
push eax
call fcn.10019ae0
add esp, 4
mov dword [ebp - 0x6d0], eax
cmp dword [ebp - 0x6d0], 0
jne 0x1000f8f8
cmp dword [ebp + 0x1c], 0
je 0x1000f8f3
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xffffff9a
jmp 0x1000f9c3
mov edx, dword [ebp - 0x6d0]
mov eax, dword [ebp - 0x6e0]
mov dword [edx], eax
mov ecx, dword [ebp - 0x6d0]
add ecx, 0x10
mov edx, dword [ebp - 0x6d0]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x734]
mov ecx, dword [ebp - 0x6d0]
lea edx, [ecx + eax + 0x11]
mov eax, dword [ebp - 0x6d0]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x734]
push ecx
mov edx, dword [ebp - 0x73c]
push edx
mov eax, dword [ebp - 0x6d0]
add eax, 0x10
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x6d0]
add ecx, dword [ebp - 0x734]
mov byte [ecx + 0x10], 0
mov edx, dword [ebp - 0x738]
push edx
mov eax, dword [ebp - 0x730]
push eax
mov ecx, dword [ebp - 0x734]
mov edx, dword [ebp - 0x6d0]
lea eax, [edx + ecx + 0x11]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x738]
mov edx, dword [ebp - 0x734]
lea eax, [edx + ecx + 1]
mov ecx, dword [ebp - 0x6d0]
mov byte [ecx + eax + 0x10], 0
mov edx, dword [ebp - 0x6d0]
mov eax, dword [ebp - 0x70c]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x6d0]
mov dword [ebp - 0x6e0], ecx
jmp 0x1000f513
mov edx, dword [ebp - 0x6d4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x6e0]
mov esp, ebp
pop ebp
ret