Function at 0x475260
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
movdqa xmmword [rsp + 0x250], xmm6
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r8
lea rcx, [rsp + 0x30]
call dbg.read_ipv4_addr
mov r15, rax
test r15b, 1
je 0x475339
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x475307
mov rax, qword [rsp + 0x30]
lea rcx, [r14 - 1]
movzx edx, byte [rax]
inc rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
cmp dl, 0x3a
jne 0x475307
mov dword [rsp + 0xe0], 0xa
mov qword [rsp + 0xd0], 0
mov byte [rsp + 0xe4], 1
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0xd0]
call dbg.read_atomically<u16, core::net::parser::{impl#0}::read_number::{closure_env#0}<u16>>
cmp ax, 1
jne 0x475309
jmp 0x475313
xor eax, eax
mov qword [rsp + 0x38], r14
test ax, ax
je 0x475339
movabs rax, 0xffffffff00
and r15, rax
shr r15, 8
movzx eax, dx
shl rax, 0x30
shl r15, 0x10
or r15, rax
mov eax, 1
jmp 0x47533e
xor r15d, r15d
xor eax, eax
or rax, r15
cmp ax, 1
je 0x475452
movzx ecx, ax
mov rax, rbx
test ecx, ecx
jne 0x475457
test rbx, rbx
je 0x475676
lea rax, [rbx - 1]
lea rcx, [rdi + 1]
movzx edx, byte [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
cmp dl, 0x5b
jne 0x475676
pxor xmm0, xmm0
movdqa xmmword [rsp + 0xd0], xmm0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0xd0]
mov r8d, 8
call dbg.read_groups
cmp rax, 8
jne 0x4754e5
movdqa xmm6, xmmword [rsp + 0xd0]
movdqa xmm0, xmm6
psrlw xmm0, 8
psllw xmm6, 8
por xmm6, xmm0
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
xor r13d, r13d
test r8, r8
je 0x47559d
cmp byte [rcx], 0x25
jne 0x4755cd
lea r11, [r8 - 1]
lea r10, [rcx + 1]
xor r14d, r14d
mov ebp, 0xa
mov qword [rsp + 0x88], r11
mov r15, r10
xor r12d, r12d
xor r13d, r13d
mov eax, 0
test r11, r11
je 0x47542d
movzx r9d, byte [r15]
add r9d, 0xffffffd0
xor eax, eax
cmp r9d, 0xa
setb al
jae 0x47542d
dec r11
inc r15
cmp eax, 1
jne 0x47559f
mov eax, r14d
mul ebp
jo 0x4755ba
mov r14d, eax
add r14d, r9d
jb 0x4755ba
inc r12
jmp 0x47540a
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x475680
mov edi, r15d
shr edi, 0x10
shr r15, 0x18
xor ebx, ebx
movzx eax, byte [0x004a0170]
mov ecx, 0x20
mov edx, 4
call sym.__rust_alloc
test rax, rax
je 0x475c63
mov word [rax], bx
mov rcx, r15
shl rcx, 8
movzx edx, dil
or rdx, rcx
shr r15, 0x18
mov word [rax + 6], r15w
mov dword [rax + 2], edx
movq qword [rax + 8], xmm6
pshufd xmm0, xmm6, 0xee
movd dword [rax + 0x10], xmm0
mov dword [rax + 0x14], 0
mov dword [rax + 0x18], r14d
mov word [rax + 0x1c], bp
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 0x475737
test dl, 1
jne 0x475676
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x475676
mov rdx, qword [rsp + 0x30]
cmp byte [rdx], 0x3a
jne 0x475676
cmp rcx, 1
je 0x475676
add rcx, 0xfffffffffffffffe
movzx r8d, byte [rdx + 1]
add rdx, 2
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rcx
cmp r8b, 0x3a
jne 0x475676
mov qword [rsp + 0x6e], 0
mov qword [rsp + 0x68], 0
mov r8d, 7
sub r8, rax
jb 0x475c83
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x68]
call dbg.read_groups
mov ecx, 8
sub rcx, rax
jb 0x475c9a
cmp rax, 8
je 0x475cab
lea rcx, [rsp + rcx*2]
add rcx, 0xd0
add rax, rax
lea rdx, [rsp + 0x68]
mov r8, rax
call sym.memcpy
jmp 0x4753af
jmp 0x4755cd
test r12, r12
je 0x4755b7
mov r13d, 1
mov qword [rsp + 0x88], r11
mov r10, r15
jmp 0x4755ba
xor r13d, r13d
cmp r13d, 1
jne 0x4755cd
mov rcx, r10
mov r8, qword [rsp + 0x88]
jmp 0x4755d4
test r13d, r13d
cmove r14d, r13d
test r8, r8
je 0x475676
cmp byte [rcx], 0x5d
jne 0x475676
mov r15, r8
dec r15
je 0x475643
add r8, 0xfffffffffffffffe
movzx eax, byte [rcx + 1]
add rcx, 2
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], r8
cmp al, 0x3a
jne 0x475643
mov dword [rsp + 0xe0], 0xa
mov qword [rsp + 0xd0], 0
mov byte [rsp + 0xe4], 1
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0xd0]
call dbg.read_atomically<u16, core::net::parser::{impl#0}::read_number::{closure_env#0}<u16>>
mov ebp, edx
cmp ax, 1
jne 0x475645
jmp 0x47564f
xor eax, eax
mov qword [rsp + 0x38], r15
test ax, ax
je 0x475676
xor eax, eax
test al, al
jne 0x475680
cmp qword [rsp + 0x38], 0
jne 0x475680
movd r15d, xmm6
pshufd xmm6, xmm6, 0xf9
shl r15, 8
mov bx, 1
xor edi, edi
jmp 0x47546c
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xf0], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xf8], rax
mov bpl, 0x3a
mov r14, rbx
jmp 0x4756d5
cmp r14, rbx
ja 0x475725
mov cl, 0x3a
mov rdx, rdi
mov r8, r14
call dbg.memrchr
cmp rax, 1
jne 0x475725
mov r14, rdx
cmp rdx, rbx
jae 0x4756d0
cmp byte [rdi + r14], bpl
jne 0x4756d0
lea r12, [r14 + 1]
lea rcx, str.invalid_port_value
sub rbx, r12
je 0x47572c
lea r8, [rdi + r14]
inc r8
movzx eax, byte [r8]
cmp eax, 0x2d
je 0x475753
cmp eax, 0x2b
jne 0x475759
dec rbx
je 0x47572c
inc r8
jmp 0x475759
lea rcx, str.invalid_socket_address
mov qword [rsi + 8], rcx
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x250]
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp rbx, 1
je 0x47572c
cmp rbx, 5
jae 0x4757fb
xor eax, eax
xor r15d, r15d
nop dword [rax + rax]
movzx edx, byte [r8 + rax]
add edx, 0xffffffd0
cmp edx, 9
ja 0x47572c
add r15d, r15d
lea r15d, [r15 + r15*4]
add r15d, edx
inc rax
cmp rbx, rax
jne 0x475770
mov rax, qword [0x004a0130]
cmp rax, 3
jne 0x475c34
cmp r14, 0x17f
ja 0x475c46
lea rbx, [rsp + 0xd0]
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call sym.memcpy
mov byte [rsp + r14 + 0xd0], 0
cmp r14, 0xe
ja 0x47584f
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [rsp + rcx + 0xd0], 0
je 0x4758f7
inc rcx
cmp r12, rcx
jne 0x4757e0
jmp 0x475959
xor r9d, r9d
mov r10w, 0xa
xor r15d, r15d
nop word cs:[rax + rax]
cmp rbx, r9
je 0x47578f
movzx r11d, byte [r8 + r9]
mov eax, r15d
mul r10w
seto dl
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x47572c
test dl, dl
jne 0x47572c
mov r15d, eax
inc r9
add r15w, r11w
jae 0x475810
jmp 0x47572c
lea rax, [rsp + 0xd7]
and rax, 0xfffffffffffffff8
sub rax, rbx
je 0x475885
je 0x475885
xor ecx, ecx
cmp byte [rsp + rcx + 0xd0], 0
je 0x4758f7
inc rcx
cmp rax, rcx
jne 0x475864
lea rcx, [r14 - 0xf]
cmp rax, rcx
jbe 0x47588b
jmp 0x4758ce
lea rcx, [r14 - 0xf]
xor eax, eax
movdqa xmm0, xmmword [0x004870b0]
movabs rdx, 0x8080808080808080
movdqu xmm1, xmmword [rsp + rax + 0xd0]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x4758ce
add rax, 0x10
cmp rax, rcx
jbe 0x47589d
sub r12, rax
je 0x475959
lea rdx, [rsp + rax]
add rdx, 0xd0
xor ecx, ecx
cmp byte [rdx + rcx], 0
je 0x4758f4
inc rcx
cmp r12, rcx
jne 0x4758e4
jmp 0x475959
add rcx, rax
cmp rcx, r14
jne 0x475959
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x90], 0
lea rcx, [rsp + 0xd0]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x90]
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x475c12
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x475960
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsp + 0x70], rax
mov eax, 1
test rax, rax
je 0x475979
mov rcx, qword [rsp + 0x70]
jmp 0x47572c
movdqu xmm0, xmmword [rsp + 0x70]
movzx eax, word [rsp + 0x80]
mov ecx, dword [rsp + 0x82]
mov dword [rsp + 0xa8], ecx
movzx r8d, word [rsp + 0x86]
mov word [rsp + 0xac], r8w
mov word [rsp + 0x2e], ax
lea rdx, [rsp + 0x70]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x80], ax
mov dword [rsp + 0x82], ecx
mov word [rsp + 0x86], r8w
lea rax, [rsp + 0x2e]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xd0]
call sym.__std::sys_common::net::LookupHost_as_core::iter::traits::iterator::Iterator_::next::hf87cdaec67b92001
movzx edi, word [rsp + 0xd0]
cmp di, 2
jne 0x475a0c
mov rcx, qword [rsp + 0x70]
call sub.WS2_32.dll_freeaddrinfo
mov eax, 4
xor edi, edi
xor ecx, ecx
jmp 0x475bf7
mov qword [rsp + 0x88], rsi
mov ebp, dword [rsp + 0xd2]
movzx r14d, word [rsp + 0xd6]
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x40], eax
movdqu xmm0, xmmword [rsp + 0xd8]
movdqa xmmword [rsp + 0x30], xmm0
movzx r12d, word [rsp + 0xec]
movzx r15d, word [rsp + 0xee]
mov rax, qword [rsp + 0x68]
movzx esi, word [rax]
movzx eax, byte [0x004a0170]
mov ecx, pe_nt_image_headers64
mov edx, 4
call sym.__rust_alloc
test rax, rax
je 0x475c72
mov rbx, rax
test di, di
cmovne r12d, esi
cmove r14d, esi
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x18], eax
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx + 8], xmm0
mov word [rbx], di
mov dword [rbx + 2], ebp
mov word [rbx + 6], r14w
mov word [rbx + 0x1c], r12w
mov word [rbx + 0x1e], r15w
mov qword [rsp + 0x90], 4
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], 1
movdqu xmm0, xmmword [rsp + 0x68]
movdqu xmm1, xmmword [rsp + 0x78]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmmword [rsp + 0x30], xmm0
mov edi, 1
mov r13d, 0x20
jmp 0x475b36
mov word [rbx + r13], r12w
mov dword [rbx + r13 + 2], r14d
mov word [rbx + r13 + 6], bp
movdqa xmm0, xmmword [rsp + 0xb0]
movdqu xmmword [rbx + r13 + 8], xmm0
mov eax, dword [rsp + 0xc0]
mov dword [rbx + r13 + 0x18], eax
mov word [rbx + r13 + 0x1c], r15w
mov word [rbx + r13 + 0x1e], si
inc rdi
mov qword [rsp + 0xa0], rdi
add r13, 0x20
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x38]
call sym.__std::sys_common::net::LookupHost_as_core::iter::traits::iterator::Iterator_::next::hf87cdaec67b92001
movzx r12d, word [rsp + 0xd0]
cmp r12w, 2
je 0x475bd5
mov r14d, dword [rsp + 0xd2]
movzx ebp, word [rsp + 0xd6]
lea rcx, [rsp + 0xd8]
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0xc0], eax
movdqu xmm0, xmmword [rcx]
movdqa xmmword [rsp + 0xb0], xmm0
mov rax, qword [rsp + 0x30]
movzx r15d, word [rax]
test r12w, r12w
jne 0x475ba2
mov ebp, r15d
movzx r15d, word [rsp + 0xec]
movzx esi, word [rsp + 0xee]
cmp rdi, qword [rsp + 0x90]
jne 0x475aef
lea rcx, [rsp + 0x90]
mov rdx, rdi
call dbg.do_reserve_and_handle<core::net::socket_addr::SocketAddr, alloc::alloc::Global>
mov rbx, qword [rsp + 0x98]
jmp 0x475aef
mov rcx, qword [rsp + 0x38]
call sub.WS2_32.dll_freeaddrinfo
mov rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x88]
shl rdi, 5
add rdi, rax
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
jmp 0x475737
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov word [rsp + 0x80], r15w
xor eax, eax
jmp 0x47596a
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::windows::net::init::{closure_env#0}>, !>
cmp r14, 0x17f
jbe 0x4757ad
lea rcx, [rsp + 0x68]
mov rdx, rdi
mov r8, r14
mov r9d, r15d
call dbg.run_with_cstr_allocating<std::sys_common::net::LookupHost, std::sys_common::net::{impl#6}::try_from::{closure_env#0}>
mov rax, qword [rsp + 0x68]
jmp 0x47596a
mov ecx, 4
mov edx, 0x20
call dbg.handle_alloc_error
mov ecx, 4
mov edx, pe_nt_image_headers64
call dbg.handle_alloc_error
ud2
lea rax, str.librarycore_src_netparser.rs
mov edx, 7
mov rcx, r8
mov r8, rax
call dbg.slice_end_index_len_fail
lea r8, str.librarycore_src_netparser.rs
mov edx, 8
call dbg.slice_index_order_fail
lea r8, str.librarycore_src_netparser.rs
mov ecx, 8
mov edx, 7
call dbg.slice_end_index_len_fail
jmp 0x475cc3
mov rsi, rax
mov rcx, qword [rsp + 0x70]
call sub.WS2_32.dll_freeaddrinfo
mov rcx, rsi
call sym._Unwind_Resume
jmp 0x475cda
mov rsi, rax
mov rcx, qword [rsp + 0x38]
call sub.WS2_32.dll_freeaddrinfo
cmp qword [rsp + 0x90], 0
je 0x475d08
mov r8, qword [rsp + 0x98]
mov rcx, qword [0x004a0128]
xor edx, edx
call fcn.0048256c
mov rcx, rsi
call sym._Unwind_Resume
int3