Function at 0x18000286c
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, 0x138
mov r14, rdx
mov rbx, rcx
cmp byte [rdx + 0xb9], 0
je 0x180002a68
mov rax, qword [r14 + 0x98]
lea rcx, [rax - 1]
imul rcx, rcx, 0xb0
add rcx, qword [r14 + 0x88]
xor esi, esi
cmp rax, 1
cmovae rsi, rcx
lea rdx, [0x18014c1c0]
mov rcx, rsi
call fcn.1800048e2
mov rax, qword [rsi + 0x38]
mov r12, qword [rsi + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r12
cmp r12, 0xffff
jbe 0x1800028f8
lea rdx, str.Extra_data_exceeds_extra_fieldIncomplete_extra_data_header.cargo_registry_srcindex.crates.io_6f17d22bba15001fzip_0.6.6_srcwrite.rs
mov r8d, 0x1e
mov cl, reloc.WS2_32.dll_setsockopt
call fcn.180027c31
jmp 0x180002a3f
lea rdi, [rsp + 0x48]
lea r15, [rsp + 0x38]
lea r13, [0x1801f0bf8]
test r12, r12
je 0x180002a51
cmp r12, 4
jb 0x180002d6f
mov rcx, rdi
mov rdx, r15
call fcn.1800f2448
cmp word [rsp + 0x48], 0
jne 0x180002e0f
movzx ebp, word [rsp + 0x4a]
mov word [rsp + 0x36], bp
mov rcx, rdi
mov rdx, r15
call fcn.1800f2448
cmp word [rsp + 0x48], 0
jne 0x180002e0f
cmp bp, 1
je 0x180002d7e
cmp bp, 0x20
jb 0x1800029ae
movzx ecx, word [rsp + 0x4a]
add r12, 0xfffffffffffffffc
xor eax, eax
cmp rax, 0x62
je 0x180002985
lea rdx, [rax + 2]
cmp word [rax + r13], bp
mov rax, rdx
jne 0x18000296f
jmp 0x1800029ae
cmp r12, rcx
jb 0x180002d8d
mov rdx, qword [rsp + 0x40]
mov r12, rdx
sub r12, rcx
jb 0x180002fa1
add qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], r12
jmp 0x180002909
lea rax, [rsp + 0x36]
lea rcx, [rsp + 0xe0]
mov qword [rcx], rax
lea rax, [fcn.18001b780]
mov qword [rcx + 8], rax
mov eax, 2
mov qword [rsp + 0x48], rax
and qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 6
and qword [rsp + 0x68], 0
movabs rdx, 0xc00000020
mov qword [rsp + 0x70], rdx
mov byte [rsp + 0x78], 3
lea r8, str.Extra_data_header_ID__requires_crate_feature__unreserved_
lea rdx, [rsp + 0x108]
mov qword [rdx], r8
mov qword [rdx + 8], rax
mov qword [rdx + 0x20], rdi
mov eax, 1
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rax
lea rsi, [rsp + 0xf0]
mov rcx, rsi
call fcn.180011ac0
mov rcx, rsi
call fcn.1800f2484
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rdx
jmp 0x180002ce2
cmp byte [r14 + 0xba], 0
je 0x180002da1
and word [r14 + 0xb9], 0
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call fcn.180001cd8
mov rax, qword [rsi]
cmp rax, 4
jne 0x180002b91
lea rax, [rsp + 0x48]
mov ecx, recv
mov rdi, rax
mov rsi, r14
rep movsq qword [rdi], qword [rsi]
mov qword [r14], 2
cmp dword [rax], 3
jne 0x180002faf
lea rsi, [rsp + 0x50]
cmp qword [rsi], 0
je 0x180002c0c
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movaps xmmword [rsp + 0xd0], xmm2
movaps xmmword [rsp + 0xc0], xmm1
movaps xmmword [rsp + 0xb0], xmm0
mov r8, qword [rsp + 0xc0]
cmp r8, 0xb
jbe 0x180002f88
mov eax, dword [r14 + 0x6c]
shr eax, 0x18
mov rdi, qword [rsp + 0xb0]
mov byte [rdi + 0xb], al
mov ecx, dword [rsp + 0xd8]
mov r15d, dword [rsp + 0xd0]
mov eax, dword [rsp + 0xd4]
xor edx, edx
lea r9, [0x1801f0d1c]
mov r10d, 0xff
cmp r8, rdx
je 0x180002ba2
mov r11b, byte [rdi + rdx]
mov r13d, ecx
or r13d, 3
mov ebp, r13d
and ebp, 0xfffffffe
mov r12d, r15d
shr r12d, 8
xor r15b, r11b
movzx r15d, r15b
xor r12d, dword [r9 + r15*4]
imul ebp, r13d
mov r15d, r12d
and r12d, r10d
add r12d, eax
imul eax, r12d, 0x8088405
inc eax
mov r12d, eax
shr r12d, 0x18
mov r13d, ecx
and ecx, r10d
xor ecx, r12d
shr ebp, 8
shr r13d, 8
xor r13d, dword [r9 + rcx*4]
xor bpl, r11b
mov byte [rdi + rdx], bpl
inc rdx
mov ecx, r13d
jmp 0x180002b29
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx + 8], xmm0
mov qword [rbx], rax
jmp 0x180002ce2
mov dword [rsp + 0xd8], ecx
mov dword [rsp + 0xd0], r15d
mov dword [rsp + 0xd4], eax
mov r15, qword [rsp + 0xc8]
mov rcx, r15
mov rdx, rdi
call fcn.180047c83
test rax, rax
je 0x180002c37
mov r12, rax
lea rcx, [rsp + 0xb0]
call fcn.1800041a9
mov qword [rbx + 8], r12
and qword [rbx], 0
cmp dword [rsp + 0x48], 3
jne 0x180002c78
cmp qword [rsp + 0x50], 0
jne 0x180002ce2
mov rcx, rsi
call fcn.180004100
jmp 0x180002ce2
lea rdi, [r14 + 8]
mov rcx, r14
call fcn.180004114
mov qword [r14], 3
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movups xmmword [rdi + 0x20], xmm2
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
jmp 0x180002c8e
mov rdx, qword [rsp + 0xb8]
mov rcx, rdi
call fcn.18002a11b
mov rcx, r14
call fcn.180004114
mov qword [r14], 3
and qword [r14 + 8], 0
mov qword [r14 + 0x10], r15
cmp dword [rsp + 0x48], 3
jne 0x180002c84
cmp qword [rsp + 0x50], 0
jne 0x180002c8e
mov rcx, rsi
call fcn.180004100
jmp 0x180002c8e
lea rcx, [rsp + 0x48]
call fcn.180004114
jmp 0x180002ce2
lea rcx, [rsp + 0x48]
call fcn.180004114
mov rcx, r14
call fcn.180001c82
cmp byte [r14 + 0xbb], 0
je 0x180002cb2
xor eax, eax
mov byte [r14 + 0xb8], al
mov byte [r14 + 0xbb], al
jmp 0x180002cdb
mov rsi, rax
mov rax, qword [r14 + 0x98]
lea rcx, [rax - 1]
imul rcx, rcx, 0xb0
add rcx, qword [r14 + 0x88]
xor r12d, r12d
cmp rax, 1
cmovae r12, rcx
jae 0x180002cf6
mov qword [rbx], 4
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [r14 + 0x6c]
mov dword [r12 + 0x9c], eax
mov rax, qword [r14 + 0x80]
mov qword [r12 + 0x78], rax
mov rdx, qword [rsi]
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.18004cd53
cmp qword [rdi], 0
jne 0x180002d5d
lea r15, [rsp + 0x48]
mov rdi, qword [r15 + 8]
mov rax, rdi
sub rax, qword [r14 + 0x78]
mov qword [r12 + 0x70], rax
mov r9, qword [r12 + 0x80]
add r9, 0xe
mov rdx, qword [rsi]
mov rcx, r15
xor r8d, r8d
call fcn.1800c9a10
cmp qword [r15], 0
je 0x180002e19
mov rax, qword [rsp + 0x50]
mov qword [rbx + 8], rax
and qword [rbx], 0
jmp 0x180002ce2
lea rdx, [0x1801f0b8e]
mov r8d, 0x1c
jmp 0x180002d9a
lea rdx, str.No_custom_ZIP64_extra_data_allowed
mov r8d, 0x22
jmp 0x180002d9a
lea rdx, str.Extra_data_size_exceeds_extra_field
mov r8d, 0x23
mov cl, 0x27
jmp 0x1800028ee
mov rcx, r14
call fcn.180001c82
mov rdi, rax
mov rdx, qword [rsi + 0x38]
mov r8, qword [rsi + 0x48]
mov rcx, qword [rax]
call fcn.180047c83
test rax, rax
jne 0x180002a3f
mov r15, qword [rsi + 0x48]
add r15, qword [rsi + 0x90]
mov qword [r14 + 0x78], r15
mov qword [rsi + 0x90], r15
mov bpl, byte [rsi + 0xa8]
mov r13, qword [rsi + 0x48]
mov r9, qword [rsi + 0x80]
add r9, 0x1c
mov rdx, qword [rdi]
lea r12, [rsp + 0x48]
mov rcx, r12
xor r8d, r8d
call fcn.1800c9a10
cmp qword [r12], 0
je 0x180002e9b
mov rax, qword [rsp + 0x50]
jmp 0x180002a3f
mov edx, dword [r12 + 0x9c]
mov rcx, qword [rsi]
call fcn.180007d5c
test rax, rax
jne 0x180002d62
cmp byte [r12 + 0xa8], 0
je 0x180002f15
mov rax, qword [r12 + 0x18]
mov rcx, qword [r12 + 0x80]
lea r9, [rcx + rax]
add r9, 0x22
mov rdx, qword [rsi]
lea r15, [rsp + 0x48]
mov rcx, r15
xor r8d, r8d
call fcn.1800c9a10
cmp qword [r15], 0
jne 0x180002d5d
mov rdx, qword [r12 + 0x78]
mov rcx, qword [rsi]
call fcn.180007d7b
test rax, rax
jne 0x180002d62
mov rdx, qword [r12 + 0x70]
mov rcx, qword [rsi]
call fcn.180007d7b
jmp 0x180002f5a
lea edx, [r13 + 0x14]
test bpl, bpl
cmove edx, r13d
mov rcx, qword [rdi]
call fcn.180007d3c
test rax, rax
jne 0x180002a3f
mov rdx, qword [rdi]
lea rdi, [rsp + 0x48]
mov rcx, rdi
xor r8d, r8d
mov r9, r15
call fcn.1800c9a10
cmp qword [rdi], 0
jne 0x180002e0f
movzx r8d, word [rsi + 0x98]
mov r9d, dword [rsi]
mov eax, dword [rsi + 4]
mov dword [rsp + 0x20], eax
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov rdx, r14
call fcn.180001cd8
mov rcx, qword [rsi]
cmp rcx, 4
je 0x180002a5f
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
jmp 0x180002a41
mov rdx, qword [r12 + 0x70]
mov rax, rdx
shr rax, 0x20
je 0x180002f3c
lea rdx, str.Large_file_option_has_not_been_setShould_have_switched_to_stored_and_unencrypted_beforehand
mov r8d, 0x22
mov cl, 0x27
call fcn.180063b15
jmp 0x180002d62
mov rcx, qword [rsi]
call fcn.180007d5c
test rax, rax
jne 0x180002d62
mov edx, dword [r12 + 0x78]
mov rcx, qword [rsi]
call fcn.180007d5c
test rax, rax
jne 0x180002d62
mov rdx, qword [rsi]
lea rsi, [rsp + 0x48]
mov rcx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1800c9a10
cmp qword [rsi], 0
jne 0x180002d5d
jmp 0x180002ca0
lea rax, str..cargo_registry_srcindex.crates.io_6f17d22bba15001fzip_0.6.6_srczipcrypto.rs
mov ecx, 0xb
mov rdx, r8
mov r8, rax
call fcn.180146780
ud2
lea r8, [0x1801f0ce0]
call fcn.180146800
ud2
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, [0x18014c1a8]
mov edx, 0x28
call fcn.180146900
ud2