Function at 0x14001c450
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xa60
mov rax, qword [0x14008d0f8]
xor rax, rsp
mov qword [rsp + 0xa50], rax
movsxd r14, dword [0x14008d188]
mov rsi, rcx
mov rcx, qword [rcx + 0x128]
xor ebp, ebp
test rcx, rcx
jne 0x14001c48d
xor eax, eax
jmp 0x14001c73e
mov qword [rsp + 0xa88], rbx
lea rdx, reloc.WS2_32.dll_ioctlsocket
mov qword [rsp + 0xa90], rdi
mov qword [rsp + 0xa98], r15
call qword [sym.imp.VCRUNTIME140.dll_strstr]
or rdi, 0xffffffffffffffff
test rax, rax
jne 0x14001c681
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, qword [rsi + 0x118]
lea rdx, [rsp + 0x40]
mov r15, rax
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 1
inc ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x30], r14d
xor r8d, r8d
mov dword [rsp + 0x34], ebp
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x14001c520
lea rdx, str.stratum_recv_line_timed_out
xor ecx, ecx
call fcn.14001ae00
jmp 0x14001c723
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x800
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsi + 0x118]
lea rdx, [rsp + 0x250]
xor r9d, r9d
mov r8d, 0x7fc
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14001c5a9
jns 0x14001c5c8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14001c5a9
mov rax, qword [rsi + 0x118]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x30], 1
lea ecx, [rax + 1]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x14001c651
cmp dword [0x1400a7b1c], ebp
je 0x14001c723
lea rdx, str.stratum_recv_line_failed
xor ecx, ecx
call fcn.14001ae00
jmp 0x14001c723
mov rcx, qword [rsi + 0x128]
mov rbx, rdi
inc rbx
cmp byte [rcx + rbx], bpl
jne 0x14001c5d2
lea rdx, [rsp + 0x250]
mov rax, rdi
inc rax
cmp byte [rdx + rax], bpl
jne 0x14001c5e6
lea rdx, [rbx + 1]
add rdx, rax
cmp rdx, qword [rsi + 0x120]
jb 0x14001c621
and rdx, 0xfffffffffffff800
add rdx, 0x800
mov qword [rsi + 0x120], rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rsi + 0x128], rax
mov rdx, qword [rsi + 0x128]
lea rcx, [rsp + 0x250]
add rdx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14001c640
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
sub rcx, r15
cmp rcx, r14
jge 0x14001c681
mov rcx, qword [rsi + 0x128]
lea rdx, reloc.WS2_32.dll_ioctlsocket
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14001c520
mov rcx, qword [rsi + 0x128]
mov rbx, rdi
nop dword [rax + rax]
inc rbx
cmp byte [rcx + rbx], bpl
jne 0x14001c690
lea rdx, reloc.WS2_32.dll_ioctlsocket
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
test rax, rax
jne 0x14001c6bb
lea rdx, str.stratum_recv_line_failed_to_parse_a_newline_terminated_string
xor ecx, ecx
call fcn.14001ae00
jmp 0x14001c723
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbp, rax
inc rdi
cmp byte [rdi + rax], 0
jne 0x14001c6c7
lea eax, [rdi + 1]
cmp ebx, eax
jle 0x14001c6f7
mov rcx, qword [rsi + 0x128]
sub ebx, edi
inc ebx
movsxd rax, edi
movsxd r8, ebx
lea rdx, [rcx + 1]
add rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_memmove]
jmp 0x14001c701
mov rax, qword [rsi + 0x128]
mov byte [rax], 0
test rbp, rbp
je 0x14001c723
cmp dword [0x1400a7850], 0
je 0x14001c723
mov r8, rbp
lea rdx, str.___s
mov ecx, 4
call fcn.14001ae00
mov r15, qword [rsp + 0xa98]
mov rax, rbp
mov rdi, qword [rsp + 0xa90]
mov rbx, qword [rsp + 0xa88]
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.14006df60
add rsp, 0xa60
pop r14
pop rsi
pop rbp
ret