Function at 0x140070c10
Capabilities:
Create tcp socket

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403284b0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12, rcx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea edx, [r14 + 1]
lea r8d, [r14 + 6]
mov ebx, 2
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
lea r13, [0x1402c41e8]
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov rsi, 0xffffffffffffffff
cmp rdi, rsi
jne 0x140070cb3
mov rdi, rsi
jmp 0x140070cc8
mov dword [rbp - 0x29], r14d
mov byte [rbp - 0x25], r14b
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp + 7], rdi
cmp rdi, 0xffffffffffffffff
jne 0x140070cdc
cmp dword [rbp - 0x29], 0
jne 0x1400711d1
mov dword [rbp - 0x15], 1
cmp rdi, 0xffffffffffffffff
je 0x140070d17
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r15d, reloc.WS2_32.dll_recv
mov qword [rbp + 0x1f], r14
mov word [rbp + 0x17], bx
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
mov word [rbp + 0x19], r14w
cmp rdi, 0xffffffffffffffff
jne 0x140070d58
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140070d93
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
cmp ebx, 0xffffffff
jne 0x140070d9d
cmp dword [rbp - 0x29], 0
jne 0x1400711e2
cmp rdi, 0xffffffffffffffff
jne 0x140070dc0
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140070eb2
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rbp - 9], r15d
lea r8, [rbp - 9]
lea rdx, [rbp + 0x17]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
mov ebx, eax
movsxd r15, dword [rbp - 9]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
test ebx, ebx
jne 0x140070ea9
mov dword [rbp - 0x29], r14d
mov byte [rbp - 0x25], bl
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
cmp dword [rbp + 0x1b], eax
jne 0x140070e36
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp + 0x1b], eax
lea r8, [rbp - 0x29]
mov edx, 0x7fffffff
mov rcx, rdi
call fcn.140070360
cmp eax, 0xffffffff
jne 0x140070e56
cmp dword [rbp - 0x29], 0
jne 0x1400711f3
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov r14, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
cmp r14, 0xffffffffffffffff
jne 0x140070ec1
mov r14, rsi
jmp 0x140070ed9
cmp ebx, 0xffffffff
jne 0x140070e1b
cmp dword [rbp - 0x29], 0
jne 0x1400711c0
jmp 0x140070e1b
mov dword [rbp - 0x29], 0
mov byte [rbp - 0x25], 0
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 9], r14
cmp r14, 0xffffffffffffffff
jne 0x140070f07
cmp dword [rbp - 0x29], 0
jne 0x140071204
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140070f42
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, r15d
lea rdx, [rbp + 0x17]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
cmp ebx, 0xffffffff
jne 0x140070f4c
cmp dword [rbp - 0x29], 0
jne 0x140071215
cmp rdi, 0xffffffffffffffff
jne 0x140070f62
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
xor r15d, r15d
jmp 0x140070fab
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
xor r15d, r15d
cmp rbx, 0xffffffffffffffff
je 0x140070fb8
mov dword [rbp - 0x29], r15d
mov byte [rbp - 0x25], r15b
mov rsi, rbx
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp + 0xf], rsi
cmp rsi, 0xffffffffffffffff
jne 0x140070fcc
cmp dword [rbp - 0x29], 0
jne 0x140071226
mov dword [rbp - 0x11], 1
cmp r14, 0xffffffffffffffff
jne 0x140070ff3
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140071046
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
test ebx, ebx
js 0x140071044
mov dword [rbp - 0x29], r15d
mov byte [rbp - 0x25], 0
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
je 0x140071050
cmp dword [rbp - 0x29], 0
jne 0x140071237
mov dword [rbp - 0x15], 1
cmp r14, 0xffffffffffffffff
je 0x140071089
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x11], 1
cmp rsi, 0xffffffffffffffff
jne 0x1400710b0
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
jmp 0x140071103
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r8, [rbp - 0x11]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x29], eax
test eax, eax
setne byte [rbp - 0x25]
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
test ebx, ebx
js 0x140071101
mov dword [rbp - 0x29], r15d
mov byte [rbp - 0x25], 0
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
je 0x14007110d
cmp dword [rbp - 0x29], 0
jne 0x1400711af
mov dword [rbp - 0x15], 1
cmp rsi, 0xffffffffffffffff
je 0x140071150
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x15]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, r13
mov ecx, eax
call fcn.140020d10
mov qword [r12], rsi
mov qword [r12 + 8], r14
cmp rdi, 0xffffffffffffffff
je 0x140071182
mov dword [rbp - 0x29], r15d
mov byte [rbp - 0x25], 0
mov qword [rbp - 0x21], r13
mov byte [rbp - 0x19], 0
lea r9, [rbp - 0x29]
mov r8b, 1
lea rdx, [rbp - 0x19]
mov rcx, rdi
call fcn.140023e90
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1402225a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400221d0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400221d0
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400221d0
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400221d0
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400221d0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400221d0
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400221d0
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400221d0
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.1400221d0
int3