Function at 0x140008120
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 [0x1400742b0]
lea rax, [rcx + 0x130]
mov rdi, rcx
mov qword [rsp + 0x30], rax
jmp 0x140008228
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 0x1400081de
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 0x140008298
xor ecx, ecx
call sym.applog
mov rcx, rbx
call sym.free
test rbp, rbp
je 0x140008210
mov eax, dword [rbp + 4]
cmp eax, 0xffffffff
je 0x140008210
sub eax, 1
mov dword [rbp + 4], eax
je 0x140008700
nop word cs:[rax + rax]
test r14, r14
je 0x1400083d5
test r12b, r12b
jne 0x1400083d5
mov r12d, 1
mov rsi, qword [rdi + 0x140]
test rsi, rsi
je 0x140008380
mov rcx, rsi
call sym.strlen
lea rcx, [rax + 0x80]
call sym.malloc
mov rbx, rax
test r12b, r12b
jne 0x140008368
mov r8, rsi
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_3.0.4_____s__
mov rcx, rax
call sym.sprintf_1
mov rax, qword [0x140079400]
cmp byte [rax], 0
je 0x140008160
mov r8, rbx
lea rdx, [0x140073d88]
mov ecx, 4
call sym.applog
jmp 0x140008160
mov rcx, rdi
call sym.stratum_recv_line
mov r14, rax
test rax, rax
je 0x1400083b0
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 0x140008528
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 0x1400084e8
cmp dword [r15], 7
je 0x1400084e8
test rax, rax
je 0x1400083f8
cmp dword [rax], 7
je 0x1400083f8
mov rax, qword [0x1400793f0]
cmp byte [rax], 0
jne 0x1400086b0
test r12b, r12b
jne 0x1400086b0
mov rcx, rbx
call sym.free
mov eax, dword [rbp + 4]
cmp eax, 0xffffffff
je 0x140008222
sub eax, 1
mov dword [rbp + 4], eax
jne 0x140008222
mov rcx, rbp
call sym.json_delete
jmp 0x140008222
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___
mov rcx, rbx
call sym.sprintf_1
jmp 0x14000826a
mov ecx, pe_nt_image_headers64
call sym.malloc
mov rbx, rax
test r12b, r12b
jne 0x140008368
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_3.0.4__
mov rcx, rax
call sym.sprintf_1
jmp 0x14000826a
mov rcx, rbx
call sym.free
test rbp, rbp
je 0x1400083d5
mov eax, dword [rbp + 4]
cmp eax, 0xffffffff
je 0x1400083d5
sub eax, 1
mov dword [rbp + 4], eax
jne 0x1400083d5
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 0x140008550
cmp dword [rax], 1
jne 0x140008550
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 0x1400084a2
mov qword [rsp + 0x40], rbx
mov r13d, eax
mov rbx, r9
mov byte [rsp + 0x4f], sil
jmp 0x140008485
cmp dword [rax], 1
jne 0x140008498
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 0x14000847c
lea rdx, str.mining.notify
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140008773
add r15d, 1
cmp r13d, r15d
je 0x140008498
mov edx, r15d
mov rcx, rbx
call sym.json_array_get
mov rsi, rax
test rax, rax
jne 0x140008448
mov rbx, qword [rsp + 0x40]
movzx esi, byte [rsp + 0x4f]
mov qword [rsp + 0x40], 0
mov eax, esi
mov r13, qword [0x1400793f0]
cmp byte [r13], 0
je 0x14000856b
test al, al
je 0x14000856b
nop word [rax + rax]
lea rdx, str.Failed_to_get_Stratum_session_id
mov ecx, 4
call sym.applog
jmp 0x140008562
mov rax, qword [0x1400793f0]
cmp byte [rax], 0
jne 0x1400084fd
test r12b, r12b
je 0x140008337
mov rcx, rbx
call sym.free
test r13, r13
jne 0x1400086b8
lea rcx, str._unknown_reason_
call sym.strdup
mov rbx, rax
jmp 0x1400086c8
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 0x140008210
mov r13, qword [0x1400793f0]
cmp byte [r13], 0
jne 0x1400084d0
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 0x1400086f7
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 0x1400086f7
cmp eax, 0x64
ja 0x1400086f0
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 0x140008710
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 [0x140074288]
mov qword [rdi + 0x158], r13
mov rcx, r12
mov qword [rdi + 0x138], rax
call sym.pthread_mutex_unlock
cmp byte [r15], 0
je 0x140008682
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 0x1400083d7
sub eax, 1
mov dword [rbp + 4], eax
jne 0x1400083d7
mov rcx, rbp
call sym.json_delete
jmp 0x1400083d7
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 0x1400081f2
lea rdx, str.Invalid_value_of_extranonce2_size
xor ecx, ecx
call sym.applog
jmp 0x1400086d9
mov rcx, rbp
call sym.json_delete
jmp 0x140008210
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 [0x140074288]
mov qword [rdi + 0x158], r13
mov rcx, r12
mov qword [rdi + 0x138], rax
call sym.pthread_mutex_unlock
jmp 0x140008682
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 0x1400084ad