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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x860
mov edx, 0xa
mov r13, qword [rcx + 0x128]
mov rbx, rcx
mov rcx, r13
call sym.strchr
test rax, rax
je 0x100405160
mov rcx, r13
call sym.strlen
lea rdx, [0x10046855e]
mov rcx, r13
mov rdi, rax
call sym.strtok
test rax, rax
je 0x1004053ac
mov rcx, rax
call sym.strdup
mov rsi, rax
mov r9, rax
mov ecx, dword [r9]
add r9, 4
lea edx, [rcx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x1004050b2
mov eax, edx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea rax, [r9 + 2]
cmove r9, rax
add dl, dl
sbb r9, 3
sub r9, rsi
lea rdx, [r9 + 1]
cmp rdi, rdx
jg 0x100405140
mov rax, qword [rbx + 0x128]
mov byte [rax], 0
test rsi, rsi
je 0x100405122
mov rax, qword [0x100469560]
cmp byte [rax], 0
je 0x100405122
lea rdx, str.___s
mov r8, rsi
mov ecx, 7
call sym.applog
mov rax, rsi
add rsp, 0x860
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rbx + 0x128]
sub rdi, r9
lea r8, [rdi + 1]
add rdx, rcx
call sym.memmove
jmp 0x1004050fd
lea rcx, [rsp + 0x30]
call sym.time
mov ecx, dword [rbx + 0x118]
mov edx, 1
mov qword [rsp + 0x50], 0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x60], 0x3c
lea rdi, [rsp + 0x50]
mov qword [rsp + 0x68], 0
lea rsi, [rsp + 0x60]
movsxd rax, ecx
shl rdx, cl
add ecx, 1
shr rax, 6
or qword [rsp + rax*8 + 0x50], rdx
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call sym.select
test eax, eax
jle 0x100405380
lea rbp, [rsp + 0x40]
mov r12d, 1
jmp 0x1004052a9
mov r13, qword [rbx + 0x128]
mov rcx, r13
call sym.strlen
mov r9, rsi
mov r14, rax
mov edx, dword [r9]
add r9, 4
lea r8d, [rdx - 0x1010101]
not edx
and r8d, edx
and r8d, 0x80808080
je 0x1004051f5
mov eax, r8d
shr eax, 0x10
test r8d, 0x8080
cmove r8d, eax
lea rax, [r9 + 2]
cmove r9, rax
add r8b, r8b
sbb r9, 3
sub r9, rsi
lea rdx, [r9 + r14 + 1]
cmp rdx, qword [rbx + 0x120]
jb 0x100405269
and rdx, 0xfffffffffffff800
mov rcx, r13
add rdx, 0x800
mov qword [rbx + 0x120], rdx
call sym.realloc
mov qword [rbx + 0x128], rax
mov r13, rax
lea rcx, [r13 + r14]
mov rdx, rsi
call sym.strcpy
xor ecx, ecx
call sym.time
sub rax, qword [rsp + 0x30]
cmp rax, 0x3b
jg 0x1004053a0
mov r13, qword [rbx + 0x128]
mov edx, 0xa
mov rcx, r13
call sym.strchr
test rax, rax
jne 0x100405081
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call sym.memset
mov ecx, dword [rbx + 0x118]
xor r9d, r9d
mov r8d, 0x7fc
mov rdx, rsi
call sym.recv
test rax, rax
je 0x100405364
jns 0x1004051e0
nop
call sym.__errno
cmp dword [rax], 0xb
je 0x1004052f4
call sym.__errno
cmp dword [rax], 0xb
jne 0x100405364
mov ecx, dword [rbx + 0x118]
mov rdx, r12
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x41], 0
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x42], 0
mov byte [rsp + 0x43], 0
movsxd rax, ecx
shl rdx, cl
mov byte [rsp + 0x44], 0
shr rax, 6
mov byte [rsp + 0x45], 0
add ecx, 1
mov byte [rsp + 0x46], 0
mov byte [rsp + 0x47], 0
or qword [rsp + rax*8 + 0x40], rdx
mov qword [rsp + 0x20], rdi
mov rdx, rbp
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x58], 0
call sym.select
test eax, eax
jg 0x100405276
lea rdx, str.stratum_recv_line_failed
mov ecx, 3
call sym.applog
xor esi, esi
jmp 0x100405122
lea rdx, str.stratum_recv_line_timed_out
mov ecx, 3
xor esi, esi
call sym.applog
jmp 0x100405122
mov r13, qword [rbx + 0x128]
jmp 0x100405081
lea rdx, str.stratum_recv_line_failed_to_parse_a_newline_terminated_string
mov ecx, 3
call sym.applog
jmp 0x100405375