Function at 0x140011c3f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
jmp 0x14001ace0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x818
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x166
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x838]
mov rax, qword [0x140042b18]
xor rax, rbp
mov qword [rbp + 0x7c8], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011c99
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rbp + 0x7f0]
mov qword [rcx], rax
mov rax, qword [rbp + 0x7f0]
cmp qword [rax], 0xffffffffffffffff
jne 0x14001ad6a
mov eax, 0xfffffffe
jmp 0x14001b200
mov dword [rbp + 4], 0x7d0
mov dword [rsp + 0x20], 4
lea r9, [rbp + 4]
mov r8d, 0x1005
mov edx, 0xffff
mov rax, qword [rbp + 0x7f0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001aded
mov eax, dword [0x140042ae4]
add eax, 0xc
mov dword [rbp + 0x7c4], eax
call fcn.14001116d
mov ecx, dword [rbp + 4]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rbp + 0x800]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x7f8]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rbp + 0x7c4]
mov r9d, ecx
lea r8, str.ConnectSocket
mov rdx, rax
lea rcx, str._s__s__d:_connect_socket__s:_d_setopt_SendTimeout__d_error_n
call fcn.14001160e
mov dword [rbp + 4], 0x7d0
mov dword [rsp + 0x20], 4
lea r9, [rbp + 4]
mov r8d, 0x1006
mov edx, 0xffff
mov rax, qword [rbp + 0x7f0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001ae70
mov eax, dword [0x140042ae4]
add eax, 0x12
mov dword [rbp + 0x7c4], eax
call fcn.14001116d
mov ecx, dword [rbp + 4]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rbp + 0x800]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x7f8]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rbp + 0x7c4]
mov r9d, ecx
lea r8, str.ConnectSocket
mov rdx, rax
lea rcx, str._s__s__d:_connect_socket__s:_d_setopt_RecvTimeout__d_error_n
call fcn.14001160e
mov dword [rbp + 0x24], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x24]
mov r8d, 1
mov edx, 6
mov rax, qword [rbp + 0x7f0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001aeec
mov eax, dword [0x140042ae4]
add eax, 0x24
mov dword [rbp + 0x7c4], eax
call fcn.14001116d
mov ecx, dword [rbp + 0x800]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x7f8]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rbp + 0x7c4]
mov r9d, ecx
lea r8, str.ConnectSocket
mov rdx, rax
lea rcx, str._s__s__d:_connect_socket__s:_d_setopt_TCP_NODELAY_error_n
call fcn.14001160e
mov rcx, qword [rbp + 0x7f8]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x4c], eax
mov eax, 2
mov word [rbp + 0x48], ax
movzx ecx, word [rbp + 0x800]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x4a], ax
mov dword [rbp + 0x74], 1
lea r8, [rbp + 0x74]
mov edx, 0x8004667e
mov rax, qword [rbp + 0x7f0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
je 0x14001af98
mov eax, dword [0x140042ae4]
add eax, 0x39
mov dword [rbp + 0x7c4], eax
call fcn.14001116d
mov ecx, dword [rbp + 0x94]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rbp + 0x800]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x7f8]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rbp + 0x7c4]
mov r9d, ecx
lea r8, str.ConnectSocket
mov rdx, rax
lea rcx, str._s__s__d:_connect_socket__s:_d_ioctlsocket_error__d_n
call fcn.14001160e
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x48]
mov rax, qword [rbp + 0x7f0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 0xb4], eax
mov dword [rbp + 0x74], 0
lea r8, [rbp + 0x74]
mov edx, 0x8004667e
mov rax, qword [rbp + 0x7f0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
je 0x14001b03a
mov eax, dword [0x140042ae4]
add eax, 0x46
mov dword [rbp + 0x7c4], eax
call fcn.14001116d
mov ecx, dword [rbp + 0x94]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rbp + 0x800]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x7f8]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rbp + 0x7c4]
mov r9d, ecx
lea r8, str.ConnectSocket
mov rdx, rax
lea rcx, str._s__s__d:_connect_socket__s:_d_ioctlsocket_error__d_n
call fcn.14001160e
lea rax, [rbp + 0xd8]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rbp + 0xd8], 0
mov dword [rbp + 0xdc], 0xe7ef0
mov dword [rbp + 0x100], 0
mov dword [rbp + 0x330], 0
mov dword [rbp + 0x554], 0
jmp 0x14001b08f
mov eax, dword [rbp + 0x554]
inc eax
mov dword [rbp + 0x554], eax
mov eax, dword [rbp + 0x100]
cmp dword [rbp + 0x554], eax
jae 0x14001b0bb
mov eax, dword [rbp + 0x554]
mov rcx, qword [rbp + 0x7f0]
mov rcx, qword [rcx]
cmp qword [rbp + rax*8 + 0x108], rcx
jne 0x14001b0b9
jmp 0x14001b0bb
jmp 0x14001b081
mov eax, dword [rbp + 0x100]
cmp dword [rbp + 0x554], eax
jne 0x14001b0f8
cmp dword [rbp + 0x100], 0x40
jae 0x14001b0f8
mov eax, dword [rbp + 0x554]
mov rcx, qword [rbp + 0x7f0]
mov rcx, qword [rcx]
mov qword [rbp + rax*8 + 0x108], rcx
mov eax, dword [rbp + 0x100]
inc eax
mov dword [rbp + 0x100], eax
xor eax, eax
test eax, eax
jne 0x14001b075
mov dword [rbp + 0x574], 0
jmp 0x14001b11c
mov eax, dword [rbp + 0x574]
inc eax
mov dword [rbp + 0x574], eax
mov eax, dword [rbp + 0x330]
cmp dword [rbp + 0x574], eax
jae 0x14001b148
mov eax, dword [rbp + 0x574]
mov rcx, qword [rbp + 0x7f0]
mov rcx, qword [rcx]
cmp qword [rbp + rax*8 + 0x338], rcx
jne 0x14001b146
jmp 0x14001b148
jmp 0x14001b10e
mov eax, dword [rbp + 0x330]
cmp dword [rbp + 0x574], eax
jne 0x14001b185
cmp dword [rbp + 0x330], 0x40
jae 0x14001b185
mov eax, dword [rbp + 0x574]
mov rcx, qword [rbp + 0x7f0]
mov rcx, qword [rcx]
mov qword [rbp + rax*8 + 0x338], rcx
mov eax, dword [rbp + 0x330]
inc eax
mov dword [rbp + 0x330], eax
xor eax, eax
test eax, eax
jne 0x14001b102
mov rax, qword [rbp + 0x7f0]
mov rax, qword [rax]
inc rax
lea rcx, [rbp + 0xd8]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x330]
lea r8, [rbp + 0x100]
xor edx, edx
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
lea rdx, [rbp + 0x100]
mov rax, qword [rbp + 0x7f0]
mov rcx, qword [rax]
call fcn.140011032
test eax, eax
je 0x14001b1e0
xor eax, eax
jmp 0x14001b200
mov rax, qword [rbp + 0x7f0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbp + 0x7f0], 0
mov eax, 0xfffffffd
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140038180]
call fcn.140011a64
mov rax, rdi
mov rcx, qword [rbp + 0x7c8]
xor rcx, rbp
call fcn.140011636
lea rsp, [rbp + 0x7d8]
pop rdi
pop rbp
ret