Function at 0x140048cd0
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 0x140046231
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
cmp dword [r13 + rcx], 0
jne 0x140046231
mov r9d, 0x75
lea r8d, [r14 + 0x64]
mov ecx, r9d
mov edx, edi
call fcn.14003fba0
lea r8d, [r14 + 1]
mov edx, edi
mov ecx, edi
call fcn.140048c00
mov esi, eax
test eax, eax
js 0x140046246
mov ecx, eax
call fcn.140042440
mov byte [rax + 0x64], 0x75
jmp 0x140046242
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, edi
mov ecx, edi
call fcn.140048c00
mov esi, eax
test esi, esi
jns 0x140046261
lea rdx, str.failed_socket__:__m
mov ecx, 0x4b0003
call fcn.14002d450
mov esi, eax
test eax, eax
js 0x1400464ac
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.14003ff90
test eax, eax
jne 0x1400464be
lea r8, [rbp + 0x38]
mov qword [rsp + 0x80], r15
lea rdx, [rbp - 0x10]
mov ecx, esi
call fcn.140048660
cmp qword [0x14027e030], 0
mov ebx, 0x40
lea r15d, [rbx - 0x20]
je 0x140046371
test eax, eax
jne 0x140046371
mov ecx, esi
call fcn.140042440
cmp word [rax], 0
je 0x14004630c
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 0x14004637c
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
cmp dword [r13 + rdx], 0
jne 0x14004637c
mov r9d, 0x75
mov edx, edi
mov ecx, r9d
lea r8d, [r9 - 1]
call fcn.14003fba0
lea r8d, [r9 - 0x64]
mov edx, edi
mov ecx, edi
call fcn.140048c00
mov edi, eax
test eax, eax
js 0x140046391
mov ecx, eax
call fcn.140042440
mov byte [rax + 0x64], 0x75
jmp 0x14004638d
cmp eax, 0xffffffff
je 0x1400464d0
jmp 0x14004630c
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, edi
mov ecx, edi
call fcn.140048c00
mov edi, eax
test edi, edi
jns 0x1400463ac
lea rdx, str.failed_socket__:__m
mov ecx, 0x4b0003
call fcn.14002d450
mov edi, eax
test eax, eax
js 0x1400464e2
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.14003ff90
test eax, eax
jne 0x1400464f4
lea r8, [rbp + 0x38]
mov dword [rbp + 0x38], r14d
lea rdx, [rbp - 0x20]
mov ecx, edi
call fcn.140048660
cmp qword [0x14027e030], 0
je 0x140046448
test eax, eax
jne 0x140046506
mov ecx, edi
call fcn.140042440
cmp word [rax], 0
je 0x140046450
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 0x140046454
test eax, eax
jne 0x140046506
mov r14d, dword [rbp + 0x38]
mov r8d, r14d
lea rdx, [rbp - 0x20]
mov ecx, esi
call fcn.140043df0
test eax, eax
jne 0x140046518
mov r8d, dword [rbp + 0x38]
lea rdx, [rbp - 0x10]
mov ecx, edi
call fcn.140043df0
test eax, eax
jne 0x14004652a
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.14002d920
int3
lea rdx, str.bind_failed
mov ecx, 0x4b0000
call fcn.14002d920
int3
lea rdx, str.getsockname_failed
mov ecx, 0x4b0000
call fcn.14002d920
int3
lea rdx, str.cant_create_udp_client_sock
mov ecx, 0x4b0000
call fcn.14002d920
int3
lea rdx, str.bind_failed
mov ecx, 0x4b0000
call fcn.14002d920
int3
lea rdx, str.getsockname_failed
mov ecx, 0x4b0000
call fcn.14002d920
int3
lea rdx, str.connect_failed__m
mov ecx, 0x4b0000
call fcn.14002d920
int3
lea rdx, str.connect_failed__m
mov ecx, 0x4b0000
call fcn.14002d920
int3
sub rsp, 0x28
cmp ecx, 1
je 0x140048cde
cmp ecx, 0x17
jne 0x140048d1a
test r8d, r8d
jne 0x140048d2c
sub edx, 1
je 0x140048cf9
cmp edx, 1
jne 0x140048d3e
mov rcx, r9
add rsp, 0x28
jmp 0x1400461a0
cmp ecx, 0x17
mov rcx, r9
je 0x140048d0a
add rsp, 0x28
jmp 0x140045eb0
xor r8d, r8d
lea edx, [r8 + 1]
add rsp, 0x28
jmp 0x140040160
lea rdx, str.invalid_domain
mov ecx, 0x4b0000
call fcn.14002d920
int3
lea rdx, str.invalid_protocol
mov ecx, 0x4b0000
call fcn.14002d920
int3
lea rdx, str.invalid_type
mov ecx, 0x4b0000
call fcn.14002d920
int3