Function at 0x4671c4
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 r12d, edx
mov rsi, rcx
call fcn.00466928
xor edi, edi
test eax, eax
jne 0x467ae7
mov rbx, qword [rsi + 0x38]
cmp qword [rsi + 0x18], rdi
je 0x467ae7
cmp dword [rsi + 8], edi
je 0x467211
cmp qword [rsi], rdi
je 0x467ae7
mov r14d, 0x29a
cmp dword [rbx + 8], r14d
jne 0x467227
cmp r12d, 4
jne 0x467ae7
cmp dword [rsi + 0x20], edi
je 0x467284
mov ebp, 9
mov ecx, dword [rbx + 0x40]
mov dword [rbx + 0x40], r12d
cmp dword [rbx + 0x28], edi
je 0x467250
mov rcx, rsi
call fcn.00465eac
cmp dword [rsi + 0x20], edi
je 0x467adf
jmp 0x46726f
cmp dword [rsi + 8], edi
jne 0x46726f
cmp ecx, 4
mov eax, edi
cmovg eax, ebp
add ecx, ecx
sub ecx, eax
lea eax, [r12 + r12]
cmp eax, ecx
jg 0x46726f
cmp r12d, 4
jne 0x467284
mov r13d, 1
cmp dword [rbx + 8], r14d
jne 0x46728e
cmp dword [rsi + 8], edi
je 0x4673b8
mov eax, 0xfffffffb
jmp 0x467aec
cmp dword [rbx + 8], 0x2a
jne 0x4673b8
cmp dword [rbx + 0x2c], edi
jne 0x4672a9
mov dword [rbx + 8], WSAStartup
jmp 0x4673b8
mov ecx, dword [rbx + 0xa4]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0x110], 2
mov r8d, ecx
jge 0x4672f4
mov eax, dword [rbx + 0x10c]
cmp eax, 2
jl 0x4672f4
cmp eax, 6
jge 0x4672de
mov eax, 0x40
lea edx, [rax + 0x20]
jmp 0x4672fb
jne 0x4672ea
mov eax, 0x80
lea edx, [rax + 0x20]
jmp 0x4672fb
mov eax, 0xc0
lea edx, [rax + 0x20]
jmp 0x4672fb
mov eax, edi
mov edx, 0x20
or ecx, eax
cmp dword [rbx + 0xf4], edi
je 0x46730a
mov ecx, r8d
or ecx, edx
mov eax, 0x8421085
mul ecx
mov rax, qword [rbx + 0x10]
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
add ecx, r13d
imul r8d, ecx, 0x1f
mov ecx, dword [rbx + 0x28]
mov edx, r8d
shr edx, 8
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r13d
cmp dword [rbx + 0xf4], edi
je 0x46739c
movzx r8d, word [rsi + 0x5e]
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], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r13d
movzx r8d, word [rsi + 0x5c]
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], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r13d
mov dword [rsi + 0x5c], r13d
mov rcx, rsi
mov dword [rbx + 8], WSAStartup
call fcn.00465eac
cmp dword [rbx + 0x28], edi
jne 0x467adf
cmp dword [rbx + 8], 0x39
jne 0x4675f8
mov dword [rsi + 0x5c], edi
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x1f
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0x8b
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 8
add dword [rbx + 0x28], r13d
mov r8, qword [rbx + 0x30]
mov r9d, dword [rbx + 0x28]
test r8, r8
jne 0x4674aa
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], dil
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], dil
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], dil
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], dil
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
inc ecx
mov dword [rbx + 0x28], ecx
mov byte [rcx + rax], dil
add dword [rbx + 0x28], r13d
mov eax, dword [rbx + 0x10c]
cmp eax, ebp
jne 0x46745d
mov dl, 2
jmp 0x467470
cmp dword [rbx + 0x110], 2
jge 0x46746e
mov dl, dil
cmp eax, 2
jge 0x467470
mov dl, 4
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 3
mov rcx, rsi
add dword [rbx + 0x28], r13d
mov dword [rbx + 8], WSAStartup
call fcn.00465eac
cmp dword [rbx + 0x28], edi
jne 0x467adf
jmp 0x4675f8
mov rax, qword [r8 + 0x30]
neg rax
mov rax, qword [r8 + 0x10]
sbb dl, dl
and dl, 0x10
neg rax
mov rax, qword [r8 + 0x20]
sbb cl, cl
and cl, 4
add dl, cl
neg rax
mov eax, dword [r8 + 0x3c]
sbb cl, cl
and cl, 8
add dl, cl
neg eax
sbb cl, cl
and cl, 2
add dl, cl
cmp dword [r8], edi
setne al
add dl, al
mov rax, qword [rbx + 0x10]
mov byte [r9 + rax], dl
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc ecx
mov dword [rbx + 0x28], ecx
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 4]
mov byte [rdx + rcx], al
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc ecx
mov dword [rbx + 0x28], ecx
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 5]
mov byte [rdx + rcx], al
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc ecx
mov dword [rbx + 0x28], ecx
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 6]
mov byte [rdx + rcx], al
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
inc ecx
mov dword [rbx + 0x28], ecx
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov al, byte [rax + 7]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov eax, dword [rbx + 0x10c]
cmp eax, ebp
jne 0x467561
mov dl, 2
jmp 0x467574
cmp dword [rbx + 0x110], 2
jge 0x467572
mov dl, dil
cmp eax, 2
jge 0x467574
mov dl, 4
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
add dword [rbx + 0x28], r13d
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], r13d
mov rax, qword [rbx + 0x30]
mov r8d, dword [rbx + 0x28]
cmp qword [rax + 0x10], rdi
je 0x4675cd
mov al, byte [rax + 0x18]
mov rcx, qword [rbx + 0x10]
mov byte [r8 + rcx], al
add dword [rbx + 0x28], r13d
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], r13d
mov r8d, dword [rbx + 0x28]
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x3c], edi
je 0x4675ee
mov rdx, qword [rbx + 0x10]
test rdx, rdx
jne 0x4675e3
mov eax, edi
jmp 0x4675eb
mov ecx, dword [rsi + 0x5c]
call fcn.00463950
mov dword [rsi + 0x5c], eax
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x45
mov ecx, dword [rbx + 8]
cmp ecx, 0x45
jne 0x4676f2
lea r15, [rbx + 0x30]
mov rax, qword [r15]
cmp qword [rax + 0x10], rdi
je 0x4676e6
movzx r13d, word [rax + 0x18]
mov r14d, dword [rbx + 0x28]
sub r13d, dword [rbx + 0x38]
mov ecx, r14d
lea eax, [r14 + r13]
jmp 0x46768e
add rdx, qword [rax + 0x10]
sub ebp, ecx
add rcx, qword [rbx + 0x10]
mov r8d, ebp
call fcn.00424180
mov rax, qword [r15]
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x28], ecx
cmp dword [rax + 0x3c], edi
je 0x46766e
cmp ecx, r14d
jbe 0x46766e
mov edx, r14d
add rdx, qword [rbx + 0x10]
jne 0x46765d
mov eax, edi
jmp 0x46766b
sub ecx, r14d
mov r8d, ecx
mov ecx, dword [rsi + 0x5c]
call fcn.00463950
mov dword [rsi + 0x5c], eax
add dword [rbx + 0x38], ebp
mov rcx, rsi
call fcn.00465eac
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x467adf
sub r13d, ebp
mov r14d, edi
lea eax, [rcx + r13]
mov ebp, dword [rbx + 0x18]
cmp eax, ebp
mov rax, qword [r15]
mov edx, dword [rbx + 0x38]
ja 0x46762b
add rdx, qword [rax + 0x10]
add rcx, qword [rbx + 0x10]
mov r8d, r13d
call fcn.00424180
add dword [rbx + 0x28], r13d
mov rax, qword [r15]
mov ecx, dword [rbx + 0x28]
cmp dword [rax + 0x3c], edi
je 0x4676dd
cmp ecx, r14d
jbe 0x4676dd
mov edx, r14d
add rdx, qword [rbx + 0x10]
jne 0x4676cc
mov eax, edi
jmp 0x4676da
sub ecx, r14d
mov r8d, ecx
mov ecx, dword [rsi + 0x5c]
call fcn.00463950
mov dword [rsi + 0x5c], eax
mov dword [rbx + 0x38], edi
mov r13d, 1
mov dword [rbx + 8], 0x49
mov r14, r15
jmp 0x467702
lea r14, [rbx + 0x30]
mov r15, r14
cmp ecx, 0x49
jne 0x4677c3
mov rax, qword [r14]
cmp qword [rax + 0x20], rdi
je 0x4677b3
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
cmp r8d, dword [rbx + 0x18]
jne 0x46775c
mov rax, qword [r14]
cmp dword [rax + 0x3c], edi
je 0x467744
cmp r8d, r9d
jbe 0x467744
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x467736
mov eax, edi
jmp 0x467741
mov ecx, dword [rsi + 0x5c]
sub r8d, r9d
call fcn.00463950
mov dword [rsi + 0x5c], eax
mov rcx, rsi
call fcn.00465eac
cmp dword [rbx + 0x28], edi
jne 0x467adf
mov r8d, dword [rbx + 0x28]
mov r9d, edi
mov ecx, dword [rbx + 0x38]
mov rax, qword [r14]
mov rax, qword [rax + 0x20]
mov dl, byte [rcx + rax]
lea eax, [rcx + 1]
mov ecx, r8d
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
mov r8d, dword [rbx + 0x28]
inc r8d
mov dword [rbx + 0x28], r8d
test dl, dl
jne 0x467716
mov rax, qword [r14]
cmp dword [rax + 0x3c], edi
je 0x4677b0
cmp r8d, r9d
jbe 0x4677b0
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x4677a2
mov eax, edi
jmp 0x4677ad
mov ecx, dword [rsi + 0x5c]
sub r8d, r9d
call fcn.00463950
mov dword [rsi + 0x5c], eax
mov dword [rbx + 0x38], edi
mov rax, rbx
mov dword [rbx + 8], 0x5b
lea rbp, [rbx + 0x18]
jmp 0x4677d0
lea rbp, [rbx + 0x18]
cmp ecx, 0x5b
jne 0x467887
mov rax, qword [r15]
cmp qword [rax + 0x30], rdi
je 0x46787e
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
cmp r8d, dword [rbx + 0x18]
jne 0x46782a
mov rax, qword [r15]
cmp dword [rax + 0x3c], edi
je 0x467812
cmp r8d, r9d
jbe 0x467812
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x467804
mov eax, edi
jmp 0x46780f
mov ecx, dword [rsi + 0x5c]
sub r8d, r9d
call fcn.00463950
mov dword [rsi + 0x5c], eax
mov rcx, rsi
call fcn.00465eac
cmp dword [rbx + 0x28], edi
jne 0x467adf
mov r8d, dword [rbx + 0x28]
mov r9d, edi
mov ecx, dword [rbx + 0x38]
mov rax, qword [r15]
mov rax, qword [rax + 0x30]
mov dl, byte [rcx + rax]
lea eax, [rcx + 1]
mov ecx, r8d
mov dword [rbx + 0x38], eax
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], dl
mov r8d, dword [rbx + 0x28]
inc r8d
mov dword [rbx + 0x28], r8d
test dl, dl
jne 0x4677e4
mov rax, qword [r15]
cmp dword [rax + 0x3c], edi
je 0x46787e
cmp r8d, r9d
jbe 0x46787e
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x467870
mov eax, edi
jmp 0x46787b
mov ecx, dword [rsi + 0x5c]
sub r8d, r9d
call fcn.00463950
mov dword [rsi + 0x5c], eax
mov dword [rbx + 8], 0x67
jmp 0x46788c
cmp ecx, 0x67
jne 0x4678ee
mov rax, qword [r15]
cmp dword [rax + 0x3c], edi
je 0x4678d6
mov ecx, dword [rbx + 0x28]
lea eax, [rcx + 2]
cmp eax, dword [rbp]
jbe 0x4678b2
mov rcx, rsi
call fcn.00465eac
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x467adf
mov al, byte [rsi + 0x5c]
mov edx, ecx
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x5d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov dword [rsi + 0x5c], edi
mov rcx, rsi
mov dword [rbx + 8], WSAStartup
call fcn.00465eac
cmp dword [rbx + 0x28], edi
jne 0x467adf
cmp dword [rsi + 8], edi
jne 0x467911
cmp dword [rbx + 0xfc], edi
jne 0x467911
test r12d, r12d
je 0x467ae3
cmp dword [rbx + 8], 0x29a
je 0x4679ad
movsxd rax, dword [rbx + 0x10c]
mov edx, r12d
test eax, eax
jne 0x467929
mov rcx, rbx
call fcn.0046600c
jmp 0x46796a
mov ecx, dword [rbx + 0x110]
cmp ecx, 2
jne 0x46793e
mov rcx, rbx
call fcn.00463ce0
jmp 0x46796a
cmp ecx, 3
mov rcx, rbx
jne 0x46794d
call fcn.00463eac
jmp 0x46796a
cmp eax, r13d
jne 0x467959
call fcn.004658d8
jmp 0x46796a
add rax, rax
lea r8, fcn.0046600c
mov r8, qword [r8 + rax*8]
call r8
mov ecx, eax
lea eax, [rax - 2]
cmp eax, r13d
ja 0x46797b
mov dword [rbx + 8], 0x29a
test ecx, 0xfffffffd
je 0x467ada
cmp ecx, r13d
jne 0x4679ad
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.00465d88
mov rcx, rsi
call fcn.00465eac
cmp dword [rsi + 0x20], edi
je 0x467adf
cmp r12d, 4
jne 0x467ae3
cmp dword [rbx + 0x2c], edi
jg 0x4679c4
mov eax, r13d
jmp 0x467aec
cmp dword [rbx + 0x2c], 2
jne 0x467a6b
cmp dword [0x004bb5c4], edi
je 0x4679e5
lea rcx, [rbx + 0x50]
call fcn.00462344
mov rcx, qword [rbx]
mov dword [rcx + 0x5c], eax
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x5c]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x5d]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x5e]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x5f]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x10]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x11]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov al, byte [rsi + 0x12]
mov rcx, qword [rbx + 0x10]
mov byte [rdx + rcx], al
add dword [rbx + 0x28], r13d
mov edx, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x10]
mov al, byte [rsi + 0x13]
mov byte [rdx + rcx], al
jmp 0x467ab7
movzx r8d, word [rsi + 0x5e]
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], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r13d
movzx r8d, word [rsi + 0x5c]
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], r13d
mov ecx, dword [rbx + 0x28]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], r8b
add dword [rbx + 0x28], r13d
mov rcx, rsi
call fcn.00465eac
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x467acf
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x467aec
cmp dword [rsi + 0x20], edi
jne 0x467ae3
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x467aec
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