Function at 0x1400cbf00
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x258
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1d0], 0xfffffffffffffffe
mov rbx, r8
mov rdi, rdx
mov r13, rcx
mov qword [rbp + 0x180], rdx
mov qword [rbp + 0x188], r8
lea rcx, [rbp + 0x180]
call fcn.140048130
mov r14, rax
test r14b, 1
je 0x1400cc028
mov rcx, qword [rbp + 0x180]
mov r8, qword [rbp + 0x188]
test r8, r8
je 0x1400cc013
cmp byte [rcx], 0x3a
jne 0x1400cc013
mov qword [rbp + 0x1c0], r13
lea r12, [rcx + 1]
lea rdx, [r8 - 1]
xor r11d, r11d
mov r15w, 0xa
mov qword [rbp + 0x158], rdx
mov qword [rbp + 0x1b0], r12
xor eax, eax
nop dword [rax]
mov r10d, 0
test rdx, rdx
je 0x1400cbfd6
lea r9, [r12 + 1]
lea r13, [rdx - 1]
movzx esi, byte [r12]
mov qword [rbp + 0x180], r9
mov qword [rbp + 0x188], r13
add esi, 0xffffffd0
xor r10d, r10d
cmp esi, 0xa
setb r10b
jb 0x1400cbfea
mov qword [rbp + 0x180], r12
mov qword [rbp + 0x188], rdx
mov r13, rdx
mov r9, r12
cmp r10d, 1
jne 0x1400cc02f
mul r15w
jo 0x1400cc03a
add ax, si
setb dl
cmp esi, 0xffff
ja 0x1400cc03a
test dl, dl
jne 0x1400cc03a
dec r11
mov rdx, r13
mov r12, r9
jmp 0x1400cbfa0
xor edx, edx
mov qword [rbp + 0x180], rcx
mov qword [rbp + 0x188], r8
test dx, dx
jne 0x1400cc065
xor r14d, r14d
xor eax, eax
jmp 0x1400cc089
test r11, r11
je 0x1400cc03a
mov dx, 1
jmp 0x1400cc058
mov rax, qword [rbp + 0x1b0]
mov qword [rbp + 0x180], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x188], rax
xor edx, edx
mov r13, qword [rbp + 0x1c0]
cmp dx, 1
jne 0x1400cc015
movabs rcx, 0xffffffff00
and r14, rcx
shr r14, 8
movzx eax, ax
shl rax, 0x30
shl r14, 0x10
or r14, rax
mov eax, 1
movzx ecx, r14w
or rcx, rax
cmp rcx, 1
jne 0x1400cc09f
mov rax, qword [rbp + 0x188]
jmp 0x1400cc0b9
mov qword [rbp + 0x180], rdi
mov qword [rbp + 0x188], rbx
mov rax, rbx
test rcx, rcx
je 0x1400cc21e
test rax, rax
je 0x1400cc175
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 1
movabs rax, 0x3a0000003a
mov qword [rbp - 0x38], rax
mov r14, rbx
jmp 0x1400cc0f9
mov qword [rbp - 0x48], r14
cmp r14, rbx
ja 0x1400cc15d
mov cl, 0x3a
mov rdx, rdi
mov r8, r14
call fcn.14004b410
cmp rax, 1
jne 0x1400cc15d
mov r14, rdx
cmp rdx, 0xffffffffffffffff
je 0x1400cc0f0
mov r12, r14
inc r12
cmp r12, rbx
ja 0x1400cc0f0
movzx eax, byte [rdi + r14]
cmp al, byte [rbp - 0x38]
jne 0x1400cc0f0
lea rcx, str.invalid_port_value
sub rbx, r12
je 0x1400cc164
lea r8, [rdi + r12]
movzx eax, byte [r8]
cmp eax, 0x2d
je 0x1400cc31d
cmp eax, 0x2b
jne 0x1400cc327
dec rbx
je 0x1400cc164
inc r8
jmp 0x1400cc327
lea rcx, str.invalid_socket_address
mov qword [r13], rcx
mov qword [r13 + 0x18], 0
jmp 0x1400cc20a
mov rsi, r14
shr rsi, 0x10
shr r14, 0x18
xor edi, edi
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0x128], eax
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x120], rax
mov ecx, 0x20
mov edx, 4
call fcn.140040270
test rax, rax
je 0x1400cc8c0
mov word [rax], di
mov rcx, r14
shl rcx, 8
movzx edx, sil
or rdx, rcx
shr r14, 0x18
mov word [rax + 6], r14w
mov dword [rax + 2], edx
mov rcx, qword [rbp + 0x120]
mov qword [rax + 8], rcx
mov ecx, dword [rbp + 0x128]
mov dword [rax + 0x10], ecx
mov dword [rax + 0x14], 0
mov dword [rax + 0x18], r15d
mov word [rax + 0x1c], r12w
mov rcx, rax
add rcx, 0x20
mov qword [r13], 1
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rcx
mov qword [r13 + 0x18], rax
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x188]
test rax, rax
je 0x1400cc0c2
mov rcx, qword [rbp + 0x180]
dec rax
movzx edx, byte [rcx]
inc rcx
mov qword [rbp + 0x180], rcx
mov qword [rbp + 0x188], rax
cmp dl, 0x5b
jne 0x1400cc0c2
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x180]
call fcn.140048770
cmp byte [rbp - 0x60], 0
je 0x1400cc0c2
mov r14d, dword [rbp - 0x5f]
mov rax, qword [rbp - 0x5b]
mov qword [rbp + 0x138], rax
mov eax, dword [rbp - 0x53]
mov dword [rbp + 0x140], eax
mov rsi, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x188]
xor r10d, r10d
test rcx, rcx
je 0x1400cc40b
cmp byte [rsi], 0x25
jne 0x1400cc7a1
mov qword [rbp + 0x1c0], rsi
lea r11, [rsi + 1]
lea r8, [rcx - 1]
xor r12d, r12d
mov r9d, 0xa
mov qword [rbp + 0x1b0], r8
mov qword [rbp + 0x158], r11
xor r15d, r15d
xor r10d, r10d
mov eax, 0
test r8, r8
je 0x1400cc2f7
movzx esi, byte [r11]
add esi, 0xffffffd0
xor eax, eax
cmp esi, 0xa
setb al
jae 0x1400cc2f7
inc r11
dec r8
cmp eax, 1
jne 0x1400cc733
mov eax, r15d
mul r9d
jo 0x1400cc784
mov r15d, eax
add r15d, esi
jb 0x1400cc784
dec r12
jmp 0x1400cc2d6
cmp rbx, 1
je 0x1400cc164
cmp rbx, 5
jae 0x1400cc3b8
xor eax, eax
xor r15d, r15d
nop word cs:[rax + rax]
movzx edx, byte [r8 + rax]
add edx, 0xffffffd0
cmp edx, 9
ja 0x1400cc164
add r15d, r15d
lea r15d, [r15 + r15*4]
add r15d, edx
inc rax
cmp rbx, rax
jne 0x1400cc340
mov rax, qword [0x1401d0e10]
cmp rax, 3
jne 0x1400cc74e
cmp r14, 0x17f
ja 0x1400cc760
lea rcx, [rbp - 0x60]
mov rdx, rdi
mov r8, r14
call fcn.14011e5a0
mov byte [rbp + r14 - 0x60], 0
cmp r14, 0xe
ja 0x1400cc410
lea rcx, [r14 + 1]
xor eax, eax
xor edx, edx
cmp byte [rbp + rdx - 0x60], 0
je 0x1400cc420
inc rdx
cmp rcx, rdx
jne 0x1400cc3a4
mov rdx, r12
jmp 0x1400cc425
xor r9d, r9d
mov r10w, 0xa
xor r15d, r15d
nop word cs:[rax + rax]
cmp rbx, r9
je 0x1400cc363
movzx r11d, byte [r8 + r9]
mov eax, r15d
mul r10w
seto dl
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x1400cc164
test dl, dl
jne 0x1400cc164
mov r15d, eax
inc r9
add r15w, r11w
jae 0x1400cc3d0
jmp 0x1400cc164
jmp 0x1400cc7a1
lea rdx, [rbp - 0x60]
xor ecx, ecx
mov r8, r12
call fcn.140046d70
jmp 0x1400cc425
mov eax, 1
test rax, rax
je 0x1400cc48e
cmp rdx, r14
jne 0x1400cc48e
xorps xmm0, xmm0
movaps xmmword [rbp + 0x180], xmm0
movaps xmmword [rbp + 0x1a0], xmm0
movaps xmmword [rbp + 0x190], xmm0
mov dword [rbp + 0x188], 1
mov qword [rbp + 0x138], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x180]
lea r9, [rbp + 0x138]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400cc70f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1400cc495
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rbp + 0x168], rax
mov eax, 1
test rax, rax
je 0x1400cc4b2
mov rcx, qword [rbp + 0x168]
jmp 0x1400cc164
movups xmm0, xmmword [rbp + 0x168]
movzx eax, word [rbp + 0x178]
movzx ecx, word [rbp + 0x17e]
mov word [rbp + 0x14e], cx
mov ecx, dword [rbp + 0x17a]
mov dword [rbp + 0x14a], ecx
mov word [rbp + 0x1be], ax
movups xmmword [rbp + 0x138], xmm0
mov word [rbp + 0x148], ax
lea rax, [rbp + 0x1be]
mov qword [rbp + 0x150], rax
mov byte [rbp + 0x1cf], 1
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x138]
call fcn.1400cbc30
movzx esi, word [rbp - 0x60]
cmp si, 2
jne 0x1400cc539
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, 4
xor edi, edi
xor ecx, ecx
jmp 0x1400cc6f7
mov qword [rbp + 0x1c0], r13
mov rax, qword [rbp + 0x150]
mov r15d, dword [rbp - 0x5e]
movzx r12d, word [rbp - 0x5a]
movzx r14d, word [rbp - 0x44]
movzx edi, word [rbp - 0x42]
movzx r13d, word [rax]
movups xmm0, xmmword [rbp - 0x58]
movaps xmmword [rbp + 0x180], xmm0
mov eax, dword [rbp - 0x48]
mov dword [rbp + 0x190], eax
mov ecx, 0x80
mov edx, 4
call fcn.140040270
test rax, rax
je 0x1400cc8d1
mov rbx, rax
test si, si
cmovne r14d, r13d
cmove r12d, r13d
mov dword [rax + 2], r15d
mov word [rax + 6], r12w
movaps xmm0, xmmword [rbp + 0x180]
movups xmmword [rax + 8], xmm0
mov eax, dword [rbp + 0x190]
mov dword [rbx + 0x18], eax
mov word [rbx + 0x1c], r14w
mov word [rbx + 0x1e], di
mov word [rbx], si
mov qword [rbp + 0x160], 4
mov qword [rbp + 0x168], rbx
mov qword [rbp + 0x170], 1
movups xmm0, xmmword [rbp + 0x138]
movups xmm1, xmmword [rbp + 0x148]
movaps xmmword [rbp + 0x190], xmm1
movaps xmmword [rbp + 0x180], xmm0
mov edi, 1
mov r13d, 0x20
jmp 0x1400cc656
mov rbx, qword [rbp + 0x168]
mov word [rbx + r13], si
mov dword [rbx + r13 + 2], r15d
mov word [rbx + r13 + 6], r12w
movaps xmm0, xmmword [rbp + 0x120]
movups xmmword [rbx + r13 + 8], xmm0
mov eax, dword [rbp + 0x130]
mov dword [rbx + r13 + 0x18], eax
mov word [rbx + r13 + 0x1c], r14w
movzx eax, word [rbp + 0x1b0]
mov word [rbx + r13 + 0x1e], ax
inc rdi
mov qword [rbp + 0x170], rdi
add r13, 0x20
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x180]
call fcn.1400cbc30
movzx esi, word [rbp - 0x60]
cmp si, 2
je 0x1400cc6d5
mov rax, qword [rbp + 0x198]
movzx r14d, word [rax]
test si, si
movzx r12d, word [rbp - 0x5a]
cmove r12w, r14w
cmove r14w, word [rbp - 0x44]
mov r15d, dword [rbp - 0x5e]
movzx eax, word [rbp - 0x42]
mov word [rbp + 0x1b0], ax
lea rax, [rbp - 0x58]
movups xmm0, xmmword [rax]
movaps xmmword [rbp + 0x120], xmm0
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x130], eax
cmp rdi, qword [rbp + 0x160]
jne 0x1400cc60d
lea rcx, [rbp + 0x160]
mov rdx, rdi
call fcn.14012ee10
jmp 0x1400cc606
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, qword [rbp + 0x160]
mov rax, qword [rbp + 0x168]
mov r13, qword [rbp + 0x1c0]
shl rdi, 5
add rdi, rax
mov qword [r13], rcx
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rdi
jmp 0x1400cc206
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x168], rax
mov qword [rbp + 0x170], rax
mov word [rbp + 0x178], r15w
xor eax, eax
jmp 0x1400cc4a1
test r12, r12
je 0x1400cc781
mov r10d, 1
mov qword [rbp + 0x1b0], r8
mov qword [rbp + 0x158], r11
jmp 0x1400cc784
call fcn.14012eee0
cmp r14, 0x17f
jbe 0x1400cc381
lea rcx, [rbp + 0x160]
mov rdx, rdi
mov r8, r14
mov r9d, r15d
call fcn.14012ef40
mov rax, qword [rbp + 0x160]
jmp 0x1400cc4a1
xor r10d, r10d
mov rsi, qword [rbp + 0x1c0]
cmp r10d, 1
jne 0x1400cc7a1
mov rsi, qword [rbp + 0x158]
mov rcx, qword [rbp + 0x1b0]
jmp 0x1400cc7a8
test r10d, r10d
cmove r15d, r10d
test rcx, rcx
je 0x1400cc0c2
cmp byte [rsi], 0x5d
jne 0x1400cc0c2
mov rdx, rcx
dec rdx
je 0x1400cc847
cmp byte [rsi + 1], 0x3a
jne 0x1400cc847
mov qword [rbp + 0x1c0], rdx
add rsi, 2
add rcx, 0xfffffffffffffffe
xor r11d, r11d
mov r10, rcx
mov r8, rsi
xor r12d, r12d
mov eax, 0
test r10, r10
je 0x1400cc80c
movzx r9d, byte [r8]
add r9d, 0xffffffd0
xor eax, eax
cmp r9d, 0xa
setb al
jae 0x1400cc80c
inc r8
dec r10
jmp 0x1400cc81a
mov qword [rbp + 0x180], r8
mov qword [rbp + 0x188], r10
cmp eax, 1
jne 0x1400cc856
mov eax, r12d
mov dx, 0xa
mul dx
jo 0x1400cc864
mov r12d, eax
add r12w, r9w
setb al
cmp r9d, 0xffff
ja 0x1400cc864
test al, al
jne 0x1400cc864
dec r11
jmp 0x1400cc7e7
xor eax, eax
mov rcx, rdx
test ax, ax
jne 0x1400cc87a
jmp 0x1400cc0c2
test r11, r11
je 0x1400cc864
mov ax, 1
mov rcx, r10
jmp 0x1400cc86d
mov qword [rbp + 0x180], rsi
xor eax, eax
mov rdx, qword [rbp + 0x1c0]
cmp ax, 1
jne 0x1400cc849
mov eax, dword [rbp + 0x140]
mov dword [rbp + 0x168], eax
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x160], rax
test rcx, rcx
jne 0x1400cc0c2
shl r14, 8
mov eax, dword [rbp + 0x168]
mov dword [rbp - 0x58], eax
mov rax, qword [rbp + 0x160]
mov qword [rbp - 0x60], rax
mov di, 1
xor esi, esi
jmp 0x1400cc182
mov ecx, 0x20
mov edx, 4
call fcn.14012b690
ud2
mov byte [rbp + 0x1cf], 1
mov ecx, 0x80
mov edx, 4
call fcn.14012b690
ud2