Function at 0x1405acde0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140663038]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ebx, 0x10
mov edi, 2
mov ecx, edi
mov dword [rbp - 0x59], ebx
mov r14, r9
lea edx, [rbx - 0xf]
lea r8d, [rbx - 0xa]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1405ace2e
jmp 0x1405ad062
mov qword [rsp + 0xf0], r12
mov ecx, 0x7f000001
xor r12d, r12d
mov qword [rsp + 0xf8], r13
mov qword [rbp - 0x11], r12
mov qword [rsp + 0x100], r15
mov word [rbp - 0x19], di
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x55]
mov word [rbp - 0x17], r12w
mov edx, 0xffff
mov dword [rbp - 0x15], eax
lea r8d, [r12 - 5]
mov qword [r14 + 8], 0xffffffffffffffff
mov rcx, rsi
mov qword [r14], 0xffffffffffffffff
mov dword [rbp - 0x55], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1405ad029
mov r8d, ebx
lea rdx, [rbp - 0x19]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1405ad029
lea r8, [rbp - 0x59]
mov rcx, rsi
lea rdx, [rbp - 0x19]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1405ad029
cmp dword [rbp - 0x59], ebx
jl 0x1405ad029
lea edx, [r12 + 1]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1405ad029
xor r8d, r8d
lea edx, [r12 + 1]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
je 0x1405ad029
mov r8d, ebx
lea rdx, [rbp - 0x19]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1405ad029
lea edx, [r12 + 1]
mov rcx, rsi
call fcn.1405d9a00
test eax, eax
js 0x1405ad029
lea edx, [r12 + 1]
mov qword [rbp + 0x17], rsi
mov r8d, 0x3e8
mov dword [rbp + 0x1f], 0x300
lea rcx, [rbp + 0x17]
call fcn.1405aa310
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [r14 + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1405ad029
lea rcx, [rbp - 0x49]
call fcn.14058c2e0
mov rcx, qword [r14]
lea rdx, [rbp - 9]
xor r9d, r9d
lea rdi, [rbp + 7]
mov r8d, ebx
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 9], xmm0
call qword [sym.imp.WS2_32.dll_send]
mov rax, qword [r14 + 8]
lea rcx, [rbp + 0x17]
mov edx, 1
mov qword [rbp + 0x17], rax
mov r8d, 0x3e8
mov dword [rbp + 0x1f], 0x300
call fcn.1405aa310
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1405ad07c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movaps xmm0, xmmword [rbp - 9]
lea rcx, [rbp - 0x29]
movdqa xmmword [rbp - 0x39], xmm0
mov r15d, eax
call fcn.14058c2e0
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x49]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x49], xmm0
call fcn.14058c370
cmp rax, 0xea60
jg 0x1405ad029
cmp r15d, 0x2733
je 0x1405acfa2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [r14 + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r13, qword [rsp + 0xf8]
mov r12, qword [rsp + 0xf0]
mov r15, qword [rsp + 0x100]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14057a680
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
sub rbx, rcx
je 0x1405ad089
add rdi, rcx
jmp 0x1405acfa2
mov rax, qword [rbp - 9]
cmp rax, qword [rbp + 7]
jne 0x1405ad029
mov rax, qword [rbp - 1]
cmp rax, qword [rbp + 0xf]
jne 0x1405ad029
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1405ad04a