Function at 0x7ab850
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x2a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x007cd058]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rcx
mov ecx, 0x202
lea rdx, [rdi + 0x184b]
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x7ab8a5
mov eax, 0x69
jmp 0x7abc70
cmp byte [rdi + 0x184b], 2
jne 0x7abc66
cmp byte [rdi + 0x184c], 2
jne 0x7abc66
mov edx, 1
lea r8d, [rdx + 5]
mov r12d, 2
mov ecx, r12d
call sub.WS2_32.dll_socket
mov qword [rdi + 0x183b], rax
mov rcx, rdi
call fcn.007aaae0
mov rax, qword [rdi + 0x1803]
mov qword [rdi + 0x419], rax
mov rax, qword [rdi + 0x180b]
mov qword [rdi + 0x421], rax
mov rax, qword [rdi + 0x1813]
mov qword [rdi + 0x429], rax
mov rax, qword [rdi + 0x181b]
mov qword [rdi + 0x431], rax
mov word [rdi + 0x182b], r12w
lea rcx, [rsp + 0x30]
call fcn.007aede0
nop
lea r8, [rsp + 0x280]
mov edx, dword [rdi + 0x17d7]
lea rcx, [rsp + 0x30]
call fcn.007aee00
lea rcx, [rsp + 0x280]
call sub.WS2_32.dll_inet_addr
mov dword [rdi + 0x182f], eax
movzx ecx, word [rdi + 0x17fb]
call sub.WS2_32.dll_htons
mov word [rdi + 0x182d], ax
mov dword [rsp + 0x38], 1
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, qword [rdi + 0x183b]
call sub.WS2_32.dll_ioctlsocket
lea r8d, [r12 + 0xe]
lea rdx, [rdi + 0x182b]
mov rcx, qword [rdi + 0x183b]
call sub.WS2_32.dll_connect
mov r11, qword [rdi + 0x183b]
mov qword [rsp + 0x78], r11
mov dword [rsp + 0x70], 1
movzx eax, word [rdi + 0x17fd]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
xor ecx, ecx
call sub.WS2_32.dll_select
test eax, eax
jg 0x7abbdc
call sub.WS2_32.dll_WSAGetLastError
mov rcx, qword [rdi + 0x183b]
call sub.WS2_32.dll_closesocket
mov qword [rdi + 0x183b], 0xffffffffffffffff
xor eax, eax
mov dword [rdi + 0x17d7], eax
lea rcx, [rsp + 0x48]
call fcn.007aede0
nop
lea r8, [rdi + 0x40]
lea rdx, [rdi + 0x17d7]
lea rcx, [rsp + 0x48]
call fcn.007aeea0
lea edx, [r12 - 1]
lea r8d, [r12 + 4]
mov ecx, r12d
call sub.WS2_32.dll_socket
mov qword [rdi + 0x183b], rax
cmp rax, 0xffffffffffffffff
jne 0x7aba76
call sub.WS2_32.dll_WSACleanup
nop
lea rcx, [rsp + 0x48]
call fcn.007aedf0
nop
lea rcx, [rsp + 0x30]
call fcn.007aedf0
lea eax, [r12 + 0x67]
jmp 0x7abc70
mov rcx, rdi
call fcn.007aaae0
mov word [rdi + 0x182b], r12w
xor eax, eax
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x288], rax
lea rcx, [rsp + 0x58]
call fcn.007aede0
nop
lea r8, [rsp + 0x280]
mov edx, dword [rdi + 0x17d7]
lea rcx, [rsp + 0x58]
call fcn.007aee00
lea rcx, [rsp + 0x280]
call sub.WS2_32.dll_inet_addr
mov dword [rdi + 0x182f], eax
movzx ecx, word [rdi + 0x17fb]
call sub.WS2_32.dll_htons
mov word [rdi + 0x182d], ax
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, qword [rdi + 0x183b]
call sub.WS2_32.dll_ioctlsocket
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rdi + 0x182b]
mov rcx, qword [rdi + 0x183b]
call sub.WS2_32.dll_connect
mov r11, qword [rdi + 0x183b]
mov qword [rsp + 0x78], r11
mov dword [rsp + 0x70], 1
movzx eax, word [rdi + 0x17fd]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
xor ecx, ecx
call sub.WS2_32.dll_select
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.007aedf0
nop
lea rcx, [rsp + 0x48]
call fcn.007aedf0
test ebx, ebx
jg 0x7abbdc
mov rcx, qword [rdi + 0x183b]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274d
je 0x7abbc8
cmp eax, 0x274c
je 0x7abbc8
cmp eax, 0x2742
je 0x7abbae
cmp eax, 0x2743
je 0x7abbae
lea rcx, [rsp + 0x30]
call fcn.007aedf0
mov eax, 0x69
jmp 0x7abc70
call sub.WS2_32.dll_WSACleanup
nop
lea rcx, [rsp + 0x30]
call fcn.007aedf0
mov eax, 0x69
jmp 0x7abc70
lea rcx, [rsp + 0x30]
call fcn.007aedf0
mov eax, 0x75
jmp 0x7abc70
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, qword [rdi + 0x183b]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
je 0x7abc58
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274d
je 0x7abc47
cmp eax, 0x274c
je 0x7abc47
cmp eax, 0x2742
je 0x7abc30
cmp eax, 0x2743
je 0x7abc30
lea rcx, [rsp + 0x30]
call fcn.007aedf0
mov eax, 0x69
jmp 0x7abc70
call sub.WS2_32.dll_WSACleanup
nop
lea rcx, [rsp + 0x30]
call fcn.007aedf0
mov eax, 0x69
jmp 0x7abc70
lea rcx, [rsp + 0x30]
call fcn.007aedf0
mov eax, 0x75
jmp 0x7abc70
lea rcx, [rsp + 0x30]
call fcn.007aedf0
xor eax, eax
jmp 0x7abc70
call sub.WS2_32.dll_WSACleanup
mov eax, 0x69
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.00787d00
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret