Function at 0x5e0369
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 0x5e0bec
cmp dword [edi + 0x20], 0
je 0x5e0bec
cmp dword [edi + 0x24], 0
je 0x5e0bec
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x5e0bec
cmp dword [esi], edi
jne 0x5e0bec
mov edx, dword [esi + 4]
cmp edx, 0x2a
je 0x5e03d4
cmp edx, 0x39
je 0x5e03d4
cmp edx, 0x45
je 0x5e03d4
cmp edx, 0x49
je 0x5e03d4
cmp edx, 0x5b
je 0x5e03d4
cmp edx, 0x67
je 0x5e03d4
cmp edx, 0x71
je 0x5e03d4
cmp edx, 0x29a
jne 0x5e0bec
cmp dword [edi + 0xc], 0
je 0x5e0be4
cmp dword [edi + 4], 0
je 0x5e03ed
cmp dword [edi], 0
je 0x5e0be4
cmp dword [edi + 0x10], 0
push ebx
je 0x5e0447
cmp dword [esi + 0x14], 0
mov eax, dword [esi + 0x28]
mov dword [esi + 0x28], 4
je 0x5e0418
call fcn.005e0319
cmp dword [edi + 0x10], 0
je 0x5e0bd4
mov edx, dword [esi + 4]
jmp 0x5e0435
cmp dword [edi + 4], 0
jne 0x5e0435
xor ecx, ecx
mov ebx, 9
cmp eax, 4
cmovg ecx, ebx
add eax, eax
sub eax, ecx
cmp eax, 8
cmovge edx, edx
cmp edx, 0x29a
jne 0x5e045b
cmp dword [edi + 4], 0
je 0x5e051c
mov eax, dword [0x1002b7b4]
pop ebx
mov dword [edi + 0x18], eax
mov eax, 0xfffffffb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edx, 0x2a
jne 0x5e051c
mov eax, dword [esi + 0x30]
shl eax, 0xc
sub eax, 0x7800
cmp dword [esi + 0x88], 2
jge 0x5e04a8
mov ecx, dword [esi + 0x84]
cmp ecx, 2
jl 0x5e04a8
cmp ecx, 6
jge 0x5e0492
mov edx, 0x40
lea ecx, [edx + 0x20]
jmp 0x5e04af
jne 0x5e049e
mov edx, 0x80
lea ecx, [edx + 0x20]
jmp 0x5e04af
mov edx, 0xc0
lea ecx, [edx + 0x20]
jmp 0x5e04af
xor edx, edx
mov ecx, 0x20
cmp dword [esi + 0x6c], 0
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.005e02e9
cmp dword [esi + 0x6c], 0
je 0x5e04f3
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.005e02e9
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.005e02e9
push 0
xor edx, edx
xor ecx, ecx
call fcn.005df9b9
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, edi
mov dword [esi + 4], 0x71
call fcn.005e0319
cmp dword [esi + 0x14], 0
jne 0x5e0bd4
mov eax, dword [esi + 4]
cmp eax, 0x39
jne 0x5e0729
mov dword [edi + 0x30], 0
mov eax, dword [esi + 0x14]
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
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x1c]
inc edx
mov dword [esi + 0x14], edx
test ebx, ebx
jne 0x5e05fb
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 0x5e05b1
mov cl, 2
jmp 0x5e05c5
cmp dword [esi + 0x88], 2
jge 0x5e05c3
cmp eax, 2
jl 0x5e05c3
xor cl, cl
jmp 0x5e05c5
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], 0xa
mov ecx, edi
inc dword [esi + 0x14]
mov dword [esi + 4], 0x71
call fcn.005e0319
cmp dword [esi + 0x14], 0
jne 0x5e0bd4
mov eax, dword [esi + 4]
jmp 0x5e0729
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 0x5e0696
mov cl, 2
jmp 0x5e06aa
cmp dword [esi + 0x88], 2
jge 0x5e06a8
cmp eax, 2
jl 0x5e06a8
xor cl, cl
jmp 0x5e06aa
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 0x5e06f8
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 0x5e0716
mov eax, dword [esi + 8]
test eax, eax
je 0x5e0713
mov ecx, dword [edi + 0x30]
push edx
mov edx, eax
call fcn.005dfc59
add esp, 4
mov dword [edi + 0x30], eax
mov dword [esi + 0x20], 0
mov eax, 0x45
mov dword [esi + 4], 0x45
cmp eax, 0x45
jne 0x5e0847
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x10], 0
je 0x5e083b
movzx edx, word [eax + 0x14]
sub edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
lea eax, [ecx + edx]
cmp eax, ebx
jbe 0x5e07e4
mov eax, ecx
mov dword [ebp - 0xc], ecx
nop dword [eax]
sub ebx, eax
mov eax, dword [esi + 0x1c]
push ebx
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x20]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp - 0xc]
push eax
call fcn.005e9379
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0x5e07b7
mov eax, dword [ebp - 8]
cmp ecx, eax
jbe 0x5e07b7
mov edx, dword [esi + 8]
sub ecx, eax
add edx, eax
jne 0x5e07a8
xor eax, eax
jmp 0x5e07b4
push ecx
mov ecx, dword [edi + 0x30]
call fcn.005dfc59
add esp, 4
mov dword [edi + 0x30], eax
add dword [esi + 0x20], ebx
mov ecx, edi
call fcn.005e0319
cmp dword [esi + 0x14], 0
jne 0x5e0bd4
mov edx, dword [ebp - 4]
xor ecx, ecx
sub edx, ebx
mov dword [ebp - 8], ecx
mov ebx, dword [esi + 0xc]
xor eax, eax
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
cmp edx, ebx
ja 0x5e0769
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi + 0x20]
push edx
mov eax, dword [eax + 0x10]
add eax, ebx
push eax
mov eax, dword [esi + 8]
add eax, ecx
push eax
call fcn.005e9379
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [esi + 0x1c]
add ecx, dword [esi + 0x14]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0x5e0834
mov eax, dword [ebp - 8]
cmp ecx, eax
jbe 0x5e0834
mov edx, dword [esi + 8]
sub ecx, eax
add edx, eax
jne 0x5e0825
xor eax, eax
jmp 0x5e0831
push ecx
mov ecx, dword [edi + 0x30]
call fcn.005dfc59
add esp, 4
mov dword [edi + 0x30], eax
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0x49
mov eax, 0x49
cmp eax, 0x49
jne 0x5e0918
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], 0
je 0x5e090c
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 8], ecx
nop dword [eax]
cmp ebx, dword [esi + 0xc]
jne 0x5e08b1
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x5e0897
cmp ebx, ecx
jbe 0x5e0897
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x5e0888
xor eax, eax
jmp 0x5e0894
mov ecx, dword [edi + 0x30]
push ebx
call fcn.005dfc59
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.005e0319
cmp dword [esi + 0x14], 0
jne 0x5e0bd4
mov dword [ebp - 8], 0
xor ebx, ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x1c]
mov dl, byte [ecx + 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
mov dword [esi + 0x14], ebx
test dl, dl
je 0x5e08d9
mov ecx, dword [ebp - 8]
jmp 0x5e0869
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x5e0905
mov eax, dword [ebp - 8]
cmp ebx, eax
jbe 0x5e0905
mov edx, dword [esi + 8]
sub ebx, eax
add edx, eax
jne 0x5e08f6
xor eax, eax
jmp 0x5e0902
mov ecx, dword [edi + 0x30]
push ebx
call fcn.005dfc59
add esp, 4
mov dword [edi + 0x30], eax
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0x5b
mov eax, 0x5b
cmp eax, 0x5b
jne 0x5e09e8
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], 0
je 0x5e09df
mov ecx, dword [esi + 0x14]
mov ebx, ecx
mov dword [ebp - 8], ecx
nop dword [eax]
cmp ebx, dword [esi + 0xc]
jne 0x5e0981
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x5e0967
cmp ebx, ecx
jbe 0x5e0967
mov edx, dword [esi + 8]
sub ebx, ecx
add edx, ecx
jne 0x5e0958
xor eax, eax
jmp 0x5e0964
mov ecx, dword [edi + 0x30]
push ebx
call fcn.005dfc59
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.005e0319
cmp dword [esi + 0x14], 0
jne 0x5e0bd4
mov dword [ebp - 8], 0
xor ebx, ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x24]
mov dl, byte [ecx + 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
mov dword [esi + 0x14], ebx
test dl, dl
je 0x5e09a9
mov ecx, dword [ebp - 8]
jmp 0x5e0939
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x5e09df
mov eax, dword [ebp - 8]
cmp ebx, eax
jbe 0x5e09df
mov edx, dword [esi + 8]
sub ebx, eax
add edx, eax
jne 0x5e09d0
xor eax, eax
mov dword [edi + 0x30], eax
mov dword [esi + 4], 0x67
jmp 0x5e09ed
mov ecx, dword [edi + 0x30]
push ebx
call fcn.005dfc59
add esp, 4
mov dword [edi + 0x30], eax
mov dword [esi + 4], 0x67
jmp 0x5e09ed
cmp eax, 0x67
jne 0x5e0a4f
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x5e0a37
mov edx, dword [esi + 0x14]
lea eax, [edx + 2]
cmp eax, dword [esi + 0xc]
jbe 0x5e0a13
mov ecx, edi
call fcn.005e0319
mov edx, dword [esi + 0x14]
test edx, edx
jne 0x5e0bd4
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 ecx, edi
mov dword [esi + 4], 0x71
call fcn.005e0319
cmp dword [esi + 0x14], 0
jne 0x5e0bd4
cmp dword [edi + 4], 0
jne 0x5e0a68
cmp dword [esi + 0x74], 0
jne 0x5e0a68
cmp dword [esi + 4], 0x29a
je 0x5e0af8
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x5e0a7c
push 4
push esi
call fcn.005e1119
jmp 0x5e0aad
mov ecx, dword [esi + 0x88]
cmp ecx, 2
jne 0x5e0a90
mov ecx, esi
call fcn.005e20b9
jmp 0x5e0ab0
cmp ecx, 3
jne 0x5e0a9e
mov ecx, esi
call fcn.005e1e09
jmp 0x5e0ab0
lea eax, [eax + eax*2]
mov eax, dword [eax*4 + 0x10029a88]
push 4
push esi
call eax
add esp, 8
cmp eax, 2
je 0x5e0aba
cmp eax, 3
jne 0x5e0ac1
mov dword [esi + 4], 0x29a
test eax, eax
je 0x5e0bce
cmp eax, 2
je 0x5e0bce
cmp eax, 1
jne 0x5e0af8
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.005e5539
add esp, 8
mov ecx, edi
call fcn.005e0319
cmp dword [edi + 0x10], 0
je 0x5e0bd4
mov eax, dword [esi + 0x18]
test eax, eax
jg 0x5e0b0b
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x5e0b96
mov ecx, dword [esi + 0x14]
movzx eax, byte [edi + 0x30]
mov edx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
movzx eax, byte [edi + 0x31]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
movzx eax, byte [edi + 0x32]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
movzx eax, byte [edi + 0x33]
mov ecx, dword [esi + 8]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
movzx eax, 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]
movzx eax, byte [edi + 9]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
movzx eax, byte [edi + 0xa]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
movzx eax, byte [edi + 0xb]
mov byte [edx + ecx], al
inc dword [esi + 0x14]
jmp 0x5e0bac
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.005e02e9
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.005e02e9
mov ecx, edi
call fcn.005e0319
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x5e0bbf
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], eax
pop ebx
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x10], 0
jne 0x5e0bdb
mov dword [esi + 0x28], 0xffffffff
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1002b7a8]
mov dword [edi + 0x18], eax
pop edi
mov eax, 0xfffffffe
pop esi
mov esp, ebp
pop ebp
ret