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

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xa60
mov rax, qword [0x14017f8e0]
xor rax, rsp
mov qword [rsp + 0xa50], rax
movsxd r14, dword [0x14017f948]
mov rsi, rcx
mov rcx, qword [rcx + 0x28]
xor ebp, ebp
test rcx, rcx
jne 0x14003477a
xor eax, eax
jmp 0x140034a20
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 0x14003496e
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 0x140034820
cmp byte [0x140190370], bpl
jne 0x140034a05
lea rdx, str.stratum_recv_line_timed_out
xor ecx, ecx
call fcn.140033450
jmp 0x140034a05
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 0x1400348a3
jns 0x1400348c3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400348a3
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 0x140034941
cmp byte [0x140190372], bpl
je 0x140034a05
lea rdx, str.stratum_recv_line_failed
xor ecx, ecx
call fcn.140033450
jmp 0x140034a05
mov rcx, qword [rsi + 0x28]
mov rbx, rdi
nop word [rax + rax]
inc rbx
cmp byte [rcx + rbx], bpl
jne 0x1400348d0
lea rdx, [rsp + 0x250]
mov rax, rdi
inc rax
cmp byte [rdx + rax], bpl
jne 0x1400348e4
lea rdx, [rbx + 1]
add rdx, rax
cmp rdx, qword [rsi + 0x20]
jb 0x14003491f
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 0x140034a3c
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 0x140034930
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 0x14003496e
mov rcx, qword [rsi + 0x28]
lea rdx, reloc.WS2_32.dll_ioctlsocket
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140034820
mov rcx, qword [rsi + 0x28]
mov rbx, rdi
inc rbx
cmp byte [rcx + rbx], bpl
jne 0x140034975
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 0x1400349a0
lea rdx, str.stratum_recv_line_failed_to_parse_a_newline_terminated_string
xor ecx, ecx
call fcn.140033450
jmp 0x140034a05
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 0x1400349b0
lea rax, [rdi + 1]
cmp rbx, rax
jbe 0x1400349dc
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 0x1400349e3
mov rax, qword [rsi + 0x28]
mov byte [rax], 0
test rbp, rbp
je 0x140034a05
cmp byte [0x140190371], 0
je 0x140034a05
mov r8, rbp
lea rdx, str.___s
mov ecx, 4
call fcn.140033450
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.140111120
add rsp, 0xa60
pop r14
pop rsi
pop rbp
ret
lea rdx, str.Out_of_memory_
xor ecx, ecx
call fcn.140033450
mov ecx, 2
call fcn.1400293c0
int3