Function at 0x14003bcd0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140098500]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov r12, r8
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov dword [rsp + 0x7c], esi
mov dword [rbp - 0x80], 2
mov dword [rbp - 0x7c], sendto
mov dword [rsp + 0x78], 1
mov qword [rsp + 0x68], rsi
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x14003bd46
mov rdx, qword [r8]
mov rcx, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x14003bd53
mov rcx, qword [r15]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14003c076
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp + 8]
call fcn.140033f90
mov rbx, rax
mov rcx, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x14003bd8c
mov rcx, qword [r15]
mov rax, qword [r15 + 0x10]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
mov rcx, r12
cmp qword [r12 + 0x18], 0xf
jbe 0x14003bda9
mov rcx, qword [r12]
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x48], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rbp + 0x58], xmm1
mov qword [rsp + 0x30], 0xdd
lea rax, [rbp + 0x48]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rax, str.unable_to_getaddrinfo_for_:
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x21
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x18]
call fcn.1400728e0
nop
lea rax, [rbp - 0x18]
cmp qword [rbp], 0xf
cmova rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x38], rax
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14003be39
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp + 0x28], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x38], xmm1
mov qword [rsp + 0x30], 0xdd
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rax, str.message:__with_code:_
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x19
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x38]
call fcn.1400728e0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], sendto
mov ecx, 0x60
call fcn.1400734b0
mov rdx, rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], 0x5c
mov qword [rbp - 0x40], 0x5f
movaps xmm0, xmmword [str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_srccommunication_socket.cpp]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x140081090]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1400810a0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1400810b0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x1400810c0]
movups xmmword [rax + 0x40], xmm0
movsd xmm0, qword [0x1400810d0]
movsd qword [rax + 0x50], xmm0
mov eax, dword [0x1400810d8]
mov dword [rdx + 0x58], eax
mov byte [rdx + 0x5c], 0
lea r9, [rbp - 0x38]
mov r8d, 0x69
lea rdx, [rbp - 0x58]
lea ecx, [r8 - 0x67]
call fcn.14004f120
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x14003bf79
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bf74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003bf74
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], sendto
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x14003bfc7
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bfc2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003bfc2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
movdqa xmm0, xmmword [0x14007e9a0]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x14003c016
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c011
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c011
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
movdqa xmm0, xmmword [0x14007e9a0]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x14003c065
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c060
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c060
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov qword [r14], 0xffffffffffffffff
mov byte [r14 + 8], 0xfe
jmp 0x14003c56c
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x50], rbx
mov r13, 0xffffffffffffffff
mov rdi, rbx
test rbx, rbx
je 0x14003c109
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rsi, rax
cmp rax, r13
je 0x14003c0f9
mov dword [rsp + 0x60], 1
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, r13d
je 0x14003c295
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, r13d
jne 0x14003c104
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
xor esi, esi
test rdi, rdi
jmp 0x14003c08d
mov r13, rsi
xor esi, esi
cmp r13, 0xffffffffffffffff
jne 0x14003c55b
mov rcx, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x14003c120
mov rcx, qword [r15]
mov rax, qword [r15 + 0x10]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
mov rcx, r12
cmp qword [r12 + 0x18], 0xf
jbe 0x14003c13d
mov rcx, qword [r12]
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp + 8], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp + 0x18], xmm1
mov qword [rsp + 0x40], 0xdd
lea rax, [rbp + 8]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
lea rax, str.no_valid_interface_to_bind_:
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0x22
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x18]
call fcn.1400728e0
nop
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x38]
call fcn.140050590
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], sendto
mov ecx, 0x60
call fcn.1400734b0
mov rcx, rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], 0x5c
mov qword [rbp - 0x40], 0x5f
movaps xmm0, xmmword [str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_srccommunication_socket.cpp]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x140081090]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1400810a0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1400810b0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x1400810c0]
movups xmmword [rax + 0x40], xmm0
movsd xmm0, qword [0x1400810d0]
movsd qword [rax + 0x50], xmm0
mov eax, dword [0x1400810d8]
mov dword [rcx + 0x58], eax
mov byte [rcx + 0x5c], 0
mov r9, rdi
mov r8d, 0x87
lea rdx, [rbp - 0x58]
mov ecx, 2
call fcn.14004f120
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x14003c4b0
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c4ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c4ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp + 0x28]
call fcn.140033f90
nop
lea rcx, str.unable_to_ioctl_non_block_the_socket
mov qword [rsp + 0x40], rcx
mov rcx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14003c2c0
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp + 8], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rbp + 0x18], xmm1
mov qword [rsp + 0x30], 0xdc
lea rax, [rbp + 8]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rax, str.message:__with_code:_
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x19
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x38]
call fcn.1400728e0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xor edi, edi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], sendto
lea ecx, [rdi + 0x60]
call fcn.1400734b0
mov rcx, rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x48], 0x5c
mov qword [rbp - 0x40], 0x5f
movaps xmm0, xmmword [str.C:BuildXoap1YSt2HaplyInternalhardware_api_service_srclts_srccommunication_socket.cpp]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x140081090]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1400810a0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1400810b0]
movups xmmword [rax + 0x30], xmm1
movaps xmm0, xmmword [0x1400810c0]
movups xmmword [rax + 0x40], xmm0
movsd xmm0, qword [0x1400810d0]
movsd qword [rax + 0x50], xmm0
mov eax, dword [0x1400810d8]
mov dword [rcx + 0x58], eax
mov byte [rcx + 0x5c], dil
lea r9, [rbp - 0x38]
lea r8d, [rdi + 0x78]
lea rdx, [rbp - 0x58]
lea ecx, [rdi + 2]
call fcn.14004f120
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x14003c3fd
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c3f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c3f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], sendto
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x14003c44b
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c446
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c446
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
movdqa xmm0, xmmword [0x14007e9a0]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0xf
jbe 0x14003c49a
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c495
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c495
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov qword [r14], 0xffffffffffffffff
mov byte [r14 + 8], 0xfe
jmp 0x14003c563
call fcn.1400734ec
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], sendto
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 0xf
jbe 0x14003c4fe
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c4f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c4f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
movdqa xmm0, xmmword [0x14007e9a0]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp]
cmp rdx, 0xf
jbe 0x14003c54d
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c548
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c548
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400734ec
mov qword [r14], 0xffffffffffffffff
mov byte [r14 + 8], sendto
jmp 0x14003c563
mov qword [r14], r13
mov byte [r14 + 8], 0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, r14
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.140073840
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret