Function at 0x14028d7bc
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 0x14028e09a
cmp edx, 5
ja 0x14028e09a
cmp qword [rcx + 0x10], rdi
je 0x14028e08f
cmp qword [rcx], rdi
jne 0x14028d80d
cmp dword [rcx + 8], edi
jne 0x14028e08f
cmp dword [rbx + 8], 0x29a
jne 0x14028d81f
cmp ebp, 4
jne 0x14028e08f
cmp dword [rcx + 0x18], edi
jne 0x14028d839
mov rax, qword [str.buffer_error]
mov qword [rcx + 0x20], rax
mov eax, 0xfffffffb
jmp 0x14028e09f
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 0x14028db61
cmp dword [rbx + 0x2c], r10d
jne 0x14028da77
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 0x14028d936
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 0x14028d8fe
mov dl, r10b
jmp 0x14028d911
cmp dword [rbx + 0xb0], r10d
jge 0x14028d90f
mov dl, dil
cmp eax, r10d
jge 0x14028d911
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 0x14028da6f
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 0x14028d9e3
mov dl, r10b
jmp 0x14028d9f6
cmp dword [rbx + 0xb0], r10d
jge 0x14028d9f4
mov dl, dil
cmp eax, r10d
jge 0x14028d9f6
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 0x14028da53
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 0x14028da67
mov rdx, qword [rbx + 0x10]
mov ecx, dword [rsi + 0x4c]
call fcn.14028f9c0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov eax, 0x45
mov dword [rbx + 8], eax
jmp 0x14028db61
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0xb0], r10d
jge 0x14028dab5
mov edx, dword [rbx + 0xac]
cmp edx, r10d
jl 0x14028dab5
cmp edx, 6
jge 0x14028daa3
mov eax, 0x40
jmp 0x14028dab7
mov eax, 0xc0
cmp edx, 6
lea r8d, [rax - 0x40]
cmove eax, r8d
jmp 0x14028dab7
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 0x14028db5d
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 0x14028dc38
mov rdx, qword [rbx + 0x30]
cmp qword [rdx + 0x10], rdi
je 0x14028dc31
mov r10d, dword [rbx + 0x28]
mov ecx, r10d
jmp 0x14028dbef
cmp ecx, dword [rbx + 0x18]
jne 0x14028dbc4
cmp dword [rdx + 0x3c], edi
je 0x14028dbb1
cmp ecx, r10d
jbe 0x14028dbb1
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.14028f9c0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14028d754
mov ecx, dword [rbx + 0x28]
mov r10d, ecx
cmp ecx, dword [rbx + 0x18]
je 0x14028dbf8
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 0x14028db8a
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14028dc22
cmp ecx, r10d
jbe 0x14028dc22
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.14028f9c0
mov dword [rsi + 0x4c], eax
mov rax, qword [rbx + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rbx + 0x38], eax
jne 0x14028dccb
mov dword [rbx + 0x38], edi
mov eax, r14d
mov dword [rbx + 8], r14d
mov r13d, 0x5b
cmp eax, r14d
jne 0x14028dd0e
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rdi
je 0x14028dd07
mov edx, dword [rbx + 0x28]
mov r8d, edx
cmp r8d, dword [rbx + 0x18]
jne 0x14028dc98
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14028dc83
cmp r8d, edx
jbe 0x14028dc83
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
mov edx, edx
add rdx, qword [rbx + 0x10]
call fcn.14028f9c0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14028d754
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x14028dcd3
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 0x14028dcd6
jmp 0x14028dc5b
mov eax, dword [rbx + 8]
jmp 0x14028dc38
mov r14d, r12d
mov rax, qword [rbx + 0x30]
mov ecx, r14d
cmp dword [rax + 0x3c], edi
je 0x14028dcfc
cmp r8d, edx
jbe 0x14028dcfc
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
add rdx, qword [rbx + 0x10]
call fcn.14028f9c0
mov dword [rsi + 0x4c], eax
mov ecx, r14d
test ecx, ecx
jne 0x14028dda1
mov dword [rbx + 0x38], edi
mov eax, r13d
mov dword [rbx + 8], r13d
mov r13d, 0x67
cmp eax, 0x5b
jne 0x14028dde2
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rdi
je 0x14028dddb
mov edx, dword [rbx + 0x28]
mov r8d, edx
cmp r8d, dword [rbx + 0x18]
jne 0x14028dd6e
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14028dd59
cmp r8d, edx
jbe 0x14028dd59
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
mov edx, edx
add rdx, qword [rbx + 0x10]
call fcn.14028f9c0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14028d754
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x14028dda9
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 0x14028ddac
jmp 0x14028dd31
mov eax, dword [rbx + 8]
jmp 0x14028dd0e
mov r14d, r12d
mov rax, qword [rbx + 0x30]
mov ecx, r14d
cmp dword [rax + 0x3c], edi
je 0x14028ddd2
cmp r8d, edx
jbe 0x14028ddd2
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
add rdx, qword [rbx + 0x10]
call fcn.14028f9c0
mov dword [rsi + 0x4c], eax
mov ecx, r14d
test ecx, ecx
je 0x14028dddb
mov eax, dword [rbx + 8]
jmp 0x14028dde2
mov eax, r13d
mov dword [rbx + 8], r13d
cmp eax, r13d
jne 0x14028de3d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14028de36
mov ecx, dword [rbx + 0x28]
mov edx, dword [rbx + 0x18]
lea eax, [rcx + 2]
cmp eax, edx
jbe 0x14028de0b
mov rcx, rsi
call fcn.14028d754
mov ecx, dword [rbx + 0x28]
mov edx, dword [rbx + 0x18]
lea eax, [rcx + 2]
cmp eax, edx
ja 0x14028de3d
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], WSACleanup
cmp dword [rbx + 0x28], edi
je 0x14028de5a
mov rcx, rsi
call fcn.14028d754
cmp dword [rsi + 0x18], edi
jne 0x14028de79
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x14028e09f
cmp dword [rsi + 8], edi
jne 0x14028de79
cmp ebp, r15d
jg 0x14028de79
cmp ebp, 4
je 0x14028de79
mov rax, qword [str.buffer_error]
mov qword [rsi + 0x20], rax
jmp 0x14028d82f
mov r14d, 0x29a
cmp dword [rbx + 8], r14d
jne 0x14028de8c
cmp dword [rsi + 8], edi
je 0x14028de91
jmp 0x14028de69
cmp dword [rsi + 8], edi
jne 0x14028deab
cmp dword [rbx + 0x9c], edi
jne 0x14028deab
test ebp, ebp
je 0x14028df6c
cmp dword [rbx + 8], r14d
je 0x14028df6c
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x14028dec2
mov edx, ebp
mov rcx, rbx
call fcn.14028ef30
jmp 0x14028dee5
cmp dword [rbx + 0xac], edi
jne 0x14028dedb
cmp eax, 3
je 0x14028dedb
mov edx, ebp
mov rcx, rbx
call fcn.14028e4f0
jmp 0x14028dee5
mov edx, ebp
mov rcx, rbx
call fcn.14028f204
mov ecx, eax
lea eax, [rax - 2]
cmp eax, r12d
ja 0x14028def3
mov dword [rbx + 8], r14d
test ecx, 0xfffffffd
je 0x14028e081
cmp ecx, r12d
jne 0x14028df6c
cmp ebp, r12d
jne 0x14028df13
mov rcx, rbx
call fcn.140290a00
jmp 0x14028df5b
cmp ebp, 5
je 0x14028df5b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1402908dc
cmp ebp, 3
jne 0x14028df5b
mov ecx, dword [rbx + 0x44]
mov r8d, dword [rbx + 0x74]
neg ecx
mov rdx, qword [rbx + 0x68]
mov rax, qword [0x14046d268]
call qword [str.PM_]
cmp dword [rbx + 0x9c], edi
jne 0x14028df5b
mov dword [rbx + 0x94], edi
mov dword [rbx + 0x84], edi
mov rcx, rsi
call fcn.14028d754
cmp dword [rsi + 0x18], edi
je 0x14028de4f
cmp ebp, 4
jne 0x14028de53
cmp dword [rbx + 0x2c], edi
jg 0x14028df82
mov eax, r12d
jmp 0x14028e09f
cmp dword [rbx + 0x2c], 2
jne 0x14028e012
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 0x14028e05e
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.14028d754
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x14028e076
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x14028e09f
cmp dword [rsi + 0x18], edi
jne 0x14028de53
jmp 0x14028de4f
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