Function at 0x1000af30
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 0x1000af77
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 0x1000afba
cmp dword [ebp + 0x1c], 0
je 0x1000afad
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffff9b
xor eax, eax
je 0x1000afb3
jmp 0x1000afad
xor eax, eax
jmp 0x1000b7aa
push 0x80
push 0
lea ecx, [ebp - 0x6c8]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x1000b039
lea edx, [ebp - 0x6c8]
mov dword [ebp - 0x710], edx
mov eax, 0x17
mov ecx, dword [ebp - 0x710]
mov word [ecx], ax
cmp dword [ebp + 0x14], 0
je 0x1000b00b
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x710]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x710]
add eax, 8
mov ecx, dword [0x100301bc]
mov dword [eax], ecx
mov edx, dword [0x100301c0]
mov dword [eax + 4], edx
mov ecx, dword [0x100301c4]
mov dword [eax + 8], ecx
mov edx, dword [0x100301c8]
mov dword [eax + 0xc], edx
jmp 0x1000b07b
lea eax, [ebp - 0x6c8]
mov dword [ebp - 0x714], eax
mov ecx, 2
mov edx, dword [ebp - 0x714]
mov word [edx], cx
cmp dword [ebp + 0x14], 0
je 0x1000b06e
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x714]
mov word [ecx + 2], ax
mov edx, dword [ebp - 0x714]
mov dword [edx + 4], 0
cmp dword [ebp + 0x18], 0
jne 0x1000b202
lea eax, [ebp - 0x3c]
push eax
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 0x1000b202
mov dword [ebp - 0x724], 0
mov dword [ebp - 0x718], 0
push 0x1c
call fcn.10013960
add esp, 4
mov dword [ebp - 0x71c], eax
push 0
lea ecx, [ebp - 0x718]
push ecx
mov edx, dword [ebp - 0x71c]
push edx
call sub.IPHLPAPI.DLL_GetIpAddrTable
cmp eax, 0x7a
jne 0x1000b108
push 0
lea eax, [ebp - 0x71c]
push eax
call fcn.10013990
add esp, 8
mov ecx, dword [ebp - 0x718]
push ecx
call fcn.10013960
add esp, 4
mov dword [ebp - 0x71c], eax
cmp dword [ebp - 0x71c], 0
je 0x1000b202
push 0
lea edx, [ebp - 0x718]
push edx
mov eax, dword [ebp - 0x71c]
push eax
call sub.IPHLPAPI.DLL_GetIpAddrTable
mov dword [ebp - 0x724], eax
mov dword [ebp - 0x720], 0
jmp 0x1000b14b
mov ecx, dword [ebp - 0x720]
add ecx, 1
mov dword [ebp - 0x720], ecx
mov edx, dword [ebp - 0x71c]
mov eax, dword [ebp - 0x720]
cmp eax, dword [edx]
jge 0x1000b1e7
mov ecx, dword [ebp - 0x720]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x71c]
mov eax, dword [edx + ecx + 8]
cmp eax, dword [ebp - 0x2c]
jne 0x1000b1e2
push 4
push 0
lea ecx, [ebp - 0x728]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x720]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x71c]
mov ecx, dword [eax + edx + 4]
mov dword [ebp - 0x728], ecx
push 4
lea edx, [ebp - 0x728]
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 0x1000b1c7
xor ecx, ecx
je 0x1000b1c7
jmp 0x1000b1c1
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 0x1000b1e7
jmp 0x1000b13c
push 0
lea edx, [ebp - 0x71c]
push edx
call fcn.10013990
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 0x1000b23f
cmp dword [ebp + 0x1c], 0
je 0x1000b232
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffff9b
xor eax, eax
je 0x1000b238
jmp 0x1000b232
xor eax, eax
jmp 0x1000b7aa
cmp dword [ebp + 0xc], 0
je 0x1000b296
cmp dword [ebp + 0x18], 0
je 0x1000b24d
jmp 0x1000b296
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x72c], eax
cmp dword [ebp - 0x72c], 0xffffffff
je 0x1000b296
mov edx, dword [ebp - 0x72c]
mov dword [ebp - 0x6c4], edx
push 4
lea eax, [ebp - 0x72c]
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 0x1000b296
xor edx, edx
je 0x1000b296
jmp 0x1000b290
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0xc
add eax, 0x10
push eax
lea ecx, [ebp - 0x6c8]
push ecx
mov edx, dword [ebp - 0x6d4]
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1000b2e5
cmp dword [ebp + 0x1c], 0
je 0x1000b2cb
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffff9b
xor ecx, ecx
je 0x1000b2d1
jmp 0x1000b2cb
mov edx, dword [ebp - 0x6d4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000b7aa
cmp dword [ebp + 0x1c], 0
je 0x1000b2f4
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 0x1000b31e
mov edx, dword [ebp - 0x708]
add edx, 1
mov dword [ebp - 0x708], edx
mov eax, dword [ebp - 0x708]
cmp dword [eax*4 + 0x1002a740], 0
je 0x1000b797
cmp dword [ebp - 0x44], 0
jne 0x1000b4d4
cmp dword [ebp + 0x18], 0
je 0x1000b36c
cmp dword [ebp - 4], 0
je 0x1000b354
mov dword [ebp - 0x740], str._FF02::C_
jmp 0x1000b35e
mov dword [ebp - 0x740], str._FF05::C_
mov ecx, dword [ebp - 0x740]
mov dword [ebp - 0x744], ecx
jmp 0x1000b376
mov dword [ebp - 0x744], 0x10035644
mov edx, dword [ebp - 0x6dc]
push edx
mov eax, dword [ebp - 0x708]
mov ecx, dword [eax*4 + 0x1002a740]
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.10013c30
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 0x1000b405
cmp dword [ebp - 4], 0
je 0x1000b3ed
mov dword [ebp - 0x748], str.FF02::C
jmp 0x1000b3f7
mov dword [ebp - 0x748], str.FF05::C
mov edx, dword [ebp - 0x748]
mov dword [ebp - 0x74c], edx
jmp 0x1000b40f
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 0x1000b458
cmp dword [ebp + 0x1c], 0
je 0x1000b44d
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffff9b
xor ecx, ecx
je 0x1000b453
jmp 0x1000b44d
jmp 0x1000b797
mov edx, dword [ebp - 0x6d8]
mov dword [ebp - 0x40], edx
jmp 0x1000b46c
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x1000b4ad
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 0x1000b4ab
xor eax, eax
je 0x1000b4a9
jmp 0x1000b4a3
jmp 0x1000b463
jmp 0x1000b463
mov ecx, dword [ebp - 0x6d8]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0x44], 0
jge 0x1000b4d4
cmp dword [ebp + 0x1c], 0
je 0x1000b4cf
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffff9b
jmp 0x1000b797
lea eax, [ebp - 0x70c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x600
lea edx, [ebp - 0x648]
push edx
mov eax, dword [ebp - 0x6d4]
push eax
call fcn.1000e590
add esp, 0x14
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jge 0x1000b51c
cmp dword [ebp + 0x1c], 0
je 0x1000b512
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xffffff9b
jmp 0x1000b797
cmp dword [ebp - 0x44], 0
jne 0x1000b56f
cmp dword [ebp - 0x6e0], 0
je 0x1000b53f
cmp dword [ebp + 0x1c], 0
je 0x1000b53a
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0
jmp 0x1000b797
cmp dword [ebp + 0x18], 0
je 0x1000b56a
cmp dword [ebp - 4], 0
je 0x1000b563
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x708]
sub eax, 1
mov dword [ebp - 0x708], eax
jmp 0x1000b56a
mov dword [ebp - 4], 1
jmp 0x1000b792
mov dword [ebp - 0x73c], 0
mov dword [ebp - 0x734], 0
mov dword [ebp - 0x730], 0
mov dword [ebp - 0x738], 0
lea ecx, [ebp - 0x738]
push ecx
lea edx, [ebp - 0x730]
push edx
lea eax, [ebp - 0x734]
push eax
lea ecx, [ebp - 0x73c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x648]
push eax
call fcn.1000b7b0
add esp, 0x18
cmp dword [ebp - 0x730], 0
je 0x1000b792
cmp dword [ebp - 0x73c], 0
je 0x1000b792
mov ecx, dword [ebp - 0x6e0]
mov dword [ebp - 0x6d0], ecx
jmp 0x1000b5fc
mov edx, dword [ebp - 0x6d0]
mov eax, dword [edx]
mov dword [ebp - 0x6d0], eax
cmp dword [ebp - 0x6d0], 0
je 0x1000b682
mov ecx, dword [ebp - 0x734]
push ecx
mov edx, dword [ebp - 0x73c]
push edx
mov eax, dword [ebp - 0x6d0]
mov ecx, dword [eax + 4]
push ecx
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1000b67d
mov edx, dword [ebp - 0x6d0]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x734]
movsx edx, byte [eax + ecx]
test edx, edx
jne 0x1000b67d
mov eax, dword [ebp - 0x738]
push eax
mov ecx, dword [ebp - 0x730]
push ecx
mov edx, dword [ebp - 0x6d0]
mov eax, dword [edx + 8]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x1000b67d
mov ecx, dword [ebp - 0x6d0]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x738]
movsx ecx, byte [edx + eax]
test ecx, ecx
jne 0x1000b67d
jmp 0x1000b682
jmp 0x1000b5ee
cmp dword [ebp - 0x6d0], 0
je 0x1000b690
jmp 0x1000b30f
mov edx, dword [ebp - 0x738]
mov eax, dword [ebp - 0x734]
lea ecx, [eax + edx + 0x14]
push ecx
call fcn.10013960
add esp, 4
mov dword [ebp - 0x6d0], eax
cmp dword [ebp - 0x6d0], 0
jne 0x1000b6cc
cmp dword [ebp + 0x1c], 0
je 0x1000b6c7
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffff9a
jmp 0x1000b797
mov eax, dword [ebp - 0x6d0]
mov ecx, dword [ebp - 0x6e0]
mov dword [eax], ecx
mov edx, dword [ebp - 0x6d0]
add edx, 0x10
mov eax, dword [ebp - 0x6d0]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x734]
mov edx, dword [ebp - 0x6d0]
lea eax, [edx + ecx + 0x11]
mov ecx, dword [ebp - 0x6d0]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x734]
push edx
mov eax, dword [ebp - 0x73c]
push eax
mov ecx, dword [ebp - 0x6d0]
add ecx, 0x10
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x6d0]
add edx, dword [ebp - 0x734]
mov byte [edx + 0x10], 0
mov eax, dword [ebp - 0x738]
push eax
mov ecx, dword [ebp - 0x730]
push ecx
mov edx, dword [ebp - 0x734]
mov eax, dword [ebp - 0x6d0]
lea ecx, [eax + edx + 0x11]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x738]
mov eax, dword [ebp - 0x734]
lea ecx, [eax + edx + 1]
mov edx, dword [ebp - 0x6d0]
mov byte [edx + ecx + 0x10], 0
mov eax, dword [ebp - 0x6d0]
mov ecx, dword [ebp - 0x70c]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x6d0]
mov dword [ebp - 0x6e0], edx
jmp 0x1000b30f
mov eax, dword [ebp - 0x6d4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x6e0]
mov esp, ebp
pop ebp
ret