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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
call fcn.00460edb
test eax, eax
jne 0x461836
cmp ebx, 5
ja 0x461836
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0xc], eax
je 0x46182e
cmp dword [edi + 4], eax
je 0x46103e
cmp dword [edi], eax
je 0x46182e
cmp dword [esi + 4], 0x29a
jne 0x461050
cmp ebx, 4
jne 0x46182e
cmp dword [edi + 0x10], 0
jne 0x461065
mov eax, dword [0x496064]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffb
jmp 0x461838
cmp dword [esi + 0x14], 0
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x28], ebx
je 0x461089
mov ecx, edi
call fcn.00460fba
cmp dword [edi + 0x10], 0
jne 0x4610b9
or dword [esi + 0x28], 0xffffffff
xor eax, eax
jmp 0x461839
cmp dword [edi + 4], 0
jne 0x4610b9
cmp ebx, 4
jle 0x461099
push 9
pop edx
jmp 0x46109b
xor edx, edx
cmp ecx, 4
jle 0x4610a5
push 9
pop eax
jmp 0x4610a7
xor eax, eax
add ecx, ecx
sub ecx, eax
lea eax, [ebx + ebx]
sub eax, edx
cmp eax, ecx
jg 0x4610b9
cmp ebx, 4
jne 0x461056
cmp dword [esi + 4], 0x29a
jne 0x4610c8
cmp dword [edi + 4], 0
jne 0x461056
cmp dword [esi + 4], 0x2a
push 0x1f
pop edx
mov dword [ebp - 0xc], edx
jne 0x46116e
mov ecx, dword [esi + 0x30]
shl ecx, 0xc
sub ecx, 0x7800
cmp dword [esi + 0x88], 2
jge 0x46110a
mov edx, dword [esi + 0x84]
cmp edx, 2
jl 0x46110a
xor eax, eax
cmp edx, 6
jge 0x461102
inc eax
jmp 0x46110c
setne al
add eax, 2
jmp 0x46110c
xor eax, eax
shl eax, 6
or ecx, eax
cmp dword [esi + 0x6c], 0
je 0x46111a
or ecx, 0x20
mov eax, ecx
xor edx, edx
div dword [ebp - 0xc]
push 0x1f
sub ecx, edx
pop eax
lea edx, [eax + ecx]
mov ecx, esi
call fcn.00460f96
cmp dword [esi + 0x6c], 0
je 0x46114c
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.00460f96
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.00460f96
mov dword [edi + 0x30], 1
mov ecx, edi
mov dword [esi + 4], 0x71
call fcn.00460fba
cmp dword [esi + 0x14], 0
jne 0x46107e
push 0x1f
pop edx
cmp dword [esi + 4], 0x39
jne 0x46136f
and dword [edi + 0x30], 0
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
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 ecx, dword [esi + 0x14]
test edx, edx
jne 0x461243
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov eax, dword [esi + 0x84]
mov edx, dword [esi + 0x14]
cmp eax, 9
jne 0x4611fb
push 2
jmp 0x46120f
cmp dword [esi + 0x88], 2
jge 0x46120d
cmp eax, 2
jl 0x46120d
xor ecx, ecx
jmp 0x461210
push 4
pop ecx
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.00460fba
cmp dword [esi + 0x14], 0
je 0x46136f
jmp 0x46107e
cmp dword [edx + 0x24], 0
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
mov edx, dword [esi + 0x14]
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]
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]
cmp eax, 9
jne 0x4612e4
push 2
jmp 0x4612f8
cmp dword [esi + 0x88], 2
jge 0x4612f6
cmp eax, 2
jl 0x4612f6
xor ecx, ecx
jmp 0x4612f9
push 4
pop ecx
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], 0
je 0x461341
mov ecx, dword [esi + 8]
mov al, byte [eax + 0x14]
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], 0
je 0x461364
cmp dword [esi + 8], 0
jne 0x461354
xor eax, eax
jmp 0x461361
mov ecx, dword [edi + 0x30]
push edx
mov edx, dword [esi + 8]
call fcn.0045e1b5
pop ecx
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x45
cmp dword [esi + 4], 0x45
jne 0x461470
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 0x10], 0
je 0x461469
movzx ecx, word [ecx + 0x14]
mov eax, dword [esi + 0x14]
sub ecx, dword [esi + 0x20]
jmp 0x461404
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 0x14]
push eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x20]
push eax
mov eax, dword [esi + 8]
add eax, dword [esi + 0x14]
push eax
call fcn.0047b850
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x14], ecx
cmp dword [eax + 0x2c], 0
je 0x4613e5
mov eax, dword [ebp - 8]
cmp ecx, eax
jbe 0x4613e5
mov edx, dword [esi + 8]
sub ecx, eax
add edx, eax
jne 0x4613d8
xor eax, eax
jmp 0x4613e2
push ecx
mov ecx, dword [edi + 0x30]
call fcn.0045e1b5
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, edi
add dword [esi + 0x20], eax
call fcn.00460fba
cmp dword [esi + 0x14], 0
jne 0x46107e
mov ecx, dword [ebp - 4]
xor eax, eax
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
add eax, ecx
mov dword [ebp - 4], ecx
cmp eax, dword [esi + 0xc]
ja 0x461392
mov eax, dword [esi + 0x1c]
push ecx
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x20]
push eax
mov eax, dword [esi + 0x14]
add eax, dword [esi + 8]
push eax
call fcn.0047b850
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [esi + 0x14], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
cmp dword [eax + 0x2c], 0
je 0x461465
mov eax, dword [ebp - 8]
cmp ecx, eax
jbe 0x461465
mov edx, dword [esi + 8]
sub ecx, eax
add edx, eax
jne 0x461458
xor eax, eax
jmp 0x461462
push ecx
mov ecx, dword [edi + 0x30]
call fcn.0045e1b5
pop ecx
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x49
cmp dword [esi + 4], 0x49
jne 0x461534
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c], 0
je 0x46152d
mov ecx, dword [esi + 0x14]
mov dword [ebp - 8], ecx
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x4614d4
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4614bf
mov eax, dword [esi + 0x14]
cmp eax, ecx
jbe 0x4614bf
mov edx, dword [esi + 8]
sub eax, ecx
add edx, ecx
jne 0x4614b2
xor eax, eax
jmp 0x4614bc
mov ecx, dword [edi + 0x30]
push eax
call fcn.0045e1b5
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.00460fba
cmp dword [esi + 0x14], 0
jne 0x46107e
and dword [ebp - 8], 0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x1c]
movzx edx, byte [eax + ecx]
lea eax, [ecx + 1]
mov ecx, dword [esi + 8]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x14]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
test edx, edx
je 0x4614ff
mov ecx, dword [ebp - 8]
jmp 0x46148d
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x461529
mov eax, dword [ebp - 8]
cmp ecx, eax
jbe 0x461529
mov edx, dword [esi + 8]
sub ecx, eax
add edx, eax
jne 0x46151c
xor eax, eax
jmp 0x461526
push ecx
mov ecx, dword [edi + 0x30]
call fcn.0045e1b5
pop ecx
mov dword [edi + 0x30], eax
and dword [esi + 0x20], 0
mov dword [esi + 4], 0x5b
cmp dword [esi + 4], 0x5b
jne 0x4615f4
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x24], 0
je 0x4615ed
mov ecx, dword [esi + 0x14]
mov dword [ebp - 8], ecx
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x461598
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x461583
mov eax, dword [esi + 0x14]
cmp eax, ecx
jbe 0x461583
mov edx, dword [esi + 8]
sub eax, ecx
add edx, ecx
jne 0x461576
xor eax, eax
jmp 0x461580
mov ecx, dword [edi + 0x30]
push eax
call fcn.0045e1b5
pop ecx
mov dword [edi + 0x30], eax
mov ecx, edi
call fcn.00460fba
cmp dword [esi + 0x14], 0
jne 0x46107e
and dword [ebp - 8], 0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + 0x24]
movzx edx, byte [eax + ecx]
lea eax, [ecx + 1]
mov ecx, dword [esi + 8]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x14]
mov byte [ecx + eax], dl
inc dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
test edx, edx
je 0x4615c3
mov ecx, dword [ebp - 8]
jmp 0x461551
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x4615ed
mov eax, dword [ebp - 8]
cmp ecx, eax
jbe 0x4615ed
mov edx, dword [esi + 8]
sub ecx, eax
add edx, eax
jne 0x4615e0
xor eax, eax
jmp 0x4615ea
push ecx
mov ecx, dword [edi + 0x30]
call fcn.0045e1b5
pop ecx
mov dword [edi + 0x30], eax
mov dword [esi + 4], 0x67
cmp dword [esi + 4], 0x67
jne 0x461659
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x2c], 0
je 0x461641
mov eax, dword [esi + 0x14]
add eax, 2
cmp eax, dword [esi + 0xc]
jbe 0x46161f
mov ecx, edi
call fcn.00460fba
cmp dword [esi + 0x14], 0
jne 0x46107e
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 8]
mov al, byte [edi + 0x30]
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
inc dword [esi + 0x14]
and dword [edi + 0x30], 0
mov ecx, edi
mov dword [esi + 4], 0x71
call fcn.00460fba
cmp dword [esi + 0x14], 0
jne 0x46107e
cmp dword [edi + 4], 0
jne 0x46167a
cmp dword [esi + 0x74], 0
jne 0x46167a
test ebx, ebx
je 0x461755
cmp dword [esi + 4], 0x29a
je 0x461755
mov ecx, dword [esi + 0x84]
test ecx, ecx
jne 0x46168d
push ebx
push esi
call fcn.00461cab
jmp 0x4616be
mov eax, dword [esi + 0x88]
cmp eax, 2
jne 0x4616a3
mov edx, ebx
mov ecx, esi
call fcn.00462946
jmp 0x4616c0
cmp eax, 3
jne 0x4616b3
mov edx, ebx
mov ecx, esi
call fcn.004626cc
jmp 0x4616c0
imul eax, ecx, 0xc
push ebx
push esi
call dword [eax + 0x493f90]
pop ecx
pop ecx
cmp eax, 2
je 0x4616ca
cmp eax, 3
jne 0x4616d1
mov dword [esi + 4], 0x29a
test eax, eax
je 0x46181f
cmp eax, 2
je 0x46181f
cmp eax, 1
jne 0x461755
cmp ebx, eax
jne 0x4616f4
mov ecx, esi
call fcn.00467252
jmp 0x461744
cmp ebx, 5
je 0x461744
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.0046716e
pop ecx
pop ecx
cmp ebx, 3
jne 0x461744
mov eax, dword [esi + 0x44]
xor edx, edx
mov ecx, dword [esi + 0x4c]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.004686d0
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x74], eax
jne 0x461744
mov dword [esi + 0x6c], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x16b4], eax
mov ecx, edi
call fcn.00460fba
cmp dword [edi + 0x10], 0
je 0x46107e
cmp ebx, 4
jne 0x461082
cmp dword [esi + 0x18], 0
jg 0x46176c
xor eax, eax
inc eax
jmp 0x461839
cmp dword [esi + 0x18], 2
jne 0x4617ec
mov edx, dword [esi + 0x14]
mov al, byte [edi + 0x30]
mov ecx, 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 0x461802
movzx edx, word [edi + 0x32]
mov ecx, esi
call fcn.00460f96
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.00460f96
mov ecx, edi
call fcn.00460fba
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x461815
neg eax
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x14], eax
sete al
jmp 0x461839
cmp dword [edi + 0x10], 0
jne 0x461082
jmp 0x46107e
mov eax, dword [0x496058]
mov dword [edi + 0x18], eax
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret