Function at 0x14031d868
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 0x14031e13a
cmp edx, 5
ja 0x14031e13a
cmp qword [rcx + 0x10], rdi
je 0x14031e12f
cmp qword [rcx], rdi
jne 0x14031d8b9
cmp dword [rcx + 8], edi
jne 0x14031e12f
cmp dword [rbx + 8], 0x29a
jne 0x14031d8cb
cmp ebp, 4
jne 0x14031e12f
cmp dword [rcx + 0x18], edi
je 0x14031e11d
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 0x14031dc0a
cmp dword [rbx + 0x2c], r10d
jne 0x14031db12
mov dword [rcx + 0x4c], edi
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], Compress
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 0x14031d9d1
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 0x14031d999
mov dl, r10b
jmp 0x14031d9ac
cmp dword [rbx + 0xb0], r10d
jge 0x14031d9aa
mov dl, dil
cmp eax, r10d
jge 0x14031d9ac
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 0x14031db0a
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 0x14031da7e
mov dl, r10b
jmp 0x14031da91
cmp dword [rbx + 0xb0], r10d
jge 0x14031da8f
mov dl, dil
cmp eax, r10d
jge 0x14031da91
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 0x14031daee
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 0x14031db02
mov rdx, qword [rbx + 0x10]
mov ecx, dword [rsi + 0x4c]
call fcn.140320404
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov eax, 0x45
mov dword [rbx + 8], eax
jmp 0x14031dc0a
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
mov r8d, ecx
cmp dword [rbx + 0xb0], r10d
jge 0x14031db5a
mov eax, dword [rbx + 0xac]
cmp eax, r10d
jl 0x14031db5a
cmp eax, 6
jge 0x14031db44
mov eax, 0x40
lea edx, [rax + 0x20]
jmp 0x14031db61
jne 0x14031db50
mov eax, 0x80
lea edx, [rax + 0x20]
jmp 0x14031db61
mov eax, 0xc0
lea edx, [rax + 0x20]
jmp 0x14031db61
mov eax, edi
mov edx, Compress
or ecx, eax
cmp dword [rbx + 0x94], edi
je 0x14031db70
mov ecx, edx
or ecx, r8d
mov eax, 0x8421085
mov dword [rbx + 8], r11d
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 0x14031dc06
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 0x14031dce1
mov rdx, qword [rbx + 0x30]
cmp qword [rdx + 0x10], rdi
je 0x14031dcda
mov r10d, dword [rbx + 0x28]
mov ecx, r10d
jmp 0x14031dc98
cmp ecx, dword [rbx + 0x18]
jne 0x14031dc6d
cmp dword [rdx + 0x3c], edi
je 0x14031dc5a
cmp ecx, r10d
jbe 0x14031dc5a
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.140320404
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14031d7f8
mov ecx, dword [rbx + 0x28]
mov r10d, ecx
cmp ecx, dword [rbx + 0x18]
je 0x14031dca1
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 0x14031dc33
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14031dccb
cmp ecx, r10d
jbe 0x14031dccb
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.140320404
mov dword [rsi + 0x4c], eax
mov rax, qword [rbx + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rbx + 0x38], eax
jne 0x14031dd74
mov dword [rbx + 0x38], edi
mov eax, r14d
mov dword [rbx + 8], r14d
mov r13d, 0x5b
cmp eax, r14d
jne 0x14031ddb2
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rdi
je 0x14031ddab
mov edx, dword [rbx + 0x28]
mov r8d, edx
cmp r8d, dword [rbx + 0x18]
jne 0x14031dd41
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14031dd2c
cmp r8d, edx
jbe 0x14031dd2c
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
mov edx, edx
add rdx, qword [rbx + 0x10]
call fcn.140320404
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14031d7f8
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x14031dd7c
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 r14d, r14d
je 0x14031dd7f
jmp 0x14031dd04
mov eax, dword [rbx + 8]
jmp 0x14031dce1
mov r14d, r12d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14031dd9f
cmp r8d, edx
jbe 0x14031dd9f
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
add rdx, qword [rbx + 0x10]
call fcn.140320404
mov dword [rsi + 0x4c], eax
test r14d, r14d
jne 0x14031de45
mov dword [rbx + 0x38], edi
mov eax, r13d
mov dword [rbx + 8], r13d
mov r13d, 0x67
cmp eax, 0x5b
jne 0x14031de81
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rdi
je 0x14031de7a
mov edx, dword [rbx + 0x28]
mov r8d, edx
cmp r8d, dword [rbx + 0x18]
jne 0x14031de12
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14031ddfd
cmp r8d, edx
jbe 0x14031ddfd
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
mov edx, edx
add rdx, qword [rbx + 0x10]
call fcn.140320404
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14031d7f8
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x14031de4d
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 r14d, r14d
je 0x14031de50
jmp 0x14031ddd5
mov eax, dword [rbx + 8]
jmp 0x14031ddb2
mov r14d, r12d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14031de70
cmp r8d, edx
jbe 0x14031de70
mov ecx, dword [rsi + 0x4c]
sub r8d, edx
add rdx, qword [rbx + 0x10]
call fcn.140320404
mov dword [rsi + 0x4c], eax
test r14d, r14d
je 0x14031de7a
mov eax, dword [rbx + 8]
jmp 0x14031de81
mov eax, r13d
mov dword [rbx + 8], r13d
cmp eax, r13d
jne 0x14031dedc
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14031ded5
mov ecx, dword [rbx + 0x28]
mov edx, dword [rbx + 0x18]
lea eax, [rcx + 2]
cmp eax, edx
jbe 0x14031deaa
mov rcx, rsi
call fcn.14031d7f8
mov ecx, dword [rbx + 0x28]
mov edx, dword [rbx + 0x18]
lea eax, [rcx + 2]
cmp eax, edx
ja 0x14031dedc
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 0x14031def3
mov rcx, rsi
call fcn.14031d7f8
cmp dword [rsi + 0x18], edi
jne 0x14031df06
jmp 0x14031e115
cmp dword [rsi + 8], edi
jne 0x14031df06
cmp ebp, r15d
jg 0x14031df06
cmp ebp, 4
jne 0x14031e11d
mov r14d, 0x29a
cmp dword [rbx + 8], r14d
jne 0x14031df1b
cmp dword [rsi + 8], edi
jne 0x14031e11d
cmp dword [rsi + 8], edi
jne 0x14031df3a
cmp dword [rbx + 0x9c], edi
jne 0x14031df3a
test ebp, ebp
je 0x14031dffb
cmp dword [rbx + 8], r14d
je 0x14031dffb
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x14031df51
mov edx, ebp
mov rcx, rbx
call fcn.14031efdc
jmp 0x14031df74
cmp dword [rbx + 0xac], edi
jne 0x14031df6a
cmp eax, 3
je 0x14031df6a
mov edx, ebp
mov rcx, rbx
call fcn.14031e5a0
jmp 0x14031df74
mov edx, ebp
mov rcx, rbx
call fcn.14031f2c4
mov ecx, eax
lea eax, [rax - 2]
cmp eax, r12d
ja 0x14031df82
mov dword [rbx + 8], r14d
test ecx, 0xfffffffd
je 0x14031e110
cmp ecx, r12d
jne 0x14031dffb
cmp ebp, r12d
jne 0x14031dfa2
mov rcx, rbx
call fcn.14032143c
jmp 0x14031dfea
cmp ebp, 5
je 0x14031dfea
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140321310
cmp ebp, 3
jne 0x14031dfea
mov ecx, dword [rbx + 0x44]
mov r8d, dword [rbx + 0x74]
neg ecx
mov rdx, qword [rbx + 0x68]
mov rax, qword [0x140563f40]
call qword [str.p76_]
cmp dword [rbx + 0x9c], edi
jne 0x14031dfea
mov dword [rbx + 0x94], edi
mov dword [rbx + 0x84], edi
mov rcx, rsi
call fcn.14031d7f8
cmp dword [rsi + 0x18], edi
je 0x14031e115
cmp ebp, 4
jne 0x14031e119
cmp dword [rbx + 0x2c], edi
jg 0x14031e011
mov eax, r12d
jmp 0x14031e13f
cmp dword [rbx + 0x2c], 2
jne 0x14031e0a1
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 0x14031e0ed
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.14031d7f8
mov ecx, dword [rbx + 0x2c]
test ecx, ecx
jle 0x14031e105
neg ecx
mov dword [rbx + 0x2c], ecx
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x14031e13f
cmp dword [rsi + 0x18], edi
jne 0x14031e119
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x14031e13f
mov rax, qword [str.buffer_error]
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
jmp 0x14031e13f
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