Function at 0x140017d30
Capabilities:
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
push rbx
mov eax, 0x1288
call fcn.14000c2d0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1220], rcx
mov qword [rbp + 0x1228], rdx
mov qword [rbp + 0x1230], r8
mov qword [rbp + 0x1238], r9
call fcn.1400177f0
test al, al
je 0x140017d76
mov ebx, 0
jmp 0x140018033
lea rax, [rbp + 0x11b0]
mov r8, qword [rbp + 0x1238]
mov rcx, qword [rbp + 0x1230]
mov rdx, qword [rbp + 0x1220]
mov r9, r8
mov r8, rcx
mov rcx, rax
call fcn.1400180b0
lea rax, [rbp + 0x1190]
mov r8, qword [rbp + 0x1238]
mov rcx, qword [rbp + 0x1230]
mov rdx, qword [rbp + 0x1228]
mov r9, r8
mov r8, rcx
mov rcx, rax
call fcn.1400180b0
lea rax, [rbp + 0x1190]
mov rcx, rax
call fcn.14009dc30
mov rbx, rax
lea rax, [rbp + 0x1190]
mov rcx, rax
call fcn.14009e220
mov rdx, qword [sym.imp.msvcrt.dll_isdigit]
mov r8, rdx
mov rdx, rbx
mov rcx, rax
call fcn.1400ad880
xor eax, 1
test al, al
je 0x140017e11
mov ebx, 0
jmp 0x140018015
lea rax, [rbp + 0x1190]
mov r8d, 0xa
mov edx, 0
mov rcx, rax
call fcn.1400a5850
mov dword [rbp + 0x11fc], eax
lea rax, [rbp + 0xff0]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
setne al
test al, al
je 0x140017e5c
mov ebx, 0
jmp 0x140018015
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x11f0], rax
cmp qword [rbp + 0x11f0], 0xffffffffffffffff
jne 0x140017e90
mov ebx, 0
jmp 0x140018015
mov word [rbp + 0xfe0], 2
mov eax, dword [rbp + 0x11fc]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0xfe2], ax
lea rax, [rbp + 0x11b0]
mov rcx, rax
call fcn.140027710
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0xfe4], eax
lea rdx, [rbp + 0xfe0]
mov rax, qword [rbp + 0x11f0]
mov rcx, rax
call fcn.140017cb0
xor eax, 1
test al, al
je 0x140017f0f
mov rax, qword [rbp + 0x11f0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov ebx, 0
jmp 0x140018015
lea rax, [rbp - 0x20]
mov r8d, 0x1000
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x11f0]
mov r9d, 0
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x11ec], eax
cmp dword [rbp + 0x11ec], 0
jg 0x140017f70
mov rax, qword [rbp + 0x11f0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
jmp 0x140018010
lea rax, [rbp + 0x11df]
mov qword [rbp + 0x11e0], rax
nop
nop
lea rcx, [rbp + 0x11df]
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call fcn.14009fea0
lea rax, [rbp + 0x11df]
mov rcx, rax
call fcn.140091010
nop
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.1400179d0
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.1400276f0
mov ebx, eax
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.140027710
mov rdx, rax
mov rax, qword [rbp + 0x11f0]
mov r9d, 0
mov r8d, ebx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.1400a0480
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400a0480
jmp 0x140017f0f
mov ebx, 1
lea rax, [rbp + 0x1190]
mov rcx, rax
call fcn.1400a0480
lea rax, [rbp + 0x11b0]
mov rcx, rax
call fcn.1400a0480
mov eax, ebx
jmp 0x14001809f
add rsp, 0x1288
pop rbx
pop rbp
ret