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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
test edi, edi
je 0x423045
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x423045
cmp dword [edi + 0xc], 0
je 0x42303d
cmp dword [edi], 0
jne 0x422986
cmp dword [edi + 4], 0
jne 0x42303d
mov eax, dword [esi + 4]
cmp eax, 0x29a
je 0x42303d
cmp dword [edi + 0x10], 0
je 0x42302a
mov ecx, dword [esi + 0x28]
mov dword [esi], edi
mov dword [ebp - 0xc], ecx
mov dword [esi + 0x28], 2
push ebx
cmp eax, 0x2a
jne 0x422c4d
cmp dword [esi + 0x18], 2
jne 0x422bb0
mov dword [edi + 0x30], 0
mov ecx, dword [esi + 0x14]
mov eax, 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
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
inc edx
mov dword [esi + 0x14], edx
test ebx, ebx
jne 0x422a81
mov eax, dword [esi + 8]
mov byte [edx + 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 ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x84]
inc edx
mov dword [esi + 0x14], edx
cmp eax, 9
jne 0x422a4a
mov cl, 2
jmp 0x422a5e
cmp dword [esi + 0x88], 2
jge 0x422a5c
cmp eax, 2
jl 0x422a5c
xor cl, cl
jmp 0x422a5e
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, 0x71
inc dword [esi + 0x14]
mov dword [esi + 4], eax
jmp 0x422c4d
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x2c]
neg ecx
sbb cl, cl
and cl, 0x10
neg eax
sbb al, al
and al, 2
add cl, al
mov eax, dword [ebx + 0x1c]
neg eax
sbb al, al
and al, 8
add cl, al
mov eax, dword [ebx + 0x10]
neg eax
sbb al, al
and al, 4
add cl, al
cmp dword [ebx], 0
setne al
add cl, al
mov eax, dword [esi + 8]
mov byte [edx + eax], cl
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
movzx eax, 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]
movzx eax, byte [eax + 5]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
movzx eax, 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]
movzx eax, byte [eax + 7]
mov byte [edx + ecx], al
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x84]
inc edx
mov dword [esi + 0x14], edx
cmp eax, 9
jne 0x422b1c
mov cl, 2
jmp 0x422b30
cmp dword [esi + 0x88], 2
jge 0x422b2e
cmp eax, 2
jl 0x422b2e
xor cl, cl
jmp 0x422b30
mov cl, 4
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 edx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
inc edx
mov dword [esi + 0x14], edx
cmp dword [eax + 0x10], 0
je 0x422b7e
movzx eax, 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]
movzx eax, 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], 0
je 0x422b9c
mov eax, dword [esi + 8]
test eax, eax
je 0x422b99
mov ecx, dword [edi + 0x30]
push edx
mov edx, eax
call fcn.00425d00
add esp, 4
mov dword [edi + 0x30], eax
mov eax, 0x45
mov dword [esi + 0x20], 0
mov dword [esi + 4], eax
jmp 0x422c4d
mov eax, dword [esi + 0x30]
shl eax, 0xc
sub eax, 0x7800
cmp dword [esi + 0x88], 2
jge 0x422bf4
mov ecx, dword [esi + 0x84]
cmp ecx, 2
jl 0x422bf4
cmp ecx, 6
jge 0x422bde
mov edx, 0x40
lea ecx, [edx + 0x20]
jmp 0x422bfb
jne 0x422bea
mov edx, 0x80
lea ecx, [edx + 0x20]
jmp 0x422bfb
mov edx, 0xc0
lea ecx, [edx + 0x20]
jmp 0x422bfb
xor edx, edx
mov ecx, 0x20
cmp dword [esi + 0x6c], 0
mov dword [esi + 4], 0x71
cmove ecx, edx
or ecx, eax
mov eax, 0x8421085
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 4
inc ecx
mov edx, ecx
shl edx, 5
sub edx, ecx
mov ecx, esi
call fcn.004228d0
cmp dword [esi + 0x6c], 0
je 0x422c46
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.004228d0
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.004228d0
mov dword [edi + 0x30], 1
mov eax, dword [esi + 4]
cmp eax, 0x45
jne 0x422d24
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x10], 0
je 0x422d1c
movzx eax, word [edx + 0x14]
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 8], ecx
cmp dword [esi + 0x20], eax
jae 0x422ce1
cmp ebx, dword [esi + 0xc]
jne 0x422cb6
cmp dword [edx + 0x2c], 0
je 0x422ca2
cmp ebx, ecx
jbe 0x422ca2
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x422c93
xor eax, eax
jmp 0x422c9f
mov ecx, dword [edi + 0x30]
push ebx
call fcn.00425d00
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.00422900
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [esi + 0xc]
je 0x422ce1
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 dword [esi + 0x20]
inc ebx
mov ecx, dword [ebp - 8]
mov dword [esi + 0x14], ebx
mov edx, dword [esi + 0x1c]
movzx eax, word [edx + 0x14]
cmp dword [esi + 0x20], eax
jb 0x422c77
mov edx, dword [esi + 0x1c]
cmp dword [edx + 0x2c], 0
je 0x422d0d
cmp ebx, ecx
jbe 0x422d0d
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x422cfb
xor eax, eax
jmp 0x422d07
mov ecx, dword [edi + 0x30]
push ebx
call fcn.00425d00
add esp, 4
mov dword [edi + 0x30], eax
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
cmp eax, dword [edx + 0x14]
jne 0x422d61
mov dword [esi + 0x20], 0
mov eax, 0x49
mov dword [esi + 4], eax
cmp eax, 0x49
jne 0x422dfe
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], 0
je 0x422df6
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0xc]
jne 0x422d89
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x422d75
cmp ebx, ecx
jbe 0x422d75
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x422d66
xor eax, eax
jmp 0x422d72
mov eax, dword [esi + 4]
jmp 0x422d24
mov ecx, dword [edi + 0x30]
push ebx
call fcn.00425d00
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.00422900
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 0xc]
je 0x422db9
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 [ebp - 8], eax
lea eax, [ecx + 1]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
mov byte [ebx + eax], dl
mov ebx, dword [esi + 0x14]
inc ebx
cmp dword [ebp - 8], 0
mov dword [esi + 0x14], ebx
je 0x422dc0
jmp 0x422d42
mov dword [ebp - 8], 1
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x422de9
cmp ebx, ecx
jbe 0x422de9
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x422dda
xor eax, eax
jmp 0x422de6
mov ecx, dword [edi + 0x30]
push ebx
call fcn.00425d00
add esp, 4
mov dword [edi + 0x30], eax
cmp dword [ebp - 8], 0
jne 0x422e3f
mov dword [esi + 0x20], 0
mov eax, 0x5b
mov dword [esi + 4], eax
cmp eax, 0x5b
jne 0x422edd
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], 0
je 0x422f62
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 8], ecx
nop dword [eax]
cmp ebx, dword [esi + 0xc]
jne 0x422e67
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x422e53
cmp ebx, ecx
jbe 0x422e53
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x422e44
xor eax, eax
jmp 0x422e50
mov eax, dword [esi + 4]
jmp 0x422dfe
mov ecx, dword [edi + 0x30]
push ebx
call fcn.00425d00
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.00422900
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [esi + 0xc]
je 0x422e97
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 [ebp - 4], eax
lea eax, [ecx + 1]
mov ecx, dword [ebp - 8]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
mov byte [ebx + eax], dl
mov ebx, dword [esi + 0x14]
inc ebx
cmp dword [ebp - 4], 0
mov dword [esi + 0x14], ebx
je 0x422e9e
jmp 0x422e20
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x422ec7
cmp ebx, ecx
jbe 0x422ec7
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x422eb8
xor eax, eax
jmp 0x422ec4
mov ecx, dword [edi + 0x30]
push ebx
call fcn.00425d00
add esp, 4
mov dword [edi + 0x30], eax
cmp dword [ebp - 4], 0
jne 0x422f5a
mov dword [esi + 4], 0x67
mov eax, 0x67
cmp eax, 0x67
jne 0x422f37
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x422f30
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
lea eax, [edx + 2]
cmp eax, ecx
jbe 0x422f05
mov ecx, edi
call fcn.00422900
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
lea eax, [edx + 2]
cmp eax, ecx
ja 0x422f37
mov ecx, dword [esi + 8]
movzx eax, byte [edi + 0x30]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
movzx eax, byte [edi + 0x31]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov dword [edi + 0x30], 0
mov dword [esi + 4], 0x71
cmp dword [esi + 0x14], 0
pop ebx
je 0x422f6e
mov ecx, edi
call fcn.00422900
cmp dword [edi + 0x10], 0
jne 0x422f7e
pop edi
mov dword [esi + 0x28], 0xffffffff
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
jmp 0x422edd
mov dword [esi + 4], 0x67
jmp 0x422ee2
cmp dword [edi + 4], 0
jne 0x422f7e
cmp dword [ebp - 0xc], 2
jge 0x42302a
mov eax, dword [esi + 4]
cmp eax, 0x29a
jne 0x422f92
cmp dword [edi + 4], 0
jne 0x42302a
cmp dword [edi + 4], 0
jne 0x422fa5
cmp dword [esi + 0x74], 0
jne 0x422fa5
cmp eax, 0x29a
je 0x423022
mov eax, dword [esi + 0x88]
cmp eax, 2
jne 0x422fb9
mov ecx, esi
call fcn.00424130
jmp 0x422fdf
cmp eax, 3
jne 0x422fc7
mov ecx, esi
call fcn.00423e90
jmp 0x422fdf
mov eax, dword [esi + 0x84]
push 2
push esi
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x475610]
call eax
add esp, 8
cmp eax, 2
je 0x422fe9
cmp eax, 3
jne 0x422ff0
mov dword [esi + 4], 0x29a
test eax, eax
je 0x423015
cmp eax, 2
je 0x423015
cmp eax, 1
jne 0x423022
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.00425130
add esp, 8
mov ecx, edi
call fcn.00422900
cmp dword [edi + 0x10], 0
jne 0x423022
mov dword [esi + 0x28], 0xffffffff
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [str.buffer_error]
mov dword [edi + 0x18], eax
mov eax, 0xfffffffb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [str.stream_error]
mov dword [edi + 0x18], eax
pop edi
mov eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret