Function at 0x14000c580
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x388
vmovups xmmword [rsp + 0x370], xmm6
mov rdx, qword [0x1401fd630]
movzx r12d, byte [rdx]
mov r13, rcx
test r12b, r12b
jne 0x14000c8d9
vmovq xmm6, qword [0x1401b3798]
xor edi, edi
xor ebx, ebx
xor esi, esi
lea r14, [rcx + 0x130]
mov byte [rsp + 0x3f], r12b
jmp 0x14000c673
mov rcx, qword [r13 + 0x118]
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x160]
mov dword [rsp + 0x160], 1
vmovq qword [rsp + 0x58], xmm6
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x168], rcx
inc ecx
call qword [sym.imp.WS2_32.dll_select]
lea rdx, str.stratum_subscribe_timed_out
test eax, eax
jg 0x14000c700
xor ecx, ecx
call sym.applog.constprop.0
mov rcx, r15
call sym.free
test rbx, rbx
je 0x14000c9b0
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x14000c65c
lock dec qword [rbx + 8]
je 0x14000ca40
test rsi, rsi
je 0x14000cb91
test dil, dil
jne 0x14000cb91
mov edi, 1
mov rbp, qword [r13 + 0x148]
test rbp, rbp
je 0x14000c940
mov rcx, rbp
call sym.strlen
lea rcx, [rax + 0x80]
call sym.malloc
mov r15, rax
test dil, dil
jne 0x14000c920
mov r8, rbp
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_multi_1.3.9.4_____s__
mov rcx, rax
call sym.sprintf_1
mov rax, qword [0x1401fd6f0]
cmp byte [rax], 0
jne 0x14000c900
mov rcx, r14
call sym.pthread_mutex_lock
mov rcx, r13
mov rdx, r15
call sym.send_line
mov rcx, r14
mov ebp, eax
call sym.pthread_mutex_unlock
test bpl, bpl
jne 0x14000c5e0
lea rdx, str.stratum_subscribe_send_failed
jmp 0x14000c62f
mov rcx, r13
call sym.stratum_recv_line
mov rsi, rax
test rax, rax
je 0x14000c970
xor edx, edx
mov rcx, rax
lea r8, [rsp + 0x60]
call sym.json_loads
mov rcx, rsi
mov rbx, rax
call sym.free
test rbx, rbx
je 0x14000ca50
lea rdx, str.result
mov rcx, rbx
call sym.json_object_get
lea rdx, str.error
mov rcx, rbx
mov r12, rax
mov qword [rsp + 0x30], rax
call sym.json_object_get
mov rbp, rax
test r12, r12
je 0x14000c9c0
cmp dword [r12], 7
je 0x14000c9c0
test rax, rax
je 0x14000c7b0
cmp dword [rax], 7
je 0x14000c7b0
mov rax, qword [0x1401fd6b0]
cmp byte [rax], 0
jne 0x14000c793
test dil, dil
je 0x14000c9d9
mov rcx, r15
call sym.free
mov rcx, rbp
mov edx, 3
call sym.json_dumps
mov rbp, rax
jmp 0x14000caa0
mov rcx, qword [rsp + 0x30]
xor edx, edx
call sym.json_array_get
test rax, rax
je 0x14000ca00
cmp dword [rax], 1
jne 0x14000ca00
mov rcx, rax
mov qword [rsp + 0x40], rax
call sym.json_array_size
test eax, eax
jle 0x14000ca00
mov qword [rsp + 0x48], r15
lea r12d, [rax - 1]
mov r15, qword [rsp + 0x40]
xor ebp, ebp
mov qword [rsp + 0x40], rbx
jmp 0x14000c840
cmp dword [rax], 1
jne 0x14000c853
xor edx, edx
mov rcx, rax
call sym.json_array_get
mov rcx, rax
call sym.json_string_value
mov rcx, rax
test rax, rax
je 0x14000c834
lea rdx, str.mining.notify
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
je 0x14000cabe
lea rax, [rbp + 1]
cmp rbp, r12
je 0x14000c853
mov rbp, rax
mov rdx, rbp
mov rcx, r15
call sym.json_array_get
mov rbx, rax
test rax, rax
jne 0x14000c800
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rbp, [r13 + 0x338]
mov rcx, rbp
call sym.pthread_mutex_lock
mov rcx, qword [r13 + 0x148]
test rcx, rcx
je 0x14000c87d
call sym.free
xor r8d, r8d
mov rax, qword [0x1401b3768]
mov rcx, rbp
mov qword [r13 + 0x148], r8
mov qword [r13 + 0x138], rax
call sym.pthread_mutex_unlock
mov r8d, 1
mov rcx, r13
mov rdx, qword [rsp + 0x30]
call sym.stratum_parse_extranonce
mov rcx, r15
mov ebp, eax
call sym.free
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x14000c8d0
lock dec qword [rbx + 8]
je 0x14000cb84
nop
test bpl, bpl
je 0x14000c65c
mov r12d, 1
vmovups xmm6, xmmword [rsp + 0x370]
mov eax, r12d
add rsp, 0x388
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8, r15
lea rdx, [0x1401b2b38]
mov ecx, 4
call sym.applog
jmp 0x14000c6c5
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___
mov rcx, r15
call sym.sprintf_1
jmp 0x14000c6b5
mov ecx, pe_nt_image_headers64
call sym.malloc
mov r15, rax
test dil, dil
jne 0x14000c920
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_multi_1.3.9.4__
mov rcx, rax
call sym.sprintf_1
jmp 0x14000c6b5
mov rcx, r15
movzx r12d, byte [rsp + 0x3f]
call sym.free
test rbx, rbx
je 0x14000c8df
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x14000c8df
lock dec qword [rbx + 8]
jne 0x14000c8df
mov rcx, rbx
call sym.json_delete
jmp 0x14000c8df
xor ebx, ebx
jmp 0x14000c65c
mov rax, qword [0x1401fd6b0]
cmp byte [rax], 0
jne 0x14000ca80
test dil, dil
jne 0x14000ca80
mov rcx, r15
call sym.free
mov rax, qword [rbx + 8]
cmp rax, 0xffffffffffffffff
je 0x14000c66e
jmp 0x14000c651
mov rax, qword [0x1401fd6b0]
cmp byte [rax], 0
jne 0x14000c85d
lea rbp, [r13 + 0x338]
mov rcx, rbp
call sym.pthread_mutex_lock
mov r8, qword [r13 + 0x148]
test r8, r8
je 0x14000c880
mov rcx, r8
call sym.free
xor r8d, r8d
jmp 0x14000c880
mov rcx, rbx
call sym.json_delete
jmp 0x14000c65c
mov r8d, dword [rsp + 0x60]
xor ecx, ecx
lea r9, [rsp + 0xbc]
lea rdx, str.JSON_decode_failed__d_:__s
call sym.applog.constprop.0
mov rcx, r15
call sym.free
jmp 0x14000c65c
mov rcx, r15
call sym.free
test rbp, rbp
jne 0x14000c79b
lea rcx, str._unknown_reason_
call sym.strdup
mov rbp, rax
xor ecx, ecx
mov r8, rbp
lea rdx, str.JSON_RPC_call_failed:__s
call sym.applog.constprop.0
mov rcx, rbp
call sym.free
jmp 0x14000c647
mov r12, rbx
mov edx, 1
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, r12
call sym.json_array_get
mov rcx, rax
call sym.json_string_value
mov r8, rax
mov rax, qword [0x1401fd6b0]
cmp byte [rax], 0
je 0x14000cb3a
test r8, r8
je 0x14000c85d
lea rdx, str.Stratum_session_id:__s
mov ecx, 4
lea rbp, [r13 + 0x338]
mov qword [rsp + 0x40], r8
call sym.applog
mov rcx, rbp
call sym.pthread_mutex_lock
mov rcx, qword [r13 + 0x148]
mov r8, qword [rsp + 0x40]
test rcx, rcx
je 0x14000cb68
call sym.free
mov r8, qword [rsp + 0x40]
jmp 0x14000cb68
lea rbp, [r13 + 0x338]
mov qword [rsp + 0x40], r8
mov rcx, rbp
call sym.pthread_mutex_lock
mov rcx, qword [r13 + 0x148]
mov r8, qword [rsp + 0x40]
test rcx, rcx
jne 0x14000cb78
test r8, r8
je 0x14000c880
mov rcx, r8
call sym.strdup
mov r8, rax
jmp 0x14000c880
call sym.free
mov r8, qword [rsp + 0x40]
jmp 0x14000cb5f
mov rcx, rbx
call sym.json_delete
jmp 0x14000c8d0
movzx r12d, byte [rsp + 0x3f]
jmp 0x14000c8df