Function at 0x597e8e
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov r14, rdx
mov rbx, rcx
cmp byte [rdx + 0xb9], 0
je 0x5980db
mov rcx, qword [r14 + 0x98]
lea rax, [rcx - 1]
sub rcx, 1
jb 0x598605
mov r13, qword [r14 + 0x88]
imul rdx, rcx, 0xb0
mov rcx, qword [r13 + rdx + 0x38]
mov r15, qword [r13 + rdx + 0x48]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], r15
cmp r15, 0xffff
jbe 0x597f13
lea rdx, [0x00799244]
mov r8d, 0x1e
mov cl, 0x15
call fcn.00486ac4
jmp 0x5980a6
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0x28], rbx
imul rax, rax, 0xb0
add rax, r13
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xe0], rdx
lea rax, [rdx + r13]
add rax, 0x48
mov qword [rsp + 0xd8], rax
lea rbp, [rsp + 0x38]
lea rsi, [rsp + 0x90]
lea rbx, [0x0079914a]
mov rdi, r15
test rdi, rdi
je 0x5980bf
cmp rdi, 4
jb 0x598348
mov rcx, rbp
mov rdx, rsi
call fcn.005952bb
cmp word [rsp + 0x38], 0
jne 0x5980b8
mov rcx, rbp
movzx r12d, word [rsp + 0x3a]
mov word [rsp + 0x36], r12w
mov rdx, rsi
call fcn.005952bb
cmp word [rsp + 0x38], 0
jne 0x5980b8
cmp r12w, 1
je 0x598357
cmp r12w, 0x20
jb 0x598010
movzx eax, word [rsp + 0x3a]
add rdi, 0xfffffffffffffffc
xor ecx, ecx
cmp rcx, 0x62
je 0x597fe1
lea rdx, [rcx + 2]
cmp word [rcx + rbx], r12w
mov rcx, rdx
jne 0x597fcb
jmp 0x598010
cmp rdi, rax
jb 0x5983ad
mov rdi, qword [rsp + 0x98]
sub rdi, rax
jb 0x598605
add qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rdi
jmp 0x597f61
lea rax, [rsp + 0x36]
lea rcx, [rsp + 0xf0]
mov qword [rcx], rax
lea rax, [fcn.00478bfe]
mov qword [rcx + 8], rax
mov eax, 2
mov qword [rsp + 0x38], rax
and qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 6
and qword [rsp + 0x58], 0
movabs rdx, 0xc00000020
mov qword [rsp + 0x60], rdx
mov byte [rsp + 0x68], 3
lea r8, [0x00799208]
lea rdx, [rsp + 0x118]
mov qword [rdx], r8
mov qword [rdx + 8], rax
mov qword [rdx + 0x20], rbp
mov eax, 1
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rax
lea rsi, [rsp + 0x100]
mov rcx, rsi
call fcn.00433d38
mov rcx, rsi
call fcn.00599142
mov rbx, qword [rsp + 0x28]
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rdx
jmp 0x5982e8
mov rax, qword [rsp + 0x40]
jmp 0x5980a1
cmp byte [r14 + 0xba], 0
je 0x5983c6
and word [r14 + 0xb9], 0
mov rbx, qword [rsp + 0x28]
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call fcn.00595b9e
mov rax, qword [rsi]
cmp rax, 4
jne 0x5981fe
mov rax, qword [r14]
mov r12, qword [r14 + 8]
lea r15, [r14 + 0x10]
lea rdi, [rsp + 0x38]
mov ecx, 0xb
mov rsi, r15
rep movsq qword [rdi], qword [rsi]
mov qword [r14], 2
cmp rax, 3
jne 0x598605
test r12, r12
je 0x59825a
mov qword [rsp + 0xa0], r12
mov rax, qword [r15 + 0x20]
mov qword [rsp + 0xc8], rax
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rsp + 0xb8], xmm1
movups xmmword [rsp + 0xa8], xmm0
mov r8, qword [rsp + 0xb0]
cmp r8, 0xb
jbe 0x598605
mov r13, rbx
mov eax, dword [r14 + 0x6c]
shr eax, 0x18
mov byte [r12 + 0xb], al
mov ecx, dword [rsp + 0xc8]
mov edi, dword [rsp + 0xc0]
mov eax, dword [rsp + 0xc4]
xor edx, edx
lea r9, [0x00799264]
mov r10d, 0xff
cmp r8, rdx
je 0x59820f
mov r11b, byte [r12 + rdx]
mov ebp, ecx
or ebp, 3
mov esi, ebp
and esi, 0xfffffffe
mov ebx, edi
shr ebx, 8
xor dil, r11b
movzx edi, dil
xor ebx, dword [r9 + rdi*4]
imul esi, ebp
mov edi, ebx
and ebx, r10d
add ebx, eax
imul eax, ebx, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov ebp, ecx
and ecx, r10d
xor ecx, ebx
shr esi, 8
shr ebp, 8
xor ebp, dword [r9 + rcx*4]
xor sil, r11b
mov byte [r12 + rdx], sil
inc rdx
mov ecx, ebp
jmp 0x5981a5
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx + 8], xmm0
mov qword [rbx], rax
jmp 0x5982e8
mov dword [rsp + 0xc8], ecx
mov dword [rsp + 0xc0], edi
mov dword [rsp + 0xc4], eax
mov rsi, qword [rsp + 0xb8]
mov rcx, rsi
mov rdx, r12
call fcn.0056be9c
test rax, rax
je 0x59828d
mov rdi, rax
lea rcx, [rsp + 0xa0]
call fcn.00597884
and qword [r13], 0
mov qword [r13 + 8], rdi
jmp 0x5982e8
mov rcx, r14
call fcn.00597742
mov qword [r14], 3
and qword [r14 + 8], 0
movups xmm0, xmmword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [r14 + 0x10], xmm0
movups xmmword [r14 + 0x20], xmm1
mov rax, qword [rsp + 0x58]
mov qword [r14 + 0x30], rax
jmp 0x5982b8
mov rdx, qword [rsp + 0xa8]
mov rcx, r12
call fcn.00433bdd
mov rcx, r14
call fcn.00597742
mov qword [r14], 3
and qword [r14 + 8], 0
mov qword [r14 + 0x10], rsi
mov rbx, r13
cmp byte [r14 + 0xbb], 0
je 0x5982d4
xor eax, eax
mov byte [r14 + 0xb8], al
mov byte [r14 + 0xbb], al
jmp 0x5982e1
mov rax, qword [r14 + 0x98]
sub rax, 1
jae 0x5982fc
mov qword [rbx], 4
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [r14 + 0x88]
mov ecx, dword [r14 + 0x6c]
imul r13, rax, 0xb0
mov dword [r12 + r13 + 0x9c], ecx
mov rax, qword [r14 + 0x80]
mov qword [r12 + r13 + 0x78], rax
mov rdx, qword [r14 + 0x10]
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.0059731e
cmp qword [rsi], 0
je 0x598366
mov rax, qword [rsp + 0x40]
and qword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x5982e8
lea rdx, str.Incomplete_extra_data_headerExtra_data_exceeds_extra_field
mov r8d, 0x1c
jmp 0x5983ba
lea rdx, str.No_custom_ZIP64_extra_data_allowed
mov r8d, 0x22
jmp 0x5983ba
mov rbp, rbx
lea rdi, [rsp + 0x38]
mov rsi, qword [rdi + 8]
mov rax, rsi
sub rax, qword [r14 + 0x78]
mov qword [r12 + r13 + 0x70], rax
mov r9, qword [r12 + r13 + 0x80]
add r9, 0xe
mov rdx, qword [r14 + 0x10]
mov rcx, rdi
xor r8d, r8d
call fcn.005775a0
cmp qword [rdi], 0
je 0x59845b
mov rax, qword [rsp + 0x40]
jmp 0x598474
lea rdx, str.Extra_data_size_exceeds_extra_fieldExtra_data_header_ID__requires_crate_feature__unreserved_y
mov r8d, 0x23
mov cl, 0x27
call fcn.00486ac4
jmp 0x5980a1
cmp dword [r14], 3
mov rbx, qword [rsp + 0x28]
jne 0x598605
cmp qword [r14 + 8], 0
jne 0x598605
mov rcx, qword [r14 + 0x10]
mov rdx, qword [rsp + 0xe8]
mov r8, r15
call fcn.0056be9c
test rax, rax
mov r12, qword [rsp + 0xe0]
jne 0x5980a6
lea rax, [r12 + r13]
add rax, 0x90
mov rcx, qword [rsp + 0xd8]
mov rbx, qword [rcx]
mov rsi, qword [rax]
add rsi, rbx
mov qword [r14 + 0x78], rsi
mov qword [rax], rsi
mov r15b, byte [rax + 0x18]
mov r9, qword [rax - 0x10]
add r9, 0x1c
mov rdx, qword [r14 + 0x10]
lea rdi, [rsp + 0x38]
mov rcx, rdi
xor r8d, r8d
call fcn.005775a0
cmp qword [rdi], 0
je 0x5984e8
mov rax, qword [rsp + 0x40]
jmp 0x59850d
lea rax, [r12 + r13]
add rax, 0x9c
mov edx, dword [rax]
mov rcx, qword [r15]
call fcn.00595adf
test rax, rax
je 0x598482
mov qword [rbp + 8], rax
and qword [rbp], 0
jmp 0x5982e8
lea rbx, [r12 + r13]
add rbx, 0x78
cmp byte [rbx + 0x30], 0
je 0x598519
lea rax, [r12 + r13]
add rax, 0x80
mov rcx, qword [rax]
mov rax, qword [rax - 0x68]
lea r9, [rcx + rax + 0x22]
mov rdx, qword [r15]
lea rdi, [rsp + 0x38]
mov rcx, rdi
xor r8d, r8d
call fcn.005775a0
cmp qword [rdi], 0
jne 0x5983a3
mov rdx, qword [rbx]
mov rcx, qword [r15]
call fcn.00595b7e
test rax, rax
jne 0x598474
mov rdx, qword [rbx - 8]
mov rcx, qword [r15]
call fcn.00595b7e
jmp 0x598586
lea eax, [rbx + 0x14]
test r15b, r15b
cmove eax, ebx
lea rdx, [rsp + 0x38]
mov word [rdx], ax
mov rcx, qword [r14 + 0x10]
mov r8d, 2
call fcn.0056be9c
test rax, rax
je 0x59853f
xor ecx, ecx
mov rbx, qword [rsp + 0x28]
jmp 0x5980a8
mov rdx, qword [rbx - 8]
mov rax, rdx
shr rax, 0x20
je 0x59856b
lea rdx, [0x00799a6d]
mov r8d, 0x22
mov cl, 0x27
call fcn.00486ac4
jmp 0x598474
mov rdx, qword [r14 + 0x10]
lea rdi, [rsp + 0x38]
mov rcx, rdi
xor r8d, r8d
mov r9, rsi
call fcn.005775a0
cmp qword [rdi], 0
mov rbx, qword [rsp + 0x28]
je 0x5985be
mov rax, qword [rsp + 0x40]
jmp 0x5980a6
mov rcx, qword [r15]
call fcn.00595adf
test rax, rax
jne 0x598474
mov edx, dword [rbx]
mov rcx, qword [r15]
call fcn.00595adf
test rax, rax
jne 0x598474
mov rdx, qword [r15]
lea rdi, [rsp + 0x38]
mov rcx, rdi
xor r8d, r8d
mov r9, rsi
call fcn.005775a0
cmp qword [rdi], 0
je 0x598609
mov rax, qword [rsp + 0x40]
and qword [rbp], 0
mov qword [rbp + 8], rax
jmp 0x5982e8
movzx r8d, word [r13 + r12 + 0x98]
mov rax, qword [rsp + 0xd0]
mov r9d, dword [rax]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov rdx, r14
call fcn.00595b9e
mov rcx, qword [rsi]
cmp rcx, 4
je 0x5980cd
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
jmp 0x5980a8
ud2
mov rbx, rbp
jmp 0x5982c2