Function at 0x14009a670
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1500]
mov eax, 0x1600
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x1640], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x14f0], rax
mov r14, r8
mov r13, rdx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], r8
xor ebx, ebx
mov dword [rsp + 0x40], ebx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_GetMIBVersion
lea rcx, [rsp + 0x48]
call fcn.1400075a0
nop
mov r9, qword [r14]
lea r8, str.cstIP___s
lea edx, [rbx + 1]
lea rcx, [rsp + 0x48]
call fcn.140007780
mov dword [rbp + 0x120], 0x1022e30
mov dword [rbp + 0x124], 0x630a0400
mov dword [rbp + 0x128], 0x6e6f6e61
mov dword [rbp + 0x12c], 0x6573755f
mov dword [rbp + 0x130], 0x21da072
mov dword [rbp + 0x134], 0x1020001
mov dword [rbp + 0x138], 0x10200
mov dword [rbp + 0x13c], 0x10301230
mov dword [rbp + 0x140], 0x62b0c06
mov dword [rbp + 0x144], 0x8c010401
mov dword [rbp + 0x148], 0x1010142
mov dword [rbp + 0x14c], 0x50004
call fcn.140102a14
mov rcx, rax
mov eax, ebx
test rcx, rcx
setne al
test eax, eax
jne 0x14009a78c
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x40], 1
mov ecx, 0x101
lea rdx, [rbp - 0x80]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x14009a7bc
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rdi, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, eax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rax, [rbp + 0x150]
mov qword [rsp + 0x20], rax
or rsi, 0xffffffffffffffff
mov r9d, esi
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp + 0x150]
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov edi, eax
mov r15d, 2
mov word [rsp + 0x70], r15w
mov ecx, 0xa1
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rsp + 0x72], ax
mov dword [rsp + 0x74], edi
xor r8d, r8d
mov edx, r15d
mov ecx, r15d
call qword [sym.imp.WSOCK32.dll_socket]
mov r12, rax
cmp rax, rsi
je 0x14009a93d
lea r8d, [rsi + 0x11]
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_connect]
cmp eax, esi
jne 0x14009a85d
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
movzx edi, byte [rbp + 0x121]
xor r9d, r9d
lea r8d, [r9 + 0x30]
lea rdx, [rbp + 0x120]
mov rcx, r12
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
jne 0x14009a886
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x4f0]
mov rcx, r12
call qword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x14009a8aa
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
movsx rbx, byte [rbp + rdi + 0x4f1]
add edi, r15d
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1d0]
call fcn.14024b970
movsxd rdx, edi
mov r8, rbx
test ebx, ebx
jle 0x14009a8e8
lea rdx, [rbp + rdx + 0x4f0]
lea rcx, [rbp + 0x1d0]
call fcn.140246c50
call qword [sym.imp.KERNEL32.dll_GetACP]
mov ecx, eax
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x2e0]
mov qword [rsp + 0x20], rax
mov r9d, esi
lea r8, [rbp + 0x1d0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0x2e0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rbp + 0x2e0]
mov rcx, r13
call fcn.140005d50
jmp 0x14009a943
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, r12
call qword [sym.imp.WSOCK32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x14009a957
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call qword [sym.imp.WSOCK32.dll_WSACleanup]
cmp eax, 0xffffffff
jne 0x14009a968
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov r9, qword [r13]
lea r8, str.return___s
mov edx, r15d
lea rcx, [rsp + 0x48]
call fcn.140007780
nop
lea rcx, [rsp + 0x48]
call fcn.140007730
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14009a9a7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r13
mov rcx, qword [rbp + 0x14f0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x1640]
add rsp, 0x1600
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret