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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xa90]
sub rsp, 0xb90
mov rax, qword [0x14007c030]
xor rax, rsp
mov qword [rbp + 0xa80], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
lea r8d, [r14 + 0xd]
lea rdx, str.network_error
lea rcx, [rsp + 0x68]
call fcn.14000b050
nop
cmp qword [rdi], r14
jne 0x140020f56
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
lea r8d, [r14 + 7]
lea rdx, str.unknown
mov rcx, rbx
call fcn.14000b050
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140020f2d
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020f28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002139c
call fcn.140035d80
mov rax, rbx
mov rcx, qword [rbp + 0xa80]
xor rcx, rsp
call fcn.140035d60
mov rbx, qword [rsp + 0xbd0]
add rsp, 0xb90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x202
lea rdx, [rbp + 0xe0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140020f78
mov byte [rdi + 0xc], 0
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140020f92
mov r8d, dword [rdi + 0x1c]
mov edx, 1
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x10], rax
mov byte [rdi + 0xc], 1
cmp byte [rdi + 0xc], 0
jne 0x140020fab
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbx + 0x10], xmm1
jmp 0x140020f2d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140030390
test eax, eax
jne 0x140020f98
lea rdx, [rdi + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140008de0
mov r8, rax
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.140022c40
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x280]
call fcn.1400383c0
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
cmovae rdx, qword [rbp - 0x78]
xor r9d, r9d
mov r8d, dword [rbp - 0x68]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, 0x800
lea rdx, [rbp + 0x280]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x140021096
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rdi + 0x10], r14
mov byte [rdi + 0xc], 0
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbx + 0x10], xmm1
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140021091
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002108b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021396
call fcn.140035d80
nop
jmp 0x140020f2d
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
lea rax, [rbp + 0x280]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400210b3
lea rdx, [rbp + 0x280]
lea rcx, [rbp - 0x38]
call fcn.14000b050
nop
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp - 0x10]
call fcn.1400383c0
lea rax, [0x140070dd8]
mov qword [rbp - 0x10], rax
mov qword [rbp + 0x88], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], r14
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x80], rax
mov dword [rsp + 0x20], 2
lea rdx, [rbp]
lea rcx, [rbp - 0x10]
call fcn.140023fc0
nop
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x10], r15
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx - 0x14], edx
lea rdx, [rbp - 0x38]
lea rcx, [rbp]
call fcn.140023e20
nop
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x60], r14
movups xmmword [rbp - 0x58], xmm0
movdqa xmm1, xmmword [0x140071340]
movdqu xmmword [rbp - 0x48], xmm1
mov byte [rbp - 0x58], 0
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x10]
call fcn.1400245a0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x1400211ec
nop dword [rax]
mov rax, qword [rsp + 0x58]
cmp rax, qword [rsp + 0x60]
je 0x1400211c0
lea rdx, [rbp - 0x58]
mov rcx, rax
call fcn.140008de0
add qword [rsp + 0x58], 0x20
jmp 0x1400211d1
lea r8, [rbp - 0x58]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14001fbc0
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x10]
call fcn.1400245a0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x1400211a0
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [rdi + 0x10], r14
mov byte [rdi + 0xc], 0
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
sub rcx, rax
and rcx, 0xffffffffffffffe0
lea rdx, [rax - 0x20]
add rdx, rcx
mov rcx, rbx
call fcn.140008de0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140021261
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002125b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400213a2
call fcn.140035d80
nop
lea rcx, [rsp + 0x50]
call fcn.14001f0d0
nop
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x10], r15
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x90]
mov dword [rbp + rcx - 0x14], edx
lea rcx, [rbp]
call fcn.1400238a0
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x10], rax
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x14], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x80], rax
lea rcx, [rbp + 0x80]
call fcn.140033f54
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x14002130e
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021308
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400213a8
call fcn.140035d80
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140021345
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021340
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021396
call fcn.140035d80
movdqa xmm0, xmmword [0x140071340]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140020f2d
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020f28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002139c
jmp 0x140020f28
call fcn.140047b50
nop
call fcn.140047b50
nop
call fcn.140047b50
nop
call fcn.140047b50
int3