Function at 0x1400088b0
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x338
vmovups xmmword [rsp + 0x320], xmm6
vmovq xmm6, qword [0x1401715f8]
xor ebp, ebp
xor r15d, r15d
xor r13d, r13d
lea rax, [rcx + 0x130]
mov rdi, rcx
mov qword [rsp + 0x30], rax
jmp 0x1400089b7
mov r14, qword [rsp + 0x30]
mov rcx, r14
call sym.pthread_mutex_lock
mov rdx, rbx
mov rcx, rdi
call sym.send_line
mov rcx, r14
mov esi, eax
call sym.pthread_mutex_unlock
lea rdx, str.stratum_subscribe_send_failed
test sil, sil
je 0x14000896e
mov rcx, qword [rdi + 0x118]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x110], 1
xor r9d, r9d
lea rdx, [rsp + 0x110]
vmovq qword [rsp + 0x58], xmm6
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x118], rcx
add ecx, 1
call qword [sym.imp.WS2_32.dll_select]
lea rdx, str.stratum_subscribe_timed_out
test eax, eax
jg 0x140008a28
xor ecx, ecx
call sym.applog
mov rcx, rbx
call sym.free
test r15, r15
je 0x1400089a0
mov eax, dword [r15 + 4]
cmp eax, 0xffffffff
je 0x1400089a0
sub eax, 1
mov dword [r15 + 4], eax
je 0x140008ea0
nop dword [rax + rax]
test r13, r13
je 0x140008b67
test bpl, bpl
jne 0x140008b67
mov ebp, 1
mov rsi, qword [rdi + 0x140]
test rsi, rsi
je 0x140008b10
mov rcx, rsi
call sym.strlen
lea rcx, [rax + 0x80]
call sym.malloc
mov rbx, rax
test bpl, bpl
jne 0x140008af8
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_scash_3.0.6_____s__
mov r8, rsi
mov rcx, rax
call sym.sprintf_1
mov rax, qword [0x140187820]
cmp byte [rax], 0
je 0x1400088f0
lea rdx, [0x140171090]
mov r8, rbx
mov ecx, 4
call sym.applog
jmp 0x1400088f0
mov rcx, rdi
call sym.stratum_recv_line
mov r13, rax
test rax, rax
je 0x140008b40
lea r12, [rsp + 0x60]
mov rcx, rax
mov rdx, r12
call sym.json_loads
mov rcx, r13
mov r15, rax
call sym.free
test r15, r15
je 0x140008cc8
lea rdx, str.result
mov rcx, r15
call sym.json_object_get
lea rdx, str.error
mov rcx, r15
mov r14, rax
mov qword [rsp + 0x38], rax
call sym.json_object_get
test r14, r14
je 0x140008c80
cmp dword [r14], 7
je 0x140008c80
test rax, rax
je 0x140008b90
cmp dword [rax], 7
je 0x140008b90
mov rdx, qword [0x140187810]
cmp byte [rdx], 0
jne 0x140008e48
test bpl, bpl
jne 0x140008e48
mov rcx, rbx
call sym.free
mov eax, dword [r15 + 4]
cmp eax, 0xffffffff
je 0x1400089b2
sub eax, 1
mov dword [r15 + 4], eax
jne 0x1400089b2
mov rcx, r15
call sym.json_delete
jmp 0x1400089b2
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___
mov rcx, rbx
call sym.sprintf_1
jmp 0x1400089f9
mov ecx, pe_nt_image_headers64
call sym.malloc
mov rbx, rax
test bpl, bpl
jne 0x140008af8
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_scash_3.0.6__
mov rcx, rax
call sym.sprintf_1
jmp 0x1400089f9
mov rcx, rbx
call sym.free
test r15, r15
je 0x140008b67
mov eax, dword [r15 + 4]
cmp eax, 0xffffffff
je 0x140008b67
sub eax, 1
mov dword [r15 + 4], eax
jne 0x140008b67
mov rcx, r15
call sym.json_delete
xor esi, esi
vmovups 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 0x140008cf0
cmp dword [rax], 1
jne 0x140008cf0
mov rcx, rax
mov qword [rsp + 0x40], rax
xor r12d, r12d
call sym.json_array_size
mov rdx, qword [rsp + 0x40]
test eax, eax
jle 0x140008c3a
mov qword [rsp + 0x40], rbx
mov rbx, rdx
mov qword [rsp + 0x48], r15
mov r15d, eax
jmp 0x140008c1d
cmp dword [rax], 1
jne 0x140008c30
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 0x140008c14
lea rdx, str.mining.notify
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140008f23
add r12d, 1
cmp r15d, r12d
je 0x140008c30
mov edx, r12d
mov rcx, rbx
call sym.json_array_get
mov r14, rax
test rax, rax
jne 0x140008be0
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov eax, esi
xor r14d, r14d
mov rdx, qword [0x140187810]
cmp byte [rdx], 0
mov qword [rsp + 0x40], rdx
je 0x140008d08
test al, al
je 0x140008d08
nop dword [rax]
lea rdx, str.Failed_to_get_Stratum_session_id
mov ecx, 4
call sym.applog
jmp 0x140008d05
mov rdx, qword [0x140187810]
cmp byte [rdx], 0
jne 0x140008c95
test bpl, bpl
je 0x140008ac4
mov rcx, rbx
mov qword [rsp + 0x38], rax
call sym.free
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140008e5a
lea rcx, str._unknown_reason_
call sym.strdup
mov rbx, rax
jmp 0x140008e6a
mov r8d, dword [rsp + 0x100]
xor ecx, ecx
mov r9, r12
lea rdx, str.JSON_decode_failed__d_:__s
call sym.applog
mov rcx, rbx
call sym.free
jmp 0x1400089a0
mov rax, qword [0x140187810]
cmp byte [rax], 0
mov qword [rsp + 0x40], rax
jne 0x140008c60
xor r14d, r14d
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 r12, rax
test rax, rax
je 0x140008e97
mov rcx, qword [rsp + 0x38]
mov edx, 2
call sym.json_array_get
mov rcx, rax
call sym.json_integer_value
test eax, eax
je 0x140008f10
cmp eax, 0x64
ja 0x140008e90
lea rbp, [rdi + 0x1c8]
mov dword [rsp + 0x30], eax
mov rcx, rbp
call sym.pthread_mutex_lock
mov rcx, qword [rdi + 0x140]
call sym.free
mov rcx, qword [rdi + 0x150]
call sym.free
movsxd r13, dword [rsp + 0x30]
test r14, r14
je 0x140008eb0
mov rcx, r14
call sym.strdup
mov rcx, r12
mov qword [rdi + 0x140], rax
call sym.strlen
shr rax, 1
mov rcx, rax
mov qword [rdi + 0x148], rax
mov r14, rax
call sym.malloc
mov r8, r14
mov rdx, r12
mov rcx, rax
mov qword [rdi + 0x150], rax
call sym.hex2bin
mov rax, qword [0x1401715d0]
mov qword [rdi + 0x158], r13
mov rcx, rbp
mov qword [rdi + 0x138], rax
call sym.pthread_mutex_unlock
mov rax, qword [rsp + 0x40]
cmp byte [rax], 0
je 0x140008e13
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 [r15 + 4]
cmp eax, 0xffffffff
je 0x140008b69
sub eax, 1
mov dword [r15 + 4], eax
jne 0x140008b69
mov rcx, r15
call sym.json_delete
jmp 0x140008b69
mov rcx, rbx
mov qword [rsp + 0x38], rax
call sym.free
mov rax, qword [rsp + 0x38]
mov edx, 3
mov rcx, rax
call sym.json_dumps
mov rbx, rax
lea rdx, str.JSON_RPC_call_failed:__s
mov r8, rbx
xor ecx, ecx
call sym.applog
mov rcx, rbx
call sym.free
jmp 0x140008982
lea rdx, str.Invalid_value_of_extranonce2_size
xor ecx, ecx
call sym.applog
jmp 0x140008e7b
mov rcx, r15
call sym.json_delete
jmp 0x1400089a0
mov qword [rdi + 0x140], 0
mov rcx, r12
call sym.strlen
shr rax, 1
mov qword [rdi + 0x148], rax
mov rcx, rax
mov r14, rax
call sym.malloc
mov r8, r14
mov rdx, r12
mov rcx, rax
mov qword [rdi + 0x150], rax
call sym.hex2bin
mov rax, qword [0x1401715d0]
mov qword [rdi + 0x158], r13
mov rcx, rbp
mov qword [rdi + 0x138], rax
call sym.pthread_mutex_unlock
jmp 0x140008e13
lea rdx, str.Failed_to_get_extranonce2_size
xor ecx, ecx
call sym.applog
jmp 0x140008e7b
mov rcx, r14
mov edx, 1
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
call sym.json_array_get
mov rcx, rax
call sym.json_string_value
test rax, rax
mov r14, rax
sete al
jmp 0x140008c3f