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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xa60
mov rax, qword [0x140072100]
xor rax, rsp
mov qword [rsp + 0xa50], rax
mov rbp, rcx
mov rcx, qword [rcx + 0x128]
lea rdx, [0x140065cd4]
xor edi, edi
call qword [sym.imp.MSVCR120.dll_strstr]
or rsi, 0xffffffffffffffff
test rax, rax
jne 0x140015f72
lea rcx, [rsp + 0x38]
call qword [sym.imp.MSVCR120.dll__time64]
mov rcx, qword [rbp + 0x118]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x40]
inc ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x30], reloc.WLDAP32.dll_Ordinal_60
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x140015e10
lea rdx, str.stratum_recv_line_timed_out
xor ecx, ecx
call fcn.140014db0
jmp 0x140016012
lea rcx, [rsp + 0x250]
xor edx, edx
mov r8d, 0x800
call sub.MSVCR120.dll_memset
mov rcx, qword [rbp + 0x118]
lea rdx, [rsp + 0x250]
xor r9d, r9d
mov r8d, 0x7fc
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140015e99
jns 0x140015eac
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140015e99
mov rax, qword [rbp + 0x118]
lea rdx, [rsp + 0x40]
xor r9d, r9d
lea ecx, [rax + 1]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x140015f42
lea rdx, str.stratum_recv_line_failed
xor ecx, ecx
call fcn.140014db0
jmp 0x140016012
mov rcx, qword [rbp + 0x128]
mov rbx, rsi
inc rbx
cmp byte [rcx + rbx], dil
jne 0x140015eb6
lea rdx, [rsp + 0x250]
mov rax, rsi
nop word [rax + rax]
inc rax
cmp byte [rdx + rax], dil
jne 0x140015ed0
lea rdx, [rbx + 1]
add rdx, rax
cmp rdx, qword [rbp + 0x120]
jb 0x140015f0f
mov rax, rdx
and eax, 0x7ff
sub rdx, rax
add rdx, 0x800
mov qword [rbp + 0x120], rdx
call qword [sym.imp.MSVCR120.dll_realloc]
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x128]
lea rdx, [rsp + 0x250]
add rax, rbx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdx]
lea rax, [rax + 1]
lea rdx, [rdx + 1]
mov byte [rax - 1], cl
test cl, cl
jne 0x140015f30
xor ecx, ecx
call qword [sym.imp.MSVCR120.dll__time64]
sub rax, qword [rsp + 0x38]
cmp rax, 0x3c
jge 0x140015f72
mov rcx, qword [rbp + 0x128]
lea rdx, [0x140065cec]
call qword [sym.imp.MSVCR120.dll_strstr]
test rax, rax
je 0x140015e10
mov rcx, qword [rbp + 0x128]
mov rbx, rsi
nop dword [rax]
inc rbx
cmp byte [rcx + rbx], dil
jne 0x140015f80
lea rdx, [0x140065d04]
call qword [sym.imp.MSVCR120.dll_strtok]
test rax, rax
jne 0x140015fab
lea rdx, str.stratum_recv_line_failed_to_parse_a_newline_terminated_string
xor ecx, ecx
call fcn.140014db0
jmp 0x140016012
mov rcx, rax
call qword [sym.imp.MSVCR120.dll__strdup]
mov rdi, rax
inc rsi
cmp byte [rax + rsi], 0
jne 0x140015fb7
lea rax, [rsi + 1]
cmp rbx, rax
jle 0x140015fe6
mov rcx, qword [rbp + 0x128]
sub rbx, rsi
lea rdx, [rcx + 1]
lea r8, [rbx + 1]
add rdx, rsi
call qword [sym.imp.MSVCR120.dll_memmove]
jmp 0x140015ff0
mov rax, qword [rbp + 0x128]
mov byte [rax], 0
test rdi, rdi
je 0x140016012
cmp dword [0x140075210], 0
je 0x140016012
lea rdx, str.___s
mov r8, rdi
mov ecx, 4
call fcn.140014db0
mov rax, rdi
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.140058040
lea r11, [rsp + 0xa60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret