Function at 0x1a7f1bc88a0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1c0], 0xfffffffffffffffe
mov rbx, r8
mov r14, rdx
mov r13, rcx
lea rcx, [rbp - 0x60]
call fcn.1a7f1b6bda0
cmp word [rbp - 0x60], 2
jne 0x1a7f1bc89d8
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 1
movabs rax, 0x3a0000003a
mov qword [rbp - 0x38], rax
mov sil, 0x3a
mov rdi, rbx
jmp 0x1a7f1bc8929
cmp rdi, rbx
ja 0x1a7f1bc8a27
mov cl, 0x3a
mov rdx, r14
mov r8, rdi
call fcn.1a7f1b6e6b0
cmp rax, 1
jne 0x1a7f1bc8a27
mov rdi, rdx
cmp rdx, rbx
jae 0x1a7f1bc8920
cmp byte [r14 + rdi], sil
jne 0x1a7f1bc8920
lea r12, [rdi + 1]
lea rcx, [r14 + rdi]
inc rcx
sub rbx, r12
mov rdx, rbx
call fcn.1a7f1b6fa80
mov ebx, eax
test bl, 1
jne 0x1a7f1bc8a4e
shr ebx, 0x10
mov rax, qword [0x1a7f1cdec38]
cmp rax, 3
jne 0x1a7f1bc8e22
cmp rdi, 0x17f
ja 0x1a7f1bc8e34
lea r15, [rbp - 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call fcn.1a7f1c22170
mov byte [rbp + rdi - 0x60], 0
cmp rdi, 0xe
ja 0x1a7f1bc8a57
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [rbp + rcx - 0x60], 0
je 0x1a7f1bc8af4
inc rcx
cmp r12, rcx
jne 0x1a7f1bc89c0
jmp 0x1a7f1bc8b5a
movzx eax, byte [0x1a7f1cdecc8]
mov ecx, 0x20
mov edx, 4
call fcn.1a7f1b62c70
test rax, rax
je 0x1a7f1bc8e55
movdqu xmm0, xmmword [rbp - 0x60]
movdqu xmm1, xmmword [rbp - 0x50]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov rcx, rax
add rcx, 0x20
mov qword [r13], rax
mov qword [r13 + 8], 1
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x18], rcx
jmp 0x1a7f1bc8a3a
lea rax, str.invalid_socket_address
mov qword [r13 + 8], rax
mov qword [r13], 0
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, str.invalid_port_value
jmp 0x1a7f1bc8a2e
lea rax, [rbp - 0x59]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x1a7f1bc8a86
je 0x1a7f1bc8a86
xor ecx, ecx
cmp byte [rbp + rcx - 0x60], 0
je 0x1a7f1bc8af4
inc rcx
cmp rax, rcx
jne 0x1a7f1bc8a68
lea rcx, [rdi - 0xf]
cmp rax, rcx
jbe 0x1a7f1bc8a8c
jmp 0x1a7f1bc8ace
lea rcx, [rdi - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x1a7f1c353b0]
movabs rdx, 0x8080808080808080
nop
movdqu xmm1, xmmword [rbp + rax - 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x1a7f1bc8ace
add rax, 0x10
cmp rax, rcx
jbe 0x1a7f1bc8aa0
sub r12, rax
je 0x1a7f1bc8b5a
lea rdx, [rax + rbp]
add rdx, 0xffffffffffffffa0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x1a7f1bc8af1
inc rcx
cmp r12, rcx
jne 0x1a7f1bc8ae1
jmp 0x1a7f1bc8b5a
add rcx, rax
cmp rcx, rdi
jne 0x1a7f1bc8b5a
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x160], xmm0
movdqa xmmword [rbp + 0x150], xmm0
mov dword [rbp + 0x148], 1
mov qword [rbp + 0x180], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x140]
lea r9, [rbp + 0x180]
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1a7f1bc8dff
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1a7f1bc8b61
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rbp + 0x1a0], rax
mov eax, 1
test rax, rax
je 0x1a7f1bc8b7e
mov rax, qword [rbp + 0x1a0]
jmp 0x1a7f1bc8a2e
movdqu xmm0, xmmword [rbp + 0x1a0]
movzx eax, word [rbp + 0x1b0]
mov ecx, dword [rbp + 0x1b2]
mov dword [rbp + 0x174], ecx
movzx r8d, word [rbp + 0x1b6]
mov word [rbp + 0x178], r8w
mov word [rbp + 0x1bc], ax
lea rdx, [rbp + 0x1a0]
movdqu xmmword [rbp + 0x1a0], xmm0
mov word [rbp + 0x1b0], ax
mov dword [rbp + 0x1b2], ecx
mov word [rbp + 0x1b6], r8w
lea rax, [rbp + 0x1bc]
mov qword [rbp + 0x198], rax
mov byte [rbp + 0x1bf], 1
lea rcx, [rbp - 0x60]
call fcn.1a7f1bc8680
movzx edi, word [rbp - 0x60]
cmp di, 2
jne 0x1a7f1bc8c16
mov rcx, qword [rbp + 0x1a0]
call sub.ws2_32.dll_freeaddrinfo
mov eax, 4
xor ecx, ecx
xor edi, edi
jmp 0x1a7f1bc8de3
mov qword [rbp + 0x138], r13
mov esi, dword [rbp - 0x5e]
movzx r14d, word [rbp - 0x5a]
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x150], eax
movdqu xmm0, xmmword [rbp - 0x58]
movdqa xmmword [rbp + 0x140], xmm0
movzx r12d, word [rbp - 0x44]
movzx r15d, word [rbp - 0x42]
mov rax, qword [rbp + 0x198]
movzx r13d, word [rax]
movzx eax, byte [0x1a7f1cdecc8]
mov ecx, 0x80
mov edx, 4
call fcn.1a7f1b62c70
test rax, rax
je 0x1a7f1bc8e66
mov rbx, rax
test di, di
cmovne r12d, r13d
cmove r14d, r13d
mov eax, dword [rbp + 0x150]
mov dword [rbx + 0x18], eax
movaps xmm0, xmmword [rbp + 0x140]
movups xmmword [rbx + 8], xmm0
mov word [rbx], di
mov dword [rbx + 2], esi
mov word [rbx + 6], r14w
mov word [rbx + 0x1c], r12w
mov word [rbx + 0x1e], r15w
mov qword [rbp + 0x180], rbx
mov qword [rbp + 0x188], 4
mov qword [rbp + 0x190], 1
movdqu xmm0, xmmword [rbp + 0x198]
movdqu xmm1, xmmword [rbp + 0x1a8]
movdqa xmmword [rbp + 0x150], xmm1
movdqa xmmword [rbp + 0x140], xmm0
mov edi, 1
mov r13d, 0x20
jmp 0x1a7f1bc8d3a
mov word [rbx + r13], r14w
mov eax, dword [rbp + 0x17c]
mov dword [rbx + r13 + 2], eax
mov word [rbx + r13 + 6], si
movdqa xmm0, xmmword [rbp + 0x120]
movdqu xmmword [rbx + r13 + 8], xmm0
mov eax, dword [rbp + 0x130]
mov dword [rbx + r13 + 0x18], eax
mov word [rbx + r13 + 0x1c], r12w
mov word [rbx + r13 + 0x1e], r15w
inc rdi
mov qword [rbp + 0x190], rdi
add r13, 0x20
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x148]
call fcn.1a7f1bc8680
movzx r14d, word [rbp - 0x60]
cmp r14w, 2
je 0x1a7f1bc8dc2
mov eax, dword [rbp - 0x5e]
mov dword [rbp + 0x17c], eax
movzx esi, word [rbp - 0x5a]
lea rcx, [rbp - 0x58]
mov eax, dword [rcx + 0x10]
mov dword [rbp + 0x130], eax
movdqu xmm0, xmmword [rcx]
movdqa xmmword [rbp + 0x120], xmm0
mov rax, qword [rbp + 0x140]
movzx r12d, word [rax]
test r14w, r14w
jne 0x1a7f1bc8d95
mov esi, r12d
movzx r12d, word [rbp - 0x44]
movzx r15d, word [rbp - 0x42]
cmp rdi, qword [rbp + 0x188]
jne 0x1a7f1bc8cf0
lea rcx, [rbp + 0x180]
mov rdx, rdi
call fcn.1a7f1c324e0
mov rbx, qword [rbp + 0x180]
jmp 0x1a7f1bc8cf0
mov rcx, qword [rbp + 0x148]
call sub.ws2_32.dll_freeaddrinfo
mov rax, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x188]
mov r13, qword [rbp + 0x138]
shl rdi, 5
add rdi, rax
mov qword [r13], rax
mov qword [r13 + 8], rcx
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x18], rdi
jmp 0x1a7f1bc8a3a
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], rax
mov word [rbp + 0x1b0], bx
xor eax, eax
jmp 0x1a7f1bc8b6d
call fcn.1a7f1c325a0
cmp rdi, 0x17f
jbe 0x1a7f1bc8990
lea rcx, [rbp + 0x198]
mov rdx, r14
mov r8, rdi
mov r9d, ebx
call fcn.1a7f1c32600
mov rax, qword [rbp + 0x198]
jmp 0x1a7f1bc8b6d
mov ecx, 4
mov edx, 0x20
call fcn.1a7f1c2f940
ud2
mov byte [rbp + 0x1bf], 1
mov ecx, 4
mov edx, 0x80
call fcn.1a7f1c2f940
ud2