Function at 0x14003f548
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov r15, r8
mov rbx, rdx
mov rsi, rcx
lea rdi, [rsp + 0xe8]
mov rcx, rdi
call fcn.14002a2cc
cmp word [rdi], 2
jne 0x14003f5f0
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], r15
mov qword [rsp + 0xf8], 0
mov byte [rsp + 0x110], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0x108], rax
mov bpl, 0x3a
mov rdi, r15
mov cl, 0x3a
mov rdx, rbx
mov r8, rdi
call fcn.14002b5c1
cmp rax, 1
jne 0x14003f5dc
mov rdi, rdx
cmp rdx, r15
jae 0x14003f5d7
cmp byte [rbx + rdi], bpl
je 0x14003f650
cmp rdi, r15
jbe 0x14003f5b6
lea rax, str.invalid_socket_address
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14003f63c
mov al, byte [0x14007dbb8]
mov edx, 0x20
xor ecx, ecx
call fcn.14003494a
test rax, rax
je 0x14003fa53
movups xmm0, xmmword [rsp + 0xe8]
movups xmm1, xmmword [rsp + 0xf8]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rcx, rax
add rcx, 0x20
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], 1
mov qword [rsi + 0x18], rcx
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rdi + 1]
sub r15, r14
lea rcx, [rbx + rdi]
inc rcx
mov rdx, r15
call fcn.140028f34
test al, 1
jne 0x14003f6d4
shr eax, 0x10
mov word [rsp + 0x50], ax
mov eax, dword [0x14007db48]
cmp eax, 3
jne 0x14003f791
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
cmp rdi, 0x17f
ja 0x14003f79b
lea rcx, [rsp + 0xe8]
mov rdx, rbx
mov r8, rdi
call fcn.14005efb0
mov byte [rsp + rdi + 0xe8], 0
cmp rdi, 0xe
ja 0x14003f6e0
xor ecx, ecx
xor edx, edx
cmp byte [rsp + rdx + 0xe8], 0
je 0x14003f6f7
inc rdx
cmp r14, rdx
jne 0x14003f6bd
mov rdx, r14
jmp 0x14003f6fc
lea rax, str.invalid_port_value
jmp 0x14003f5e3
lea rdx, [rsp + 0xe8]
xor ecx, ecx
mov r8, r14
call fcn.140029ae9
mov rcx, rax
jmp 0x14003f6fc
mov ecx, 1
mov r8d, 1
lea rax, str.file_name_contained_an_unexpected_NUL_byte
test rcx, rcx
je 0x14003f7ba
cmp rdx, rdi
jne 0x14003f7ba
xorps xmm0, xmm0
lea r8, [rsp + 0xb0]
movaps xmmword [r8], xmm0
movaps xmmword [r8 + 0x20], xmm0
movaps xmmword [r8 + 0x10], xmm0
mov dword [r8 + 8], 1
lea r9, [rsp + 0x90]
mov qword [r9], 0
lea rcx, [rsp + 0xe8]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14003f775
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov r8d, 1
jmp 0x14003f7ba
mov rax, qword [rsp + 0x90]
movzx ecx, word [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], cx
xor r8d, r8d
jmp 0x14003f7ba
call fcn.140062273
jmp 0x14003f681
lea r14, [rsp + 0x30]
lea r9, [rsp + 0x70]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.140061e57
mov r8, qword [r14]
mov rax, qword [r14 + 8]
test r8, r8
jne 0x14003f5e3
mov rcx, qword [rsp + 0x40]
movzx r8d, word [rsp + 0x48]
movzx r9d, word [rsp + 0x4e]
lea rdx, [rsp + 0x98]
mov word [rdx + 0x16], r9w
mov r9d, dword [rsp + 0x4a]
mov dword [rdx + 0x12], r9d
lea r9, [rsp + 0x2e]
mov word [r9], r8w
mov qword [rdx - 8], r9
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov word [rdx + 0x10], r8w
lea rdi, [rsp + 0xe8]
mov rcx, rdi
call fcn.14003906c
movzx edi, word [rdi]
cmp di, 2
jne 0x14003f838
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
mov eax, 4
xor edi, edi
xor ecx, ecx
jmp 0x14003fa35
mov qword [rsp + 0x88], rsi
mov ebp, dword [rsp + 0xea]
movzx r12d, word [rsp + 0xee]
movups xmm0, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0x50], xmm0
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x60], eax
movzx r15d, word [rsp + 0x104]
movzx r14d, word [rsp + 0x106]
mov rax, qword [rsp + 0x90]
movzx esi, word [rax]
mov al, byte [0x14007dbb8]
mov edx, 0x80
xor ecx, ecx
call fcn.14003494a
test rax, rax
je 0x14003fa53
mov rbx, rax
test di, di
cmovne r15d, esi
cmove r12d, esi
mov word [rax], di
mov dword [rax + 2], ebp
mov word [rax + 6], r12w
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rax + 8], xmm0
mov eax, dword [rsp + 0x60]
mov dword [rbx + 0x18], eax
mov word [rbx + 0x1c], r15w
mov word [rbx + 0x1e], r14w
lea rax, [rsp + 0x30]
mov qword [rax], 4
mov qword [rax + 8], rbx
mov qword [rax + 0x10], 1
movups xmm0, xmmword [rsp + 0x90]
movups xmm1, xmmword [rsp + 0xa0]
lea rax, [rsp + 0xb8]
movaps xmmword [rax + 8], xmm1
movaps xmmword [rax - 8], xmm0
mov edi, 1
mov r13d, 0x20
lea rcx, [rsp + 0xe8]
lea rdx, [rsp + 0xb8]
call fcn.14003906c
movzx r14d, word [rsp + 0xe8]
cmp r14w, 2
je 0x14003fa15
lea rax, [rsp + 0xf0]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x70], xmm0
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0xb0]
movzx r12d, word [rax]
test r14w, r14w
movzx ebp, word [rsp + 0xee]
cmove bp, r12w
cmove r12w, word [rsp + 0x104]
mov esi, dword [rsp + 0xea]
movzx r15d, word [rsp + 0x106]
cmp rdi, qword [rsp + 0x30]
jne 0x14003f9d1
mov qword [rsp + 0x20], 0x20
mov r8d, 1
mov r9d, 4
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.1400162da
movabs rcx, 0x8000000000000001
cmp rax, rcx
jne 0x14003fa50
mov rbx, qword [rsp + 0x38]
mov word [rbx + r13], r14w
mov dword [rbx + r13 + 2], esi
mov word [rbx + r13 + 6], bp
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + r13 + 8], xmm0
mov eax, dword [rsp + 0x80]
mov dword [rbx + r13 + 0x18], eax
mov word [rbx + r13 + 0x1c], r12w
mov word [rbx + r13 + 0x1e], r15w
inc rdi
mov qword [rsp + 0x40], rdi
add r13, 0x20
jmp 0x14003f916
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ws2_32.dll_freeaddrinfo]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x88]
shl rdi, 5
add rdi, rax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdi
jmp 0x14003f63c
test rax, rax
ud2