Function at 0x14009ab40
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.140038a60
cmp word [rbp - 0x60], 2
jne 0x14009ac78
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 0x14009abc9
cmp rdi, rbx
ja 0x14009acc7
mov cl, 0x3a
mov rdx, r14
mov r8, rdi
call fcn.14003b470
cmp rax, 1
jne 0x14009acc7
mov rdi, rdx
cmp rdx, rbx
jae 0x14009abc0
cmp byte [r14 + rdi], sil
jne 0x14009abc0
lea r12, [rdi + 1]
lea rcx, [r14 + rdi]
inc rcx
sub rbx, r12
mov rdx, rbx
call fcn.14003c840
mov ebx, eax
test bl, 1
jne 0x14009acee
shr ebx, 0x10
mov rax, qword [0x1401c4c38]
cmp rax, 3
jne 0x14009b0c2
cmp rdi, 0x17f
ja 0x14009b0d4
lea r15, [rbp - 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call fcn.1400ffba0
mov byte [rbp + rdi - 0x60], 0
cmp rdi, 0xe
ja 0x14009acf7
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [rbp + rcx - 0x60], 0
je 0x14009ad94
inc rcx
cmp r12, rcx
jne 0x14009ac60
jmp 0x14009adfa
movzx eax, byte [0x1401c4ce0]
mov ecx, 0x20
mov edx, 4
call fcn.14002fc90
test rax, rax
je 0x14009b0f5
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 0x14009acda
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 0x14009acce
lea rax, [rbp - 0x59]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x14009ad26
je 0x14009ad26
xor ecx, ecx
cmp byte [rbp + rcx - 0x60], 0
je 0x14009ad94
inc rcx
cmp rax, rcx
jne 0x14009ad08
lea rcx, [rdi - 0xf]
cmp rax, rcx
jbe 0x14009ad2c
jmp 0x14009ad6e
lea rcx, [rdi - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x140114650]
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 0x14009ad6e
add rax, 0x10
cmp rax, rcx
jbe 0x14009ad40
sub r12, rax
je 0x14009adfa
lea rdx, [rax + rbp]
add rdx, 0xffffffffffffffa0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x14009ad91
inc rcx
cmp r12, rcx
jne 0x14009ad81
jmp 0x14009adfa
add rcx, rax
cmp rcx, rdi
jne 0x14009adfa
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 0x14009b09f
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x14009ae01
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rbp + 0x1a0], rax
mov eax, 1
test rax, rax
je 0x14009ae1e
mov rax, qword [rbp + 0x1a0]
jmp 0x14009acce
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.14009a920
movzx edi, word [rbp - 0x60]
cmp di, 2
jne 0x14009aeb6
mov rcx, qword [rbp + 0x1a0]
call sub.ws2_32.dll_freeaddrinfo
mov eax, 4
xor ecx, ecx
xor edi, edi
jmp 0x14009b083
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 [0x1401c4ce0]
mov ecx, 0x80
mov edx, 4
call fcn.14002fc90
test rax, rax
je 0x14009b106
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 0x14009afda
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.14009a920
movzx r14d, word [rbp - 0x60]
cmp r14w, 2
je 0x14009b062
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 0x14009b035
mov esi, r12d
movzx r12d, word [rbp - 0x44]
movzx r15d, word [rbp - 0x42]
cmp rdi, qword [rbp + 0x188]
jne 0x14009af90
lea rcx, [rbp + 0x180]
mov rdx, rdi
call fcn.140110920
mov rbx, qword [rbp + 0x180]
jmp 0x14009af90
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 0x14009acda
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], rax
mov word [rbp + 0x1b0], bx
xor eax, eax
jmp 0x14009ae0d
call fcn.1401109e0
cmp rdi, 0x17f
jbe 0x14009ac30
lea rcx, [rbp + 0x198]
mov rdx, r14
mov r8, rdi
mov r9d, ebx
call fcn.140110a40
mov rax, qword [rbp + 0x198]
jmp 0x14009ae0d
mov ecx, 4
mov edx, 0x20
call fcn.14010d920
ud2
mov byte [rbp + 0x1bf], 1
mov ecx, 4
mov edx, 0x80
call fcn.14010d920
ud2