Function at 0x140048a70
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x40
xor eax, eax
mov r13d, 0x22cc
cmp qword [0x14027e030], rax
mov r14d, reloc.WS2_32.dll_recv
mov qword [rbp - 0x10], rax
mov edi, 2
mov dword [rbp - 0x10], edi
mov r12, rcx
mov dword [rbp - 0xc], 0x100007f
mov dword [rbp + 0x38], r14d
mov qword [rbp - 8], rax
je 0x140045fd1
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
cmp dword [r13 + rcx], 0
jne 0x140045fd1
mov r9d, 0x75
lea r8d, [r14 + 0x64]
mov ecx, r9d
mov edx, edi
call fcn.14003f940
lea r8d, [r14 + 1]
mov edx, edi
mov ecx, edi
call fcn.1400489a0
mov esi, eax
test eax, eax
js 0x140045fe6
mov ecx, eax
call fcn.1400421e0
mov byte [rax + 0x64], 0x75
jmp 0x140045fe2
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, edi
mov ecx, edi
call fcn.1400489a0
mov esi, eax
test esi, esi
jns 0x140046001
lea rdx, str.failed_socket__:__m
mov ecx, 0x4b0003
call fcn.14002d1f0
mov esi, eax
test eax, eax
js 0x14004624c
lea rcx, [0x14027dfa0]
mov qword [rsp + 0x70], rbx
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, qword [0x14027e020]
movsxd rcx, esi
mov rbx, qword [rax + rcx*8]
lea rcx, [0x14027dfa0]
call sub.KERNEL32.dll_LeaveCriticalSection
or dword [rbx + 0x68], 0x10000000
lea rdx, [rbp - 0x10]
mov r8d, r14d
mov ecx, esi
call fcn.14003fd30
test eax, eax
jne 0x14004625e
lea r8, [rbp + 0x38]
mov qword [rsp + 0x80], r15
lea rdx, [rbp - 0x10]
mov ecx, esi
call fcn.140048400
cmp qword [0x14027e030], 0
mov ebx, 0x40
lea r15d, [rbx - 0x20]
je 0x140046111
test eax, eax
jne 0x140046111
mov ecx, esi
call fcn.1400421e0
cmp word [rax], 0
je 0x1400460ac
cmp dword [rax + 0x60], 0
mov ecx, r15d
cmove ecx, ebx
add rcx, rax
cmp word [rcx], 0
cmove rcx, rax
movups xmm0, xmmword [rcx]
mov dword [rbp + 0x38], r14d
movups xmmword [rbp - 0x10], xmm0
xor eax, eax
cmp qword [0x14027e030], rax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x20], edi
mov dword [rbp - 0x1c], 0x100007f
mov qword [rbp - 0x18], rax
je 0x14004611c
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
cmp dword [r13 + rdx], 0
jne 0x14004611c
mov r9d, 0x75
mov edx, edi
mov ecx, r9d
lea r8d, [r9 - 1]
call fcn.14003f940
lea r8d, [r9 - 0x64]
mov edx, edi
mov ecx, edi
call fcn.1400489a0
mov edi, eax
test eax, eax
js 0x140046131
mov ecx, eax
call fcn.1400421e0
mov byte [rax + 0x64], 0x75
jmp 0x14004612d
cmp eax, 0xffffffff
je 0x140046270
jmp 0x1400460ac
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, edi
mov ecx, edi
call fcn.1400489a0
mov edi, eax
test edi, edi
jns 0x14004614c
lea rdx, str.failed_socket__:__m
mov ecx, 0x4b0003
call fcn.14002d1f0
mov edi, eax
test eax, eax
js 0x140046282
lea rcx, [0x14027dfa0]
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, qword [0x14027e020]
lea rcx, [0x14027dfa0]
movsxd rdx, edi
mov rbx, qword [rax + rdx*8]
call sub.KERNEL32.dll_LeaveCriticalSection
or dword [rbx + 0x68], 0x10000000
lea rdx, [rbp - 0x20]
mov r8d, r14d
mov ecx, edi
call fcn.14003fd30
test eax, eax
jne 0x140046294
lea r8, [rbp + 0x38]
mov dword [rbp + 0x38], r14d
lea rdx, [rbp - 0x20]
mov ecx, edi
call fcn.140048400
cmp qword [0x14027e030], 0
je 0x1400461e8
test eax, eax
jne 0x1400462a6
mov ecx, edi
call fcn.1400421e0
cmp word [rax], 0
je 0x1400461f0
cmp dword [rax + 0x60], 0
mov ecx, 0x40
cmove r15, rcx
add r15, rax
cmp word [r15], 0
cmove r15, rax
movups xmm0, xmmword [r15]
mov dword [rbp + 0x38], r14d
movups xmmword [rbp - 0x20], xmm0
jmp 0x1400461f4
test eax, eax
jne 0x1400462a6
mov r14d, dword [rbp + 0x38]
mov r8d, r14d
lea rdx, [rbp - 0x20]
mov ecx, esi
call fcn.140043b90
test eax, eax
jne 0x1400462b8
mov r8d, dword [rbp + 0x38]
lea rdx, [rbp - 0x10]
mov ecx, edi
call fcn.140043b90
test eax, eax
jne 0x1400462ca
mov r15, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov dword [r12], esi
mov rsi, qword [rsp + 0x88]
mov dword [r12 + 4], edi
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
lea rdx, str.cant_create_udp_server_sock
mov ecx, 0x4b0000
call fcn.14002d6c0
int3
lea rdx, str.bind_failed
mov ecx, 0x4b0000
call fcn.14002d6c0
int3
lea rdx, str.getsockname_failed
mov ecx, 0x4b0000
call fcn.14002d6c0
int3
lea rdx, str.cant_create_udp_client_sock
mov ecx, 0x4b0000
call fcn.14002d6c0
int3
lea rdx, str.bind_failed
mov ecx, 0x4b0000
call fcn.14002d6c0
int3
lea rdx, str.getsockname_failed
mov ecx, 0x4b0000
call fcn.14002d6c0
int3
lea rdx, str.connect_failed__m
mov ecx, 0x4b0000
call fcn.14002d6c0
int3
lea rdx, str.connect_failed__m
mov ecx, 0x4b0000
call fcn.14002d6c0
int3
sub rsp, 0x28
cmp ecx, 1
je 0x140048a7e
cmp ecx, 0x17
jne 0x140048aba
test r8d, r8d
jne 0x140048acc
sub edx, 1
je 0x140048a99
cmp edx, 1
jne 0x140048ade
mov rcx, r9
add rsp, 0x28
jmp 0x140045f40
cmp ecx, 0x17
mov rcx, r9
je 0x140048aaa
add rsp, 0x28
jmp 0x140045c50
xor r8d, r8d
lea edx, [r8 + 1]
add rsp, 0x28
jmp 0x14003ff00
lea rdx, str.invalid_domain
mov ecx, 0x4b0000
call fcn.14002d6c0
int3
lea rdx, str.invalid_protocol
mov ecx, 0x4b0000
call fcn.14002d6c0
int3
lea rdx, str.invalid_type
mov ecx, 0x4b0000
call fcn.14002d6c0
int3