Function at 0x140008000
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x338
movups xmmword [rsp + 0x320], xmm6
xor r12d, r12d
xor ebp, ebp
xor r14d, r14d
movq xmm6, qword [0x1400741f0]
lea rax, [rcx + 0x130]
mov rdi, rcx
mov qword [rsp + 0x30], rax
jmp 0x140008108
mov r15, qword [rsp + 0x30]
mov rcx, r15
call sym.pthread_mutex_lock
mov rdx, rbx
mov rcx, rdi
call sym.send_line
mov rcx, r15
mov esi, eax
call sym.pthread_mutex_unlock
lea rdx, str.stratum_subscribe_send_failed
test sil, sil
je 0x1400080be
mov rcx, qword [rdi + 0x118]
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x110]
mov dword [rsp + 0x110], 1
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x118], rcx
add ecx, 1
movq qword [rsp + 0x58], xmm6
call qword [sym.imp.WS2_32.dll_select]
lea rdx, str.stratum_subscribe_timed_out
test eax, eax
jg 0x140008178
xor ecx, ecx
call sym.applog
mov rcx, rbx
call sym.free
test rbp, rbp
je 0x1400080f0
mov eax, dword [rbp + 4]
cmp eax, 0xffffffff
je 0x1400080f0
sub eax, 1
mov dword [rbp + 4], eax
je 0x1400085e0
nop word cs:[rax + rax]
test r14, r14
je 0x1400082b5
test r12b, r12b
jne 0x1400082b5
mov r12d, 1
mov rsi, qword [rdi + 0x140]
test rsi, rsi
je 0x140008260
mov rcx, rsi
call sym.strlen
lea rcx, [rax + 0x80]
call sym.malloc
mov rbx, rax
test r12b, r12b
jne 0x140008248
mov r8, rsi
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_3.0.3_____s__
mov rcx, rax
call sym.sprintf_1
mov rax, qword [str.w__b_]
cmp byte [rax], 0
je 0x140008040
mov r8, rbx
lea rdx, [0x140073cc8]
mov ecx, 4
call sym.applog
jmp 0x140008040
mov rcx, rdi
call sym.stratum_recv_line
mov r14, rax
test rax, rax
je 0x140008290
lea r13, [rsp + 0x60]
mov rcx, rax
mov rdx, r13
call sym.json_loads
mov rcx, r14
mov rbp, rax
call sym.free
test rbp, rbp
je 0x140008408
lea rdx, str.result
mov rcx, rbp
call sym.json_object_get
lea rdx, str.error
mov rcx, rbp
mov qword [rsp + 0x38], rax
mov r15, rax
call sym.json_object_get
mov r13, rax
test r15, r15
je 0x1400083c8
cmp dword [r15], 7
je 0x1400083c8
test rax, rax
je 0x1400082d8
cmp dword [rax], 7
je 0x1400082d8
mov rax, qword [str.x__b_]
cmp byte [rax], 0
jne 0x140008590
test r12b, r12b
jne 0x140008590
mov rcx, rbx
call sym.free
mov eax, dword [rbp + 4]
cmp eax, 0xffffffff
je 0x140008102
sub eax, 1
mov dword [rbp + 4], eax
jne 0x140008102
mov rcx, rbp
call sym.json_delete
jmp 0x140008102
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___
mov rcx, rbx
call sym.sprintf_1
jmp 0x14000814a
mov ecx, pe_nt_image_headers64
call sym.malloc
mov rbx, rax
test r12b, r12b
jne 0x140008248
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_3.0.3__
mov rcx, rax
call sym.sprintf_1
jmp 0x14000814a
mov rcx, rbx
call sym.free
test rbp, rbp
je 0x1400082b5
mov eax, dword [rbp + 4]
cmp eax, 0xffffffff
je 0x1400082b5
sub eax, 1
mov dword [rbp + 4], eax
jne 0x1400082b5
mov rcx, rbp
call sym.json_delete
xor esi, esi
movups xmm6, xmmword [rsp + 0x320]
mov eax, esi
add rsp, 0x338
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x38]
xor edx, edx
call sym.json_array_get
test rax, rax
je 0x140008430
cmp dword [rax], 1
jne 0x140008430
mov rcx, rax
mov qword [rsp + 0x40], rax
xor r15d, r15d
call sym.json_array_size
mov r9, qword [rsp + 0x40]
test eax, eax
jle 0x140008382
mov qword [rsp + 0x40], rbx
mov r13d, eax
mov rbx, r9
mov byte [rsp + 0x4f], sil
jmp 0x140008365
cmp dword [rax], 1
jne 0x140008378
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 0x14000835c
lea rdx, str.mining.notify
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140008653
add r15d, 1
cmp r13d, r15d
je 0x140008378
mov edx, r15d
mov rcx, rbx
call sym.json_array_get
mov rsi, rax
test rax, rax
jne 0x140008328
mov rbx, qword [rsp + 0x40]
movzx esi, byte [rsp + 0x4f]
mov qword [rsp + 0x40], 0
mov eax, esi
mov r13, qword [str.x__b_]
cmp byte [r13], 0
je 0x14000844b
test al, al
je 0x14000844b
nop word [rax + rax]
lea rdx, str.Failed_to_get_Stratum_session_id
mov ecx, 4
call sym.applog
jmp 0x140008442
mov rax, qword [str.x__b_]
cmp byte [rax], 0
jne 0x1400083dd
test r12b, r12b
je 0x140008217
mov rcx, rbx
call sym.free
test r13, r13
jne 0x140008598
lea rcx, str._unknown_reason_
call sym.strdup
mov rbx, rax
jmp 0x1400085a8
mov r8d, dword [rsp + 0x100]
xor ecx, ecx
mov r9, r13
lea rdx, str.JSON_decode_failed__d_:__s
call sym.applog
mov rcx, rbx
call sym.free
jmp 0x1400080f0
mov r13, qword [str.x__b_]
cmp byte [r13], 0
jne 0x1400083b0
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x38]
mov edx, 1
call sym.json_array_get
mov rcx, rax
call sym.json_string_value
lea rdx, str.Failed_to_get_extranonce1
mov r15, rax
test rax, rax
je 0x1400085d7
mov rcx, qword [rsp + 0x38]
mov edx, 2
call sym.json_array_get
mov rcx, rax
call sym.json_integer_value
lea rdx, str.Failed_to_get_extranonce2_size
test eax, eax
je 0x1400085d7
cmp eax, 0x64
ja 0x1400085d0
lea r12, [rdi + 0x1c8]
mov r14, r15
mov r15, r13
movsxd r13, eax
mov rcx, r12
call sym.pthread_mutex_lock
mov rcx, qword [rdi + 0x140]
call sym.free
mov rcx, qword [rdi + 0x150]
call sym.free
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400085f0
mov rcx, rax
call sym.strdup
mov rcx, r14
mov qword [rdi + 0x140], rax
call sym.strlen
shr rax, 1
mov qword [rdi + 0x148], rax
mov rcx, rax
mov qword [rsp + 0x30], rax
call sym.malloc
mov r8, qword [rsp + 0x30]
mov rdx, r14
mov qword [rdi + 0x150], rax
mov rcx, rax
call sym.hex2bin
mov rax, qword [0x1400741c8]
mov qword [rdi + 0x158], r13
mov rcx, r12
mov qword [rdi + 0x138], rax
call sym.pthread_mutex_unlock
cmp byte [r15], 0
je 0x140008562
mov r8, qword [rdi + 0x140]
lea rdx, str.Stratum_session_id:__s
mov ecx, 4
call sym.applog
mov rcx, rbx
call sym.free
mov eax, dword [rbp + 4]
cmp eax, 0xffffffff
je 0x1400082b7
sub eax, 1
mov dword [rbp + 4], eax
jne 0x1400082b7
mov rcx, rbp
call sym.json_delete
jmp 0x1400082b7
mov rcx, rbx
call sym.free
mov edx, 3
mov rcx, r13
call sym.json_dumps
mov rbx, rax
mov r8, rbx
lea rdx, str.JSON_RPC_call_failed:__s
xor ecx, ecx
call sym.applog
mov rcx, rbx
call sym.free
jmp 0x1400080d2
lea rdx, str.Invalid_value_of_extranonce2_size
xor ecx, ecx
call sym.applog
jmp 0x1400085b9
mov rcx, rbp
call sym.json_delete
jmp 0x1400080f0
mov qword [rdi + 0x140], 0
mov rcx, r14
call sym.strlen
shr rax, 1
mov qword [rdi + 0x148], rax
mov rcx, rax
mov qword [rsp + 0x30], rax
call sym.malloc
mov r8, qword [rsp + 0x30]
mov rdx, r14
mov qword [rdi + 0x150], rax
mov rcx, rax
call sym.hex2bin
mov rax, qword [0x1400741c8]
mov qword [rdi + 0x158], r13
mov rcx, r12
mov qword [rdi + 0x138], rax
call sym.pthread_mutex_unlock
jmp 0x140008562
mov r13, rsi
mov edx, 1
mov rbx, qword [rsp + 0x40]
movzx esi, byte [rsp + 0x4f]
mov rcx, r13
call sym.json_array_get
mov rcx, rax
call sym.json_string_value
test rax, rax
mov qword [rsp + 0x40], rax
sete al
jmp 0x14000838d