Function at 0x1802184f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
sub rsp, 0x48
mov rbx, rcx
lea rdx, [0x18033d4a8]
mov rcx, qword [rcx]
mov esi, 0x1388
call fcn.1802b29d4
mov qword [rbx + 8], rax
test rax, rax
jne 0x180218527
mov eax, 0xffffffff
add rsp, 0x48
pop rsi
pop rbx
ret
mov edx, 1
mov qword [rsp + 0x20], r15
mov r9, rax
lea rcx, [rbx + 0x30]
lea r8d, [rdx + 2]
call fcn.1802b36fc
cmp rax, 3
jb 0x18021884f
mov r8d, 3
lea rdx, [rbx + 0x30]
lea rcx, [0x18037a884]
call fcn.1802ad2e0
test eax, eax
je 0x180218583
mov r8d, 3
lea rdx, [rbx + 0x30]
lea rcx, [0x18037a8f0]
call fcn.1802ad2e0
test eax, eax
jne 0x18021884f
mov r8d, 3
lea rdx, [rbx + 0x30]
lea rcx, [0x18037a8f0]
call fcn.1802ad2e0
test eax, eax
jne 0x1802185cb
mov rbx, qword [rbx]
lea ecx, [rax + 2]
call fcn.1802af008
mov rcx, rax
lea rdx, str.error:__s:_missing_or_bad_password_n
mov r8, rbx
call fcn.1800f14a0
mov r15, qword [rsp + 0x20]
mov eax, 0xffffffff
add rsp, 0x48
pop rsi
pop rbx
ret
mov r9, qword [rbx + 8]
lea rcx, [rsp + 0x60]
mov edx, 1
lea r8d, [rdx + 1]
call fcn.1802b36fc
cmp rax, 2
jb 0x18021884f
movzx eax, byte [rsp + 0x61]
mov ecx, 0xea60
mov qword [rsp + 0x38], r12
movzx r12d, byte [rsp + 0x60]
shl r12d, 8
add r12d, eax
call fcn.1802a4320
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x180218650
mov rbx, qword [rbx]
lea ecx, [rax + 2]
call fcn.1802af008
mov rcx, rax
lea rdx, str.error:__s:_missing_memory_n
mov r8, rbx
call fcn.1800f14a0
mov r12, qword [rsp + 0x38]
mov eax, 0xffffffff
mov r15, qword [rsp + 0x20]
add rsp, 0x48
pop rsi
pop rbx
ret
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], r13
xor r13d, r13d
mov dword [rax + 4], r13d
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x28], r14
mov r14d, r13d
mov dword [rax + 8], r13d
test r12d, r12d
je 0x180218802
nop
mov r9, qword [rbx + 8]
lea rcx, [rsp + 0x60]
mov edx, 1
lea r8d, [rdx + 1]
call fcn.1802b36fc
cmp rax, 2
jb 0x180218829
mov r9, qword [rbx + 8]
lea rcx, [rsp + 0x68]
mov edx, 1
mov r8d, edx
call fcn.1802b36fc
cmp rax, 1
jb 0x180218829
movzx r8d, byte [rsp + 0x68]
lea rcx, [rbx + 0x30]
mov r9, qword [rbx + 8]
mov edx, 1
shr r8d, 3
inc r8d
call fcn.1802b36fc
movzx r10d, byte [rsp + 0x68]
mov ecx, r10d
shr rcx, 3
inc rcx
cmp rax, rcx
jb 0x180218829
mov edx, r13d
mov edi, r13d
test r10b, r10b
je 0x1802187ce
nop dword [rax + rax]
mov ecx, edi
mov r9d, edi
and ecx, 7
test edi, edi
jns 0x180218723
lea r9d, [rdi + 7]
sub ecx, 8
movsxd r8, edx
mov eax, 7
sub eax, ecx
sar r9d, 3
movzx ecx, al
mov edx, 1
shl edx, cl
movsxd rax, r9d
movsx ecx, byte [rax + rbx + 0x30]
lea rax, [r8 + r8*2]
mov r8, qword [rbx + 0x28]
and edx, ecx
neg edx
sbb rcx, rcx
and ecx, 4
lea rbp, [rcx + rax*4]
mov edx, dword [r8 + rbp + 4]
test edx, edx
jne 0x1802187c0
mov eax, dword [rbx + 0x14]
inc eax
mov dword [rbx + 0x14], eax
cmp eax, esi
jne 0x18021878e
add esi, 0x1388
mov rcx, r8
movsxd rax, esi
lea rdx, [rax + rax*2]
shl rdx, 2
call fcn.1802aa994
mov r8, rax
mov qword [rbx + 0x28], rax
movsxd rax, dword [rbx + 0x14]
lea rcx, [rax + rax*2]
mov dword [r8 + rcx*4 + 4], r13d
movsxd rax, dword [rbx + 0x14]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x28]
mov dword [rax + rcx*4 + 8], r13d
mov rcx, qword [rbx + 0x28]
mov eax, dword [rbx + 0x14]
mov dword [rcx + rbp + 4], eax
mov edx, dword [rbx + 0x14]
movzx r10d, byte [rsp + 0x68]
inc edi
movzx eax, r10b
cmp edi, eax
jl 0x180218710
movsxd rax, edx
inc r14d
lea rcx, [rax + rax*2]
movzx eax, byte [rsp + 0x60]
lea rdx, [rcx*4]
mov rcx, qword [rbx + 0x28]
mov byte [rdx + rcx], al
mov rcx, qword [rbx + 0x28]
movzx eax, byte [rsp + 0x61]
mov byte [rdx + rcx + 1], al
cmp r14d, r12d
jl 0x180218680
xor eax, eax
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x70]
mov r12, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
add rsp, 0x48
pop rsi
pop rbx
ret
mov rbx, qword [rbx]
mov ecx, 2
call fcn.1802af008
mov rcx, rax
lea rdx, str.error:__s:_not_in_hzip_format_n
mov r8, rbx
call fcn.1800f14a0
mov eax, 0xffffffff
jmp 0x180218804
mov rbx, qword [rbx]
mov ecx, 2
call fcn.1802af008
mov rcx, rax
lea rdx, str.error:__s:_not_in_hzip_format_n
mov r8, rbx
call fcn.1800f14a0
mov r15, qword [rsp + 0x20]
mov eax, 0xffffffff
add rsp, 0x48
pop rsi
pop rbx
ret