Function at 0x14001d050
Capabilities:
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x20
mov rbp, r8
mov r12, rcx
shr rbp, 3
mov ecx, 1
mov ebx, r9d
mov r13, r8
mov rsi, rdx
lea r15, [rdx + rbp*8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r9d, r9d
cmp r12, rax
sete r9b
sub ebx, r9d
test ebx, ebx
jg 0x14001d140
mov r9, r12
mov r8, r13
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, r13
je 0x14001d12c
cmp dword [0x140028678], 1
jl 0x14001d120
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x46
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d120
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_decoded_block
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d120
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, 0x46
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret
mov qword [rsp + 0x58], r14
mov r14d, dword [rsp + 0x70]
cmp r14d, 0x40000000
jbe 0x14001d1f1
mov edx, 0x40000000
mov r8d, 1
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
je 0x14001d1ea
cmp dword [0x140028678], 1
jl 0x14001d1de
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x47
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d1de
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.1_GB_skip_error__sparse_file_support_
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d1de
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, 0x47
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add r14d, 0xc0000000
mov qword [rsp + 0x50], rdi
cmp rsi, r15
jae 0x14001d286
nop
mov edi, 0x1000
cmp rbp, rdi
cmovb rdi, rbp
xor ebx, ebx
sub rbp, rdi
test rdi, rdi
je 0x14001d225
cmp qword [rsi + rbx*8], 0
jne 0x14001d225
inc rbx
cmp rbx, rdi
jb 0x14001d216
lea r14d, [r14 + rbx*8]
cmp rbx, rdi
je 0x14001d279
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, r14d
mov r8d, 1
mov rcx, r12
mov dword [rax], 0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x14001d3ce
sub rdi, rbx
lea rsi, [rsi + rbx*8]
mov r8, rdi
lea edx, [rax + 8]
mov rcx, rsi
mov r9, r12
xor r14d, r14d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rdi
jne 0x14001d353
lea rsi, [rsi + rdi*8]
cmp rsi, r15
jb 0x14001d200
and r13d, 7
je 0x14001d503
lea rdi, [r15 + r13]
mov rbx, r15
cmp r15, rdi
jae 0x14001d2ad
nop dword [rax]
cmp byte [rbx], 0
jne 0x14001d2ad
inc rbx
cmp rbx, rdi
jb 0x14001d2a0
mov eax, ebx
sub eax, r15d
add r14d, eax
cmp rbx, rdi
je 0x14001d503
mov edx, r14d
mov r8d, 1
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
je 0x14001d46f
cmp dword [0x140028678], 1
jl 0x14001d347
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x4a
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d347
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.Sparse_skip_error___try___no_sparse
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d347
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, 0x4a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140028678], 1
jl 0x14001d3c2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x49
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d3c2
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_decoded_block
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d3c2
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, 0x49
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140028678], 1
jl 0x14001d463
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x48
lea rdx, str.Error__i_:
mov rcx, rax
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d463
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, dword [rdi]
lea rdx, str.Sparse_skip_error__d_:__s___try___no_sparse
mov rcx, rax
mov r9, rbx
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d463
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, 0x48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r14d, r14d
sub rdi, rbx
mov r9, r12
mov r8, rdi
mov rcx, rbx
lea edx, [r14 + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rdi
je 0x14001d503
cmp dword [0x140028678], 1
jl 0x14001d4f7
lea ecx, [r14 + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8d, [r14 + 0x4b]
lea rdx, str.Error__i_:
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d4f7
lea ecx, [r14 + 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_decoded_end_of_block
call fcn.140015200
cmp dword [0x140028678], 1
jl 0x14001d4f7
lea ecx, [r14 + 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, 0x4b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdi, qword [rsp + 0x50]
mov eax, r14d
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret