Function at 0x1400035c0
Capabilities:
Get local ipv4 addresses
Get socket information
Query environment variable

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x80
xor r14d, r14d
mov rsi, rcx
cmp dword [0x14000d600], r14d
je 0x140003960
xor edx, edx
lea rax, str.Maya_Unix_Socket_Share
mov qword [rsp + 0x28], rax
lea r8d, [r14 + 4]
xor r9d, r9d
mov dword [rsp + 0x20], 0xe9c
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r15, rax
test rax, rax
je 0x140003960
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 1
mov qword [rsp + 0x20], r14
cmp eax, 0xb7
mov ebx, r14d
mov rcx, r15
cmovne ebx, edi
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
jne 0x14000366b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rdi - 2]
jmp 0x140003925
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x60], r13
lea r13, [rax + 4]
test ebx, ebx
je 0x140003680
mov dword [rax], r14d
mov r10d, edi
mov ebp, 0xffffffff
mov r9d, r14d
mov r11, r13
nop
test dword [r12], r10d
je 0x1400036cd
movsxd rax, r9d
mov r8, rsi
imul rcx, rax, 0x6e
add rcx, r13
sub r8, rcx
nop word [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x1400036c3
inc rcx
test eax, eax
jne 0x1400036b0
test edx, edx
je 0x14000387d
jmp 0x1400036d6
test ebp, ebp
mov byte [r11], r14b
cmovs ebp, r9d
add r10d, r10d
inc r9d
add r11, 0x6e
cmp r9d, 0x20
jl 0x140003690
test ebp, ebp
js 0x14000387d
xorps xmm0, xmm0
mov dword [rsp + 0x5c], r14d
xorps xmm1, xmm1
mov qword [rsp + 0x30], rdi
lea rcx, str.MAYA_IP_TYPE
mov dword [rsp + 0x38], edi
movdqu xmmword [rsp + 0x3c], xmm0
movdqu xmmword [rsp + 0x4c], xmm1
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x14000373f
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 0x1400037ad
mov dword [rsp + 0x34], reloc.WS2_32.dll_socket
mov edi, 2
mov rax, qword [0x14000d3c8]
test rax, rax
jne 0x14000375e
xor ecx, ecx
call fcn.140005930
mov qword [0x14000d3c8], rax
lea r9, [rsp + 0xb0]
xor ecx, ecx
lea r8, [rsp + 0x30]
lea rdx, [0x140009724]
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jns 0x1400037d4
mov ecx, ebx
call fcn.140005f10
mov ecx, edi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, str.getaddrinfo_error::___s__n
mov rcx, rax
call fcn.140002800
jmp 0x14000387d
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 + 0x34]
mov edi, 2
test eax, eax
cmove ecx, edi
mov dword [rsp + 0x34], ecx
jmp 0x140003744
mov rax, qword [rsp + 0xb0]
mov ebx, 0xffffffff
mov r14, rax
test rax, rax
je 0x140003944
nop dword [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 0x140003835
mov rdx, qword [rsp + 0xb0]
movsxd rdi, eax
mov rcx, rdi
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14000384e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 0xffffffff
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xb0], rax
test rax, rax
jne 0x1400037f0
test ebx, ebx
js 0x140003944
movsxd rdi, ebx
mov edx, 5
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140003899
mov rcx, r14
call fcn.140005260
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x14000391b
movsxd rax, ebp
imul r15, rax, 0x6e
mov rcx, r15
sub rcx, rsi
add rcx, r13
nop dword [rax]
movzx eax, byte [rsi]
mov byte [rcx + rsi], al
lea rsi, [rsi + 1]
test al, al
jne 0x1400038b0
mov rdx, qword [rsp + 0xb0]
lea r8, [rsp + 0xa8]
mov rcx, rdi
mov eax, dword [rdx + 0x10]
mov dword [rsp + 0xa8], eax
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
mov rax, qword [rsp + 0xb0]
mov ecx, ebp
mov rdx, qword [rax + 0x20]
movzx eax, word [rdx + 2]
mov word [r15 + r13 + 0x6c], ax
mov eax, 1
shl eax, cl
mov rcx, r14
or dword [r12], eax
call fcn.140005260
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, ebx
mov rbp, qword [rsp + 0x78]
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x68]
add rsp, 0x80
pop r15
pop r14
pop rsi
ret
mov rcx, r14
call fcn.140005260
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140003919
mov eax, 0xffffffff
add rsp, 0x80
pop r15
pop r14
pop rsi
ret