Function at 0x140048ad0
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 0x140046031
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
cmp dword [r13 + rcx], 0
jne 0x140046031
mov r9d, 0x75
lea r8d, [r14 + 0x64]
mov ecx, r9d
mov edx, edi
call fcn.14003f9a0
lea r8d, [r14 + 1]
mov edx, edi
mov ecx, edi
call fcn.140048a00
mov esi, eax
test eax, eax
js 0x140046046
mov ecx, eax
call fcn.140042240
mov byte [rax + 0x64], 0x75
jmp 0x140046042
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, edi
mov ecx, edi
call fcn.140048a00
mov esi, eax
test esi, esi
jns 0x140046061
lea rdx, str.failed_socket__:__m
mov ecx, 0x4b0003
call fcn.14002d250
mov esi, eax
test eax, eax
js 0x1400462ac
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.14003fd90
test eax, eax
jne 0x1400462be
lea r8, [rbp + 0x38]
mov qword [rsp + 0x80], r15
lea rdx, [rbp - 0x10]
mov ecx, esi
call fcn.140048460
cmp qword [0x14027e030], 0
mov ebx, 0x40
lea r15d, [rbx - 0x20]
je 0x140046171
test eax, eax
jne 0x140046171
mov ecx, esi
call fcn.140042240
cmp word [rax], 0
je 0x14004610c
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 0x14004617c
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
cmp dword [r13 + rdx], 0
jne 0x14004617c
mov r9d, 0x75
mov edx, edi
mov ecx, r9d
lea r8d, [r9 - 1]
call fcn.14003f9a0
lea r8d, [r9 - 0x64]
mov edx, edi
mov ecx, edi
call fcn.140048a00
mov edi, eax
test eax, eax
js 0x140046191
mov ecx, eax
call fcn.140042240
mov byte [rax + 0x64], 0x75
jmp 0x14004618d
cmp eax, 0xffffffff
je 0x1400462d0
jmp 0x14004610c
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, edi
mov ecx, edi
call fcn.140048a00
mov edi, eax
test edi, edi
jns 0x1400461ac
lea rdx, str.failed_socket__:__m
mov ecx, 0x4b0003
call fcn.14002d250
mov edi, eax
test eax, eax
js 0x1400462e2
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.14003fd90
test eax, eax
jne 0x1400462f4
lea r8, [rbp + 0x38]
mov dword [rbp + 0x38], r14d
lea rdx, [rbp - 0x20]
mov ecx, edi
call fcn.140048460
cmp qword [0x14027e030], 0
je 0x140046248
test eax, eax
jne 0x140046306
mov ecx, edi
call fcn.140042240
cmp word [rax], 0
je 0x140046250
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 0x140046254
test eax, eax
jne 0x140046306
mov r14d, dword [rbp + 0x38]
mov r8d, r14d
lea rdx, [rbp - 0x20]
mov ecx, esi
call fcn.140043bf0
test eax, eax
jne 0x140046318
mov r8d, dword [rbp + 0x38]
lea rdx, [rbp - 0x10]
mov ecx, edi
call fcn.140043bf0
test eax, eax
jne 0x14004632a
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.14002d720
int3
lea rdx, str.bind_failed
mov ecx, 0x4b0000
call fcn.14002d720
int3
lea rdx, str.getsockname_failed
mov ecx, 0x4b0000
call fcn.14002d720
int3
lea rdx, str.cant_create_udp_client_sock
mov ecx, 0x4b0000
call fcn.14002d720
int3
lea rdx, str.bind_failed
mov ecx, 0x4b0000
call fcn.14002d720
int3
lea rdx, str.getsockname_failed
mov ecx, 0x4b0000
call fcn.14002d720
int3
lea rdx, str.connect_failed__m
mov ecx, 0x4b0000
call fcn.14002d720
int3
lea rdx, str.connect_failed__m
mov ecx, 0x4b0000
call fcn.14002d720
int3
sub rsp, 0x28
cmp ecx, 1
je 0x140048ade
cmp ecx, 0x17
jne 0x140048b1a
test r8d, r8d
jne 0x140048b2c
sub edx, 1
je 0x140048af9
cmp edx, 1
jne 0x140048b3e
mov rcx, r9
add rsp, 0x28
jmp 0x140045fa0
cmp ecx, 0x17
mov rcx, r9
je 0x140048b0a
add rsp, 0x28
jmp 0x140045cb0
xor r8d, r8d
lea edx, [r8 + 1]
add rsp, 0x28
jmp 0x14003ff60
lea rdx, str.invalid_domain
mov ecx, 0x4b0000
call fcn.14002d720
int3
lea rdx, str.invalid_protocol
mov ecx, 0x4b0000
call fcn.14002d720
int3
lea rdx, str.invalid_type
mov ecx, 0x4b0000
call fcn.14002d720
int3