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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x670]
sub rsp, 0x770
mov r15, qword [rbp + 0x6c8]
xor eax, eax
mov qword [rsp + 0x60], rax
mov r13d, 1
mov dword [rsp + 0x50], eax
mov ebx, r9d
mov dword [rsp + 0x68], 1
mov rsi, rdx
mov dword [rsp + 0x34], r13d
mov r14d, ecx
test r15, r15
je 0x1401b4ce1
mov dword [r15], 0xffffffff
mov edi, dword [rbp + 0x6c0]
mov edx, 2
mov ecx, edx
mov eax, reloc.WS2_32.dll_socket
test edi, edi
lea r8d, [rdx + 0xf]
cmovne ecx, eax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x78], rax
mov r12, rax
test eax, eax
jns 0x1401b4d3d
test r15, r15
je 0x1401b4d1a
mov dword [r15], 0xffffff9b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.socket
lea rcx, str.Socket_error:__s___d_n
call fcn.140033630
xor eax, eax
jmp 0x1401b5424
xor edx, edx
lea rcx, [rbp - 0x4e]
lea r8d, [rdx + 0x7e]
call fcn.140187fa0
test edi, edi
je 0x1401b4d7c
mov eax, reloc.WS2_32.dll_socket
mov word [rbp - 0x50], ax
test ebx, ebx
je 0x1401b4d6c
mov ecx, 0x76c
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x4e], ax
movups xmm0, xmmword [0x1402216b8]
movups xmmword [rbp - 0x48], xmm0
jmp 0x1401b4e9c
mov eax, 2
mov word [rbp - 0x50], ax
test ebx, ebx
je 0x1401b4d98
mov ecx, 0x76c
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x4e], ax
xor ebx, ebx
lea rcx, str.223.255.255.255
mov dword [rbp - 0x4c], ebx
call qword [sym.imp.WS2_32.dll_inet_addr]
lea r8, [rbp + 0x30]
xor edx, edx
mov ecx, eax
call sub.IPHLPAPI.DLL_GetBestRoute
test eax, eax
jne 0x1401b4e9c
lea ecx, [rbx + 0x1c]
mov dword [rsp + 0x30], ebx
call fcn.140192a24
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rbx, rax
call sub.IPHLPAPI.DLL_GetIpAddrTable
cmp eax, 0x7a
jne 0x1401b4df7
mov rcx, rbx
call fcn.14018aac4
mov ecx, dword [rsp + 0x30]
call fcn.140192a24
mov rbx, rax
test rbx, rbx
je 0x1401b4e9c
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.IPHLPAPI.DLL_GetIpAddrTable
movsxd r8, dword [rbx]
xor edx, edx
test r8, r8
jle 0x1401b4e94
mov r9d, dword [rbp + 0x40]
lea rax, [rbx + 8]
xor ecx, ecx
cmp dword [rax], r9d
je 0x1401b4e39
inc edx
inc rcx
add rax, 0x18
cmp rcx, r8
jl 0x1401b4e24
jmp 0x1401b4e94
movsxd rax, edx
lea r9, [rsp + 0x38]
xor edx, edx
mov dword [rsp + 0x20], 4
lea rcx, [rax + rax*2]
mov eax, dword [rbx + rcx*8 + 4]
lea rdi, [rbx + rcx*8]
mov dword [rsp + 0x38], eax
movsxd rcx, r12d
lea r8d, [rdx + 9]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1401b4e88
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.setsockopt
lea rcx, str.Socket_error:__s___d_n
call fcn.140033630
mov eax, dword [rdi + 4]
mov edi, dword [rbp + 0x6c0]
mov dword [rbp - 0x4c], eax
mov rcx, rbx
call fcn.14018aac4
movsxd r12, r12d
lea r9, [rsp + 0x68]
mov rcx, r12
mov qword [rsp + 0x48], r12
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1401b4ef8
test r15, r15
je 0x1401b4ed5
mov dword [r15], 0xffffff9b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.setsockopt
lea rcx, str.Socket_error:__s___d_n
call fcn.140033630
xor eax, eax
jmp 0x1401b5424
test rsi, rsi
je 0x1401b4f52
test edi, edi
jne 0x1401b4f52
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x38], eax
cmp eax, 0xffffffff
je 0x1401b4f52
lea r9, [rsp + 0x38]
mov dword [rbp - 0x4c], eax
xor edx, edx
mov dword [rsp + 0x20], 4
lea r8d, [rdi + 9]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1401b4f52
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.setsockopt
lea rcx, str.Socket_error:__s___d_n
call fcn.140033630
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x50]
mov eax, 0x1c
test edi, edi
mov rcx, r12
cmovne r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1401b4fac
test r15, r15
je 0x1401b4f80
mov dword [r15], 0xffffff9b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.bind
lea rcx, str.Socket_error:__s___d_n
call fcn.140033630
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1401b5424
test r15, r15
je 0x1401b4fb8
mov dword [r15], 0
mov eax, 0x10624dd3
mov esi, 0x3e8
mul r14d
mov r15d, r13d
shr edx, 6
test edx, edx
mov eax, edx
cmove eax, r13d
cmovne esi, r14d
xor r9d, r9d
mov dword [rsp + 0x6c], eax
cmp qword [str.__f__], r9
mov dword [rsp + 0x30], esi
je 0x1401b5414
lea rbx, str.__f__
mov qword [rsp + 0x40], rbx
lea rcx, str._FF02::C_
test r9d, r9d
jne 0x1401b512f
test edi, edi
je 0x1401b501f
test r13d, r13d
lea r9, str._FF05::C_
cmovne r9, rcx
jmp 0x1401b5026
lea r9, str.239.255.255.250
mov dword [rsp + 0x28], eax
lea r8, str.M_SEARCH__HTTP_1.1_r_nHOST:__s:1900_r_nST:__s_r_nMAN:__ssdp:discover__r_nMX:__u_r_n_r_n
mov rax, qword [rbx]
lea rcx, [rbp + 0x70]
mov edx, 0x600
mov qword [rsp + 0x20], rax
call fcn.1401b48e0
mov edi, eax
mov r14d, 2
xor eax, eax
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x78], r14d
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
cmp dword [rbp + 0x6c0], eax
je 0x1401b508c
test r13d, r13d
lea rcx, str.FF05::C
lea rax, str.FF02::C
cmovne rcx, rax
jmp 0x1401b5093
lea rcx, str.239.255.255.250
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x80]
lea rdx, str.1900
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x1401b53a9
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1401b5113
nop dword [rax]
mov eax, dword [rbx + 0x10]
lea rdx, [rbp + 0x70]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov rax, qword [rbx + 0x20]
mov r8d, edi
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
test eax, eax
jns 0x1401b5105
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.sendto
lea rcx, str.Socket_error:__s___d_n
call fcn.140033630
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1401b50c0
mov rbx, qword [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
js 0x1401b5401
mov rbx, qword [rsp + 0x40]
mov edi, dword [rbp + 0x6c0]
mov ecx, dword [rsp + 0x78]
lea rax, [rsp + 0x50]
mov r9d, esi
mov qword [rsp + 0x20], rax
mov r8d, 0x600
lea rdx, [rbp + 0x70]
call fcn.1401b8c40
mov dword [rsp + 0x38], eax
mov r9d, eax
test eax, eax
js 0x1401b5401
jne 0x1401b5197
cmp qword [rsp + 0x60], 0
jne 0x1401b53d8
test edi, edi
je 0x1401b5356
test r13d, r13d
je 0x1401b518a
xor r13d, r13d
mov dword [rsp + 0x34], r13d
sub rbx, 8
jmp 0x1401b5356
mov r13d, r15d
mov dword [rsp + 0x34], r15d
jmp 0x1401b5356
xor r8d, r8d
xor r13d, r13d
xor r15d, r15d
mov qword [rsp + 0x58], r8
xor r12d, r12d
xor edx, edx
xor ebx, ebx
xor ecx, ecx
xor edi, edi
xor r14d, r14d
test eax, eax
jle 0x1401b533b
nop dword [rax + rax]
movzx eax, byte [rbp + r14 + 0x70]
cmp al, 0xa
je 0x1401b51e7
cmp al, 0xd
je 0x1401b51e7
cmp al, 0x3a
jne 0x1401b5245
test ebx, ebx
mov rax, r14
cmovne rax, rcx
mov rcx, rax
mov eax, edi
cmovne eax, ebx
mov ebx, eax
jmp 0x1401b5245
test ebx, ebx
je 0x1401b5242
lea rax, [rbp + 0x70]
add rax, rcx
inc ebx
lea rax, [rax + 1]
cmp byte [rax], 0x20
je 0x1401b51f2
movsxd rax, edx
lea rsi, [rbp + 0x70]
add rsi, rax
lea rdx, str.location
mov rcx, rsi
mov r8d, 8
call fcn.1401b989c
test eax, eax
jne 0x1401b5372
movsxd rax, ebx
lea r13, [rbp + 0x70]
add r13, rax
mov r15d, edi
sub r15d, ebx
mov r8, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x38]
xor ebx, ebx
xor ecx, ecx
lea edx, [rdi + 1]
inc edi
inc r14
cmp edi, r9d
jl 0x1401b51c0
test r8, r8
je 0x1401b5337
test r13, r13
je 0x1401b5337
mov rax, qword [rsp + 0x60]
mov rbx, rax
test rax, rax
je 0x1401b52c1
movsxd rsi, r15d
movsxd r14, r12d
nop dword [rax + rax]
mov rdi, qword [rbx + 8]
mov r8, rsi
mov rcx, rdi
mov rdx, r13
call fcn.140187a30
test eax, eax
jne 0x1401b52b9
cmp byte [rdi + rsi], al
jne 0x1401b52b9
mov rdi, qword [rbx + 0x10]
mov r8, r14
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call fcn.140187a30
test eax, eax
jne 0x1401b52b9
cmp byte [rdi + r14], al
je 0x1401b5332
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1401b5280
movsxd rsi, r15d
movsxd r14, r12d
lea rcx, [rsi + 0x20]
add rcx, r14
call fcn.140192a24
mov rdi, rax
test rax, rax
je 0x1401b53ed
mov rax, qword [rsp + 0x60]
lea rcx, [rdi + 0x1c]
lea rbx, [rdi + 0x1d]
mov qword [rdi], rax
add rbx, rsi
mov qword [rdi + 8], rcx
mov r8, rsi
mov qword [rdi + 0x10], rbx
mov rdx, r13
call fcn.140187b30
mov rdx, qword [rsp + 0x58]
mov r8, r14
mov rcx, rbx
mov byte [rsi + rdi + 0x1c], 0
call fcn.140187b30
lea eax, [r12 + r15]
mov qword [rsp + 0x60], rdi
movsxd rcx, eax
mov byte [rcx + rdi + 0x1d], 0
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x18], eax
mov r9d, dword [rsp + 0x38]
mov esi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov r15d, 1
mov r12, qword [rsp + 0x48]
mov r13d, dword [rsp + 0x34]
mov edi, dword [rbp + 0x6c0]
add rbx, 8
mov qword [rsp + 0x40], rbx
cmp qword [rbx], 0
je 0x1401b5414
mov eax, dword [rsp + 0x6c]
jmp 0x1401b4ffb
mov r8d, 2
lea rdx, [0x140220c5c]
mov rcx, rsi
call fcn.1401b989c
test eax, eax
jne 0x1401b5234
movsxd rax, ebx
lea r8, [rbp + 0x70]
add r8, rax
mov r12d, edi
mov qword [rsp + 0x58], r8
sub r12d, ebx
jmp 0x1401b5239
mov r15, qword [rbp + 0x6c8]
test r15, r15
je 0x1401b53bc
mov dword [r15], 0xffffff9b
mov ecx, r14d
call fcn.14018abf8
mov rcx, rax
lea rdx, str.getaddrinfo___failed:__d_n
mov r8d, ebx
call fcn.1400335e0
jmp 0x1401b5414
mov r15, qword [rbp + 0x6c8]
test r15, r15
je 0x1401b5414
mov dword [r15], 0
jmp 0x1401b5414
mov rax, qword [rbp + 0x6c8]
test rax, rax
je 0x1401b5414
mov dword [rax], 0xffffff9a
jmp 0x1401b5414
mov r15, qword [rbp + 0x6c8]
test r15, r15
je 0x1401b5414
mov dword [r15], 0xffffff9b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x60]
lea r11, [rsp + 0x770]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret