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

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
test rcx, rcx
je 0x14007390b
cmp qword [rcx + 0x30], 0
je 0x14007390b
cmp qword [rcx + 0x38], 0
je 0x14007390b
mov rbx, qword [rcx + 0x28]
test rbx, rbx
je 0x14007390b
cmp qword [rbx], rcx
jne 0x14007390b
mov ecx, dword [rbx + 8]
cmp ecx, 0x71
je 0x1400730fb
lea eax, [rcx - 0x2a]
cmp eax, 0x3d
ja 0x1400730ef
movabs rdx, 0x2002000088008001
bt rdx, rax
jb 0x1400730fb
cmp ecx, 0x29a
jne 0x14007390b
cmp qword [rsi + 0x10], 0
je 0x140073900
cmp dword [rsi + 8], 0
je 0x140073116
cmp qword [rsi], 0
je 0x140073900
cmp dword [rbx + 8], 0x29a
je 0x140073900
cmp dword [rsi + 0x18], 0
jne 0x140073140
mov rax, qword [str.buffer_error]
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
add rsp, 0x28
pop rsi
pop rbx
ret
mov eax, dword [rbx + 0x40]
mov qword [rsp + 0x20], r15
xor r15d, r15d
mov dword [rbx + 0x40], 1
cmp dword [rbx + 0x28], r15d
je 0x14007317b
mov rcx, rsi
call fcn.140073010
cmp dword [rsi + 0x18], r15d
jne 0x140073198
mov r15, qword [rsp + 0x20]
xor eax, eax
mov dword [rbx + 0x40], 0xffffffff
add rsp, 0x28
pop rsi
pop rbx
ret
cmp dword [rsi + 8], r15d
jne 0x140073198
cmp eax, 4
mov ecx, r15d
mov edx, 9
cmovg ecx, edx
add eax, eax
sub eax, ecx
cmp eax, 2
jge 0x1400731a8
mov eax, dword [rbx + 8]
cmp eax, 0x29a
jne 0x1400731c4
cmp dword [rsi + 8], r15d
je 0x1400731c4
mov rax, qword [str.buffer_error]
mov r15, qword [rsp + 0x20]
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffb
add rsp, 0x28
pop rsi
pop rbx
ret
cmp eax, 0x2a
jne 0x1400732cf
mov ecx, dword [rbx + 0x48]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0xb0], 2
jge 0x140073207
mov edx, dword [rbx + 0xac]
cmp edx, 2
jl 0x140073207
cmp edx, 6
jge 0x1400731f9
mov eax, 1
jmp 0x14007320a
cmp edx, 6
mov eax, r15d
setne al
add eax, 2
jmp 0x14007320a
mov eax, r15d
shl eax, 6
or ecx, eax
cmp dword [rbx + 0x94], r15d
je 0x14007321b
or ecx, 0x20
mov eax, 0x8421085
mul ecx
mov rax, qword [rbx + 0x10]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
inc ecx
imul r8d, ecx, 0x1f
mov ecx, dword [rbx + 0x28]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
cmp dword [rbx + 0x94], r15d
je 0x1400732a7
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
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
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
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
inc dword [rbx + 0x28]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400752e0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
mov dword [rbx + 8], WSAStartup
call fcn.140073010
cmp dword [rbx + 0x28], r15d
jne 0x1400733b5
cmp dword [rbx + 8], 0x39
jne 0x140073512
mov dword [rsi + 0x4c], r15d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x1f
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x8b
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 8
inc dword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
mov r9d, dword [rbx + 0x28]
test r8, r8
jne 0x1400733ca
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], r15b
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r15b
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r15b
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r15b
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r15b
inc dword [rbx + 0x28]
mov eax, dword [rbx + 0xac]
cmp eax, 9
jne 0x14007336b
lea edx, [rax - 7]
jmp 0x140073381
cmp dword [rbx + 0xb0], 2
jge 0x14007337c
mov edx, r15d
cmp eax, 2
jge 0x140073381
mov edx, 4
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0xa
mov rcx, rsi
inc dword [rbx + 0x28]
mov dword [rbx + 8], WSAStartup
call fcn.140073010
cmp dword [rbx + 0x28], r15d
je 0x140073512
mov r15, qword [rsp + 0x20]
xor eax, eax
mov dword [rbx + 0x40], 0xffffffff
add rsp, 0x28
pop rsi
pop rbx
ret
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], r15d
setne al
add dl, al
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], dl
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 4]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 5]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 6]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 7]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov eax, dword [rbx + 0xac]
cmp eax, 9
jne 0x140073476
lea edx, [rax - 7]
jmp 0x14007348c
cmp dword [rbx + 0xb0], 2
jge 0x140073487
mov edx, r15d
cmp eax, 2
jge 0x14007348c
mov edx, 4
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 0xc]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov r8d, dword [rbx + 0x28]
cmp qword [rax + 0x10], r15
je 0x1400734e4
movzx eax, byte [rax + 0x18]
mov rcx, qword [rbx + 0x10]
mov byte [r8 + rcx], al
inc dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
movzx eax, byte [rax + 0x19]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov r8d, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r15d
je 0x140073507
mov rdx, qword [rbx + 0x10]
test rdx, rdx
jne 0x1400734fc
mov eax, r15d
jmp 0x140073504
mov ecx, dword [rsi + 0x4c]
call fcn.140075fc0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], r15d
mov dword [rbx + 8], 0x45
cmp dword [rbx + 8], 0x45
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r14
jne 0x14007361d
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x10], r15
je 0x140073616
movzx r14d, word [rax + 0x18]
sub r14d, dword [rbx + 0x38]
mov ebp, dword [rbx + 0x28]
mov ecx, ebp
add ecx, r14d
cmp ecx, dword [rbx + 0x18]
jbe 0x1400735c6
nop
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
mov edi, dword [rbx + 0x18]
mov edx, dword [rbx + 0x38]
sub edi, ecx
add rcx, qword [rbx + 0x10]
add rdx, qword [rax + 0x10]
mov r8d, edi
call fcn.140079910
mov rax, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x28], ecx
cmp dword [rax + 0x3c], r15d
je 0x1400735a0
cmp ecx, ebp
jbe 0x1400735a0
sub ecx, ebp
mov edx, ebp
mov r8d, ecx
add rdx, qword [rbx + 0x10]
jne 0x140073595
mov eax, r15d
jmp 0x14007359d
mov ecx, dword [rsi + 0x4c]
call fcn.140075fc0
mov dword [rsi + 0x4c], eax
add dword [rbx + 0x38], edi
mov rcx, rsi
call fcn.140073010
cmp dword [rbx + 0x28], r15d
jne 0x1400738dc
mov ecx, dword [rbx + 0x28]
sub r14d, edi
add ecx, r14d
mov ebp, r15d
cmp ecx, dword [rbx + 0x18]
ja 0x140073550
mov rax, qword [rbx + 0x30]
mov edx, dword [rbx + 0x38]
mov ecx, dword [rbx + 0x28]
add rcx, qword [rbx + 0x10]
add rdx, qword [rax + 0x10]
mov r8d, r14d
call fcn.140079910
add dword [rbx + 0x28], r14d
mov rax, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x28]
cmp dword [rax + 0x3c], r15d
je 0x140073612
cmp ecx, ebp
jbe 0x140073612
sub ecx, ebp
mov edx, ebp
mov r8d, ecx
add rdx, qword [rbx + 0x10]
jne 0x140073607
mov eax, r15d
jmp 0x14007360f
mov ecx, dword [rsi + 0x4c]
call fcn.140075fc0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], r15d
mov dword [rbx + 8], 0x49
cmp dword [rbx + 8], 0x49
jne 0x1400736f4
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x20], r15
je 0x1400736ed
mov r8d, dword [rbx + 0x28]
nop dword [rax]
mov eax, dword [rbx + 0x18]
cmp dword [rbx + 0x28], eax
jne 0x140073690
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r15d
je 0x14007367b
mov eax, dword [rbx + 0x28]
cmp eax, r8d
jbe 0x14007367b
sub eax, r8d
mov edx, r8d
mov ecx, eax
add rdx, qword [rbx + 0x10]
jne 0x14007366d
mov eax, r15d
jmp 0x140073678
mov r8, rcx
mov ecx, dword [rsi + 0x4c]
call fcn.140075fc0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.140073010
cmp dword [rbx + 0x28], r15d
jne 0x1400738dc
mov r8d, r15d
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x20]
movzx edx, byte [rax + rcx]
lea eax, [rcx + 1]
mov ecx, dword [rbx + 0x28]
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
test edx, edx
jne 0x140073640
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r15d
je 0x1400736e9
cmp ecx, r8d
jbe 0x1400736e9
sub ecx, r8d
mov edx, r8d
mov eax, ecx
add rdx, qword [rbx + 0x10]
jne 0x1400736db
mov eax, r15d
jmp 0x1400736e6
mov ecx, dword [rsi + 0x4c]
mov r8, rax
call fcn.140075fc0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 0x38], r15d
mov dword [rbx + 8], 0x5b
cmp dword [rbx + 8], 0x5b
jne 0x1400737c0
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x30], r15
je 0x1400737b9
mov r8d, dword [rbx + 0x28]
mov eax, dword [rbx + 0x18]
cmp dword [rbx + 0x28], eax
jne 0x140073760
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r15d
je 0x14007374b
mov eax, dword [rbx + 0x28]
cmp eax, r8d
jbe 0x14007374b
sub eax, r8d
mov edx, r8d
mov ecx, eax
add rdx, qword [rbx + 0x10]
jne 0x14007373d
mov eax, r15d
jmp 0x140073748
mov r8, rcx
mov ecx, dword [rsi + 0x4c]
call fcn.140075fc0
mov dword [rsi + 0x4c], eax
mov rcx, rsi
call fcn.140073010
cmp dword [rbx + 0x28], r15d
jne 0x1400738dc
mov r8d, r15d
mov ecx, dword [rbx + 0x38]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax + 0x30]
movzx edx, byte [rax + rcx]
lea eax, [rcx + 1]
mov ecx, dword [rbx + 0x28]
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
inc dword [rbx + 0x28]
mov ecx, dword [rbx + 0x28]
test edx, edx
jne 0x140073710
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r15d
je 0x1400737b9
cmp ecx, r8d
jbe 0x1400737b9
sub ecx, r8d
mov edx, r8d
mov eax, ecx
add rdx, qword [rbx + 0x10]
jne 0x1400737ab
mov eax, r15d
jmp 0x1400737b6
mov ecx, dword [rsi + 0x4c]
mov r8, rax
call fcn.140075fc0
mov dword [rsi + 0x4c], eax
mov dword [rbx + 8], 0x67
cmp dword [rbx + 8], 0x67
jne 0x14007382c
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], r15d
je 0x140073813
mov eax, dword [rbx + 0x28]
add eax, 2
cmp eax, dword [rbx + 0x18]
jbe 0x1400737ed
mov rcx, rsi
call fcn.140073010
cmp dword [rbx + 0x28], r15d
jne 0x1400738dc
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4c]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov edx, dword [rbx + 0x28]
movzx eax, byte [rsi + 0x4d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
inc dword [rbx + 0x28]
mov dword [rsi + 0x4c], r15d
mov rcx, rsi
mov dword [rbx + 8], WSAStartup
call fcn.140073010
cmp dword [rbx + 0x28], r15d
jne 0x1400738dc
cmp dword [rsi + 8], r15d
jne 0x140073848
cmp dword [rbx + 0x9c], r15d
jne 0x140073848
cmp dword [rbx + 8], 0x29a
je 0x1400738e3
movsxd rcx, dword [rbx + 0xac]
test ecx, ecx
jne 0x140073860
lea edx, [rcx + 1]
mov rcx, rbx
call fcn.140074010
jmp 0x1400738a8
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x140073875
mov rcx, rbx
call fcn.140075100
jmp 0x1400738a8
cmp eax, 3
jne 0x140073884
mov rcx, rbx
call fcn.140074dd0
jmp 0x1400738a8
mov rax, rcx
lea rdi, fcn.140074010
add rax, rax
mov rdi, qword [rdi + rax*8]
mov rcx, rdi
call qword [fcn.140078e90]
mov edx, 1
mov rcx, rbx
call rdi
mov ecx, eax
lea eax, [rax - 2]
cmp eax, 1
ja 0x1400738b9
mov dword [rbx + 8], 0x29a
test ecx, 0xfffffffd
je 0x1400738d6
cmp ecx, 1
jne 0x1400738e3
mov rcx, rbx
call fcn.140077520
mov rcx, rsi
call fcn.140073010
cmp dword [rsi + 0x18], r15d
jne 0x1400738e3
mov dword [rbx + 0x40], 0xffffffff
mov r14, qword [rsp + 0x50]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rax, qword [str.stream_error]
mov qword [rsi + 0x20], rax
mov eax, 0xfffffffe
add rsp, 0x28
pop rsi
pop rbx
ret