Function at 0x1800a0950
Capabilities:
Connect socket
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 r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
xor r13d, r13d
mov rdi, rcx
mov qword [rcx], r13
xor r8d, r8d
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
lea edx, [r13 + 1]
lea esi, [rdx + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp eax, 0xffffffff
jne 0x1800a09c2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x180044db8]
call fcn.1800a5240
lea rdx, [0x1800a54d4]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1800a0e80
lea rcx, [0x180044dd8]
mov word [rbp - 0x38], si
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x50
mov dword [rbp - 0x34], eax
call qword [sym.imp.WS2_32.dll_htons]
movsxd r12, ebx
lea rdx, [rbp - 0x38]
mov rcx, r12
mov word [rbp - 0x36], ax
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1800a0a31
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x180044de8]
call fcn.1800a5240
lea rdx, [0x1800a54d4]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1800a0e80
xor r9d, r9d
lea rdx, [0x180044e08]
mov rcx, r12
lea r8d, [r9 + 0xf]
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, [rbp - 0x20]
mov r8d, 0x400
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
xorps xmm0, xmm0
mov qword [rsp + 0x30], r13
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x1800a0a78
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x20]
call fcn.180052b60
mov r14, qword [rsp + 0x30]
cmp qword [rsp + 0x38], 0xf
lea rsi, [rsp + 0x20]
cmova rsi, qword [rsp + 0x20]
test r14, r14
je 0x1800a0ac7
mov r8, r14
mov edx, 0x2c
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1800a0ac7
sub rbx, rsi
jmp 0x1800a0acb
or rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x1800a0e37
cmp r14, rbx
mov qword [rsp + 0x50], r13
xorps xmm0, xmm0
mov qword [rsp + 0x58], r13
mov r8, rbx
lea rdx, [rsp + 0x20]
cmovb r8, r14
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x38], 0xf
movups xmmword [rsp + 0x40], xmm0
cmova rdx, qword [rsp + 0x20]
call fcn.180052b60
mov r14, qword [rsp + 0x30]
lea rax, [rbx + 1]
cmp r14, rax
lea rcx, [rsp + 0x20]
cmovb rax, r14
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
sub r14, rax
lea r8, [r14 + 1]
lea rdx, [rcx + rax]
call sub.VCRUNTIME140.dll_memmove
mov r15, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov rsi, qword [rsp + 0x40]
cmp r15, 0xf
mov r13, qword [rsp + 0x50]
cmova rax, rsi
mov qword [rsp + 0x30], r14
mov qword [rbp + 0x420], rax
test r13, r13
je 0x1800a0b8b
mov r8, r13
mov edx, 0x3a
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1800a0b8b
sub rbx, qword [rbp + 0x420]
jmp 0x1800a0b8f
or rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x1800a0dce
and qword [rbp - 0x48], 0
lea rdx, [rsp + 0x40]
and qword [rbp - 0x40], 0
lea rcx, [rbp - 0x58]
cmp r13, rbx
xorps xmm0, xmm0
mov r8, rbx
mov r14d, recv
cmovb r8, r13
cmp r15, r14
movups xmmword [rbp - 0x58], xmm0
cmova rdx, rsi
call fcn.180052b60
mov rax, qword [rsp + 0x50]
xor r13d, r13d
inc rbx
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], r13
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
cmp rax, rbx
jb 0x1800a0e9e
sub rax, rbx
lea rdx, [rsp + 0x40]
or r8, 0xffffffffffffffff
lea rcx, [rbp - 0x78]
cmp rax, r8
cmovb r8, rax
cmp qword [rsp + 0x58], r14
cmova rdx, qword [rsp + 0x40]
add rdx, rbx
call fcn.180052b60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp qword [rbp - 0x60], r14
lea rbx, [rbp - 0x78]
lea r8d, [r14 - 5]
mov rsi, rax
cmova rbx, qword [rbp - 0x78]
lea rdx, [rbp + 0x428]
mov rcx, rbx
mov dword [rax], r13d
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov r15d, eax
cmp rbx, qword [rbp + 0x428]
je 0x1800a0e22
cmp dword [rsi], 0x22
je 0x1800a0e14
mov rbx, qword [rbp - 0x58]
lea r9, [rbp - 0x58]
mov rsi, qword [rbp - 0x48]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x78], r14
xorps xmm0, xmm0
mov r14, qword [rbp - 0x40]
cmp r14, 0xf
mov qword [rsp + 0x70], r13
movups xmmword [rsp + 0x60], xmm0
cmova r9, rbx
mov byte [rsp + 0x60], r13b
cmp rsi, 0xf
ja 0x1800a0cb3
mov r8, rsi
mov qword [rsp + 0x70], rsi
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rsi + 0x60], r13b
jmp 0x1800a0cc3
mov rdx, rsi
call fcn.1800a56c0
mov r14, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x58]
mov rsi, qword [rdi + 8]
mov dword [rbp - 0x80], r15d
cmp rsi, qword [rdi + 0x10]
je 0x1800a0ceb
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.180052954
mov eax, dword [rbp - 0x80]
mov dword [rsi + 0x20], eax
add qword [rdi + 8], 0x28
jmp 0x1800a0cfb
lea r8, [rsp + 0x60]
mov rdx, rsi
mov rcx, rdi
call fcn.1800a68c0
mov rdx, qword [rsp + 0x78]
mov esi, recv
mov r15d, 0x1000
cmp rdx, rsi
jbe 0x1800a0d3e
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, r15
jb 0x1800a0d39
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a0e0d
call fcn.1800c8a0c
mov rdx, qword [rbp - 0x60]
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x60], r13b
cmp rdx, rsi
jbe 0x1800a0d83
mov rcx, qword [rbp - 0x78]
inc rdx
mov rax, rcx
cmp rdx, r15
jb 0x1800a0d7e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a0e0d
call fcn.1800c8a0c
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], rsi
mov byte [rbp - 0x78], r13b
cmp r14, rsi
jbe 0x1800a0dbd
lea rdx, [r14 + 1]
mov rax, rbx
cmp rdx, r15
jb 0x1800a0db5
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a0e0d
mov rcx, rbx
call fcn.1800c8a0c
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x40]
jmp 0x1800a0dd1
xor r13d, r13d
cmp r15, 0xf
jbe 0x1800a0a94
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1800a0e00
mov rsi, qword [rsi - 8]
add rdx, 0x27
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800a0e30
mov rcx, rsi
call fcn.1800c8a0c
jmp 0x1800a0a8f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [0x180043e98]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, [0x180043e80]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1800a0e80
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a0e7b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a0e7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8a0c
mov rbx, qword [rsp + 0x530]
mov rax, rdi
add rsp, 0x4e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180052b14
int3