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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
test edi, edi
je 0x1001dc2a
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x1001dc2a
xor ebx, ebx
cmp dword [edi + 0xc], ebx
je 0x1001dc26
cmp dword [edi], ebx
jne 0x1001d4bb
cmp dword [edi + 4], ebx
jne 0x1001dc26
cmp dword [esi + 4], 0x29a
jne 0x1001d4cd
cmp edx, 4
jne 0x1001dc26
cmp dword [edi + 0x10], ebx
je 0x1001dc26
cmp dword [esi + 4], 0x2a
mov eax, dword [esi + 0x28]
push 0x71
mov dword [esi], edi
mov dword [esp + 0x1c], eax
mov dword [esi + 0x28], edx
pop ebp
jne 0x1001d773
cmp dword [esi + 0x18], 2
jne 0x1001d6db
push ebx
xor edx, edx
xor ecx, ecx
call fcn.10021d9f
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x14]
pop ecx
mov ecx, dword [esi + 8]
mov byte [ecx + eax], 0x1f
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 0x8b
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 8
inc dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
mov ebx, dword [esi + 0x14]
test edx, edx
jne 0x1001d5b6
mov eax, dword [esi + 8]
push 9
mov byte [ebx + eax], dl
xor ebx, ebx
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x84]
mov edx, dword [esi + 0x14]
pop ecx
cmp eax, ecx
jne 0x1001d587
mov cl, 2
jmp 0x1001d599
cmp dword [esi + 0x88], 2
jge 0x1001d597
mov cl, bl
cmp eax, 2
jge 0x1001d599
mov cl, 4
mov eax, dword [esi + 8]
mov byte [edx + eax], cl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 0xb
mov eax, ebp
inc dword [esi + 0x14]
jmp 0x1001d6d3
cmp dword [edx + 0x24], 0
push 9
sete cl
dec cl
and cl, 0x10
cmp dword [edx + 0x2c], 0
sete al
dec al
and al, 2
add cl, al
cmp dword [edx + 0x1c], 0
sete al
dec al
and al, 8
add cl, al
cmp dword [edx + 0x10], 0
sete al
dec al
and al, 4
add cl, al
cmp dword [edx], 0
setne al
add cl, al
mov eax, dword [esi + 8]
mov byte [ebx + eax], cl
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
mov al, byte [eax + 4]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
mov al, byte [eax + 5]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [eax + 6]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [eax + 7]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x84]
mov edx, dword [esi + 0x14]
pop ecx
cmp eax, ecx
jne 0x1001d656
mov cl, 2
jmp 0x1001d66c
cmp dword [esi + 0x88], 2
jge 0x1001d66a
cmp eax, 2
jl 0x1001d66a
xor ebx, ebx
mov cl, bl
jmp 0x1001d66e
mov cl, 4
xor ebx, ebx
mov eax, dword [esi + 8]
mov byte [edx + eax], cl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [eax + 0xc]
mov byte [edx + ecx], al
mov eax, dword [esi + 0x1c]
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
cmp dword [eax + 0x10], ebx
je 0x1001d6b8
mov al, byte [eax + 0x14]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [eax + 0x15]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x1001d6cd
mov ecx, dword [edi + 0x30]
push edx
mov edx, dword [esi + 8]
call fcn.10021d9f
pop ecx
mov dword [edi + 0x30], eax
push 0x45
mov dword [esi + 0x20], ebx
pop eax
mov dword [esi + 4], eax
jmp 0x1001d773
mov ecx, dword [esi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [esi + 0x88], 2
mov ebx, ecx
jge 0x1001d71f
mov eax, dword [esi + 0x84]
cmp eax, 2
jl 0x1001d71f
cmp eax, 6
jge 0x1001d709
push 0x40
pop eax
push 0x60
jmp 0x1001d723
jne 0x1001d715
mov eax, 0x80
lea edx, [eax + 0x20]
jmp 0x1001d724
mov eax, 0xc0
lea edx, [eax + 0x20]
jmp 0x1001d724
xor eax, eax
push 0x20
pop edx
or ecx, eax
cmp dword [esi + 0x6c], 0
je 0x1001d730
mov ecx, edx
or ecx, ebx
mov eax, ecx
mov dword [esi + 4], ebp
push 0x1f
pop ebx
xor edx, edx
div ebx
sub ecx, edx
lea edx, [ebx + ecx]
mov ecx, esi
call fcn.1001d41a
xor ebx, ebx
cmp dword [esi + 0x6c], ebx
je 0x1001d765
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.1001d41a
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.1001d41a
push ebx
xor edx, edx
xor ecx, ecx
call fcn.10021b6c
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [esi + 4]
cmp eax, 0x45
jne 0x1001d832
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x10], ebx
je 0x1001d8bc
mov ebp, dword [esi + 0x14]
mov ebx, ebp
jmp 0x1001d7e5
cmp ebx, dword [esi + 0xc]
jne 0x1001d7c6
cmp dword [ecx + 0x2c], 0
je 0x1001d7b5
cmp ebx, ebp
jbe 0x1001d7b5
mov edx, dword [esi + 8]
sub ebx, ebp
mov ecx, dword [edi + 0x30]
add edx, ebp
push ebx
call fcn.10021d9f
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.1001d43e
mov ebx, dword [esi + 0x14]
mov ebp, ebx
cmp ebx, dword [esi + 0xc]
je 0x1001d7ee
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
mov edx, dword [eax + 0x10]
mov eax, dword [esi + 0x20]
mov al, byte [edx + eax]
mov byte [ebx + ecx], al
mov ebx, dword [esi + 0x14]
inc ebx
inc dword [esi + 0x20]
mov dword [esi + 0x14], ebx
mov ecx, dword [esi + 0x1c]
movzx eax, word [ecx + 0x14]
cmp dword [esi + 0x20], eax
jb 0x1001d792
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x2c], 0
je 0x1001d818
cmp ebx, ebp
jbe 0x1001d818
lfence
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
sub eax, ebp
mov ecx, dword [edi + 0x30]
add edx, ebp
push eax
call fcn.10021d9f
pop ecx
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
cmp eax, dword [ecx + 0x14]
jne 0x1001d8b4
and dword [esi + 0x20], 0
push 0x49
mov dword [esi + 4], 0x49
pop eax
cmp eax, 0x49
jne 0x1001d90c
xor ebx, ebx
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], ebx
je 0x1001d996
mov ebp, dword [esi + 0x14]
mov ebx, ebp
cmp ebx, dword [esi + 0xc]
jne 0x1001d885
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1001d874
cmp ebx, ebp
jbe 0x1001d874
mov edx, dword [esi + 8]
sub ebx, ebp
mov ecx, dword [edi + 0x30]
add edx, ebp
push ebx
call fcn.10021d9f
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.1001d43e
mov ebx, dword [esi + 0x14]
mov ebp, ebx
cmp ebx, dword [esi + 0xc]
je 0x1001d8c8
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x1c]
mov dl, byte [ecx + eax]
movzx eax, dl
mov dword [esp + 0x10], eax
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
mov byte [ebx + eax], dl
mov ebx, dword [esi + 0x14]
inc ebx
cmp dword [esp + 0x10], 0
mov dword [esi + 0x14], ebx
jne 0x1001d84e
jmp 0x1001d8d0
mov eax, dword [esi + 4]
jmp 0x1001d832
mov dword [esi + 4], 0x49
jmp 0x1001d83d
mov dword [esp + 0x10], 1
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1001d8f7
cmp ebx, ebp
jbe 0x1001d8f7
lfence
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
sub eax, ebp
mov ecx, dword [edi + 0x30]
add edx, ebp
push eax
call fcn.10021d9f
pop ecx
mov dword [edi + 0x30], eax
cmp dword [esp + 0x10], 0
jne 0x1001d98e
and dword [esi + 0x20], 0
push 0x5b
pop eax
mov dword [esi + 4], eax
cmp eax, 0x5b
jne 0x1001d9e2
xor ebx, ebx
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], ebx
je 0x1001daad
mov ebp, dword [esi + 0x14]
mov ebx, ebp
cmp ebx, dword [esi + 0xc]
jne 0x1001d95f
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1001d94e
cmp ebx, ebp
jbe 0x1001d94e
mov edx, dword [esi + 8]
sub ebx, ebp
mov ecx, dword [edi + 0x30]
add edx, ebp
push ebx
call fcn.10021d9f
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.1001d43e
mov ebx, dword [esi + 0x14]
mov ebp, ebx
cmp ebx, dword [esi + 0xc]
je 0x1001d9a2
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x24]
mov dl, byte [ecx + eax]
movzx eax, dl
mov dword [esp + 0x10], eax
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
mov byte [ebx + eax], dl
mov ebx, dword [esi + 0x14]
inc ebx
cmp dword [esp + 0x10], 0
mov dword [esi + 0x14], ebx
jne 0x1001d928
jmp 0x1001d9aa
mov eax, dword [esi + 4]
jmp 0x1001d90c
mov dword [esi + 4], 0x5b
jmp 0x1001d917
mov dword [esp + 0x10], 1
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x1001d9d1
cmp ebx, ebp
jbe 0x1001d9d1
lfence
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
sub eax, ebp
mov ecx, dword [edi + 0x30]
add edx, ebp
push eax
call fcn.10021d9f
pop ecx
mov dword [edi + 0x30], eax
cmp dword [esp + 0x10], 0
jne 0x1001daa5
push 0x67
pop eax
mov dword [esi + 4], eax
xor ebx, ebx
cmp eax, 0x67
jne 0x1001da42
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], ebx
je 0x1001da3b
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
lea eax, [edx + 2]
cmp eax, ecx
jbe 0x1001da0b
mov ecx, edi
call fcn.1001d43e
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
lea eax, [edx + 2]
cmp eax, ecx
ja 0x1001da42
mov ecx, dword [esi + 8]
mov al, byte [edi + 0x30]
push ebx
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 0x31]
mov byte [edx + ecx], al
xor edx, edx
inc dword [esi + 0x14]
xor ecx, ecx
call fcn.10021d9f
pop ecx
mov dword [edi + 0x30], eax
mov dword [esi + 4], 0x71
cmp dword [esi + 0x14], ebx
je 0x1001dab9
mov ecx, edi
call fcn.1001d43e
cmp dword [edi + 0x10], ebx
je 0x1001dc22
mov ebx, dword [esp + 0x14]
mov ebp, 0x29a
cmp dword [esi + 4], ebp
jne 0x1001da6f
cmp dword [edi + 4], 0
jne 0x1001dc26
cmp dword [edi + 4], 0
jne 0x1001da8c
cmp dword [esi + 0x74], 0
jne 0x1001da8c
test ebx, ebx
je 0x1001dc26
cmp dword [esi + 4], ebp
je 0x1001db52
mov eax, dword [esi + 0x88]
lfence
cmp eax, 2
jne 0x1001daee
mov edx, ebx
mov ecx, esi
call fcn.1001ebdf
jmp 0x1001db0f
mov eax, dword [esi + 4]
jmp 0x1001d9e2
mov dword [esi + 4], 0x67
jmp 0x1001d9e9
cmp dword [edi + 4], ebx
mov ebx, dword [esp + 0x14]
jne 0x1001da5b
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, 4
push 9
pop edx
cmovg eax, edx
add ecx, ecx
sub ecx, eax
lea eax, [ebx + ebx]
cmp eax, ecx
jg 0x1001da5b
cmp ebx, 4
jne 0x1001dc26
jmp 0x1001da5b
cmp eax, 3
jne 0x1001dafe
mov edx, ebx
mov ecx, esi
call fcn.1001e97e
jmp 0x1001db0f
imul eax, dword [esi + 0x84], 0xc
push ebx
push esi
call dword [eax + 0x1003e850]
pop ecx
pop ecx
cmp eax, 2
je 0x1001db19
cmp eax, 3
jne 0x1001db1c
mov dword [esi + 4], ebp
test eax, eax
je 0x1001dc1c
cmp eax, 2
je 0x1001dc1c
cmp eax, 1
jne 0x1001db52
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.100212f1
pop ecx
pop ecx
mov ecx, edi
call fcn.1001d43e
cmp dword [edi + 0x10], 0
je 0x1001dc22
cmp ebx, 4
jne 0x1001dc26
cmp dword [esi + 0x18], 0
jg 0x1001db69
xor eax, eax
inc eax
jmp 0x1001dc2d
cmp dword [esi + 0x18], 2
jne 0x1001dbe9
mov ecx, dword [esi + 0x14]
mov al, byte [edi + 0x30]
mov edx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x31]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x32]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x33]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov al, byte [edi + 8]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 9]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 0xa]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 0xb]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
jmp 0x1001dbff
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.1001d41a
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.1001d41a
mov ecx, edi
call fcn.1001d43e
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x1001dc12
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], eax
sete al
jmp 0x1001dc2d
cmp dword [edi + 0x10], 0
jne 0x1001dc26
or dword [esi + 0x28], 0xffffffff
xor eax, eax
jmp 0x1001dc2d
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret