Function at 0x14001b2d0
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov r15, rcx
lea rax, [0x140010a00]
cmp r8d, 3
lea rcx, [0x14001b2c0]
mov rbx, r9
mov r12, rdx
cmovl rax, rcx
xor edi, edi
mov rcx, r15
mov qword [rsp + 0x40], rax
mov esi, edi
lea r14d, [rdi + 4]
call fcn.14001aeb0
mov rbp, rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
mov dword [rsp + 0x30], eax
test rbp, rbp
je 0x14001b35b
mov rdx, rbx
mov rcx, r12
call fcn.14001afc0
mov qword [rsp + 0x38], rax
mov rbx, rax
test rax, rax
jne 0x14001b3d9
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp dword [0x140028678], 1
jl 0x14001b3cd
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x14
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001b3cd
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, r15
lea rdx, str._s_:_open_file_error
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001b3cd
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140024bf0]
call fcn.140015200
mov ecx, 0x14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0x800000
mov qword [rsp + 0xe8], r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, 0x808094
mov qword [rsp + 0x50], rax
mov r13, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test r13, r13
je 0x14001b976
test rax, rax
je 0x14001b976
mov r9, rbx
mov dword [rax], 0x184c2102
mov r8, r14
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r14
je 0x14001b4ae
cmp dword [0x140028678], 1
jl 0x14001b4a2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x16
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001b4a2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Write_error_:_cannot_write_header
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001b4a2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140024bf0]
call fcn.140015200
mov ecx, 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movaps xmmword [rsp + 0x90], xmm6
mov r9, rbp
movaps xmmword [rsp + 0x70], xmm8
mov edx, 1
mov r8d, 0x800000
movaps xmmword [rsp + 0x60], xmm9
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movsd xmm8, qword [0x140025a90]
mov rbx, rax
movsd xmm9, qword [0x140025a68]
test rax, rax
je 0x14001b6d0
nop word [rax + rax]
lea rbp, [r15 + 4]
cmp rbx, 0x800000
jbe 0x14001b527
mov r8d, 0x1c6
lea rdx, str.c:_b_abs_fcz738m_9xcrootlz4_c_1670944697368workprogramslz4io.c
lea rcx, str.inSize___LEGACY_BLOCKSIZE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [rsp + 0xf0]
mov r9d, 0x808090
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, r13
add rsi, rbx
call qword [rsp + 0x40]
movsxd rbp, eax
test eax, eax
jns 0x14001b569
mov r8d, 0x1cb
lea rdx, str.c:_b_abs_fcz738m_9xcrootlz4_c_1670944697368workprogramslz4io.c
lea rcx, [0x140024e58]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add r14, 4
add r14, rbp
cmp dword [0x140028678], 2
jl 0x14001b61f
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
sub eax, dword [0x140028680]
cmp eax, 0xa6
jg 0x14001b59d
cmp dword [0x140028678], 4
jl 0x14001b61f
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
xorps xmm0, xmm0
mov dword [0x140028680], eax
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x14001b5bb
addsd xmm0, xmm8
xorps xmm6, xmm6
cvtsi2sd xmm6, r14
test r14, r14
jns 0x14001b5cd
addsd xmm6, xmm8
divsd xmm6, xmm0
mov rbx, rsi
mov ecx, 2
shr rbx, 0x14
mulsd xmm6, xmm9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
movaps xmm3, xmm6
lea rdx, str._rRead_:__i_MiB_____.2f__
movq r9, xmm3
mov rcx, rax
mov r8d, ebx
call fcn.140015200
cmp dword [0x140028678], 4
jl 0x14001b61f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
test ebp, ebp
jg 0x14001b63d
mov r8d, 0x1d1
lea rdx, str.c:_b_abs_fcz738m_9xcrootlz4_c_1670944697368workprogramslz4io.c
lea rcx, str.outSize___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp ebp, 0x808090
jl 0x14001b65f
mov r8d, 0x1d2
lea rdx, str.c:_b_abs_fcz738m_9xcrootlz4_c_1670944697368workprogramslz4io.c
lea rcx, str.outSize___outBuffSize
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r9, qword [rsp + 0x38]
lea r8, [rbp + 4]
mov eax, ebp
mov byte [r15], bpl
shr eax, 8
mov edx, 1
mov byte [r15 + 1], al
mov rcx, r15
mov eax, ebp
shr eax, 0x10
mov byte [r15 + 2], al
mov eax, ebp
shr eax, 0x18
mov byte [r15 + 3], al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea ecx, [rbp + 4]
movsxd rdx, ecx
cmp rax, rdx
jne 0x14001b764
mov rbp, qword [rsp + 0x48]
mov edx, 1
mov r13, qword [rsp + 0x50]
mov r9, rbp
mov rcx, r13
mov r8d, 0x800000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, rax
test rax, rax
jne 0x14001b500
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14001b7b2
cmp dword [0x140028678], 1
jl 0x14001b758
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x18
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001b758
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0xe0]
lea rdx, str.Error_while_reading__s
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001b758
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140024bf0]
call fcn.140015200
mov ecx, 0x18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140028678], 1
jl 0x14001b758
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x18
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001b758
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Write_error_:_cannot_write_compressed_block
call fcn.140015200
jmp 0x14001b735
movaps xmmword [rsp + 0x80], xmm7
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
cmp eax, dword [rsp + 0x30]
mov ecx, edi
sete cl
test rsi, rsi
lea ebx, [rcx + rax]
mov eax, dword [0x140028678]
mov rcx, rdi
sete cl
add rsi, rcx
cmp eax, 2
jl 0x14001b86e
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [0x140022b76]
lea rdx, str._r_79s_r
call fcn.140015200
mov eax, dword [0x140028678]
cmp eax, 2
jl 0x14001b86e
xorps xmm6, xmm6
cvtsi2sd xmm6, rsi
test rsi, rsi
jns 0x14001b825
addsd xmm6, xmm8
xorps xmm7, xmm7
cvtsi2sd xmm7, r14
test r14, r14
jns 0x14001b837
addsd xmm7, xmm8
divsd xmm7, xmm6
mov ecx, 2
mulsd xmm7, xmm9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, r14
movsd qword [rsp + 0x20], xmm7
mov rcx, rax
lea rdx, str.Compressed__llu_bytes_into__llu_bytes____.2f___n
mov r8, rsi
call fcn.140015200
mov eax, dword [0x140028678]
jmp 0x14001b880
xorps xmm6, xmm6
cvtsi2sd xmm6, rsi
test rsi, rsi
jns 0x14001b880
addsd xmm6, xmm8
sub ebx, dword [rsp + 0x30]
movd xmm7, ebx
cvtdq2pd xmm7, xmm7
divsd xmm7, qword [0x140025a70]
cmp eax, 4
jl 0x14001b8d7
divsd xmm6, xmm7
mov ecx, 2
mulsd xmm6, qword [0x140025a40]
mulsd xmm6, qword [0x140025a40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
movaps xmm3, xmm6
lea rdx, str.Done_in__.2f_s____.2f_MiB_s_n
movaps xmm2, xmm7
movq r9, xmm3
movq r8, xmm2
mov rcx, rax
call fcn.140015200
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movaps xmm7, xmmword [rsp + 0x80]
test r12, r12
jne 0x14001b954
mov r8d, 0xcc
lea rdx, str.c:_b_abs_fcz738m_9xcrootlz4_c_1670944697368workprogramsutil.h
lea rcx, str.a_NULL__b_NULL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movaps xmm8, xmmword [rsp + 0x70]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm9, xmmword [rsp + 0x60]
mov r13, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, str.stdout
nop dword [rax + rax]
movzx eax, byte [r12 + rdi]
inc rdi
cmp al, byte [rcx + rdi - 1]
jne 0x14001b919
cmp rdi, 7
jne 0x14001b960
jmp 0x14001b924
cmp dword [0x140028678], 1
jl 0x14001b9e5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x15
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001b9e5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Allocation_error_:_not_enough_memory
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001b9e5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x140024bf0]
call fcn.140015200
mov ecx, 0x15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3