Function at 0x1400095a0
Capabilities:
Connect socket
Query environment variable
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140018638]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor r12d, r12d
mov r14, rcx
cmp dword [0x140019ca8], r12d
mov edi, r12d
mov ebx, r12d
je 0x140009a64
lea r15d, [r12 + 1]
mov rax, rcx
cmp byte [rcx], bl
je 0x14000963d
nop dword [rax]
mov edx, 0x3a
mov rcx, rax
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x14000961c
inc rax
inc ebx
cmp byte [rax], dil
jne 0x140009600
cmp ebx, r15d
jne 0x140009626
mov edi, r15d
jmp 0x14000963d
jle 0x14000963d
mov edx, 0x3a
mov rcx, r14
call sub.VCRUNTIME140.dll_strrchr
cmp byte [rax - 1], 0x5d
cmove edi, r15d
mov edx, 0x3a
mov rcx, r14
call sub.VCRUNTIME140.dll_strrchr
mov rsi, rax
test rax, rax
je 0x140009897
test edi, edi
je 0x140009897
cmp rax, r14
jne 0x14000967d
movsd xmm0, qword [str.localhost]
movzx eax, word [reloc.WS2_32.dll_WSACleanup]
movsd qword [rbp - 0x80], xmm0
mov word [rbp - 0x78], ax
jmp 0x1400096a5
mov rbx, rsi
lea rcx, [rbp - 0x80]
sub rbx, r14
mov rdx, r14
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
cmp rbx, 0x100
jae 0x140009b79
mov byte [rbp + rbx - 0x80], r12b
lea rcx, [rsi + 1]
lea rdx, [rbp + 0x80]
sub rdx, rcx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400096c0
xorps xmm0, xmm0
mov dword [rsp + 0x7c], r12d
xorps xmm1, xmm1
mov qword [rsp + 0x50], r15
lea rcx, str.MAYA_IP_TYPE
mov dword [rsp + 0x58], r15d
movdqu xmmword [rsp + 0x5c], xmm0
movdqu xmmword [rsp + 0x6c], xmm1
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
mov r13d, 2
test rax, rax
je 0x140009746
mov rdx, rax
lea rcx, str.ipv6
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140009728
mov dword [rsp + 0x54], reloc.WS2_32.dll_socket
jmp 0x140009746
mov rdx, rbx
lea rcx, str.ipv4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ecx, dword [rsp + 0x54]
test eax, eax
cmove ecx, r13d
mov dword [rsp + 0x54], ecx
mov rax, qword [0x140019c98]
test rax, rax
jne 0x140009760
xor ecx, ecx
call fcn.14000a280
mov qword [0x140019c98], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x80]
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jns 0x1400097d4
mov qword [rsp + 0x30], r12
lea rdi, [0x140019cc0]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.getaddrinfo_error::___s__n
mov rcx, rax
call fcn.1400040c0
jmp 0x140009a64
mov rax, qword [rsp + 0x40]
mov ebx, 0xffffffff
mov rsi, rax
test rax, rax
je 0x140009845
nop word [rax + rax]
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
test eax, eax
js 0x140009832
mov rdx, qword [rsp + 0x40]
movsxd rdi, eax
mov rcx, rdi
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140009845
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 0xffffffff
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400097f0
mov rax, qword [0x140019ca0]
test rax, rax
jne 0x140009860
mov ecx, r13d
call fcn.14000a280
mov qword [0x140019ca0], rax
mov rcx, rsi
call rax
test ebx, ebx
js 0x140009b72
movsxd rcx, ebx
lea r9, [rsp + 0x48]
mov r8d, r15d
mov dword [rsp + 0x48], r15d
mov edx, 6
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, ebx
jmp 0x140009a69
xor r9d, r9d
lea rax, str.Maya_Unix_Socket_Share
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xe9c
lea r8d, [r9 + 4]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r15, rax
test rax, rax
je 0x140009a64
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140009a5b
mov r13d, 2
mov qword [rsp + 0x20], r12
mov edx, r13d
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
je 0x140009a5b
mov r11d, dword [rax]
lea rsi, [rax + 4]
lea ebx, [r13 - 3]
mov r10d, 1
xor r9d, r9d
test r10d, r11d
je 0x140009947
mov edi, r9d
mov r8, r14
imul rax, rdi, 0x6e
add rax, rsi
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140009943
inc rax
test ecx, ecx
jne 0x140009930
test edx, edx
je 0x140009958
add r10d, r10d
inc r9d
cmp r9d, 0x20
jl 0x140009918
jmp 0x140009b60
xorps xmm0, xmm0
lea rcx, str.MAYA_IP_TYPE
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x58], 1
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x1400099c3
mov rdx, rax
lea rcx, str.ipv6
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400099a5
mov dword [rsp + 0x54], reloc.WS2_32.dll_socket
jmp 0x1400099c3
mov rdx, rbx
lea rcx, str.ipv4
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ecx, dword [rsp + 0x54]
test eax, eax
cmove ecx, r13d
mov dword [rsp + 0x54], ecx
mov rax, qword [0x140019c98]
test rax, rax
jne 0x1400099dd
xor ecx, ecx
call fcn.14000a280
mov qword [0x140019c98], rax
lea r9, [rsp + 0x40]
xor ecx, ecx
lea r8, [rsp + 0x50]
lea rdx, [0x1400138f8]
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jns 0x140009a99
mov qword [rsp + 0x30], 0
lea rdi, [0x140019cc0]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
lea rdx, str.getaddrinfo_error::___s__n
mov rcx, rax
call fcn.1400040c0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400066c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rsp + 0x40]
mov ebx, 0xffffffff
mov r14, rcx
test rcx, rcx
je 0x140009b15
imul rax, rdi, 0x6e
add rsi, rax
mov rcx, qword [rcx + 0x20]
movzx eax, word [rsi + 0x6c]
mov word [rcx + 2], ax
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
movsxd rbx, eax
test eax, eax
js 0x140009b02
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140009b15
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 0xffffffff
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x28]
mov qword [rsp + 0x40], rcx
test rcx, rcx
jne 0x140009ab2
mov rax, qword [0x140019ca0]
test rax, rax
jne 0x140009b30
mov ecx, r13d
call fcn.14000a280
mov qword [0x140019ca0], rax
mov rcx, r14
call rax
test ebx, ebx
js 0x140009b60
mov edx, 6
movsxd rcx, ebx
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140009a69
call fcn.14000718c
int3