Function at 0x46a5d0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
movdqa xmmword [rsp + 0x230], xmm7
movdqa xmmword [rsp + 0x220], xmm6
mov r15, r8
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0xa0]
call fcn.004103b0
cmp word [rsp + 0xa0], 2
jne 0x46a6d0
mov qword [rsp + 0xa0], r14
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xc0], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xc8], rax
mov bl, 0x3a
mov rdi, r15
jmp 0x46a669
cmp rdi, r15
ja 0x46a748
mov cl, 0x3a
mov rdx, r14
mov r8, rdi
call fcn.004125d0
cmp rax, 1
jne 0x46a748
mov rdi, rdx
cmp rdx, r15
jae 0x46a660
cmp byte [r14 + rdi], bl
jne 0x46a660
lea r12, [rdi + 1]
lea rcx, str.invalid_port_value
sub r15, r12
je 0x46a74f
lea r8, [r14 + rdi]
inc r8
movzx eax, byte [r8]
cmp eax, 0x2d
je 0x46a77e
cmp eax, 0x2b
jne 0x46a784
dec r15
je 0x46a74f
inc r8
jmp 0x46a784
movzx eax, byte [0x004ac1c8]
mov rcx, qword [0x004ac108]
test rcx, rcx
jne 0x46a6fb
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x46ac42
mov rcx, rax
mov qword [0x004ac108], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x46ac42
movdqu xmm0, xmmword [rsp + 0xa0]
movdqu xmm1, xmmword [rsp + 0xb0]
movdqu xmmword [rax + 0x10], xmm1
movdqu xmmword [rax], xmm0
mov rcx, rax
add rcx, 0x20
mov qword [rsi], rax
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
jmp 0x46a75a
lea rcx, str.invalid_socket_address
mov qword [rsi + 8], rcx
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x220]
movaps xmm7, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp r15, 1
je 0x46a74f
cmp r15, 5
jae 0x46a81b
xor eax, eax
xor ebx, ebx
nop word cs:[rax + rax]
movzx edx, byte [r8 + rax]
add edx, 0xffffffd0
cmp edx, 9
ja 0x46a74f
add ebx, ebx
lea ebx, [rbx + rbx*4]
add ebx, edx
inc rax
cmp r15, rax
jne 0x46a7a0
mov rax, qword [0x004ac110]
cmp rax, 3
jne 0x46ac13
cmp rdi, 0x17f
ja 0x46ac25
lea r15, [rsp + 0xa0]
mov rcx, r15
mov rdx, r14
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov byte [rsp + rdi + 0xa0], 0
cmp rdi, 0xe
ja 0x46a869
xor ecx, ecx
cmp byte [rsp + rcx + 0xa0], 0
je 0x46a90d
inc rcx
cmp r12, rcx
jne 0x46a800
jmp 0x46a96b
xor r9d, r9d
mov r10w, 0xa
xor ebx, ebx
nop word cs:[rax + rax]
cmp r15, r9
je 0x46a7bc
movzx r11d, byte [r8 + r9]
mov eax, ebx
mul r10w
seto dl
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x46a74f
test dl, dl
jne 0x46a74f
mov ebx, eax
inc r9
add bx, r11w
jae 0x46a830
jmp 0x46a74f
lea rax, [rsp + 0xa7]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x46a89f
je 0x46a89f
xor ecx, ecx
cmp byte [rsp + rcx + 0xa0], 0
je 0x46a90d
inc rcx
cmp rax, rcx
jne 0x46a87e
lea rcx, [rdi - 0xf]
cmp rax, rcx
jbe 0x46a8a5
jmp 0x46a8e8
lea rcx, [rdi - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x004963b0]
movabs rdx, 0x8080808080808080
movdqu xmm1, xmmword [rsp + rax + 0xa0]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x46a8e8
add rax, 0x10
cmp rax, rcx
jbe 0x46a8b7
sub r12, rax
je 0x46a96b
lea rdx, [rsp + rax]
add rdx, 0xa0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x46a90a
inc rcx
cmp r12, rcx
jne 0x46a8fa
jmp 0x46a96b
add rcx, rax
cmp rcx, rdi
jne 0x46a96b
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x78], 1
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0xa0]
lea r8, [rsp + 0x70]
lea r9, [rsp + 0x48]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x46a9d1
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x46a972
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsp + 0x58], rax
mov eax, 1
test rax, rax
je 0x46a98b
mov rcx, qword [rsp + 0x58]
jmp 0x46a74f
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x46a9bd
movzx ebp, word [rsp + 0x68]
mov r8, qword [rax + 0x20]
mov r15, qword [rax + 0x28]
movzx edx, word [r8]
cmp edx, 0x17
je 0x46aa0b
cmp edx, 2
je 0x46a9e9
mov rax, r15
test r15, r15
jne 0x46a99f
call sub.WS2_32.dll_freeaddrinfo
mov eax, 4
xor r14d, r14d
xor ecx, ecx
jmp 0x46abf8
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], bx
xor eax, eax
jmp 0x46a97c
cmp qword [rax + 0x10], 0xf
jbe 0x46ac99
mov r12d, dword [r8 + 4]
mov eax, r12d
shr eax, 0x10
movd xmm6, eax
pinsrw xmm6, ebp, 1
xor edi, edi
jmp 0x46aa2d
cmp qword [rax + 0x10], 0x1b
jbe 0x46acb3
movdqu xmm6, xmmword [r8 + 8]
mov r13d, dword [r8 + 4]
mov r14d, dword [r8 + 0x18]
pshufd xmm7, xmm6, 0xf9
mov di, 1
mov qword [rsp + 0x28], rcx
movzx eax, byte [0x004ac1c8]
mov rcx, qword [0x004ac108]
test rcx, rcx
jne 0x46aa5d
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x46ac53
mov rcx, rax
mov qword [0x004ac108], rax
mov r8d, pe_nt_image_headers64
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x46ac53
mov rbx, rax
mov word [rax], di
mov word [rax + 2], r12w
movd dword [rax + 4], xmm6
movq qword [rax + 8], xmm7
pshufd xmm0, xmm7, 0xee
movd dword [rax + 0x10], xmm0
mov dword [rax + 0x14], r13d
mov dword [rax + 0x18], r14d
mov word [rax + 0x1c], bp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], 4
mov qword [rsp + 0xb0], 1
mov r14d, 1
test r15, r15
je 0x46abde
lea rcx, [rsp + 0xa0]
lea rax, [0x0049eb68]
mov qword [rsp + 0x40], rax
lea rax, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
mov qword [rsp + 0x38], rax
jmp 0x46ab52
mov rbx, qword [rsp + 0xa0]
mov rcx, r13
pshufd xmm0, xmm6, 0xf9
mov rax, r14
shl rax, 5
mov word [rbx + rax], bp
mov word [rbx + rax + 2], r12w
movd dword [rbx + rax + 4], xmm7
pshufd xmm1, xmm0, 0xee
movd dword [rbx + rax + 0x10], xmm1
movq qword [rbx + rax + 8], xmm0
mov edx, dword [rsp + 0x30]
mov dword [rbx + rax + 0x14], edx
mov edx, dword [rsp + 0x34]
mov dword [rbx + rax + 0x18], edx
mov ebp, edi
mov word [rbx + rax + 0x1c], bp
inc r14
mov qword [rsp + 0xb0], r14
test r15, r15
je 0x46abde
mov r8, r15
mov rax, qword [r8 + 0x20]
mov r15, qword [r8 + 0x28]
movzx edx, word [rax]
cmp edx, 0x17
je 0x46ab98
cmp edx, 2
je 0x46ab74
mov r8, r15
test r15, r15
jne 0x46ab55
jmp 0x46abde
cmp qword [r8 + 0x10], 0xf
jbe 0x46ac64
mov r12d, dword [rax + 4]
mov eax, r12d
shr eax, 0x10
movd xmm7, eax
mov edi, ebp
pinsrw xmm7, ebp, 1
xor ebp, ebp
jmp 0x46abc0
cmp qword [r8 + 0x10], 0x1b
jbe 0x46ac6b
mov edi, ebp
movdqu xmm6, xmmword [rax + 8]
mov edx, dword [rax + 4]
mov dword [rsp + 0x30], edx
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x34], eax
mov bp, 1
movdqa xmm7, xmm6
cmp r14, qword [rsp + 0xa8]
jne 0x46aafa
mov r13, rcx
mov rdx, r14
call fcn.0046a0d0
jmp 0x46aaef
mov rcx, qword [rsp + 0x28]
call sub.WS2_32.dll_freeaddrinfo
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
shl r14, 5
add r14, rax
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r14
jmp 0x46a75a
call fcn.0046a190
cmp rdi, 0x17f
jbe 0x46a7da
lea rcx, [rsp + 0x50]
mov rdx, r14
mov r8, rdi
mov r9d, ebx
call fcn.0046a200
mov rax, qword [rsp + 0x50]
jmp 0x46a97c
mov ecx, 4
mov edx, 0x20
call fcn.0040cdc0
ud2
mov ecx, 4
mov edx, pe_nt_image_headers64
call fcn.0040cdc0
jmp 0x46acd0
mov edx, 0x42
jmp 0x46ac88
mov edx, 0x43
lea rax, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
mov qword [rsp + 0x38], rax
lea rax, [0x0049ebc8]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
call fcn.0040e950
jmp 0x46acd0
mov qword [rsp + 0x28], rcx
lea r8, [0x0049eb68]
mov edx, 0x42
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
jmp 0x46accb
mov qword [rsp + 0x28], rcx
lea r8, [0x0049ebc8]
mov edx, 0x43
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
call fcn.0040e950
ud2