Function at 0x1000b890
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 0x1000b8d7
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 0x1000b91a
cmp dword [ebp + 0x1c], 0
je 0x1000b90d
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffff9b
xor eax, eax
je 0x1000b913
jmp 0x1000b90d
xor eax, eax
jmp 0x1000c10a
push 0x80
push 0
lea ecx, [ebp - 0x6c8]
push ecx
call fcn.10014780
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x1000b999
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 0x1000b96b
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 [0x10023a34]
mov dword [eax], ecx
mov edx, dword [0x10023a38]
mov dword [eax + 4], edx
mov ecx, dword [0x10023a3c]
mov dword [eax + 8], ecx
mov edx, dword [0x10023a40]
mov dword [eax + 0xc], edx
jmp 0x1000b9db
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 0x1000b9ce
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 0x1000bb62
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 0x1000bb62
mov dword [ebp - 0x724], 0
mov dword [ebp - 0x718], 0
push 0x1c
call fcn.10014580
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 0x1000ba68
push 0
lea eax, [ebp - 0x71c]
push eax
call fcn.100145b0
add esp, 8
mov ecx, dword [ebp - 0x718]
push ecx
call fcn.10014580
add esp, 4
mov dword [ebp - 0x71c], eax
cmp dword [ebp - 0x71c], 0
je 0x1000bb62
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 0x1000baab
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 0x1000bb47
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 0x1000bb42
push 4
push 0
lea ecx, [ebp - 0x728]
push ecx
call fcn.10014780
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 0x1000bb27
xor ecx, ecx
je 0x1000bb27
jmp 0x1000bb21
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 0x1000bb47
jmp 0x1000ba9c
push 0
lea edx, [ebp - 0x71c]
push edx
call fcn.100145b0
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 0x1000bb9f
cmp dword [ebp + 0x1c], 0
je 0x1000bb92
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffff9b
xor eax, eax
je 0x1000bb98
jmp 0x1000bb92
xor eax, eax
jmp 0x1000c10a
cmp dword [ebp + 0xc], 0
je 0x1000bbf6
cmp dword [ebp + 0x18], 0
je 0x1000bbad
jmp 0x1000bbf6
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 0x1000bbf6
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 0x1000bbf6
xor edx, edx
je 0x1000bbf6
jmp 0x1000bbf0
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 0x1000bc45
cmp dword [ebp + 0x1c], 0
je 0x1000bc2b
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffff9b
xor ecx, ecx
je 0x1000bc31
jmp 0x1000bc2b
mov edx, dword [ebp - 0x6d4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000c10a
cmp dword [ebp + 0x1c], 0
je 0x1000bc54
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 0x1000bc7e
mov edx, dword [ebp - 0x708]
add edx, 1
mov dword [ebp - 0x708], edx
mov eax, dword [ebp - 0x708]
cmp dword [eax*4 + 0x1001d670], 0
je 0x1000c0f7
cmp dword [ebp - 0x44], 0
jne 0x1000be34
cmp dword [ebp + 0x18], 0
je 0x1000bccc
cmp dword [ebp - 4], 0
je 0x1000bcb4
mov dword [ebp - 0x740], str._FF02::C_
jmp 0x1000bcbe
mov dword [ebp - 0x740], str._FF05::C_
mov ecx, dword [ebp - 0x740]
mov dword [ebp - 0x744], ecx
jmp 0x1000bcd6
mov dword [ebp - 0x744], 0x1002567c
mov edx, dword [ebp - 0x6dc]
push edx
mov eax, dword [ebp - 0x708]
mov ecx, dword [eax*4 + 0x1001d670]
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.100147fe
add esp, 0x18
mov dword [ebp - 0x44], eax
push 0x20
push 0
lea ecx, [ebp - 0x704]
push ecx
call fcn.10014780
add esp, 0xc
mov dword [ebp - 0x700], 0
mov dword [ebp - 0x6fc], 2
cmp dword [ebp + 0x18], 0
je 0x1000bd65
cmp dword [ebp - 4], 0
je 0x1000bd4d
mov dword [ebp - 0x748], str.FF02::C
jmp 0x1000bd57
mov dword [ebp - 0x748], str.FF05::C
mov edx, dword [ebp - 0x748]
mov dword [ebp - 0x74c], edx
jmp 0x1000bd6f
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 0x1000bdb8
cmp dword [ebp + 0x1c], 0
je 0x1000bdad
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0xffffff9b
xor ecx, ecx
je 0x1000bdb3
jmp 0x1000bdad
jmp 0x1000c0f7
mov edx, dword [ebp - 0x6d8]
mov dword [ebp - 0x40], edx
jmp 0x1000bdcc
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x1000be0d
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 0x1000be0b
xor eax, eax
je 0x1000be09
jmp 0x1000be03
jmp 0x1000bdc3
jmp 0x1000bdc3
mov ecx, dword [ebp - 0x6d8]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0x44], 0
jge 0x1000be34
cmp dword [ebp + 0x1c], 0
je 0x1000be2f
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffff9b
jmp 0x1000c0f7
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.1000eef0
add esp, 0x14
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jge 0x1000be7c
cmp dword [ebp + 0x1c], 0
je 0x1000be72
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0xffffff9b
jmp 0x1000c0f7
cmp dword [ebp - 0x44], 0
jne 0x1000becf
cmp dword [ebp - 0x6e0], 0
je 0x1000be9f
cmp dword [ebp + 0x1c], 0
je 0x1000be9a
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0
jmp 0x1000c0f7
cmp dword [ebp + 0x18], 0
je 0x1000beca
cmp dword [ebp - 4], 0
je 0x1000bec3
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x708]
sub eax, 1
mov dword [ebp - 0x708], eax
jmp 0x1000beca
mov dword [ebp - 4], 1
jmp 0x1000c0f2
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.1000c110
add esp, 0x18
cmp dword [ebp - 0x730], 0
je 0x1000c0f2
cmp dword [ebp - 0x73c], 0
je 0x1000c0f2
mov ecx, dword [ebp - 0x6e0]
mov dword [ebp - 0x6d0], ecx
jmp 0x1000bf5c
mov edx, dword [ebp - 0x6d0]
mov eax, dword [edx]
mov dword [ebp - 0x6d0], eax
cmp dword [ebp - 0x6d0], 0
je 0x1000bfe2
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 fcn.100142d0
add esp, 0xc
test eax, eax
jne 0x1000bfdd
mov edx, dword [ebp - 0x6d0]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x734]
movsx edx, byte [eax + ecx]
test edx, edx
jne 0x1000bfdd
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 fcn.100142d0
add esp, 0xc
test eax, eax
jne 0x1000bfdd
mov ecx, dword [ebp - 0x6d0]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x738]
movsx ecx, byte [edx + eax]
test ecx, ecx
jne 0x1000bfdd
jmp 0x1000bfe2
jmp 0x1000bf4e
cmp dword [ebp - 0x6d0], 0
je 0x1000bff0
jmp 0x1000bc6f
mov edx, dword [ebp - 0x738]
mov eax, dword [ebp - 0x734]
lea ecx, [eax + edx + 0x14]
push ecx
call fcn.10014580
add esp, 4
mov dword [ebp - 0x6d0], eax
cmp dword [ebp - 0x6d0], 0
jne 0x1000c02c
cmp dword [ebp + 0x1c], 0
je 0x1000c027
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0xffffff9a
jmp 0x1000c0f7
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 fcn.10014290
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 fcn.10014290
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 0x1000bc6f
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