Function at 0x140031c90
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140264330]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rdx
mov r11, rcx
mov r10d, 0x1505
lea rsi, [0x140000000]
test rcx, rcx
je 0x140031d91
cmp dword [rcx], 0
jne 0x140031d91
lea rdi, [0x1401de6c4]
mov r9d, r10d
mov ecx, 0x65
mov rax, rdi
imul r9, r9, 0x21
lea rax, [rax + 1]
add r9, rcx
movsx rcx, byte [rax]
test rcx, rcx
jne 0x140031cf1
mov rcx, qword [r11 + 0x20]
xor edx, edx
mov rax, r9
div qword [rsi + rcx*8 + 0x1de2c0]
lea rax, [r11 + 0x28]
shl rdx, 4
add rdx, qword [r11 + 0x18]
mov r8, qword [rdx]
cmp r8, rax
jne 0x140031d30
cmp r8, qword [rdx + 8]
je 0x140031d91
cmp qword [r8 - 8], r9
jne 0x140031d85
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [r8 + rcx + 0x20]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x140031d85
cmp rcx, 6
jne 0x140031d40
mov rax, qword [r8 + 0x10]
test rax, rax
je 0x140031d91
cmp dword [rax], 7
je 0x140031d91
lea rdx, str.GBT_not_supported__block_height_unavailable
mov ecx, 3
mov dword [reloc.WS2_32.dll_accept], 0
call fcn.140041b60
xor eax, eax
jmp 0x140031fce
cmp r8, qword [rdx + 8]
je 0x140031d91
mov r8, qword [r8 + 8]
jmp 0x140031d30
cmp dword [rbx + 0x1c8], 0
jne 0x140031fc9
test r11, r11
je 0x140031fc9
cmp dword [r11], 0
jne 0x140031fc9
lea r9, str.height
mov ecx, 0x68
mov rax, r9
imul r10, r10, 0x21
lea rax, [rax + 1]
add r10, rcx
movsx rcx, byte [rax]
test rcx, rcx
jne 0x140031dc0
mov rcx, qword [r11 + 0x20]
xor edx, edx
mov rax, r10
div qword [rsi + rcx*8 + 0x1de2c0]
lea rax, [r11 + 0x28]
shl rdx, 4
add rdx, qword [r11 + 0x18]
mov r8, qword [rdx]
cmp r8, rax
jne 0x140031e03
cmp r8, qword [rdx + 8]
je 0x140031fc9
cmp qword [r8 - 8], r10
jne 0x140031f83
xor ecx, ecx
nop
movzx eax, byte [r8 + rcx + 0x20]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140031f83
cmp rcx, 7
jne 0x140031e10
mov rax, qword [r8 + 0x10]
test rax, rax
je 0x140031fc9
cmp dword [rax], 3
jne 0x140031fc9
mov rcx, qword [rax + 0x10]
mov dword [rbx + 0x1c8], ecx
cmp dword [0x1402d4ec0], 0
jne 0x140031fc9
cmp ecx, dword [0x1402d8bc8]
jbe 0x140031fc9
movsd xmm2, qword [0x1402d4e40]
xorps xmm0, xmm0
comisd xmm2, xmm0
jbe 0x140031f92
xor eax, eax
movq r8, xmm2
lea rdx, str.diff__.2f
lea rcx, [rbp + 7]
mov byte [rbp + 7], 0
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rax
mov dword [rbp + 0x40], eax
mov word [rbp + 0x44], ax
mov byte [rbp + 0x46], al
mov byte [rbp - 0x19], al
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov dword [rbp], eax
mov word [rbp + 4], ax
mov byte [rbp + 6], al
call qword [sym.imp.MSVCR120.dll_sprintf]
mov rax, qword [0x1402d4aa0]
test rax, rax
je 0x140031f51
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
jns 0x140031ef1
addsd xmm0, qword [0x14024c0a0]
lea rdx, [rbp - 0x19]
call fcn.140041fb0
lea rcx, [rbp + 7]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140031f01
mov eax, dword [str.__net]
mov dword [rcx], eax
movzx eax, word [0x1401de6e8]
mov word [rcx + 4], ax
movzx eax, byte [0x1401de6ea]
mov byte [rcx + 6], al
lea rcx, [rbp + 7]
dec rcx
nop
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140031f30
lea r8, [rbp - 0x19]
xor edx, edx
movzx eax, byte [r8 + rdx]
lea rdx, [rdx + 1]
mov byte [rcx + rdx - 1], al
test al, al
jne 0x140031f40
movsxd r8, dword [0x1402643b8]
mov r9d, dword [rbx + 0x1c8]
lea rax, [rbp + 7]
mov r8, qword [rsi + r8*8 + 0x1dff40]
lea rdx, str._s_block__d___s
mov ecx, reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call fcn.140041b60
jmp 0x140031fbd
cmp r8, qword [rdx + 8]
je 0x140031fc9
mov r8, qword [r8 + 8]
jmp 0x140031e03
movsxd rax, dword [0x1402643b8]
mov r8, qword [0x1402d89d8]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsi + rax*8 + 0x1dff40]
lea rdx, [0x1401deda8]
mov ecx, reloc.WS2_32.dll_recv
call fcn.140041b60
mov eax, dword [rbx + 0x1c8]
mov dword [0x1402d8bc8], eax
mov eax, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1401bb2c0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret