Function at 0x140070b30
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 [0x140329490]
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, [0x1402c28e8]
mov qword [rbp - 0x21], r13
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov rsi, 0xffffffffffffffff
cmp rdi, rsi
jne 0x140070bd3
mov rdi, rsi
jmp 0x140070be8
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 0x140070bfc
cmp dword [rbp - 0x29], 0
jne 0x1400710f1
mov dword [rbp - 0x15], 1
cmp rdi, 0xffffffffffffffff
je 0x140070c37
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 0x140070c78
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 0x140070cb3
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 0x140070cbd
cmp dword [rbp - 0x29], 0
jne 0x140071102
cmp rdi, 0xffffffffffffffff
jne 0x140070ce0
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 0x140070dd2
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 0x140070dc9
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 0x140070d56
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.140070280
cmp eax, 0xffffffff
jne 0x140070d76
cmp dword [rbp - 0x29], 0
jne 0x140071113
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 0x140070de1
mov r14, rsi
jmp 0x140070df9
cmp ebx, 0xffffffff
jne 0x140070d3b
cmp dword [rbp - 0x29], 0
jne 0x1400710e0
jmp 0x140070d3b
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 0x140070e27
cmp dword [rbp - 0x29], 0
jne 0x140071124
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 0x140070e62
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 0x140070e6c
cmp dword [rbp - 0x29], 0
jne 0x140071135
cmp rdi, 0xffffffffffffffff
jne 0x140070e82
mov dword [rbp - 0x29], 0x2719
mov byte [rbp - 0x25], 1
xor r15d, r15d
jmp 0x140070ecb
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 0x140070ed8
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 0x140070eec
cmp dword [rbp - 0x29], 0
jne 0x140071146
mov dword [rbp - 0x11], 1
cmp r14, 0xffffffffffffffff
jne 0x140070f13
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 0x140070f66
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 0x140070f64
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 0x140070f70
cmp dword [rbp - 0x29], 0
jne 0x140071157
mov dword [rbp - 0x15], 1
cmp r14, 0xffffffffffffffff
je 0x140070fa9
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 0x140070fd0
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 0x140071023
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 0x140071021
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 0x14007102d
cmp dword [rbp - 0x29], 0
jne 0x1400710cf
mov dword [rbp - 0x15], 1
cmp rsi, 0xffffffffffffffff
je 0x140071070
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.140020ea0
mov qword [r12], rsi
mov qword [r12 + 8], r14
cmp rdi, 0xffffffffffffffff
je 0x1400710a2
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.140024030
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140220f90
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.140022370
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140022370
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140022370
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140022370
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140022370
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140022370
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140022370
nop
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140022370
int3
lea rdx, str.socket_select_interrupter
lea rcx, [rbp - 0x29]
call fcn.140022370
int3