Function at 0x140009a50
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x14006c020]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rdx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov rsi, qword [rcx + 0x38]
shl rsi, 6
add rsi, qword [rcx + 0x28]
shl rsi, 3
mov rcx, qword [rcx + 0x28]
mov rdx, qword [rdi + 0x30]
cmp rcx, rdx
jae 0x140009ace
lea rax, [rcx + 1]
mov qword [rdi + 0x28], rax
lea rax, [rdi + 0x18]
cmp rdx, 0x10
jb 0x140009ac6
mov rax, qword [rdi + 0x18]
mov word [rax + rcx], 0x80
jmp 0x140009ada
mov r9b, 0x80
lea rcx, [rdi + 0x18]
call fcn.140014b90
mov r15, qword [rdi + 0x28]
cmp r15, 0x40
jae 0x140009b2d
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x30]
cmp rcx, rdx
jae 0x140009b1a
lea rax, [rcx + 1]
mov qword [rdi + 0x28], rax
lea rax, [rdi + 0x18]
cmp rdx, 0x10
jb 0x140009b13
mov rax, qword [rdi + 0x18]
mov word [rax + rcx], r13w
jmp 0x140009b26
xor r9d, r9d
lea rcx, [rdi + 0x18]
call fcn.140014b90
cmp qword [rdi + 0x28], 0x40
jb 0x140009af0
lea rdx, [rbp + 0x40]
lea rcx, [rdi + 0x18]
call fcn.1400097d0
cmp r15, 0x38
jbe 0x140009b65
lea r8, [rdi + 0x38]
lea rdx, [rbp + 0x40]
mov rcx, rdi
call fcn.140008610
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x7c], esi
shr rsi, 0x20
mov dword [rbp + 0x78], esi
lea r8, [rdi + 0x38]
lea rdx, [rbp + 0x40]
mov rcx, rdi
call fcn.140008610
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x50]
call fcn.1400288b0
lea rax, [0x140060498]
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x20], r13
mov qword [rbp + 8], r13
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x10], xmm0
mov dword [rsp + 0x20], 2
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x2c], 0x78
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x28]
call fcn.140005cf0
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], r15
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.1400059c0
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x40], r13
mov dword [rbp - 0x38], 4
mov rsi, r13
nop word [rax + rax]
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call fcn.140007cc0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x58], 0x30
mov edx, 8
lea rcx, [rsp + 0x28]
call fcn.140024fa4
mov rdx, qword [rax + 8]
mov r8, qword [rax]
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
call r8
mov edx, dword [rdi + rsi*4]
lea rcx, [rsp + 0x50]
call fcn.140011f70
inc rsi
cmp rsi, 5
jb 0x140009c30
mov dword [rdi], 0x67452301
mov dword [rdi + 4], 0xefcdab89
mov dword [rdi + 8], 0x98badcfe
mov dword [rdi + 0xc], 0x10325476
mov dword [rdi + 0x10], 0xc3d2e1f0
xor r8d, r8d
lea rdx, [0x1400603cb]
lea rcx, [rdi + 0x18]
call fcn.140004940
mov qword [rdi + 0x38], r13
mov qword [r14], r13
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], 0
mov dword [rsp + 0x20], reloc.WS2_32.dll_select
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov ecx, dword [rbp - 0x38]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140009d1d
mov rax, qword [rbp - 0x68]
mov r8, qword [rax]
test r8, r8
je 0x140009d1d
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x40]
cmovb r8, qword [rbp - 0x40]
sub r8, rdx
jmp 0x140009d4f
test cl, 4
jne 0x140009d45
mov rax, qword [rbp - 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x140009d45
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x58]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140009d4f
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x140009d5d
mov rcx, r14
call fcn.140004940
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r15
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.140002b60
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x4c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.140022f9c
nop
mov rax, r14
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140026090
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret