Function at 0x140042f70
Capabilities:
Get socket status
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x360
mov rax, qword [0x1402581e0]
xor rax, rsp
mov qword [rsp + 0x350], rax
xor r15d, r15d
xor r14d, r14d
xor r13d, r13d
xor r12d, r12d
mov rbp, rcx
lea rdi, str.result
nop word [rax + rax]
mov rbx, qword [rbp + 0x140]
test rbx, rbx
je 0x140042fdb
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140042fd0
jmp 0x140042fdd
xor ecx, ecx
sub rcx, 0xffffffffffffff80
call qword [sym.imp.MSVCR120.dll_malloc]
mov rsi, rax
test r12d, r12d
je 0x140042ff8
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___
jmp 0x140043019
test rbx, rbx
je 0x140043012
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___ccminer_alexis_1.0_____s__
mov r8, rbx
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_sprintf]
jmp 0x140043022
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___ccminer_alexis_1.0__
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_sprintf]
cmp dword [0x1402c7ad4], 0
je 0x14004303f
lea rdx, [0x14023ece0]
mov r8, rsi
mov ecx, 4
call fcn.140040950
lea rcx, [0x1402cb728]
call fcn.1401b9380
mov rcx, qword [rbp + 0x118]
mov rdx, rsi
call fcn.1400423e0
lea rcx, [0x1402cb728]
mov ebx, eax
call fcn.1401b9960
test ebx, ebx
je 0x140043465
mov rax, qword [rbp + 0x118]
lea rdx, [rsp + 0x140]
xor r9d, r9d
lea ecx, [rax + 1]
mov qword [rsp + 0x148], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x140], 1
mov qword [rsp + 0x30], 0xa
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x1400430cd
lea rdx, str.stratum_subscribe_timed_out
xor ecx, ecx
call fcn.140040950
jmp 0x140043465
mov rcx, rbp
call fcn.1400425b0
mov r15, rax
test rax, rax
je 0x140043465
lea rdx, str._string_
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x9c], bl
mov qword [rsp + 0x40], 0xffffffffffffffff
mov dword [rsp + 0x48], ebx
call fcn.14002bcd0
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14002d7c0
mov rcx, r15
mov r14, rax
call qword [sym.imp.MSVCR120.dll_free]
test r14, r14
jne 0x140043144
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x9c]
lea rdx, str.JSON_decode_failed__d_:__s
xor ecx, ecx
call fcn.140040950
jmp 0x140043465
cmp dword [r14], ebx
jne 0x1400431f8
lea rax, [0x14023ef7c]
mov ecx, 0x69
mov r8d, 0x1505
nop
imul r8, r8, 0x21
lea rax, [rax + 1]
add r8, rcx
movsx rcx, byte [rax]
test rcx, rcx
jne 0x140043160
mov rcx, qword [r14 + 0x20]
xor edx, edx
lea r11, reloc.WS2_32.dll_getpeername
mov rax, r8
div qword [r11 + rcx*8]
lea rax, [r14 + 0x28]
shl rdx, 4
add rdx, qword [r14 + 0x18]
mov rcx, qword [rdx]
cmp rcx, rax
jne 0x1400431a2
cmp rcx, qword [rdx + 8]
je 0x1400431f8
movzx eax, byte [0x14023ef7e]
movzx r9d, byte [0x14023ef7d]
movzx r10d, byte [0x14023ef7c]
nop dword [rax]
cmp qword [rcx - 8], r8
jne 0x1400431d7
cmp byte [rcx + 0x20], r10b
jne 0x1400431d7
cmp byte [rcx + 0x21], r9b
jne 0x1400431d7
cmp byte [rcx + 0x22], al
je 0x1400431e3
cmp rcx, qword [rdx + 8]
je 0x1400431f8
mov rcx, qword [rcx + 8]
jmp 0x1400431c0
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400431f8
cmp dword [rax], 3
jne 0x1400431f8
cmp qword [rax + 0x10], 1
je 0x140043210
lea rdx, str.Stratum_subscribe_answer_id_is_not_correct_
mov ecx, 1
call fcn.140040950
lea r11, reloc.WS2_32.dll_getpeername
mov r10d, dword [r14]
test r10d, r10d
jne 0x1400432a7
mov rax, rdi
mov ecx, WSACleanup
mov r9d, 0x1505
nop word [rax + rax]
imul r9, r9, 0x21
lea rax, [rax + 1]
add r9, rcx
movsx rcx, byte [rax]
test rcx, rcx
jne 0x140043230
mov rcx, qword [r14 + 0x20]
xor edx, edx
mov rax, r9
div qword [r11 + rcx*8]
lea rax, [r14 + 0x28]
shl rdx, 4
add rdx, qword [r14 + 0x18]
mov r8, qword [rdx]
cmp r8, rax
jne 0x140043270
cmp r8, qword [rdx + 8]
je 0x1400432a7
nop dword [rax + rax]
cmp qword [r8 - 8], r9
jne 0x14004329b
mov rcx, rbx
nop dword [rax]
movzx eax, byte [r8 + rcx + 0x20]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x14004329b
cmp rcx, 7
jne 0x140043280
mov rdi, qword [r8 + 0x10]
jmp 0x1400432aa
cmp r8, qword [rdx + 8]
je 0x1400432a7
mov r8, qword [r8 + 8]
jmp 0x140043270
mov rdi, rbx
test r10d, r10d
jne 0x14004333e
lea r10, str.error
mov ecx, 0x65
mov r9d, 0x1505
mov rax, r10
nop dword [rax + rax]
imul r9, r9, 0x21
lea rax, [rax + 1]
add r9, rcx
movsx rcx, byte [rax]
test rcx, rcx
jne 0x1400432d0
mov rcx, qword [r14 + 0x20]
xor edx, edx
mov rax, r9
div qword [r11 + rcx*8]
lea rax, [r14 + 0x28]
shl rdx, 4
add rdx, qword [r14 + 0x18]
mov r8, qword [rdx]
cmp r8, rax
jne 0x140043310
cmp r8, qword [rdx + 8]
je 0x14004333e
nop dword [rax + rax]
cmp qword [r8 - 8], r9
jne 0x1400433d7
mov rcx, rbx
nop dword [rax]
movzx eax, byte [r8 + rcx + 0x20]
inc rcx
cmp al, byte [r10 + rcx - 1]
jne 0x1400433d7
cmp rcx, 6
jne 0x140043320
mov rbx, qword [r8 + 0x10]
test rdi, rdi
je 0x140043412
cmp dword [rdi], 7
je 0x140043412
test rbx, rbx
je 0x14004335e
cmp dword [rbx], 7
jne 0x140043412
mov r8d, 1
mov rdx, rdi
mov rcx, rbp
call fcn.140042dd0
test eax, eax
je 0x14004345e
mov rcx, rdi
mov r13d, 1
call fcn.140042cc0
cmp dword [0x1402c7bbc], 0
mov rbx, rax
je 0x1400433a9
test rax, rax
je 0x1400433a9
lea rdx, str.Stratum_session_id:__s
lea ecx, [r13 + 3]
mov r8, rax
call fcn.140040950
lea rcx, [0x1402c7b20]
call fcn.1401b9380
mov rcx, qword [rbp + 0x140]
test rcx, rcx
je 0x1400433c7
call qword [sym.imp.MSVCR120.dll_free]
test rbx, rbx
je 0x1400433ea
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll__strdup]
jmp 0x1400433ec
cmp r8, qword [rdx + 8]
je 0x14004333e
mov r8, qword [r8 + 8]
jmp 0x140043310
xor eax, eax
mov qword [rbp + 0x140], rax
movabs rax, 0x3ff0000000000000
lea rcx, [0x1402c7b20]
mov qword [rbp + 0x130], rax
call fcn.1401b9960
jmp 0x14004345e
cmp dword [0x1402c7bbc], 0
jne 0x140043420
test r12d, r12d
je 0x14004345e
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_free]
test rbx, rbx
je 0x14004343d
mov edx, 3
mov rcx, rbx
call fcn.14002bc20
jmp 0x14004344a
lea rcx, str._unknown_reason_
call qword [sym.imp.MSVCR120.dll__strdup]
lea rdx, str.JSON_RPC_call_failed:__s
mov r8, rax
xor ecx, ecx
mov rsi, rax
call fcn.140040950
lea rdi, str.result
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_free]
test r14, r14
je 0x14004348e
mov rax, qword [r14 + 8]
cmp rax, 0xffffffffffffffff
je 0x14004348e
dec rax
mov qword [r14 + 8], rax
jne 0x14004348e
mov rcx, r14
call fcn.14002e4b0
test r13d, r13d
jne 0x1400434a6
test r15, r15
je 0x1400434a6
test r12d, r12d
jne 0x1400434a6
lea r12d, [r13 + 1]
jmp 0x140042fc0
mov eax, r13d
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.1401bddc0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret