Function at 0x140044180
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 [0x140264330]
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 0x1400441eb
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400441e0
jmp 0x1400441ed
xor ecx, ecx
sub rcx, 0xffffffffffffff80
call qword [sym.imp.MSVCR120.dll_malloc]
mov rsi, rax
test r12d, r12d
je 0x140044208
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___
jmp 0x140044229
test rbx, rbx
je 0x140044222
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___ccminer_krnlx_xevan_____s__
mov r8, rbx
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_sprintf]
jmp 0x140044232
lea rdx, str._id_:_1___method_:__mining.subscribe____params_:___ccminer_krnlx_xevan__
mov rcx, rax
call qword [sym.imp.MSVCR120.dll_sprintf]
cmp dword [0x1402d4cd4], 0
je 0x14004424f
lea rdx, [0x140249e28]
mov r8, rsi
mov ecx, 4
call fcn.140041b60
lea rcx, [0x1402d8928]
call fcn.1401b6880
mov rcx, qword [rbp + 0x118]
mov rdx, rsi
call fcn.1400435f0
lea rcx, [0x1402d8928]
mov ebx, eax
call fcn.1401b6e60
test ebx, ebx
je 0x140044675
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 0x1400442dd
lea rdx, str.stratum_subscribe_timed_out
xor ecx, ecx
call fcn.140041b60
jmp 0x140044675
mov rcx, rbp
call fcn.1400437c0
mov r15, rax
test rax, rax
je 0x140044675
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.14002d0e0
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14002ebd0
mov rcx, r15
mov r14, rax
call qword [sym.imp.MSVCR120.dll_free]
test r14, r14
jne 0x140044354
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x9c]
lea rdx, str.JSON_decode_failed__d_:__s
xor ecx, ecx
call fcn.140041b60
jmp 0x140044675
cmp dword [r14], ebx
jne 0x140044408
lea rax, [0x14024a0cc]
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 0x140044370
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 0x1400443b2
cmp rcx, qword [rdx + 8]
je 0x140044408
movzx eax, byte [0x14024a0ce]
movzx r9d, byte [0x14024a0cd]
movzx r10d, byte [0x14024a0cc]
nop dword [rax]
cmp qword [rcx - 8], r8
jne 0x1400443e7
cmp byte [rcx + 0x20], r10b
jne 0x1400443e7
cmp byte [rcx + 0x21], r9b
jne 0x1400443e7
cmp byte [rcx + 0x22], al
je 0x1400443f3
cmp rcx, qword [rdx + 8]
je 0x140044408
mov rcx, qword [rcx + 8]
jmp 0x1400443d0
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140044408
cmp dword [rax], 3
jne 0x140044408
cmp qword [rax + 0x10], 1
je 0x140044420
lea rdx, str.Stratum_subscribe_answer_id_is_not_correct_
mov ecx, 1
call fcn.140041b60
lea r11, reloc.WS2_32.dll_getpeername
mov r10d, dword [r14]
test r10d, r10d
jne 0x1400444b7
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 0x140044440
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 0x140044480
cmp r8, qword [rdx + 8]
je 0x1400444b7
nop dword [rax + rax]
cmp qword [r8 - 8], r9
jne 0x1400444ab
mov rcx, rbx
nop dword [rax]
movzx eax, byte [r8 + rcx + 0x20]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x1400444ab
cmp rcx, 7
jne 0x140044490
mov rdi, qword [r8 + 0x10]
jmp 0x1400444ba
cmp r8, qword [rdx + 8]
je 0x1400444b7
mov r8, qword [r8 + 8]
jmp 0x140044480
mov rdi, rbx
test r10d, r10d
jne 0x14004454e
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 0x1400444e0
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 0x140044520
cmp r8, qword [rdx + 8]
je 0x14004454e
nop dword [rax + rax]
cmp qword [r8 - 8], r9
jne 0x1400445e7
mov rcx, rbx
nop dword [rax]
movzx eax, byte [r8 + rcx + 0x20]
inc rcx
cmp al, byte [r10 + rcx - 1]
jne 0x1400445e7
cmp rcx, 6
jne 0x140044530
mov rbx, qword [r8 + 0x10]
test rdi, rdi
je 0x140044622
cmp dword [rdi], 7
je 0x140044622
test rbx, rbx
je 0x14004456e
cmp dword [rbx], 7
jne 0x140044622
mov r8d, 1
mov rdx, rdi
mov rcx, rbp
call fcn.140043fe0
test eax, eax
je 0x14004466e
mov rcx, rdi
mov r13d, 1
call fcn.140043ed0
cmp dword [0x1402d4dbc], 0
mov rbx, rax
je 0x1400445b9
test rax, rax
je 0x1400445b9
lea rdx, str.Stratum_session_id:__s
lea ecx, [r13 + 3]
mov r8, rax
call fcn.140041b60
lea rcx, [0x1402d4d20]
call fcn.1401b6880
mov rcx, qword [rbp + 0x140]
test rcx, rcx
je 0x1400445d7
call qword [sym.imp.MSVCR120.dll_free]
test rbx, rbx
je 0x1400445fa
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll__strdup]
jmp 0x1400445fc
cmp r8, qword [rdx + 8]
je 0x14004454e
mov r8, qword [r8 + 8]
jmp 0x140044520
xor eax, eax
mov qword [rbp + 0x140], rax
movabs rax, 0x3ff0000000000000
lea rcx, [0x1402d4d20]
mov qword [rbp + 0x130], rax
call fcn.1401b6e60
jmp 0x14004466e
cmp dword [0x1402d4dbc], 0
jne 0x140044630
test r12d, r12d
je 0x14004466e
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_free]
test rbx, rbx
je 0x14004464d
mov edx, 3
mov rcx, rbx
call fcn.14002d030
jmp 0x14004465a
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.140041b60
lea rdi, str.result
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_free]
test r14, r14
je 0x14004469e
mov rax, qword [r14 + 8]
cmp rax, 0xffffffffffffffff
je 0x14004469e
dec rax
mov qword [r14 + 8], rax
jne 0x14004469e
mov rcx, r14
call fcn.14002f8c0
test r13d, r13d
jne 0x1400446b6
test r15, r15
je 0x1400446b6
test r12d, r12d
jne 0x1400446b6
lea r12d, [r13 + 1]
jmp 0x1400441d0
mov eax, r13d
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.1401bb2c0
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