Function at 0x4af65e
Capabilities:
Create tcp socket
Create udp socket
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rax, qword [rcx]
cmp byte [rax], 0
mov byte [rax], 0
je 0x4afc3b
lea rsi, str.127.0.0.1:34254could_not_resolve_to_any_addresses
lea rcx, [rsp + 0x40]
mov qword [rcx], rsi
mov qword [rcx + 8], 0xf
call fcn.0042f100
mov rdi, rax
test dil, 1
je 0x4af733
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x4af729
mov r9, qword [rsp + 0x40]
cmp byte [r9], 0x3a
jne 0x4af729
lea r8, [rcx - 1]
inc r9
xor r10d, r10d
mov bp, 0xa
mov r11, r8
xor ebx, ebx
mov eax, 0
test r11, r11
je 0x4af6f6
movzx r14d, byte [r9]
add r14d, 0xffffffd0
xor eax, eax
cmp r14d, 0xa
setb al
jae 0x4af6f6
inc r9
dec r11
jmp 0x4af700
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], r11
cmp eax, 1
jne 0x4af74a
mov eax, ebx
mul bp
jo 0x4af758
mov ebx, eax
add bx, r14w
setb dl
xor eax, eax
cmp r14d, 0xffff
ja 0x4af75a
test dl, dl
jne 0x4af75a
dec r10
jmp 0x4af6d1
xor eax, eax
mov r8, rcx
test ax, ax
jne 0x4af760
lea rax, [0x00532d09]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0xe
jmp 0x4af769
xor eax, eax
test r10, r10
setne al
cmovne r8, r11
jmp 0x4af75a
xor eax, eax
cmp ax, 1
jne 0x4af72b
test r8, r8
je 0x4af7f0
mov r8d, 0xf
lea rbx, str.invalid_socket_address
mov cl, 0x3a
mov rdx, rsi
call fcn.00430f10
cmp rax, 1
jne 0x4afaba
mov r8, rdx
cmp rdx, 0xe
ja 0x4af79a
cmp byte [r8 + rsi], 0x3a
je 0x4af7a5
cmp r8, 0xf
jbe 0x4af776
jmp 0x4afaba
lea rbx, [0x00533ca0]
cmp r8, 0xe
je 0x4afaba
lea rcx, [r8 + rsi]
inc rcx
movzx eax, byte [rcx]
mov r9d, 0xe
cmp eax, 0x2d
je 0x4afb48
cmp eax, 0x2b
jne 0x4afb52
cmp r8, 0xd
je 0x4afaba
inc rcx
mov r9d, 0xd
jmp 0x4afb52
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rcx, qword [0x00572170]
test rcx, rcx
jne 0x4af826
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x4afc55
mov rcx, rax
mov qword [0x00572170], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x4afc55
mov rsi, rax
movabs rax, 0xffffffff00
and rdi, rax
shr rdi, 8
movzx eax, bx
and word [rsi], 0
shl rax, 0x20
or rax, rdi
mov rcx, rax
and rcx, 0xffffffffffffff00
movzx edx, dil
or rdx, rcx
shr rax, 0x20
mov word [rsi + 6], ax
mov dword [rsi + 2], edx
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov eax, dword [rsp + 0x38]
mov dword [rsi + 0x10], eax
and dword [rsi + 0x14], 0
mov rcx, rsi
add rcx, 0x20
mov eax, 1
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rsi
xor r15d, r15d
mov qword [rsp + 0xa0], rcx
cmp rsi, rcx
je 0x4afaa2
mov rax, rsi
add rsi, 0x20
mov qword [rsp + 0x48], rsi
movzx ebx, word [rax]
cmp bx, 2
je 0x4afaa2
mov qword [rsp + 0x98], r15
mov r13d, dword [rax + 2]
movzx r12d, word [rax + 6]
mov ecx, dword [rax + 0x14]
mov dword [rsp + 0x6c], ecx
mov r15d, dword [rax + 0x18]
movzx edi, word [rax + 0x1c]
mov eax, dword [rsi - 0x10]
mov dword [rsp + 0x38], eax
mov rax, qword [rsi - 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [0x005721b8]
cmp rax, 3
jne 0x4afa91
mov ebp, 2
test bx, bx
je 0x4af92b
mov ebp, 0x17
mov dword [rsp + 0x28], 0x81
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x4af99c
shl r12, 0x20
or r13, r12
test bx, bx
je 0x4afa09
shr r13, 0x10
mov dword [rsp + 0x70], r13d
mov eax, dword [rsp + 0x38]
lea rcx, [rsp + 0x74]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x30]
rol di, 8
mov qword [rcx], rax
movaps xmm0, xmmword [rsp + 0x70]
mov r8d, 0x1c
mov ax, 0x17
mov ecx, dword [rsp + 0x6c]
jmp 0x4afa24
mov dword [rsp + 0x68], r15d
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x4af9bb
mov r15d, eax
cmp eax, 0x2726
jne 0x4afa65
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x4afa87
mov r14, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x4afa9b
mov r15d, dword [rsp + 0x68]
jmp 0x4af953
mov rdi, r13
shr rdi, 0x20
rol di, 8
xorps xmm0, xmm0
mov r8d, 0x10
mov ax, 2
mov ecx, r13d
mov word [rsp + 0x70], ax
mov word [rsp + 0x72], di
mov dword [rsp + 0x74], ecx
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x88], r15d
mov rcx, r14
lea rdx, [rsp + 0x70]
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
jne 0x4afb16
call sub.ws2_32.dll_WSAGetLastError
mov r15d, eax
mov rcx, r14
call sub.ws2_32.dll_closesocket
shl r15, 0x20
or r15, 2
mov rcx, qword [rsp + 0x98]
call fcn.004afd96
mov rcx, qword [rsp + 0xa0]
jmp 0x4af8b9
call sub.ws2_32.dll_WSAGetLastError
mov r15d, eax
jmp 0x4afa65
call fcn.004e6600
jmp 0x4af91c
call sub.kernel32.dll_GetLastError
jmp 0x4afa5a
lea rcx, [rsp + 0x40]
call fcn.004afdef
test r15, r15
lea rbx, [0x00532d40]
cmovne rbx, r15
mov eax, ebx
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x4afb01
test rax, rax
je 0x4afb01
lea rsi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
cmp qword [rax + 8], 0
je 0x4afaf4
mov rcx, qword [rbx - 1]
mov rdx, qword [rax + 0x10]
call fcn.00403d70
mov edx, 8
mov rcx, rsi
call fcn.00403d70
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x40]
call fcn.004afdef
mov rcx, qword [rsp + 0x98]
call fcn.004afd96
mov rcx, r14
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.ws2_32.dll_closesocket
cmp r8, 0xd
je 0x4afaba
sub r9, r8
cmp r9, 5
jae 0x4afbad
xor edx, edx
xor eax, eax
movzx r10d, byte [rcx + rdx]
add r10d, 0xffffffd0
cmp r10d, 9
ja 0x4afaba
imul eax, eax, 0xa
add eax, r10d
inc rdx
cmp r9, rdx
jne 0x4afb5f
lea rdx, [rsp + 0x40]
mov qword [rdx], rsi
mov qword [rdx + 8], r8
mov word [rdx + 0x10], ax
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.004c1b40
cmp qword [rsi], 0
je 0x4afbe9
mov rbx, qword [rsp + 0x78]
jmp 0x4afaba
xor r10d, r10d
mov r11w, 0xa
xor eax, eax
cmp r9, r10
je 0x4afb80
movzx edi, byte [rcx + r10]
mul r11w
seto dl
add edi, 0xffffffd0
cmp edi, 9
ja 0x4afaba
test dl, dl
jne 0x4afaba
inc r10
add ax, di
jae 0x4afbb7
jmp 0x4afaba
lea rdi, [rsp + 0x70]
movzx eax, word [rdi + 0x18]
movzx ecx, word [rdi + 0x1e]
lea rdx, [rsp + 0x40]
mov word [rdx + 0x16], cx
mov ecx, dword [rdi + 0x1a]
mov dword [rdx + 0x12], ecx
movups xmm0, xmmword [rdi + 8]
lea rcx, [rsp + 0x30]
mov word [rcx], ax
movaps xmmword [rdx], xmm0
mov word [rdx + 0x10], ax
mov qword [rdx + 0x18], rcx
mov rcx, rdi
call fcn.004dc9b0
mov rax, qword [rdi]
mov rsi, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
shl rcx, 5
add rcx, rsi
jmp 0x4af89a
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str._repos_rust_1.70.0_library_std_src_sync_once.rs
mov edx, 0x2b
call fcn.0042fe50
ud2
mov ecx, 0x20
mov edx, 4
call fcn.00404d20
ud2