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

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xa60
mov rax, qword [0x1401858e0]
xor rax, rsp
mov qword [rsp + 0xa50], rax
movsxd r14, dword [0x140185948]
mov rsi, rcx
mov rcx, qword [rcx + 0x28]
xor ebp, ebp
test rcx, rcx
jne 0x14003506a
xor eax, eax
jmp 0x140035310
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 0x14003525e
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, qword [rsi + 0x18]
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 0x140035110
cmp byte [0x140196522], bpl
jne 0x1400352f5
lea rdx, str.stratum_recv_line_timed_out
xor ecx, ecx
call fcn.140033bd0
jmp 0x1400352f5
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x800
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsi + 0x18]
lea rdx, [rsp + 0x250]
xor r9d, r9d
mov r8d, 0x7fc
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140035193
jns 0x1400351b3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140035193
mov rax, qword [rsi + 0x18]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x30], 0xa
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 0x140035231
cmp byte [0x1401965da], bpl
je 0x1400352f5
lea rdx, str.stratum_recv_line_failed
xor ecx, ecx
call fcn.140033bd0
jmp 0x1400352f5
mov rcx, qword [rsi + 0x28]
mov rbx, rdi
nop word [rax + rax]
inc rbx
cmp byte [rcx + rbx], bpl
jne 0x1400351c0
lea rdx, [rsp + 0x250]
mov rax, rdi
inc rax
cmp byte [rdx + rax], bpl
jne 0x1400351d4
lea rdx, [rbx + 1]
add rdx, rax
cmp rdx, qword [rsi + 0x20]
jb 0x14003520f
and rdx, 0xfffffffffffff800
add rdx, 0x800
mov qword [rsi + 0x20], rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rsi + 0x28], rax
test rax, rax
je 0x14003532c
mov rdx, qword [rsi + 0x28]
lea rcx, [rsp + 0x250]
add rdx, rbx
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140035220
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 0x14003525e
mov rcx, qword [rsi + 0x28]
lea rdx, reloc.WS2_32.dll_ioctlsocket
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140035110
mov rcx, qword [rsi + 0x28]
mov rbx, rdi
inc rbx
cmp byte [rcx + rbx], bpl
jne 0x140035265
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 0x140035290
lea rdx, str.stratum_recv_line_failed_to_parse_a_newline_terminated_string
xor ecx, ecx
call fcn.140033bd0
jmp 0x1400352f5
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbp, rax
nop dword [rax]
inc rdi
cmp byte [rdi + rax], 0
jne 0x1400352a0
lea rax, [rdi + 1]
cmp rbx, rax
jbe 0x1400352cc
mov rcx, qword [rsi + 0x28]
sub rbx, rdi
lea rdx, [rcx + 1]
add rdx, rdi
lea r8, [rbx + 1]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
jmp 0x1400352d3
mov rax, qword [rsi + 0x28]
mov byte [rax], 0
test rbp, rbp
je 0x1400352f5
cmp byte [0x1401965d9], 0
je 0x1400352f5
mov r8, rbp
lea rdx, str.___s
mov ecx, 4
call fcn.140033bd0
mov rdi, qword [rsp + 0xa90]
mov rax, rbp
mov rbx, qword [rsp + 0xa88]
mov r15, qword [rsp + 0xa98]
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.1401150e0
add rsp, 0xa60
pop r14
pop rsi
pop rbp
ret
lea rdx, str.Out_of_memory_
xor ecx, ecx
call fcn.140033bd0
mov ecx, 2
call fcn.1400293d0
int3