Function at 0x14000b9f0
Capabilities:
Receive data
Receive 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 - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400cfce8]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r12, rdx
movsxd r13, ecx
cmp r13d, 0xffffffff
je 0x14000bd49
xor eax, eax
mov r14d, eax
cmp byte [0x1400d1574], al
jne 0x14000be17
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], recv
mov byte [rsp + 0x58], 0
nop dword [rax]
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
je 0x14000bc03
cmp rsi, 0x401
jae 0x14000be27
mov byte [rbp + rsi - 0x80], 0
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000baa0
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x14000baee
lea rax, [rbx + rcx]
mov qword [rsp + 0x68], rax
lea rdi, [rsp + 0x58]
cmp rdx, 0x10
cmovae rdi, qword [rsp + 0x58]
add rdi, rcx
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x14000bb07
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x80]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140009630
cmp esi, 0x400
je 0x14000ba60
cmp esi, 0xffffffff
je 0x14000bccb
test esi, esi
je 0x14000bc03
test r12, r12
je 0x14000bc73
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0x68]
lea rsi, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rsi, qword [rsp + 0x58]
cmp rdi, 0x10
jae 0x14000bb7d
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], recv
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x30]
call r12
jmp 0x14000bc73
mov rbx, rdi
or rbx, 0xf
movabs rcx, 0x7fffffffffffffff
cmp rbx, rcx
cmova rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14000bbd1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000be2d
mov rcx, rax
call fcn.140055554
mov rcx, rax
test rax, rax
je 0x14000bcc4
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000bbdb
test rcx, rcx
je 0x14000bbdb
call fcn.140055554
mov qword [rsp + 0x30], rax
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x30]
call r12
jmp 0x14000bc73
test r14d, r14d
jne 0x14000bc5d
cmp byte [0x1400d1574], r14b
jne 0x14000bd78
cmp byte [0x1400d1572], r14b
jne 0x14000bd78
lea rdx, [0x1400097c0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
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, rax
lea rdx, str._mega_cmd_server_is_probably_down._Type_to_respawn_or_reconnect_to_it_
call fcn.140008c90
lea rdx, [0x1400097c0]
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 r14d, 0x1d
jmp 0x14000bc67
sub r14d, 1
je 0x14000bdbf
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14000bcb0
inc rdx
mov rcx, qword [rsp + 0x58]
cmp rdx, 0x1000
mov rax, rcx
jb 0x14000bcab
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000be10
call fcn.140055590
cmp byte [0x1400d1574], 0
jne 0x14000be17
xor eax, eax
jmp 0x14000ba41
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.ERROR_reading_state_from_MEGAcmd_server:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140008c90
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
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___int____ptr64]
lea rdx, [0x1400097c0]
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, r13
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14000bd49
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bd44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000be10
call fcn.140055590
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140055ba0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14000bdbb
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bdb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000be10
call fcn.140055590
xor eax, eax
jmp 0x14000bd4e
mov byte [0x1400d1571], 1
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x14000bd49
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bd44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bd44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14000bd4e
call fcn.1400558f8
int3
call fcn.14000a220
int3