Function at 0x4670f0
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.00466854
xor edi, edi
test eax, eax
jne 0x467a13
mov rbx, qword [rsi + 0x38]
cmp qword [rsi + 0x18], rdi
je 0x467a13
cmp dword [rsi + 8], edi
je 0x46713d
cmp qword [rsi], rdi
je 0x467a13
mov r14d, 0x29a
cmp dword [rbx + 8], r14d
jne 0x467153
cmp r12d, 4
jne 0x467a13
cmp dword [rsi + 0x20], edi
je 0x4671b0
mov ebp, 9
mov ecx, dword [rbx + 0x40]
mov dword [rbx + 0x40], r12d
cmp dword [rbx + 0x28], edi
je 0x46717c
mov rcx, rsi
call fcn.00465dd8
cmp dword [rsi + 0x20], edi
je 0x467a0b
jmp 0x46719b
cmp dword [rsi + 8], edi
jne 0x46719b
cmp ecx, 4
mov eax, edi
cmovg eax, ebp
add ecx, ecx
sub ecx, eax
lea eax, [r12 + r12]
cmp eax, ecx
jg 0x46719b
cmp r12d, 4
jne 0x4671b0
mov r13d, 1
cmp dword [rbx + 8], r14d
jne 0x4671ba
cmp dword [rsi + 8], edi
je 0x4672e4
mov eax, 0xfffffffb
jmp 0x467a18
cmp dword [rbx + 8], 0x2a
jne 0x4672e4
cmp dword [rbx + 0x2c], edi
jne 0x4671d5
mov dword [rbx + 8], WSAStartup
jmp 0x4672e4
mov ecx, dword [rbx + 0xa4]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [rbx + 0x110], 2
mov r8d, ecx
jge 0x467220
mov eax, dword [rbx + 0x10c]
cmp eax, 2
jl 0x467220
cmp eax, 6
jge 0x46720a
mov eax, 0x40
lea edx, [rax + 0x20]
jmp 0x467227
jne 0x467216
mov eax, 0x80
lea edx, [rax + 0x20]
jmp 0x467227
mov eax, 0xc0
lea edx, [rax + 0x20]
jmp 0x467227
mov eax, edi
mov edx, 0x20
or ecx, eax
cmp dword [rbx + 0xf4], edi
je 0x467236
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 0x4672c8
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.00465dd8
cmp dword [rbx + 0x28], edi
jne 0x467a0b
cmp dword [rbx + 8], 0x39
jne 0x467524
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 0x4673d6
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 0x467389
mov dl, 2
jmp 0x46739c
cmp dword [rbx + 0x110], 2
jge 0x46739a
mov dl, dil
cmp eax, 2
jge 0x46739c
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.00465dd8
cmp dword [rbx + 0x28], edi
jne 0x467a0b
jmp 0x467524
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 0x46748d
mov dl, 2
jmp 0x4674a0
cmp dword [rbx + 0x110], 2
jge 0x46749e
mov dl, dil
cmp eax, 2
jge 0x4674a0
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 0x4674f9
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 0x46751a
mov rdx, qword [rbx + 0x10]
test rdx, rdx
jne 0x46750f
mov eax, edi
jmp 0x467517
mov ecx, dword [rsi + 0x5c]
call fcn.0046387c
mov dword [rsi + 0x5c], eax
mov dword [rbx + 0x38], edi
mov dword [rbx + 8], 0x45
mov ecx, dword [rbx + 8]
cmp ecx, 0x45
jne 0x46761e
lea r15, [rbx + 0x30]
mov rax, qword [r15]
cmp qword [rax + 0x10], rdi
je 0x467612
movzx r13d, word [rax + 0x18]
mov r14d, dword [rbx + 0x28]
sub r13d, dword [rbx + 0x38]
mov ecx, r14d
lea eax, [r14 + r13]
jmp 0x4675ba
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 0x46759a
cmp ecx, r14d
jbe 0x46759a
mov edx, r14d
add rdx, qword [rbx + 0x10]
jne 0x467589
mov eax, edi
jmp 0x467597
sub ecx, r14d
mov r8d, ecx
mov ecx, dword [rsi + 0x5c]
call fcn.0046387c
mov dword [rsi + 0x5c], eax
add dword [rbx + 0x38], ebp
mov rcx, rsi
call fcn.00465dd8
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x467a0b
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 0x467557
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 0x467609
cmp ecx, r14d
jbe 0x467609
mov edx, r14d
add rdx, qword [rbx + 0x10]
jne 0x4675f8
mov eax, edi
jmp 0x467606
sub ecx, r14d
mov r8d, ecx
mov ecx, dword [rsi + 0x5c]
call fcn.0046387c
mov dword [rsi + 0x5c], eax
mov dword [rbx + 0x38], edi
mov r13d, 1
mov dword [rbx + 8], 0x49
mov r14, r15
jmp 0x46762e
lea r14, [rbx + 0x30]
mov r15, r14
cmp ecx, 0x49
jne 0x4676ef
mov rax, qword [r14]
cmp qword [rax + 0x20], rdi
je 0x4676df
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
cmp r8d, dword [rbx + 0x18]
jne 0x467688
mov rax, qword [r14]
cmp dword [rax + 0x3c], edi
je 0x467670
cmp r8d, r9d
jbe 0x467670
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x467662
mov eax, edi
jmp 0x46766d
mov ecx, dword [rsi + 0x5c]
sub r8d, r9d
call fcn.0046387c
mov dword [rsi + 0x5c], eax
mov rcx, rsi
call fcn.00465dd8
cmp dword [rbx + 0x28], edi
jne 0x467a0b
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 0x467642
mov rax, qword [r14]
cmp dword [rax + 0x3c], edi
je 0x4676dc
cmp r8d, r9d
jbe 0x4676dc
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x4676ce
mov eax, edi
jmp 0x4676d9
mov ecx, dword [rsi + 0x5c]
sub r8d, r9d
call fcn.0046387c
mov dword [rsi + 0x5c], eax
mov dword [rbx + 0x38], edi
mov rax, rbx
mov dword [rbx + 8], 0x5b
lea rbp, [rbx + 0x18]
jmp 0x4676fc
lea rbp, [rbx + 0x18]
cmp ecx, 0x5b
jne 0x4677b3
mov rax, qword [r15]
cmp qword [rax + 0x30], rdi
je 0x4677aa
mov r9d, dword [rbx + 0x28]
mov r8d, r9d
cmp r8d, dword [rbx + 0x18]
jne 0x467756
mov rax, qword [r15]
cmp dword [rax + 0x3c], edi
je 0x46773e
cmp r8d, r9d
jbe 0x46773e
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x467730
mov eax, edi
jmp 0x46773b
mov ecx, dword [rsi + 0x5c]
sub r8d, r9d
call fcn.0046387c
mov dword [rsi + 0x5c], eax
mov rcx, rsi
call fcn.00465dd8
cmp dword [rbx + 0x28], edi
jne 0x467a0b
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 0x467710
mov rax, qword [r15]
cmp dword [rax + 0x3c], edi
je 0x4677aa
cmp r8d, r9d
jbe 0x4677aa
mov edx, r9d
add rdx, qword [rbx + 0x10]
jne 0x46779c
mov eax, edi
jmp 0x4677a7
mov ecx, dword [rsi + 0x5c]
sub r8d, r9d
call fcn.0046387c
mov dword [rsi + 0x5c], eax
mov dword [rbx + 8], 0x67
jmp 0x4677b8
cmp ecx, 0x67
jne 0x46781a
mov rax, qword [r15]
cmp dword [rax + 0x3c], edi
je 0x467802
mov ecx, dword [rbx + 0x28]
lea eax, [rcx + 2]
cmp eax, dword [rbp]
jbe 0x4677de
mov rcx, rsi
call fcn.00465dd8
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x467a0b
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.00465dd8
cmp dword [rbx + 0x28], edi
jne 0x467a0b
cmp dword [rsi + 8], edi
jne 0x46783d
cmp dword [rbx + 0xfc], edi
jne 0x46783d
test r12d, r12d
je 0x467a0f
cmp dword [rbx + 8], 0x29a
je 0x4678d9
movsxd rax, dword [rbx + 0x10c]
mov edx, r12d
test eax, eax
jne 0x467855
mov rcx, rbx
call fcn.00465f38
jmp 0x467896
mov ecx, dword [rbx + 0x110]
cmp ecx, 2
jne 0x46786a
mov rcx, rbx
call fcn.00463c0c
jmp 0x467896
cmp ecx, 3
mov rcx, rbx
jne 0x467879
call fcn.00463dd8
jmp 0x467896
cmp eax, r13d
jne 0x467885
call fcn.00465804
jmp 0x467896
add rax, rax
lea r8, fcn.00465f38
mov r8, qword [r8 + rax*8]
call r8
mov ecx, eax
lea eax, [rax - 2]
cmp eax, r13d
ja 0x4678a7
mov dword [rbx + 8], 0x29a
test ecx, 0xfffffffd
je 0x467a06
cmp ecx, r13d
jne 0x4678d9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.00465cb4
mov rcx, rsi
call fcn.00465dd8
cmp dword [rsi + 0x20], edi
je 0x467a0b
cmp r12d, 4
jne 0x467a0f
cmp dword [rbx + 0x2c], edi
jg 0x4678f0
mov eax, r13d
jmp 0x467a18
cmp dword [rbx + 0x2c], 2
jne 0x467997
cmp dword [0x004bb5c4], edi
je 0x467911
lea rcx, [rbx + 0x50]
call fcn.00462270
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 0x4679e3
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.00465dd8
mov eax, dword [rbx + 0x2c]
test eax, eax
jle 0x4679fb
neg eax
mov dword [rbx + 0x2c], eax
cmp dword [rbx + 0x28], edi
sete dil
mov eax, edi
jmp 0x467a18
cmp dword [rsi + 0x20], edi
jne 0x467a0f
or dword [rbx + 0x40], 0xffffffff
xor eax, eax
jmp 0x467a18
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