Function at 0x140046780
Capabilities:
Hash data using djb2

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x140264330]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r9, rdx
mov rbp, rcx
xor edi, edi
lea rdx, str._string_
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov byte [rsp + 0x7c], dil
mov dword [rsp + 0x28], edi
call fcn.14002d0e0
test r9, r9
jne 0x1400467e3
lea r8, str.wrong_arguments
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.14002d610
jmp 0x1400467f8
lea rdx, [rsp + 0x20]
mov rcx, r9
call fcn.14002ebd0
mov r14, rax
test rax, rax
jne 0x140046815
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x7c]
lea rdx, str.JSON_decode_failed__d_:__s
xor ecx, ecx
call fcn.140041b60
jmp 0x140046aff
cmp dword [rax], edi
jne 0x140046ae4
lea r10, [0x14024a4b0]
mov ecx, WSASetLastError
mov r9d, 0x1505
mov rax, r10
nop dword [rax]
nop word [rax + rax]
imul r9, r9, 0x21
lea rax, [rax + 1]
add r9, rcx
movsx rcx, byte [rax]
test rcx, rcx
jne 0x140046840
mov rcx, qword [r14 + 0x20]
xor edx, edx
lea r8, reloc.WS2_32.dll_getpeername
mov rax, r9
div qword [r8 + rcx*8]
lea rax, [r14 + 0x28]
shl rdx, 4
add rdx, qword [r14 + 0x18]
mov r8, qword [rdx]
cmp r8, rax
jne 0x140046886
cmp r8, qword [rdx + 8]
je 0x140046ae4
cmp qword [r8 - 8], r9
jne 0x140046935
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rcx + 0x20]
inc rcx
cmp al, byte [r10 + rcx - 1]
jne 0x140046935
cmp rcx, 7
jne 0x1400468a0
mov qword [rsp + 0x160], rbx
mov rbx, qword [r8 + 0x10]
test rbx, rbx
je 0x140046adc
cmp dword [rbx], 2
jne 0x140046adc
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x140046adc
lea rdx, [0x14024a0cc]
mov rcx, r14
mov qword [rsp + 0x168], rsi
call fcn.14002f390
lea rdx, str.params
mov rcx, r14
mov rdi, rax
call fcn.14002f390
lea rdx, str.mining.notify
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.MSVCR120.dll__stricmp]
test eax, eax
jne 0x140046948
mov rdx, rsi
mov rcx, rbp
call fcn.140044b60
jmp 0x140046ad2
cmp r8, qword [rdx + 8]
je 0x140046ae4
mov r8, qword [r8 + 8]
jmp 0x140046886
lea rdx, str.mining.ping
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll__stricmp]
test eax, eax
jne 0x140046983
cmp dword [0x1402d4dbc], eax
je 0x140046973
lea rdx, str.Pool_ping
lea ecx, [rax + 4]
call fcn.140041b60
mov rdx, rdi
mov rcx, rbp
call fcn.140045750
jmp 0x140046ad2
lea rdx, str.mining.set_difficulty
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll__stricmp]
test eax, eax
jne 0x1400469a7
mov rdx, rsi
mov rcx, rbp
call fcn.1400453e0
jmp 0x140046ad2
lea rdx, str.mining.set_extranonce
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll__stricmp]
test eax, eax
jne 0x1400469ce
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call fcn.140043fe0
jmp 0x140046ad2
lea rdx, str.client.reconnect
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll__stricmp]
test eax, eax
jne 0x1400469f2
mov rdx, rsi
mov rcx, rbp
call fcn.140045470
jmp 0x140046ad2
lea rdx, str.client.get_algo
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll__stricmp]
test eax, eax
jne 0x140046a2d
cmp dword [0x1402d4ec0], eax
jne 0x140046a1d
lea rdx, str.Pool_asked_your_algo_parameter
lea ecx, [rax + 0x10]
call fcn.140041b60
mov rdx, rdi
mov rcx, rbp
call fcn.140045820
jmp 0x140046ad2
lea rdx, str.client.get_stats
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll__stricmp]
test eax, eax
jne 0x140046a65
cmp dword [0x1402d4ec0], eax
jne 0x140046a58
lea rdx, str.Pool_asked_your_stats
lea ecx, [rax + 0x10]
call fcn.140041b60
mov rdx, rdi
mov rcx, rbp
call fcn.140046220
jmp 0x140046ad2
lea rdx, str.client.get_version
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll__stricmp]
test eax, eax
jne 0x140046a86
mov rdx, rdi
mov rcx, rbp
call fcn.140045570
jmp 0x140046ad2
lea rdx, str.client.show_message
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll__stricmp]
test eax, eax
jne 0x140046aaa
mov r8, rsi
mov rdx, rdi
mov rcx, rbp
call fcn.1400463b0
jmp 0x140046ad2
cmp dword [0x1402d4dbc], 0
je 0x140046ac7
lea rdx, str.unknown_stratum_method__s_
mov r8, rbx
mov ecx, 1
call fcn.140041b60
mov rdx, rdi
mov rcx, rbp
call fcn.1400465f0
mov rsi, qword [rsp + 0x168]
mov edi, eax
mov rbx, qword [rsp + 0x160]
mov rax, qword [r14 + 8]
cmp rax, 0xffffffffffffffff
je 0x140046aff
dec rax
mov qword [r14 + 8], rax
jne 0x140046aff
mov rcx, r14
call fcn.14002f8c0
mov eax, edi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1401bb2c0
add rsp, 0x130
pop r14
pop rdi
pop rbp
ret