Function at 0x1402aecfc
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, qword [rcx + 0x28]
xor edi, edi
mov ebp, edx
mov rsi, rcx
test rbx, rbx
je 0x1402af5da
cmp edx, 5
ja 0x1402af5da
cmp qword [rcx + 0x10], rdi
je 0x1402af5cf
cmp qword [rcx], rdi
jne 0x1402aed4d
cmp dword [rcx + 8], edi
jne 0x1402af5cf
cmp dword [rbx + 8], 0x29a
jne 0x1402aed5f
cmp ebp, 4
jne 0x1402af5cf
cmp dword [rcx + 0x18], edi
jne 0x1402aed79
mov rax, qword [str.buffer_error]
mov qword [rcx + 0x20], rax
mov eax, 0xfffffffb
jmp 0x1402af5df
cmp dword [rbx + 8], 0x2a
mov r10d, 2
mov r15d, dword [rbx + 0x40]
mov qword [rbx], rsi
mov dword [rbx + 0x40], ebp
lea r12d, [r10 - 1]
lea r11d, [r10 + 0x6f]
jne 0x1402af0a1
cmp dword [rbx + 0x2c], r10d
jne 0x1402aefb7
mov dword [rcx + 0x4c], edi
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], reloc.Cabinet.dll_SetCompressorInformation
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x8b
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 8
add dword [rbx + 0x28], r12d
mov r8, qword [rbx + 0x30]
mov r9d, dword [rbx + 0x28]
test r8, r8
jne 0x1402aee76
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], dil
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r12d
mov eax, dword [rbx + 0xac]
cmp eax, 9
jne 0x1402aee3e
mov dl, r10b
jmp 0x1402aee51
cmp dword [rbx + 0xb0], r10d
jge 0x1402aee4f
mov dl, dil
cmp eax, r10d
jge 0x1402aee51
mov dl, 4
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0xb
mov eax, r11d
add dword [rbx + 0x28], r12d
jmp 0x1402aefaf
mov rax, qword [r8 + 0x30]
neg rax
mov eax, dword [r8 + 0x3c]
sbb dl, dl
and dl, 0x10
neg eax
mov rax, qword [r8 + 0x20]
sbb cl, cl
and cl, r10b
add dl, cl
neg rax
mov rax, qword [r8 + 0x10]
sbb cl, cl
and cl, 8
add dl, cl
neg rax
sbb cl, cl
and cl, 4
add dl, cl
cmp dword [r8], edi
setne al
add dl, al
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], dl
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 4]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 5]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 6]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 7]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov eax, dword [rbx + 0xac]
cmp eax, 9
jne 0x1402aef23
mov dl, r10b
jmp 0x1402aef36
cmp dword [rbx + 0xb0], r10d
jge 0x1402aef34
mov dl, dil
cmp eax, r10d
jge 0x1402aef36
mov dl, 4
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r12d
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 0xc]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov rax, qword [rbx + 0x30]
mov r8d, dword [rbx + 0x28]
cmp qword [rax + 0x10], rdi
je 0x1402aef93
mov al, byte [rax + 0x18]
mov rcx, qword [rbx + 0x10]
mov byte [r8 + rcx], al
add dword [rbx + 0x28], r12d
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 0x19]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov r8d, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1402aefa7
mov rdx, qword [rbx + 0x10]
mov ecx, dword [rsi + 0x4c]
call fcn.1402b0f00
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov eax, 0x45
mov dword [rbx + 8], eax
jmp 0x1402af0a1
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0xb0], r10d
jge 0x1402aeff5
mov edx, dword [rbx + 0xac]
cmp edx, r10d
jl 0x1402aeff5
cmp edx, 6
jge 0x1402aefe3
mov eax, 0x40
jmp 0x1402aeff7
mov eax, 0xc0
cmp edx, 6
lea r8d, [rax - 0x40]
cmove eax, r8d
jmp 0x1402aeff7
mov eax, edi
or eax, ecx
mov dword [rbx + 8], r11d
mov ecx, eax
or ecx, 0x20
cmp dword [rbx + 0x94], edi
cmove ecx, eax
mov eax, 0x8421085
mul ecx
mov rax, qword [rbx + 0x10]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
add ecx, r12d
imul r8d, ecx, 0x1f
mov ecx, dword [rbx + 0x28]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r12d
cmp dword [rbx + 0x94], edi
je 0x1402af09d
movzx r8d, word [rsi + 0x4e]
mov ecx, dword [rbx + 0x28]
mov edx, r8d
mov rax, qword [rbx + 0x10]
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r12d
movzx r8d, word [rsi + 0x4c]
mov edx, dword [rbx + 0x28]
mov ecx, r8d
mov rax, qword [rbx + 0x10]
shr ecx, 8
mov byte [rdx + rax], cl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r12d
mov dword [rsi + 0x4c], r12d
mov eax, dword [rbx + 8]
mov r14d, VarR8FromUI1
cmp eax, 0x45
jne 0x1402af178
mov rdx, qword [rbx + 0x30]
cmp qword [rdx + 0x10], rdi
je 0x1402af171
mov r10d, dword [rbx + 0x28]
mov ecx, r10d
jmp 0x1402af12f
cmp ecx, dword [rbx + 0x18]
jne 0x1402af104
cmp dword [rdx + 0x3c], edi
je 0x1402af0f1
cmp ecx, r10d
jbe 0x1402af0f1
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.1402b0f00
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.1402aec94
mov ecx, dword [rbx + 0x28]
mov r10d, ecx
cmp ecx, dword [rbx + 0x18]
je 0x1402af138
mov rax, qword [rbx + 0x30]
mov r9d, dword [rbx + 0x38]
mov r8d, ecx
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rax + 0x10]
mov al, byte [r9 + rdx]
mov byte [r8 + rcx], al
mov ecx, dword [rbx + 0x28]
inc ecx
add dword [rbx + 0x38], r12d
mov dword [rbx + 0x28], ecx
mov rdx, qword [rbx + 0x30]
movzx eax, word [rdx + 0x18]
cmp dword [rbx + 0x38], eax
jb 0x1402af0ca
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1402af162
cmp ecx, r10d
jbe 0x1402af162
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.1402b0f00
mov dword [rsi + 0x4c], eax
mov rax, qword [rbx + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rbx + 0x38], eax
jne 0x1402af20b
mov dword [rbx + 0x38], edi
mov eax, r14d
mov dword [rbx + 8], r14d
mov r13d, 0x5b
cmp eax, r14d
jne 0x1402af24e
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rdi
je 0x1402af247
mov edx, dword [rbx + 0x28]
mov r8d, edx
cmp r8d, dword [rbx + 0x18]
jne 0x1402af1d8
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1402af1c3
cmp r8d, edx
jbe 0x1402af1c3
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
mov edx, edx
add rdx, qword [rbx + 0x10]
call fcn.1402b0f00
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.1402aec94
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x1402af213
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x20]
movzx r14d, byte [rcx + rax]
lea eax, [rcx + 1]
mov ecx, r8d
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r14b
mov r8d, dword [rbx + 0x28]
inc r8d
mov dword [rbx + 0x28], r8d
test r14b, r14b
je 0x1402af216
jmp 0x1402af19b
mov eax, dword [rbx + 8]
jmp 0x1402af178
mov r14d, r12d
mov rax, qword [rbx + 0x30]
mov ecx, r14d
cmp dword [rax + 0x3c], edi
je 0x1402af23c
cmp r8d, edx
jbe 0x1402af23c
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
add rdx, qword [rbx + 0x10]
call fcn.1402b0f00
mov dword [rsi + 0x4c], eax
mov ecx, r14d
test ecx, ecx
jne 0x1402af2e1
mov dword [rbx + 0x38], edi
mov eax, r13d
mov dword [rbx + 8], r13d
mov r13d, 0x67
cmp eax, 0x5b
jne 0x1402af322
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rdi
je 0x1402af31b
mov edx, dword [rbx + 0x28]
mov r8d, edx
cmp r8d, dword [rbx + 0x18]
jne 0x1402af2ae
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1402af299
cmp r8d, edx
jbe 0x1402af299
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
mov edx, edx
add rdx, qword [rbx + 0x10]
call fcn.1402b0f00
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.1402aec94
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x1402af2e9
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x30]
movzx r14d, byte [rcx + rax]
lea eax, [rcx + 1]
mov ecx, r8d
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r14b
mov r8d, dword [rbx + 0x28]
inc r8d
mov dword [rbx + 0x28], r8d
test r14b, r14b
je 0x1402af2ec
jmp 0x1402af271
mov eax, dword [rbx + 8]
jmp 0x1402af24e
mov r14d, r12d
mov rax, qword [rbx + 0x30]
mov ecx, r14d
cmp dword [rax + 0x3c], edi
je 0x1402af312
cmp r8d, edx
jbe 0x1402af312
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
add rdx, qword [rbx + 0x10]
call fcn.1402b0f00
mov dword [rsi + 0x4c], eax
mov ecx, r14d
test ecx, ecx
je 0x1402af31b
mov eax, dword [rbx + 8]
jmp 0x1402af322
mov eax, r13d
mov dword [rbx + 8], r13d
cmp eax, r13d
jne 0x1402af37d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x1402af376
mov ecx, dword [rbx + 0x28]
mov edx, dword [rbx + 0x18]
lea eax, [rcx + 2]
cmp eax, edx
jbe 0x1402af34b
mov rcx, rsi
call fcn.1402aec94
mov ecx, dword [rbx + 0x28]
mov edx, dword [rbx + 0x18]
lea eax, [rcx + 2]
cmp eax, edx
ja 0x1402af37d
mov al, byte [rsi + 0x4c]
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov dword [rsi + 0x4c], edi
mov dword [rbx + 8], WSAStartup
cmp dword [rbx + 0x28], edi
je 0x1402af39a
mov rcx, rsi
call fcn.1402aec94
cmp dword [rsi + 0x18], edi
jne 0x1402af3b9
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x1402af5df
cmp dword [rsi + 8], edi
jne 0x1402af3b9
cmp ebp, r15d
jg 0x1402af3b9
cmp ebp, 4
je 0x1402af3b9
mov rax, qword [str.buffer_error]
mov qword [rsi + 0x20], rax
jmp 0x1402aed6f
mov r14d, 0x29a
cmp dword [rbx + 8], r14d
jne 0x1402af3cc
cmp dword [rsi + 8], edi
je 0x1402af3d1
jmp 0x1402af3a9
cmp dword [rsi + 8], edi
jne 0x1402af3eb
cmp dword [rbx + 0x9c], edi
jne 0x1402af3eb
test ebp, ebp
je 0x1402af4ac
cmp dword [rbx + 8], r14d
je 0x1402af4ac
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x1402af402
mov edx, ebp
mov rcx, rbx
call fcn.1402b0470
jmp 0x1402af425
cmp dword [rbx + 0xac], edi
jne 0x1402af41b
cmp eax, 3
je 0x1402af41b
mov edx, ebp
mov rcx, rbx
call fcn.1402afa30
jmp 0x1402af425
mov edx, ebp
mov rcx, rbx
call fcn.1402b0744
mov ecx, eax
lea eax, [rax - 2]
cmp eax, r12d
ja 0x1402af433
mov dword [rbx + 8], r14d
test ecx, 0xfffffffd
je 0x1402af5c1
cmp ecx, r12d
jne 0x1402af4ac
cmp ebp, r12d
jne 0x1402af453
mov rcx, rbx
call fcn.1402b1f40
jmp 0x1402af49b
cmp ebp, 5
je 0x1402af49b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1402b1e1c
cmp ebp, 3
jne 0x1402af49b
mov ecx, dword [rbx + 0x44]
mov r8d, dword [rbx + 0x74]
neg ecx
mov rdx, qword [rbx + 0x68]
mov rax, qword [0x1404bdad8]
call qword [case.0x140245398.0]
cmp dword [rbx + 0x9c], edi
jne 0x1402af49b
mov dword [rbx + 0x94], edi
mov dword [rbx + 0x84], edi
mov rcx, rsi
call fcn.1402aec94
cmp dword [rsi + 0x18], edi
je 0x1402af38f
cmp ebp, 4
jne 0x1402af393
cmp dword [rbx + 0x2c], edi
jg 0x1402af4c2
mov eax, r12d
jmp 0x1402af5df
cmp dword [rbx + 0x2c], 2
jne 0x1402af552
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4c]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4e]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4f]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xc]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xd]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xe]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r12d
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rsi + 0xf]
mov byte [rdx + rcx], al
jmp 0x1402af59e
movzx r8d, word [rsi + 0x4e]
mov ecx, dword [rbx + 0x28]
mov edx, r8d
mov rax, qword [rbx + 0x10]
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r12d
movzx r8d, word [rsi + 0x4c]
mov edx, dword [rbx + 0x28]
mov ecx, r8d
mov rax, qword [rbx + 0x10]
shr ecx, 8
mov byte [rdx + rax], cl
add dword [rbx + 0x28], r12d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r12d
mov rcx, rsi
call fcn.1402aec94
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x1402af5b6
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x1402af5df
cmp dword [rsi + 0x18], edi
jne 0x1402af393
jmp 0x1402af38f
mov rax, qword [str.stream_error]
mov qword [rcx + 0x20], rax
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret