Function at 0x140011d00
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x368
vmovups xmmword [rsp + 0x350], xmm6
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
mov qword [rsp + 0x3c0], r8
call sym.strlen
mov rcx, qword [rsp + 0x3c0]
mov rsi, rax
call sym.strlen
lea rcx, [rsi + rax + 0x50]
call sym.malloc
mov r9, qword [rsp + 0x3c0]
mov r8, rbx
lea rdx, str._id_:_2___method_:__mining.authorize____params_:____s_____s__
mov rcx, rax
mov rbp, rax
call sym.sprintf_1
mov rax, qword [0x140386cf0]
cmp byte [rax], 0
jne 0x140011e10
lea r14, [rdi + 0x130]
mov rcx, r14
call sym.pthread_mutex_lock
mov rcx, rdi
mov rdx, rbp
call sym.send_line
mov rcx, r14
mov r12d, eax
call sym.pthread_mutex_unlock
test r12b, r12b
jne 0x140011dc9
jmp 0x140011dd9
mov rdx, rax
mov rcx, rdi
call sym.stratum_handle_method
mov esi, eax
test al, al
je 0x140011e30
mov rcx, rbx
call sym.free
mov rcx, rdi
call sym.stratum_recv_line
mov rbx, rax
test rax, rax
jne 0x140011db0
mov rcx, rbp
call sym.free
xor esi, esi
vmovups xmm6, xmmword [rsp + 0x350]
mov eax, esi
add rsp, 0x368
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8, rbp
lea rdx, [0x1403282be]
mov ecx, 5
call sym.applog.constprop.0
jmp 0x140011d79
lea r13, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
mov r8, r13
call sym.json_loads
mov rcx, rbx
mov r15, rax
call sym.free
test r15, r15
je 0x140011f31
lea rax, str.result
mov rcx, r15
mov rdx, rax
vmovq xmm6, rax
call sym.json_object_get
lea rdx, str.error
mov rcx, r15
mov rbx, rax
call sym.json_object_get
test rbx, rbx
je 0x140011ef0
cmp dword [rbx], 6
je 0x140011ef0
test rax, rax
je 0x140011e93
cmp dword [rax], 7
jne 0x140011ef0
mov rbx, qword [str.z_2_]
cmp byte [rbx], 0
je 0x140011ee0
lea rdx, str._id_:_3___method_:__mining.extranonce.subscribe____params_:___
mov rcx, rbp
call sym.sprintf_1
mov rax, qword [0x140386cf0]
cmp byte [rax], 0
jne 0x140011fc9
mov rcx, r14
call sym.pthread_mutex_lock
mov rcx, rdi
mov rdx, rbp
call sym.send_line
mov rcx, r14
mov esi, eax
call sym.pthread_mutex_unlock
test sil, sil
jne 0x140011f5c
mov rcx, rbp
call sym.free
mov esi, r12d
jmp 0x140011f09
mov ecx, 1
lea rdx, str.Stratum_authentication_failed
call sym.applog.constprop.1
mov rcx, rbp
call sym.free
mov rax, qword [r15 + 8]
cmp rax, 0xffffffffffffffff
je 0x140011de3
dec rax
mov qword [r15 + 8], rax
jne 0x140011de3
mov rcx, r15
call sym.json_delete
jmp 0x140011de3
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x9c]
lea rdx, str.JSON_decode_failed__d_:__s
mov ecx, 1
call sym.applog.constprop.1
mov rcx, rbp
call sym.free
jmp 0x140011de1
mov rax, qword [rdi + 0x118]
mov rdx, qword [0x140329378]
lea rcx, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov dword [rsp + 0x140], 1
mov qword [rsp + 0x148], rax
inc eax
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x140]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x140011fe2
lea rdx, str.Extranonce_disabled__subscribe_timed_out
mov ecx, 2
call sym.applog
mov rcx, rbp
mov byte [rbx], 0
call sym.free
jmp 0x140011ee8
mov r8, rbp
lea rdx, [0x1403282be]
mov ecx, 5
call sym.applog.constprop.0
jmp 0x140011ebe
mov rcx, rdi
call sym.stratum_recv_line
mov rbx, rax
test rax, rax
je 0x140011ee0
mov r8, r13
xor edx, edx
mov rcx, rax
call sym.json_loads
mov rsi, rax
test rax, rax
je 0x140012067
mov rcx, rax
lea rdx, [0x14032855d]
call sym.json_object_get
mov rcx, rax
call sym.json_integer_value
cmp rax, 3
je 0x140012087
mov rdx, rbx
mov rcx, rdi
call sym.stratum_handle_method
test al, al
je 0x1400120c0
mov rax, qword [rsi + 8]
cmp rax, 0xffffffffffffffff
je 0x140012052
dec rax
mov qword [rsi + 8], rax
je 0x1400120d6
mov rcx, rbx
call sym.free
mov rcx, rbp
call sym.free
jmp 0x140011ee8
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x9c]
lea rdx, str.JSON_decode_failed__d_:__s
mov ecx, 2
call sym.applog
jmp 0x140012052
vmovq rdx, xmm6
mov rcx, rsi
call sym.json_object_get
mov rdx, qword [0x140386c80]
cmp byte [rdx], 0
je 0x14001203b
test rax, rax
je 0x1400120aa
cmp dword [rax], 6
jne 0x14001203b
lea rdx, str.Method_extranonce.subscribe_is_not_supported
mov ecx, 5
call sym.applog.constprop.0
jmp 0x14001203b
lea rdx, str.Stratum_answer_id_is_not_correct_
mov ecx, 2
call sym.applog
jmp 0x14001203b
mov rcx, rsi
call sym.json_delete
jmp 0x140012052