Function at 0x140081c40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x88
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rbp + 7], rax
mov r13, qword [rbp + 0x67]
mov rdi, qword [rbp + 0x5f]
mov rsi, qword [rbp + 0x6f]
mov r14, qword [rbp + 0x77]
mov r15, qword [rbp + 0x7f]
test r13, r13
je 0x140081e9b
test r14, r14
jne 0x140081ca3
cmp r15, 0xffffffffffffffff
je 0x140081e9b
cmp rsi, 0xd
jb 0x140081eba
lea r9, [rdi + 8]
mov qword [rsp + 0x80], rbx
mov r8d, 5
lea rcx, [rdi + 0x18]
mov rdx, r13
call fcn.1400b5880
test eax, eax
jne 0x140081ee0
lea rcx, [rdi + 0x18]
mov qword [rsp + 0x78], r12
call fcn.1400b5f60
cmp r15, 0xffffffffffffffff
je 0x140081cf8
mov rdx, qword [r13 + 5]
test rdx, rdx
js 0x140081cf8
mov rcx, r15
call fcn.140082940
test r14, r14
je 0x140081d31
mov rcx, qword [r13 + 5]
test rcx, rcx
jle 0x140081d31
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
jae 0x140081d31
mov rax, qword [r14 + 0x10]
sub rax, qword [r14]
mov qword [rbp - 1], rcx
cmp rcx, rax
jbe 0x140081d31
lea rdx, [rbp - 1]
mov rcx, r14
call fcn.140082660
xor r9d, r9d
lea r12, [r13 + 0xd]
sub rsi, r12
mov qword [rdi + 0x40], r9
mov rcx, qword [r13 + 5]
add rsi, r13
mov r8, qword [rdi + 0x38]
mov ebx, r9d
cmp rcx, r8
mov rdx, r8
cmovb rdx, rcx
mov qword [rbp - 1], rsi
test rdx, rdx
je 0x140081e4e
mov r10d, 1
mov eax, r9d
test rcx, rcx
jle 0x140081d7c
sub rcx, rbx
cmp r8, rcx
cmovae eax, r10d
lea rcx, [rbp - 5]
mov dword [rbp - 5], r9d
mov qword [rsp + 0x28], rcx
lea r9, [rbp - 1]
lea rcx, [rdi + 0x18]
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.1400b5bf0
test eax, eax
jne 0x140081e78
sub rsi, qword [rbp - 1]
xor eax, eax
add r12, qword [rbp - 1]
mov dword [rbp - 9], eax
cmp r15, 0xffffffffffffffff
je 0x140081de0
mov r8d, dword [rdi + 0x40]
lea r9, [rbp - 9]
mov rdx, qword [rdi + 0x30]
mov rcx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140081f03
mov eax, dword [rbp - 9]
add rbx, rax
test r14, r14
je 0x140081dfd
mov rdx, qword [r14 + 8]
mov rcx, r14
mov r9, qword [rdi + 0x40]
mov r8, qword [rdi + 0x30]
call fcn.14005b930
add rbx, qword [rdi + 0x40]
mov eax, dword [rbp - 5]
cmp eax, 1
je 0x140081e37
cmp eax, 4
je 0x140081e37
test rsi, rsi
je 0x140081f2c
xor r9d, r9d
mov qword [rdi + 0x40], r9
mov r8, qword [rdi + 0x38]
mov rcx, qword [r13 + 5]
mov rdx, r8
mov rax, rcx
sub rax, rbx
cmp rax, r8
cmovb rdx, rax
jmp 0x140081d57
cmp r15, 0xffffffffffffffff
je 0x140081e4e
cmp qword [r13 + 5], rbx
je 0x140081e4e
mov rdx, rbx
mov rcx, r15
call fcn.140082940
mov r12, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140133600
add rsp, 0x88
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
lea r8, str.Unable_to_decompress_LZMA_stream_
mov edx, eax
lea rcx, [rbp - 0x31]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x31]
call fcn.140135f84
int3
mov edx, 0x57
lea rcx, [rbp - 0x31]
call fcn.1400966b0
lea rcx, [rbp - 0x31]
lea rdx, [0x14020e468]
call fcn.140135f84
int3
lea r8, str.Unable_to_read_LZMA_header_
mov edx, recvfrom
lea rcx, [rbp - 0x31]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x31]
call fcn.140135f84
int3
lea r8, str.Unable_to_allocate_LZMA_context_
mov edx, eax
lea rcx, [rbp - 0x31]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x31]
call fcn.140135f84
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_write_uncompressed_data_to_the_disk_
lea rcx, [rbp - 0x31]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x31]
call fcn.140135f84
int3
lea r8, str.The_LZMA_stream_has_ended_prematurely_
mov edx, 1
lea rcx, [rbp - 0x31]
call fcn.1400967b0
lea rdx, [0x14020e468]
lea rcx, [rbp - 0x31]
call fcn.140135f84
int3