Function at 0x14008b150
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.14002d360
cmp word [rbp - 0x60], 2
jne 0x14008b288
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 0x14008b1d9
cmp rdi, rbx
ja 0x14008b2d7
mov cl, 0x3a
mov rdx, r14
mov r8, rdi
call fcn.14002fc70
cmp rax, 1
jne 0x14008b2d7
mov rdi, rdx
cmp rdx, rbx
jae 0x14008b1d0
cmp byte [r14 + rdi], sil
jne 0x14008b1d0
lea r12, [rdi + 1]
lea rcx, [r14 + rdi]
inc rcx
sub rbx, r12
mov rdx, rbx
call fcn.140031040
mov ebx, eax
test bl, 1
jne 0x14008b2fe
shr ebx, 0x10
mov rax, qword [0x1401b0c38]
cmp rax, 3
jne 0x14008b6d2
cmp rdi, 0x17f
ja 0x14008b6e4
lea r15, [rbp - 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call fcn.1400efbc0
mov byte [rbp + rdi - 0x60], 0
cmp rdi, 0xe
ja 0x14008b307
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [rbp + rcx - 0x60], 0
je 0x14008b3a4
inc rcx
cmp r12, rcx
jne 0x14008b270
jmp 0x14008b40a
movzx eax, byte [0x1401b0ce0]
mov ecx, 0x20
mov edx, 4
call fcn.140037c20
test rax, rax
je 0x14008b705
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 0x14008b2ea
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 0x14008b2de
lea rax, [rbp - 0x59]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x14008b336
je 0x14008b336
xor ecx, ecx
cmp byte [rbp + rcx - 0x60], 0
je 0x14008b3a4
inc rcx
cmp rax, rcx
jne 0x14008b318
lea rcx, [rdi - 0xf]
cmp rax, rcx
jbe 0x14008b33c
jmp 0x14008b37e
lea rcx, [rdi - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x1401033a0]
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 0x14008b37e
add rax, 0x10
cmp rax, rcx
jbe 0x14008b350
sub r12, rax
je 0x14008b40a
lea rdx, [rax + rbp]
add rdx, 0xffffffffffffffa0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x14008b3a1
inc rcx
cmp r12, rcx
jne 0x14008b391
jmp 0x14008b40a
add rcx, rax
cmp rcx, rdi
jne 0x14008b40a
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 0x14008b6af
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x14008b411
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rbp + 0x1a0], rax
mov eax, 1
test rax, rax
je 0x14008b42e
mov rax, qword [rbp + 0x1a0]
jmp 0x14008b2de
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.14008af30
movzx edi, word [rbp - 0x60]
cmp di, 2
jne 0x14008b4c6
mov rcx, qword [rbp + 0x1a0]
call sub.ws2_32.dll_freeaddrinfo
mov eax, 4
xor ecx, ecx
xor edi, edi
jmp 0x14008b693
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 [0x1401b0ce0]
mov ecx, 0x80
mov edx, 4
call fcn.140037c20
test rax, rax
je 0x14008b716
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 0x14008b5ea
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.14008af30
movzx r14d, word [rbp - 0x60]
cmp r14w, 2
je 0x14008b672
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 0x14008b645
mov esi, r12d
movzx r12d, word [rbp - 0x44]
movzx r15d, word [rbp - 0x42]
cmp rdi, qword [rbp + 0x188]
jne 0x14008b5a0
lea rcx, [rbp + 0x180]
mov rdx, rdi
call fcn.140100520
mov rbx, qword [rbp + 0x180]
jmp 0x14008b5a0
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 0x14008b2ea
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], rax
mov word [rbp + 0x1b0], bx
xor eax, eax
jmp 0x14008b41d
call fcn.1401005e0
cmp rdi, 0x17f
jbe 0x14008b240
lea rcx, [rbp + 0x198]
mov rdx, r14
mov r8, rdi
mov r9d, ebx
call fcn.140100640
mov rax, qword [rbp + 0x198]
jmp 0x14008b41d
mov ecx, 4
mov edx, 0x20
call fcn.1400fd960
ud2
mov byte [rbp + 0x1bf], 1
mov ecx, 4
mov edx, 0x80
call fcn.1400fd960
ud2