Function at 0x140007f50
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 [0x140074270]
lea rax, [rcx + 0x130]
mov rdi, rcx
mov qword [rsp + 0x30], rax
jmp 0x140008058
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 0x14000800e
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 0x1400080c8
xor ecx, ecx
call sym.applog
mov rcx, rbx
call sym.free
test rbp, rbp
je 0x140008040
mov eax, dword [rbp + 4]
cmp eax, 0xffffffff
je 0x140008040
sub eax, 1
mov dword [rbp + 4], eax
je 0x140008530
nop word cs:[rax + rax]
test r14, r14
je 0x140008205
test r12b, r12b
jne 0x140008205
mov r12d, 1
mov rsi, qword [rdi + 0x140]
test rsi, rsi
je 0x1400081b0
mov rcx, rsi
call sym.strlen
lea rcx, [rax + 0x80]
call sym.malloc
mov rbx, rax
test r12b, r12b
jne 0x140008198
mov r8, rsi
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_3.0.1_____s__
mov rcx, rax
call sym.sprintf_1
mov rax, qword [str.w__b_]
cmp byte [rax], 0
je 0x140007f90
mov r8, rbx
lea rdx, [0x140073d48]
mov ecx, 4
call sym.applog
jmp 0x140007f90
mov rcx, rdi
call sym.stratum_recv_line
mov r14, rax
test rax, rax
je 0x1400081e0
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 0x140008358
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 0x140008318
cmp dword [r15], 7
je 0x140008318
test rax, rax
je 0x140008228
cmp dword [rax], 7
je 0x140008228
mov rax, qword [str.x__b_]
cmp byte [rax], 0
jne 0x1400084e0
test r12b, r12b
jne 0x1400084e0
mov rcx, rbx
call sym.free
mov eax, dword [rbp + 4]
cmp eax, 0xffffffff
je 0x140008052
sub eax, 1
mov dword [rbp + 4], eax
jne 0x140008052
mov rcx, rbp
call sym.json_delete
jmp 0x140008052
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___
mov rcx, rbx
call sym.sprintf_1
jmp 0x14000809a
mov ecx, pe_nt_image_headers64
call sym.malloc
mov rbx, rax
test r12b, r12b
jne 0x140008198
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___cpuminer_3.0.1__
mov rcx, rax
call sym.sprintf_1
jmp 0x14000809a
mov rcx, rbx
call sym.free
test rbp, rbp
je 0x140008205
mov eax, dword [rbp + 4]
cmp eax, 0xffffffff
je 0x140008205
sub eax, 1
mov dword [rbp + 4], eax
jne 0x140008205
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 0x140008380
cmp dword [rax], 1
jne 0x140008380
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 0x1400082d2
mov qword [rsp + 0x40], rbx
mov r13d, eax
mov rbx, r9
mov byte [rsp + 0x4f], sil
jmp 0x1400082b5
cmp dword [rax], 1
jne 0x1400082c8
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 0x1400082ac
lea rdx, str.mining.notify
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400085a3
add r15d, 1
cmp r13d, r15d
je 0x1400082c8
mov edx, r15d
mov rcx, rbx
call sym.json_array_get
mov rsi, rax
test rax, rax
jne 0x140008278
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 0x14000839b
test al, al
je 0x14000839b
nop word [rax + rax]
lea rdx, str.Failed_to_get_Stratum_session_id
mov ecx, 4
call sym.applog
jmp 0x140008392
mov rax, qword [str.x__b_]
cmp byte [rax], 0
jne 0x14000832d
test r12b, r12b
je 0x140008167
mov rcx, rbx
call sym.free
test r13, r13
jne 0x1400084e8
lea rcx, str._unknown_reason_
call sym.strdup
mov rbx, rax
jmp 0x1400084f8
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 0x140008040
mov r13, qword [str.x__b_]
cmp byte [r13], 0
jne 0x140008300
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 0x140008527
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 0x140008527
cmp eax, 0x64
ja 0x140008520
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 0x140008540
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 [0x140074248]
mov qword [rdi + 0x158], r13
mov rcx, r12
mov qword [rdi + 0x138], rax
call sym.pthread_mutex_unlock
cmp byte [r15], 0
je 0x1400084b2
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 0x140008207
sub eax, 1
mov dword [rbp + 4], eax
jne 0x140008207
mov rcx, rbp
call sym.json_delete
jmp 0x140008207
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 0x140008022
lea rdx, str.Invalid_value_of_extranonce2_size
xor ecx, ecx
call sym.applog
jmp 0x140008509
mov rcx, rbp
call sym.json_delete
jmp 0x140008040
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 [0x140074248]
mov qword [rdi + 0x158], r13
mov rcx, r12
mov qword [rdi + 0x138], rax
call sym.pthread_mutex_unlock
jmp 0x1400084b2
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 0x1400082dd