Function at 0x140012f80
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 [0x14007b100]
xor rax, rsp
mov qword [rsp + 0xa50], rax
mov rbp, rcx
lea rdx, [0x14006e7a4]
mov rcx, qword [rcx + 0x128]
xor edi, edi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
or rsi, 0xffffffffffffffff
test rax, rax
jne 0x140013181
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, qword [rbp + 0x118]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x48], rcx
xor r9d, r9d
mov qword [rsp + 0x20], rdx
inc ecx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 1
xor r8d, r8d
mov qword [rsp + 0x30], reloc.WLDAP32.dll_Ordinal_60
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x140013030
lea rdx, str.stratum_recv_line_timed_out
xor ecx, ecx
call fcn.140012120
jmp 0x140013222
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x800
call sub.VCRUNTIME140.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 0x1400130b9
jns 0x1400130cc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400130b9
mov rax, qword [rbp + 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 0x140013151
lea rdx, str.stratum_recv_line_failed
xor ecx, ecx
call fcn.140012120
jmp 0x140013222
mov rcx, qword [rbp + 0x128]
mov rbx, rsi
inc rbx
cmp byte [rcx + rbx], dil
jne 0x1400130d6
lea rdx, [rsp + 0x250]
mov rax, rsi
nop word [rax + rax]
inc rax
cmp byte [rdx + rax], dil
jne 0x1400130f0
lea rdx, [rbx + 1]
add rdx, rax
cmp rdx, qword [rbp + 0x120]
jb 0x14001312b
and rdx, 0xfffffffffffff800
add rdx, 0x800
mov qword [rbp + 0x120], rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x128]
lea rdx, [rsp + 0x250]
add rax, rbx
nop dword [rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140013140
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
sub rax, qword [rsp + 0x38]
cmp rax, 0x3c
jge 0x140013181
mov rcx, qword [rbp + 0x128]
lea rdx, [0x14006e7d4]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140013030
mov rcx, qword [rbp + 0x128]
mov rbx, rsi
nop dword [rax + rax]
inc rbx
cmp byte [rcx + rbx], dil
jne 0x140013190
lea rdx, [0x14006e7f4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
test rax, rax
jne 0x1400131bb
lea rdx, str.stratum_recv_line_failed_to_parse_a_newline_terminated_string
xor ecx, ecx
call fcn.140012120
jmp 0x140013222
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rdi, rax
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400131c7
lea rax, [rsi + 1]
cmp rbx, rax
jle 0x1400131f6
mov rcx, qword [rbp + 0x128]
sub rbx, rsi
lea rdx, [rcx + 1]
add rdx, rsi
lea r8, [rbx + 1]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
jmp 0x140013200
mov rax, qword [rbp + 0x128]
mov byte [rax], 0
test rdi, rdi
je 0x140013222
cmp dword [0x14007ee84], 0
je 0x140013222
mov r8, rdi
lea rdx, str.___s
mov ecx, 4
call fcn.140012120
mov rax, rdi
mov rcx, qword [rsp + 0xa50]
xor rcx, rsp
call fcn.14005c440
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