Function at 0x14005d580
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 0x14005de02
mov rbx, qword [rcx + 0x28]
test rbx, rbx
je 0x14005de02
cmp qword [rcx + 0x10], rdi
je 0x14005ddf7
cmp qword [rcx], rdi
jne 0x14005d5cc
cmp dword [rcx + 8], edi
jne 0x14005ddf7
cmp dword [rcx + 0x18], edi
je 0x14005dde5
cmp dword [rbx + 8], 0x2a
mov r14d, 1
mov qword [rbx], rsi
mov dword [rbx + 0x40], 4
jne 0x14005d915
cmp dword [rbx + 0x2c], 2
jne 0x14005d819
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 0x14005d6cc
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 0x14005d695
mov dl, 2
jmp 0x14005d6a8
cmp dword [rbx + 0xb0], 2
jge 0x14005d6a6
mov dl, dil
cmp eax, 2
jge 0x14005d6a8
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 0x14005d811
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 0x14005d77c
mov dl, 2
jmp 0x14005d78f
cmp dword [rbx + 0xb0], 2
jge 0x14005d78d
mov dl, dil
cmp eax, 2
jge 0x14005d78f
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 0x14005d7e9
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 0x14005d809
mov rdx, qword [rbx + 0x10]
test rdx, rdx
jne 0x14005d7fb
mov eax, edi
jmp 0x14005d806
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.14005a694
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], edi
mov eax, 0x45
mov dword [rbx + 8], eax
jmp 0x14005d915
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0xb0], 2
mov r8d, ecx
jge 0x14005d861
mov eax, dword [rbx + 0xac]
cmp eax, 2
jl 0x14005d861
cmp eax, 6
jge 0x14005d84b
mov eax, 0x40
lea edx, [rax + 0x20]
jmp 0x14005d868
jne 0x14005d857
mov eax, 0x80
lea edx, [rax + 0x20]
jmp 0x14005d868
mov eax, 0xc0
lea edx, [rax + 0x20]
jmp 0x14005d868
mov eax, edi
mov edx, 0x20
or ecx, eax
cmp dword [rbx + 0x94], edi
je 0x14005d877
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 0x14005d911
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 0x14005d9f5
mov rdx, qword [rbx + 0x30]
cmp qword [rdx + 0x10], rdi
je 0x14005da3b
mov r10d, dword [rbx + 0x28]
mov ecx, r10d
jmp 0x14005d9a5
cmp ecx, dword [rbx + 0x18]
jne 0x14005d97a
cmp dword [rdx + 0x3c], edi
je 0x14005d965
cmp ecx, r10d
jbe 0x14005d965
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
jne 0x14005d957
mov eax, edi
jmp 0x14005d962
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.14005a694
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14005d158
mov r10d, dword [rbx + 0x28]
mov ecx, r10d
cmp r10d, dword [rbx + 0x18]
je 0x14005d9ae
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 0x14005d938
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005d9de
cmp ecx, r10d
jbe 0x14005d9de
sub ecx, r10d
mov edx, r10d
add rdx, qword [rbx + 0x10]
jne 0x14005d9cc
mov eax, edi
jmp 0x14005d9d7
mov r8d, ecx
mov ecx, dword [rsi + 0x4c]
call fcn.14005a694
mov dword [rsi + 0x4c], eax
mov rax, qword [rbx + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rbx + 0x38], eax
jne 0x14005da36
mov dword [rbx + 0x38], edi
mov eax, 0x49
mov dword [rbx + 8], 0x49
cmp eax, 0x49
jne 0x14005dadd
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], rdi
je 0x14005db23
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp edx, dword [rbx + 0x18]
jne 0x14005da6a
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005da55
cmp edx, r8d
jbe 0x14005da55
sub edx, r8d
mov eax, r8d
add rax, qword [rbx + 0x10]
jne 0x14005da44
mov eax, edi
jmp 0x14005da52
mov eax, dword [rbx + 8]
jmp 0x14005d9f5
mov dword [rbx + 8], 0x49
jmp 0x14005d9fe
mov ecx, dword [rsi + 0x4c]
mov r8d, edx
mov rdx, rax
call fcn.14005a694
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14005d158
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x14005da9a
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 0x14005da9d
jmp 0x14005da13
mov ebp, r14d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005dacc
cmp edx, r8d
jbe 0x14005dacc
sub edx, r8d
mov eax, r8d
add rax, qword [rbx + 0x10]
jne 0x14005dabb
mov eax, edi
jmp 0x14005dac9
mov ecx, dword [rsi + 0x4c]
mov r8d, edx
mov rdx, rax
call fcn.14005a694
mov dword [rsi + 0x4c], eax
test ebp, ebp
jne 0x14005db1e
mov dword [rbx + 0x38], edi
lea eax, [rbp + 0x5b]
mov dword [rbx + 8], 0x5b
cmp eax, 0x5b
jne 0x14005dbc6
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], rdi
je 0x14005dccd
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp edx, dword [rbx + 0x18]
jne 0x14005db52
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005db3d
cmp edx, r8d
jbe 0x14005db3d
sub edx, r8d
mov eax, r8d
add rax, qword [rbx + 0x10]
jne 0x14005db2c
mov eax, edi
jmp 0x14005db3a
mov eax, dword [rbx + 8]
jmp 0x14005dadd
mov dword [rbx + 8], 0x5b
jmp 0x14005dae6
mov ecx, dword [rsi + 0x4c]
mov r8d, edx
mov rdx, rax
call fcn.14005a694
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.14005d158
mov r8d, dword [rbx + 0x28]
mov edx, r8d
cmp r8d, dword [rbx + 0x18]
je 0x14005db82
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 0x14005db85
jmp 0x14005dafb
mov ebp, r14d
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005dbb4
cmp edx, r8d
jbe 0x14005dbb4
sub edx, r8d
mov eax, r8d
add rax, qword [rbx + 0x10]
jne 0x14005dba3
mov eax, edi
jmp 0x14005dbb1
mov ecx, dword [rsi + 0x4c]
mov r8d, edx
mov rdx, rax
call fcn.14005a694
mov dword [rsi + 0x4c], eax
test ebp, ebp
jne 0x14005dcc5
mov dword [rbx + 8], 0x67
lea eax, [rbp + 0x67]
cmp eax, 0x67
jne 0x14005dc21
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x14005dc1a
mov ecx, dword [rbx + 0x28]
mov edx, dword [rbx + 0x18]
lea eax, [rcx + 2]
cmp eax, edx
jbe 0x14005dbef
mov rcx, rsi
call fcn.14005d158
mov ecx, dword [rbx + 0x28]
mov edx, dword [rbx + 0x18]
lea eax, [rcx + 2]
cmp eax, edx
ja 0x14005dc21
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 0x14005dc37
mov rcx, rsi
call fcn.14005d158
cmp dword [rsi + 0x18], edi
je 0x14005dddd
mov ebp, 0x29a
cmp dword [rbx + 8], ebp
jne 0x14005dc4a
cmp dword [rsi + 8], edi
jne 0x14005dde5
cmp dword [rsi + 8], edi
jne 0x14005dc5c
cmp dword [rbx + 0x9c], edi
jne 0x14005dc5c
cmp dword [rbx + 8], ebp
je 0x14005dcb8
movsxd rax, dword [rbx + 0xac]
lea r8, [0x14007df88]
add rax, rax
mov edx, 4
mov rcx, rbx
call qword [r8 + rax*8]
mov ecx, eax
add eax, 0xfffffffe
cmp eax, r14d
ja 0x14005dc86
mov dword [rbx + 8], ebp
test ecx, 0xfffffffd
je 0x14005ddd8
cmp ecx, r14d
jne 0x14005dcb8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140060498
mov rcx, rsi
call fcn.14005d158
cmp dword [rsi + 0x18], edi
je 0x14005dddd
cmp dword [rbx + 0x2c], edi
jg 0x14005dcd9
mov eax, r14d
jmp 0x14005de07
mov eax, dword [rbx + 8]
jmp 0x14005dbc6
mov dword [rbx + 8], 0x67
jmp 0x14005dbcb
cmp dword [rbx + 0x2c], 2
jne 0x14005dd69
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 0x14005ddb5
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.14005d158
mov ecx, dword [rbx + 0x2c]
test ecx, ecx
jle 0x14005ddcd
neg ecx
mov dword [rbx + 0x2c], ecx
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x14005de07
cmp dword [rsi + 0x18], edi
jne 0x14005dde1
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x14005de07
lea rax, str.buffer_error
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
jmp 0x14005de07
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