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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
mov rsi, rcx
test rcx, rcx
je 0x14005bc02
mov rbx, qword [rcx + 0x28]
test rbx, rbx
je 0x14005bc02
cmp qword [rcx + 0x10], rdi
je 0x14005bbf7
cmp qword [rcx], rdi
jne 0x14005b3cc
cmp dword [rcx + 8], edi
jne 0x14005bbf7
cmp dword [rcx + 0x18], edi
je 0x14005bbe5
cmp dword [rbx + 8], 0x2a
mov r14d, 1
mov qword [rbx], rsi
mov dword [rbx + 0x40], 4
jne 0x14005b715
cmp dword [rbx + 0x2c], 2
jne 0x14005b619
mov dword [rcx + 0x4c], edi
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x1f
add dword [rbx + 0x28], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x8b
add dword [rbx + 0x28], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 8
add dword [rbx + 0x28], r14d
mov r8, qword [rbx + 0x30]
mov r9d, dword [rbx + 0x28]
test r8, r8
jne 0x14005b4cc
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], dil
add dword [rbx + 0x28], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dil
mov ecx, dword [rbx + 0x28]
mov eax, dword [rbx + 0xac]
inc ecx
mov dword [rbx + 0x28], ecx
cmp eax, 9
jne 0x14005b495
mov dl, 2
jmp 0x14005b4a8
cmp dword [rbx + 0xb0], 2
jge 0x14005b4a6
mov dl, dil
cmp eax, 2
jge 0x14005b4a8
mov dl, 4
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], VariantTimeToDosDateTime
mov eax, WSAStartup
add dword [rbx + 0x28], r14d
jmp 0x14005b611
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, 2
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], r14d
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], r14d
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], r14d
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], r14d
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
mov ecx, dword [rbx + 0x28]
mov eax, dword [rbx + 0xac]
inc ecx
mov dword [rbx + 0x28], ecx
cmp eax, 9
jne 0x14005b57c
mov dl, 2
jmp 0x14005b58f
cmp dword [rbx + 0xb0], 2
jge 0x14005b58d
mov dl, dil
cmp eax, 2
jge 0x14005b58f
mov dl, 4
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r14d
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
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc ecx
mov dword [rbx + 0x28], ecx
cmp qword [rax + 0x10], rdi
je 0x14005b5e9
mov al, byte [rax + 0x18]
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r14d
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], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005b609
mov rdx, qword [rbx + 0x10]
test rdx, rdx
jne 0x14005b5fb
mov eax, edi
jmp 0x14005b606
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.140058494
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov eax, 0x45
mov dword [rbx + 8], eax
jmp 0x14005b715
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0xb0], 2
mov r8d, ecx
jge 0x14005b661
mov eax, dword [rbx + 0xac]
cmp eax, 2
jl 0x14005b661
cmp eax, 6
jge 0x14005b64b
mov eax, 0x40
lea edx, [rax + 0x20]
jmp 0x14005b668
jne 0x14005b657
mov eax, 0x80
lea edx, [rax + 0x20]
jmp 0x14005b668
mov eax, 0xc0
lea edx, [rax + 0x20]
jmp 0x14005b668
mov eax, edi
mov edx, 0x20
or ecx, eax
cmp dword [rbx + 0x94], edi
je 0x14005b677
mov ecx, r8d
or ecx, edx
mov eax, 0x8421085
mov dword [rbx + 8], WSAStartup
mul ecx
mov rax, qword [rbx + 0x10]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
add ecx, r14d
imul r8d, ecx, 0x1f
mov ecx, dword [rbx + 0x28]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
mov ecx, dword [rbx + 0x28]
inc ecx
mov dword [rbx + 0x28], ecx
cmp dword [rbx + 0x94], edi
je 0x14005b711
movzx r8d, word [rsi + 0x4e]
mov rax, qword [rbx + 0x10]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r14d
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], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r14d
mov dword [rsi + 0x4c], r14d
mov eax, dword [rbx + 8]
cmp eax, 0x45
jne 0x14005b7f5
mov rdx, qword [rbx + 0x30]
cmp qword [rdx + 0x10], rdi
je 0x14005b83b
mov r10d, dword [rbx + 0x28]
mov ecx, r10d
jmp 0x14005b7a5
cmp ecx, dword [rbx + 0x18]
jne 0x14005b77a
cmp dword [rdx + 0x3c], edi
je 0x14005b765
cmp ecx, r10d
jbe 0x14005b765
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
jne 0x14005b757
mov eax, edi
jmp 0x14005b762
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.140058494
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14005af58
mov r10d, dword [rbx + 0x28]
mov ecx, r10d
cmp r10d, dword [rbx + 0x18]
je 0x14005b7ae
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], r14d
mov dword [rbx + 0x28], ecx
mov rdx, qword [rbx + 0x30]
movzx eax, word [rdx + 0x18]
cmp dword [rbx + 0x38], eax
jb 0x14005b738
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005b7de
cmp ecx, r10d
jbe 0x14005b7de
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
jne 0x14005b7cc
mov eax, edi
jmp 0x14005b7d7
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.140058494
mov dword [rsi + 0x4c], eax
mov rax, qword [rbx + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rbx + 0x38], eax
jne 0x14005b836
mov dword [rbx + 0x38], edi
mov eax, 0x49
mov dword [rbx + 8], 0x49
cmp eax, 0x49
jne 0x14005b8dd
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rdi
je 0x14005b923
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp edx, dword [rbx + 0x18]
jne 0x14005b86a
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005b855
cmp edx, r8d
jbe 0x14005b855
sub edx, r8d
mov eax, r8d
add rax, qword [rbx + 0x10]
jne 0x14005b844
mov eax, edi
jmp 0x14005b852
mov eax, dword [rbx + 8]
jmp 0x14005b7f5
mov dword [rbx + 8], 0x49
jmp 0x14005b7fe
mov ecx, dword [rsi + 0x4c]
mov r8d, edx
mov rdx, rax
call fcn.140058494
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14005af58
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x14005b89a
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x20]
movzx ebp, byte [rcx + rax]
lea eax, [rcx + 1]
mov ecx, edx
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
mov edx, dword [rbx + 0x28]
inc edx
mov dword [rbx + 0x28], edx
test ebp, ebp
je 0x14005b89d
jmp 0x14005b813
mov ebp, r14d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005b8cc
cmp edx, r8d
jbe 0x14005b8cc
sub edx, r8d
mov eax, r8d
add rax, qword [rbx + 0x10]
jne 0x14005b8bb
mov eax, edi
jmp 0x14005b8c9
mov ecx, dword [rsi + 0x4c]
mov r8d, edx
mov rdx, rax
call fcn.140058494
mov dword [rsi + 0x4c], eax
test ebp, ebp
jne 0x14005b91e
mov dword [rbx + 0x38], edi
lea eax, [rbp + 0x5b]
mov dword [rbx + 8], 0x5b
cmp eax, 0x5b
jne 0x14005b9c6
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rdi
je 0x14005bacd
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp edx, dword [rbx + 0x18]
jne 0x14005b952
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005b93d
cmp edx, r8d
jbe 0x14005b93d
sub edx, r8d
mov eax, r8d
add rax, qword [rbx + 0x10]
jne 0x14005b92c
mov eax, edi
jmp 0x14005b93a
mov eax, dword [rbx + 8]
jmp 0x14005b8dd
mov dword [rbx + 8], 0x5b
jmp 0x14005b8e6
mov ecx, dword [rsi + 0x4c]
mov r8d, edx
mov rdx, rax
call fcn.140058494
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14005af58
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x14005b982
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x30]
movzx ebp, byte [rcx + rax]
lea eax, [rcx + 1]
mov ecx, edx
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], bpl
mov edx, dword [rbx + 0x28]
inc edx
mov dword [rbx + 0x28], edx
test ebp, ebp
je 0x14005b985
jmp 0x14005b8fb
mov ebp, r14d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005b9b4
cmp edx, r8d
jbe 0x14005b9b4
sub edx, r8d
mov eax, r8d
add rax, qword [rbx + 0x10]
jne 0x14005b9a3
mov eax, edi
jmp 0x14005b9b1
mov ecx, dword [rsi + 0x4c]
mov r8d, edx
mov rdx, rax
call fcn.140058494
mov dword [rsi + 0x4c], eax
test ebp, ebp
jne 0x14005bac5
mov dword [rbx + 8], 0x67
lea eax, [rbp + 0x67]
cmp eax, 0x67
jne 0x14005ba21
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005ba1a
mov ecx, dword [rbx + 0x28]
mov edx, dword [rbx + 0x18]
lea eax, [rcx + 2]
cmp eax, edx
jbe 0x14005b9ef
mov rcx, rsi
call fcn.14005af58
mov ecx, dword [rbx + 0x28]
mov edx, dword [rbx + 0x18]
lea eax, [rcx + 2]
cmp eax, edx
ja 0x14005ba21
mov al, byte [rsi + 0x4c]
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r14d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r14d
mov dword [rsi + 0x4c], edi
mov dword [rbx + 8], WSAStartup
cmp dword [rbx + 0x28], edi
je 0x14005ba37
mov rcx, rsi
call fcn.14005af58
cmp dword [rsi + 0x18], edi
je 0x14005bbdd
mov ebp, 0x29a
cmp dword [rbx + 8], ebp
jne 0x14005ba4a
cmp dword [rsi + 8], edi
jne 0x14005bbe5
cmp dword [rsi + 8], edi
jne 0x14005ba5c
cmp dword [rbx + 0x9c], edi
jne 0x14005ba5c
cmp dword [rbx + 8], ebp
je 0x14005bab8
movsxd rax, dword [rbx + 0xac]
lea r8, [0x14007bd78]
add rax, rax
mov edx, 4
mov rcx, rbx
call qword [r8 + rax*8]
mov ecx, eax
add eax, 0xfffffffe
cmp eax, r14d
ja 0x14005ba86
mov dword [rbx + 8], ebp
test ecx, 0xfffffffd
je 0x14005bbd8
cmp ecx, r14d
jne 0x14005bab8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14005e298
mov rcx, rsi
call fcn.14005af58
cmp dword [rsi + 0x18], edi
je 0x14005bbdd
cmp dword [rbx + 0x2c], edi
jg 0x14005bad9
mov eax, r14d
jmp 0x14005bc07
mov eax, dword [rbx + 8]
jmp 0x14005b9c6
mov dword [rbx + 8], 0x67
jmp 0x14005b9cb
cmp dword [rbx + 0x2c], 2
jne 0x14005bb69
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4c]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r14d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r14d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4e]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r14d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x4f]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r14d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xc]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r14d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xd]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r14d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0xe]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r14d
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rsi + 0xf]
mov byte [rdx + rcx], al
jmp 0x14005bbb5
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], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r14d
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], r14d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r14d
mov rcx, rsi
call fcn.14005af58
mov ecx, dword [rbx + 0x2c]
test ecx, ecx
jle 0x14005bbcd
neg ecx
mov dword [rbx + 0x2c], ecx
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x14005bc07
cmp dword [rsi + 0x18], edi
jne 0x14005bbe1
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x14005bc07
lea rax, str.buffer_error
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
jmp 0x14005bc07
lea rax, str.stream_error
mov qword [rcx + 0x20], rax
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret