Function at 0x59ebd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
mov eax, dword [ebp + 8]
push eax
call fcn.0059e893
add esp, 4
test eax, eax
jne 0x59ec01
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc], 0
je 0x59ec01
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x59ec0b
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x59ec0b
mov eax, 0xfffffffe
jmp 0x5a0ee5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0x3f3f
jne 0x59ec2a
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f40
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x40]
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x59ec2a
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
sub ecx, 0x3f34
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0x1e
ja case.default.0x59ec9a
mov edx, dword [ebp - 0x44]
jmp dword [edx*4 + 0x5a0eea]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xc], 0
jne 0x59ecb9
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f40
jmp 0x5a0d08
cmp dword [ebp - 0x14], 0x10
jae 0x59ed03
cmp dword [ebp - 0x30], 0
jne 0x59ecca
jmp 0x5a0d0d
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59ecbf
jmp 0x59ecb9
xor ecx, ecx
test ecx, ecx
jne 0x59ecb9
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
and eax, 2
test eax, eax
je 0x59ed9d
cmp dword [ebp - 0x18], 0x8b1f
jne 0x59ed9d
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x28], 0
jne 0x59ed36
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x28], 0xf
push 0
push 0
push 0
call fcn.005a37ae
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0x10], dl
mov eax, dword [ebp - 0x18]
shr eax, 8
mov byte [ebp - 0xf], al
push 2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
push eax
call fcn.005a37ae
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
xor edx, edx
test edx, edx
jne 0x59ed4a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x59ed7a
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f35
jmp 0x5a0d08
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x24], 0
je 0x59edbd
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x24]
mov dword [edx + 0x30], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
and ecx, 1
test ecx, ecx
je 0x59edea
mov eax, dword [ebp - 0x18]
and eax, 0xff
shl eax, 8
mov edx, dword [ebp - 0x18]
shr edx, 8
add eax, edx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
je 0x59ee03
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x7d4dfc
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f51
jmp 0x5a0d08
mov ecx, dword [ebp - 0x18]
and ecx, 0xf
cmp ecx, 8
je 0x59ee27
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x7d4e14
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f51
jmp 0x5a0d08
mov ecx, dword [ebp - 0x18]
shr ecx, 4
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 4
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59ee27
mov ecx, dword [ebp - 0x18]
and ecx, 0xf
add ecx, 8
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x28], 0
jne 0x59ee5d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x28], ecx
cmp dword [ebp - 0x38], 0xf
ja 0x59ee6e
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
cmp eax, dword [edx + 0x28]
jbe 0x59ee87
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x7d4e30
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f51
jmp 0x5a0d08
mov eax, 1
mov ecx, dword [ebp - 0x38]
shl eax, cl
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
push 0
push 0
push 0
call fcn.005a341c
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x18]
and eax, 0x200
neg eax
sbb eax, eax
and al, 0xfe
add eax, 0x3f3f
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor edx, edx
test edx, edx
jne 0x59eed0
jmp 0x5a0d08
cmp dword [ebp - 0x14], 0x10
jae 0x59ef31
cmp dword [ebp - 0x30], 0
jne 0x59eefa
jmp 0x5a0d0d
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59eeef
jmp case.0x59ec9a.1
xor ecx, ecx
test ecx, ecx
jne case.0x59ec9a.1
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
and edx, 0xff
cmp edx, 8
je 0x59ef6a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x7d4e44
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f51
jmp 0x5a0d08
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x14]
and eax, 0xe000
test eax, eax
je 0x59ef92
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.unknown_header_flags_set
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f51
jmp 0x5a0d08
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x24], 0
je 0x59efac
mov ecx, dword [ebp - 0x18]
shr ecx, 8
and ecx, 1
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x24]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
and edx, 0x200
test edx, edx
je 0x59eff9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
and ecx, 4
test ecx, ecx
je 0x59eff9
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0x10], dl
mov eax, dword [ebp - 0x18]
shr eax, 8
mov byte [ebp - 0xf], al
push 2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
push eax
call fcn.005a37ae
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
xor edx, edx
test edx, edx
jne 0x59efc9
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x59eff9
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f36
cmp dword [ebp - 0x14], 0x20
jae 0x59f061
cmp dword [ebp - 0x30], 0
jne 0x59f028
jmp 0x5a0d0d
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59f01d
jmp case.0x59ec9a.2
xor ecx, ecx
test ecx, ecx
jne case.0x59ec9a.2
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x24], 0
je 0x59f07c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
and ecx, 0x200
test ecx, ecx
je 0x59f0db
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
and eax, 4
test eax, eax
je 0x59f0db
mov cl, byte [ebp - 0x18]
mov byte [ebp - 0x10], cl
mov edx, dword [ebp - 0x18]
shr edx, 8
mov byte [ebp - 0xf], dl
mov eax, dword [ebp - 0x18]
shr eax, 0x10
mov byte [ebp - 0xe], al
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
mov byte [ebp - 0xd], cl
push 4
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.005a37ae
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], eax
xor eax, eax
test eax, eax
jne 0x59f099
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor ecx, ecx
test ecx, ecx
jne 0x59f0db
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f37
cmp dword [ebp - 0x14], 0x10
jae 0x59f141
cmp dword [ebp - 0x30], 0
jne 0x59f10a
jmp 0x5a0d0d
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59f0ff
jmp case.0x59ec9a.3
xor ecx, ecx
test ecx, ecx
jne case.0x59ec9a.3
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x24], 0
je 0x59f170
mov eax, dword [ebp - 0x18]
and eax, 0xff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x24]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x18]
shr eax, 8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x24]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
and ecx, 0x200
test ecx, ecx
je 0x59f1bd
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
and eax, 4
test eax, eax
je 0x59f1bd
mov cl, byte [ebp - 0x18]
mov byte [ebp - 0x10], cl
mov edx, dword [ebp - 0x18]
shr edx, 8
mov byte [ebp - 0xf], dl
push 2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.005a37ae
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
xor edx, edx
test edx, edx
jne 0x59f18d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x59f1bd
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f38
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x14]
and eax, 0x400
test eax, eax
je 0x59f2bd
cmp dword [ebp - 0x14], 0x10
jae 0x59f236
cmp dword [ebp - 0x30], 0
jne 0x59f1ff
jmp 0x5a0d0d
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x59f1f4
jmp 0x59f1ee
xor edx, edx
test edx, edx
jne 0x59f1ee
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x44], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x24], 0
je 0x59f25a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
and ecx, 0x200
test ecx, ecx
je 0x59f2a7
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
and eax, 4
test eax, eax
je 0x59f2a7
mov cl, byte [ebp - 0x18]
mov byte [ebp - 0x10], cl
mov edx, dword [ebp - 0x18]
shr edx, 8
mov byte [ebp - 0xf], dl
push 2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.005a37ae
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
xor edx, edx
test edx, edx
jne 0x59f277
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x59f2a7
jmp 0x59f2d3
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x24], 0
je 0x59f2d3
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x24]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f39
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x14]
and eax, 0x400
test eax, eax
je 0x59f3e6
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x44]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
jbe 0x59f307
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x59f3d8
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x24], 0
je 0x59f37d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
cmp dword [ecx + 0x10], 0
je 0x59f37d
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0x44]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x24]
cmp eax, dword [edx + 0x18]
jbe 0x59f35a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx + 0x18]
sub edx, dword [ebp - 0x38]
mov dword [ebp - 0x48], edx
jmp 0x59f360
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0x38]
push edx
call fcn.005e77f0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
and ecx, 0x200
test ecx, ecx
je 0x59f3b7
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
and eax, 4
test eax, eax
je 0x59f3b7
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.005a37ae
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x44]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x44], 0
je 0x59f3e6
jmp 0x5a0d0d
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f3a
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x14]
and eax, 0x800
test eax, eax
je 0x59f4e6
cmp dword [ebp - 0x30], 0
jne 0x59f418
jmp 0x5a0d0d
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 4]
xor edx, edx
mov dl, byte [ecx]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x24], 0
je 0x59f47f
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x24]
cmp dword [eax + 0x1c], 0
je 0x59f47f
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [edx + 0x20]
jae 0x59f47f
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x24]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x44]
mov dl, byte [ebp - 0x38]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x44]
add ecx, 1
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x44], ecx
cmp dword [ebp - 0x38], 0
je 0x59f48d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
jb 0x59f41f
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
and edx, 0x200
test edx, edx
je 0x59f4c7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
and ecx, 4
test ecx, ecx
je 0x59f4c7
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.005a37ae
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x38], 0
je 0x59f4e4
jmp 0x5a0d0d
jmp 0x59f4fc
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x24], 0
je 0x59f4fc
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x24]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f3b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
and ecx, 0x1000
test ecx, ecx
je 0x59f5fc
cmp dword [ebp - 0x30], 0
jne 0x59f52f
jmp 0x5a0d0d
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x24], 0
je 0x59f596
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
cmp dword [ecx + 0x24], 0
je 0x59f596
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x24]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x44]
cmp edx, dword [eax + 0x28]
jae 0x59f596
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x44]
mov al, byte [ebp - 0x38]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x44]
add edx, 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x44], edx
cmp dword [ebp - 0x38], 0
je 0x59f5a4
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x30]
jb 0x59f536
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x14]
and eax, 0x200
test eax, eax
je 0x59f5dd
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
and edx, 4
test edx, edx
je 0x59f5dd
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
push eax
call fcn.005a37ae
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x38], 0
je 0x59f5fa
jmp 0x5a0d0d
jmp 0x59f612
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x24], 0
je 0x59f612
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x24]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f3c
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x14]
and eax, 0x200
test eax, eax
je 0x59f6c7
cmp dword [ebp - 0x14], 0x10
jae 0x59f677
cmp dword [ebp - 0x30], 0
jne 0x59f640
jmp 0x5a0d0d
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x59f635
jmp 0x59f62f
xor edx, edx
test edx, edx
jne 0x59f62f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
and ecx, 4
test ecx, ecx
je 0x59f6b3
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
and eax, 0xffff
cmp dword [ebp - 0x18], eax
je 0x59f6b3
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.header_crc_mismatch
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f51
jmp 0x5a0d08
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x59f6b3
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x24], 0
je 0x59f6f2
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x14]
sar eax, 9
and eax, 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x24]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x24]
mov dword [ecx + 0x30], 1
push 0
push 0
push 0
call fcn.005a37ae
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f3f
jmp 0x5a0d08
cmp dword [ebp - 0x14], 0x20
jae 0x59f769
cmp dword [ebp - 0x30], 0
jne 0x59f732
jmp 0x5a0d0d
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x59f727
jmp case.0x59ec9a.9
xor edx, edx
test edx, edx
jne case.0x59ec9a.9
mov eax, dword [ebp - 0x18]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x18]
shr ecx, 8
and ecx, 0xff00
add eax, ecx
mov edx, dword [ebp - 0x18]
and edx, 0xff00
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
shl ecx, 0x18
add eax, ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x30], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x59f7b6
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f3e
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x10], 0
jne 0x59f822
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x40], edx
xor eax, eax
test eax, eax
jne 0x59f7dd
mov eax, 2
jmp 0x5a0ee5
push 0
push 0
push 0
call fcn.005a341c
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x30], ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f3f
cmp dword [ebp + 0xc], 5
je 0x59f858
cmp dword [ebp + 0xc], 6
jne case.0x59ec9a.12
jmp 0x5a0d0d
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 8], 0
je 0x59f897
mov ecx, dword [ebp - 0x14]
and ecx, 7
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
and eax, 7
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x59f866
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f4e
jmp 0x5a0d08
cmp dword [ebp - 0x14], 3
jae 0x59f8df
cmp dword [ebp - 0x30], 0
jne 0x59f8a8
jmp 0x5a0d0d
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x59f89d
jmp 0x59f897
xor edx, edx
test edx, edx
jne 0x59f897
mov eax, dword [ebp - 0x18]
and eax, 1
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x18]
shr edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x59f8f1
mov edx, dword [ebp - 0x18]
and edx, 3
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x4c], 3
ja case.default.0x59f91a
mov eax, dword [ebp - 0x4c]
jmp dword [eax*4 + 0x5a0f66]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f41
jmp case.default.0x59f91a
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005a0f76
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f47
cmp dword [ebp + 0xc], 6
jne 0x59f966
mov ecx, dword [ebp - 0x18]
shr ecx, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 2
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59f949
jmp 0x5a0d0d
jmp case.default.0x59f91a
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f44
jmp case.default.0x59f91a
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x7d4e90
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f51
mov ecx, dword [ebp - 0x18]
shr ecx, 2
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 2
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne case.default.0x59f91a
jmp 0x5a0d08
mov ecx, dword [ebp - 0x14]
and ecx, 7
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
and eax, 7
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne case.0x59ec9a.13
cmp dword [ebp - 0x14], 0x20
jae 0x59fa0f
cmp dword [ebp - 0x30], 0
jne 0x59f9d8
jmp 0x5a0d0d
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59f9cd
jmp 0x59f9c7
xor ecx, ecx
test ecx, ecx
jne 0x59f9c7
mov edx, dword [ebp - 0x18]
and edx, 0xffff
mov eax, dword [ebp - 0x18]
shr eax, 0x10
xor eax, 0xffff
cmp edx, eax
je 0x59fa46
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x7d4ea4
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f51
jmp 0x5a0d08
mov eax, dword [ebp - 0x18]
and eax, 0xffff
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor edx, edx
test edx, edx
jne 0x59fa54
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f42
cmp dword [ebp + 0xc], 6
jne case.0x59ec9a.14
jmp 0x5a0d0d
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f43
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x44]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x59fb09
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x30]
jbe 0x59faa4
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x40]
jbe 0x59fab2
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x59fabd
jmp 0x5a0d0d
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.005e77f0
add esp, 0xc
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x44]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x44], ecx
jmp 0x5a0d08
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f3f
jmp 0x5a0d08
cmp dword [ebp - 0x14], 0xe
jae 0x59fb60
cmp dword [ebp - 0x30], 0
jne 0x59fb29
jmp 0x5a0d0d
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x59fb1e
jmp case.0x59ec9a.16
xor edx, edx
test edx, edx
jne case.0x59ec9a.16
mov eax, dword [ebp - 0x18]
and eax, 0x1f
add eax, 0x101
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp - 0x18]
shr edx, 5
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sub eax, 5
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x59fb77
mov edx, dword [ebp - 0x18]
and edx, 0x1f
add edx, 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x68], edx
mov ecx, dword [ebp - 0x18]
shr ecx, 5
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 5
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59fb9e
mov ecx, dword [ebp - 0x18]
and ecx, 0xf
add ecx, 4
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x60], ecx
mov eax, dword [ebp - 0x18]
shr eax, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 4
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x59fbc5
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x64], 0x11e
ja 0x59fbf2
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x68], 0x1e
jbe 0x59fc0b
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x7d4ec4
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f51
jmp 0x5a0d08
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x6c], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f45
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + 0x6c]
cmp edx, dword [ecx + 0x60]
jae 0x59fcc9
cmp dword [ebp - 0x14], 3
jae 0x59fc79
cmp dword [ebp - 0x30], 0
jne 0x59fc42
jmp 0x5a0d0d
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59fc37
jmp 0x59fc31
xor ecx, ecx
test ecx, ecx
jne 0x59fc31
mov edx, dword [ebp - 0x18]
and edx, 7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x6c]
xor eax, eax
mov ax, word [ecx*2 + 0x725510]
mov ecx, dword [ebp - 0x1c]
mov word [ecx + eax*2 + 0x74], dx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x6c]
add eax, 1
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x6c], eax
mov edx, dword [ebp - 0x18]
shr edx, 3
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sub eax, 3
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x59fcac
jmp case.0x59ec9a.17
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x6c], 0x13
jae 0x59fcfd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x6c]
xor edx, edx
mov dx, word [ecx*2 + 0x725510]
mov eax, dword [ebp - 0x1c]
mov word [eax + edx*2 + 0x74], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x6c]
add edx, 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x6c], edx
jmp 0x59fcc9
mov ecx, dword [ebp - 0x1c]
add ecx, 0x534
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x70], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x58], 7
mov ecx, dword [ebp - 0x1c]
add ecx, 0x2f4
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x58
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x70
push eax
push 0x13
mov ecx, dword [ebp - 0x1c]
add ecx, 0x74
push ecx
push 0
call fcn.005a2910
add esp, 0x18
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x59fd6f
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_code_lengths_set
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f51
jmp 0x5a0d08
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x6c], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f46
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x64]
mov edx, dword [ebp - 0x1c]
add ecx, dword [edx + 0x68]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x6c], ecx
jae 0x5a012f
mov ecx, dword [ebp - 0x1c]
mov edx, 1
mov ecx, dword [ecx + 0x58]
shl edx, cl
sub edx, 1
mov eax, dword [ebp - 0x18]
and eax, edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x50]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x27]
and ecx, 0xff
cmp ecx, dword [ebp - 0x14]
ja 0x59fdcc
jmp 0x59fe10
cmp dword [ebp - 0x30], 0
jne 0x59fdd7
jmp 0x5a0d0d
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59fdcc
jmp 0x59fd9b
mov ecx, dword [ebp - 0x26]
and ecx, 0xffff
cmp ecx, 0x10
jge 0x59fe6b
mov ecx, dword [ebp - 0x27]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x27]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x59fe1e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 0x1c]
mov ax, word [ebp - 0x26]
mov word [edx + ecx*2 + 0x74], ax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x6c]
add edx, 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x6c], edx
jmp 0x5a012a
mov ecx, dword [ebp - 0x26]
and ecx, 0xffff
cmp ecx, 0x10
jne 0x59ff5b
mov edx, dword [ebp - 0x27]
and edx, 0xff
add edx, 2
cmp dword [ebp - 0x14], edx
jae 0x59fed0
cmp dword [ebp - 0x30], 0
jne 0x59fe99
jmp 0x5a0d0d
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59fe8e
jmp 0x59fe7d
xor ecx, ecx
test ecx, ecx
jne 0x59fe7d
mov ecx, dword [ebp - 0x27]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x27]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x59fed6
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x6c], 0
jne 0x59ff1f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x7d4f04
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f51
jmp 0x5a012f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x6c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov ax, word [edx + ecx*2 + 0x72]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x18]
and ecx, 3
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
shr edx, 2
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sub eax, 2
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x59ff3e
jmp 0x5a00c8
mov edx, dword [ebp - 0x26]
and edx, 0xffff
cmp edx, 0x11
jne 0x5a001d
mov eax, dword [ebp - 0x27]
and eax, 0xff
add eax, 3
cmp dword [ebp - 0x14], eax
jae 0x59ffbf
cmp dword [ebp - 0x30], 0
jne 0x59ff88
jmp 0x5a0d0d
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x59ff7d
jmp 0x59ff6d
xor edx, edx
test edx, edx
jne 0x59ff6d
mov ecx, dword [ebp - 0x27]
and ecx, 0xff
mov eax, dword [ebp - 0x18]
shr eax, cl
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x27]
and ecx, 0xff
mov edx, dword [ebp - 0x14]
sub edx, ecx
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x59ffc5
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x18]
and ecx, 7
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
shr edx, 3
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
sub eax, 3
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x5a0000
jmp 0x5a00c8
mov edx, dword [ebp - 0x27]
and edx, 0xff
add edx, 7
cmp dword [ebp - 0x14], edx
jae 0x5a0070
cmp dword [ebp - 0x30], 0
jne 0x5a0039
jmp 0x5a0d0d
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a002e
jmp 0x5a001d
xor ecx, ecx
test ecx, ecx
jne 0x5a001d
mov ecx, dword [ebp - 0x27]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x27]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x5a0076
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x18]
and eax, 0x7f
add eax, 0xb
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
shr ecx, 7
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 7
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a00b0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x6c]
add edx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x64]
mov eax, dword [ebp - 0x1c]
add ecx, dword [eax + 0x68]
cmp edx, ecx
jbe 0x5a00f7
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], 0x7d4f20
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f51
jmp 0x5a012f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
test eax, eax
je 0x5a012a
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 0x1c]
mov dx, word [ebp - 0x38]
mov word [ecx + eax*2 + 0x74], dx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x6c]
add ecx, 1
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x6c], ecx
jmp 0x5a00f7
jmp case.0x59ec9a.18
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0x3f51
jne 0x5a0140
jmp 0x5a0d08
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx + 0x274]
test edx, edx
jne 0x5a0169
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_code____missing_end_of_block
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f51
jmp 0x5a0d08
mov edx, dword [ebp - 0x1c]
add edx, 0x534
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x70], edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x70]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x58], 9
mov edx, dword [ebp - 0x1c]
add edx, 0x2f4
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x58
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x70
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x64]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x74
push ecx
push 1
call fcn.005a2910
add esp, 0x18
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5a01e0
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f51
jmp 0x5a0d08
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x70]
mov dword [ecx + 0x54], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x5c], 6
mov edx, dword [ebp - 0x1c]
add edx, 0x2f4
push edx
mov eax, dword [ebp - 0x1c]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x70
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x68]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x64]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx*2 + 0x74]
push ecx
push 2
call fcn.005a2910
add esp, 0x18
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5a024f
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_distances_set
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f51
jmp 0x5a0d08
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f47
cmp dword [ebp + 0xc], 6
jne case.0x59ec9a.19
jmp 0x5a0d0d
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f48
cmp dword [ebp - 0x30], 6
jb 0x5a0329
cmp dword [ebp - 0x40], 0x102
jb 0x5a0329
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x40], edx
xor eax, eax
test eax, eax
jne 0x5a0285
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005a2140
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a02d0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0x3f3f
jne 0x5a0324
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1bc8], 0xffffffff
jmp 0x5a0d08
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1bc8], 0
mov ecx, dword [ebp - 0x1c]
mov edx, 1
mov ecx, dword [ecx + 0x58]
shl edx, cl
sub edx, 1
mov eax, dword [ebp - 0x18]
and eax, edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x50]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x27]
and ecx, 0xff
cmp ecx, dword [ebp - 0x14]
ja 0x5a0367
jmp 0x5a03ab
cmp dword [ebp - 0x30], 0
jne 0x5a0372
jmp 0x5a0d0d
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a0367
jmp 0x5a0336
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
test ecx, ecx
je 0x5a04bf
mov edx, dword [ebp - 0x28]
and edx, 0xff
and edx, 0xf0
test edx, edx
jne 0x5a04bf
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 6]
and edx, 0xffff
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov eax, dword [ebp - 8]
and eax, 0xff
add ecx, eax
mov eax, 1
shl eax, cl
sub eax, 1
mov esi, dword [ebp - 0x18]
and esi, eax
mov ecx, dword [ebp - 7]
and ecx, 0xff
shr esi, cl
add edx, esi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x50]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 7]
and edx, 0xff
mov eax, dword [ebp - 0x27]
and eax, 0xff
add edx, eax
cmp edx, dword [ebp - 0x14]
ja 0x5a0437
jmp 0x5a047c
cmp dword [ebp - 0x30], 0
jne 0x5a0442
jmp 0x5a0d0d
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x14]
shl eax, cl
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
xor ecx, ecx
test ecx, ecx
jne 0x5a0437
jmp 0x5a03d9
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 7]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x5a047c
mov eax, dword [ebp - 7]
and eax, 0xff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1bc8]
add edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1bc8], edx
mov ecx, dword [ebp - 0x27]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x27]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x5a04bf
mov eax, dword [ebp - 0x27]
and eax, 0xff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1bc8]
add edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1bc8], edx
mov ecx, dword [ebp - 0x26]
and ecx, 0xffff
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 0x28]
and eax, 0xff
test eax, eax
jne 0x5a052c
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f4d
jmp 0x5a0d08
mov edx, dword [ebp - 0x28]
and edx, 0xff
and edx, 0x20
test edx, edx
je 0x5a0558
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1bc8], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f3f
jmp 0x5a0d08
mov edx, dword [ebp - 0x28]
and edx, 0xff
and edx, 0x40
test edx, edx
je 0x5a0581
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x7d4f98
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f51
jmp 0x5a0d08
mov edx, dword [ebp - 0x28]
and edx, 0xff
and edx, 0xf
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x4c], edx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f49
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x4c], 0
je 0x5a065a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x4c]
jae 0x5a05f9
cmp dword [ebp - 0x30], 0
jne 0x5a05c0
jmp 0x5a0d0d
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a05b5
jmp 0x5a05aa
xor ecx, ecx
test ecx, ecx
jne 0x5a05aa
mov edx, dword [ebp - 0x1c]
mov eax, 1
mov ecx, dword [edx + 0x4c]
shl eax, cl
sub eax, 1
mov ecx, dword [ebp - 0x18]
and ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x44]
add eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 0x4c]
shr eax, cl
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
sub edx, dword [ecx + 0x4c]
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a0622
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1bc8]
mov eax, dword [ebp - 0x1c]
add edx, dword [eax + 0x4c]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1bc8], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x44]
mov dword [edx + 0x1bcc], ecx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f4a
mov eax, dword [ebp - 0x1c]
mov edx, 1
mov ecx, dword [eax + 0x5c]
shl edx, cl
sub edx, 1
mov eax, dword [ebp - 0x18]
and eax, edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x54]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x27]
and ecx, 0xff
cmp ecx, dword [ebp - 0x14]
ja 0x5a06a4
jmp 0x5a06e8
cmp dword [ebp - 0x30], 0
jne 0x5a06af
jmp 0x5a0d0d
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax]
mov edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a06a4
jmp case.0x59ec9a.22
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
and ecx, 0xf0
test ecx, ecx
jne 0x5a07ec
mov edx, dword [ebp - 0x28]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 6]
and eax, 0xffff
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov edx, dword [ebp - 8]
and edx, 0xff
add ecx, edx
mov edx, 1
shl edx, cl
sub edx, 1
mov esi, dword [ebp - 0x18]
and esi, edx
mov ecx, dword [ebp - 7]
and ecx, 0xff
shr esi, cl
add eax, esi
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x54]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov edx, dword [ebp - 0x27]
and edx, 0xff
add ecx, edx
cmp ecx, dword [ebp - 0x14]
ja 0x5a0764
jmp 0x5a07a9
cmp dword [ebp - 0x30], 0
jne 0x5a076f
jmp 0x5a0d0d
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a0764
jmp 0x5a0705
mov ecx, dword [ebp - 7]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 7]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x5a07a9
mov eax, dword [ebp - 7]
and eax, 0xff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1bc8]
add edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1bc8], edx
mov ecx, dword [ebp - 0x27]
and ecx, 0xff
mov edx, dword [ebp - 0x18]
shr edx, cl
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x27]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x14], ecx
xor edx, edx
test edx, edx
jne 0x5a07ec
mov eax, dword [ebp - 0x27]
and eax, 0xff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1bc8]
add edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1bc8], edx
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
and ecx, 0x40
test ecx, ecx
je 0x5a0858
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x7d4fb4
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f51
jmp 0x5a0d08
mov ecx, dword [ebp - 0x26]
and ecx, 0xffff
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x48], ecx
mov eax, dword [ebp - 0x28]
and eax, 0xff
and eax, 0xf
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f4b
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x4c], 0
je 0x5a093d
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0x4c]
jae 0x5a08dc
cmp dword [ebp - 0x30], 0
jne 0x5a08a5
jmp 0x5a0d0d
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a089a
jmp 0x5a088f
xor ecx, ecx
test ecx, ecx
jne 0x5a088f
mov edx, dword [ebp - 0x1c]
mov eax, 1
mov ecx, dword [edx + 0x4c]
shl eax, cl
sub eax, 1
mov ecx, dword [ebp - 0x18]
and ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x48]
add eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 0x4c]
shr eax, cl
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
sub edx, dword [ecx + 0x4c]
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a0905
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x1bc8]
mov eax, dword [ebp - 0x1c]
add edx, dword [eax + 0x4c]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x1bc8], edx
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f4c
cmp dword [ebp - 0x40], 0
jne 0x5a0952
jmp 0x5a0d0d
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x48]
cmp edx, dword [ebp - 4]
jbe 0x5a09fd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x48]
sub ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jbe 0x5a09a6
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x1bc4], 0
je 0x5a09a6
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0x7d4fcc
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f51
jmp 0x5a0d08
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x34]
jbe 0x5a09d3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x2c]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x38]
add edx, eax
mov dword [ebp - 0x34], edx
jmp 0x5a09e7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x34]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x38]
add eax, ecx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x44]
jbe 0x5a09fb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 4], ecx
jmp 0x5a0a12
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
sub eax, dword [edx + 0x48]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x44]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x40]
jbe 0x5a0a20
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x44]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x5a0a38
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x44], 0
jne 0x5a0a76
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f48
jmp 0x5a0d08
cmp dword [ebp - 0x40], 0
jne 0x5a0a86
jmp 0x5a0d0d
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax + 0x44]
mov byte [edx], cl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x40]
sub eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f48
jmp 0x5a0d08
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0xc], 0
je 0x5a0c31
cmp dword [ebp - 0x14], 0x20
jae 0x5a0b07
cmp dword [ebp - 0x30], 0
jne 0x5a0ad0
jmp 0x5a0d0d
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a0ac5
jmp 0x5a0abf
xor ecx, ecx
test ecx, ecx
jne 0x5a0abf
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x40]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x20], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
and ecx, 4
test ecx, ecx
je 0x5a0b9e
cmp dword [ebp - 0xc], 0
je 0x5a0b9e
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x5a0b6f
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
push eax
call fcn.005a37ae
add esp, 0xc
mov dword [ebp - 0x50], eax
jmp 0x5a0b8c
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.005a341c
add esp, 0xc
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x50]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
and edx, 4
test edx, edx
je 0x5a0c1d
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
je 0x5a0bc2
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x54], ecx
jmp 0x5a0bf9
mov edx, dword [ebp - 0x18]
shr edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff00
add edx, eax
mov ecx, dword [ebp - 0x18]
and ecx, 0xff00
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 0x18]
and eax, 0xff
shl eax, 0x18
add edx, eax
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x54]
cmp edx, dword [ecx + 0x1c]
je 0x5a0c1d
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x7d4fec
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f51
jmp 0x5a0d08
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor edx, edx
test edx, edx
jne 0x5a0c1d
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0x3f4f
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0xc], 0
je 0x5a0cd8
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x5a0cd8
cmp dword [ebp - 0x14], 0x20
jae 0x5a0c9d
cmp dword [ebp - 0x30], 0
jne 0x5a0c66
jmp 0x5a0d0d
mov eax, dword [ebp - 0x30]
sub eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x14]
shl edx, cl
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
xor eax, eax
test eax, eax
jne 0x5a0c5b
jmp 0x5a0c55
xor ecx, ecx
test ecx, ecx
jne 0x5a0c55
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0x20]
je 0x5a0cc4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.incorrect_length_check
mov edx, dword [ebp - 0x1c]
mov dword [edx + 4], 0x3f51
jmp 0x5a0d08
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
test eax, eax
jne 0x5a0cc4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f50
mov dword [ebp - 0x20], 1
jmp 0x5a0d0d
mov dword [ebp - 0x20], 0xfffffffd
jmp 0x5a0d0d
mov eax, 0xfffffffc
jmp 0x5a0ee5
mov eax, 0xfffffffe
jmp 0x5a0ee5
jmp 0x59ec78
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x40]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x40], ecx
xor edx, edx
test edx, edx
jne 0x5a0d0d
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x2c], 0
jne 0x5a0d7a
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x10]
je 0x5a0daf
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0x3f51
jge 0x5a0daf
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0x3f4e
jl 0x5a0d7a
cmp dword [ebp + 0xc], 4
je 0x5a0daf
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
sub eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005a0fa3
add esp, 0xc
test eax, eax
je 0x5a0daf
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0x3f52
mov eax, 0xfffffffc
jmp 0x5a0ee5
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
sub eax, dword [edx + 4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
sub edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x20], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
and ecx, 4
test ecx, ecx
je 0x5a0e64
cmp dword [ebp - 0xc], 0
je 0x5a0e64
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x5a0e32
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.005a37ae
add esp, 0xc
mov dword [ebp - 0x58], eax
jmp 0x5a0e52
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
sub ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
push eax
call fcn.005a341c
add esp, 0xc
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0x30], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 4], 0x3f47
je 0x5a0e85
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0x3f42
je 0x5a0e85
mov dword [ebp - 0x5c], 0
jmp 0x5a0e8c
mov dword [ebp - 0x5c], 0x100
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 8]
neg edx
sbb edx, edx
and edx, 0x40
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x40]
add ecx, edx
mov edx, dword [ebp - 0x1c]
xor eax, eax
cmp dword [edx + 4], 0x3f3f
setne al
dec eax
and eax, 0x80
mov edx, dword [ebp - 0x5c]
add edx, ecx
add eax, edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x5a0ecf
cmp dword [ebp - 0xc], 0
je 0x5a0ed5
cmp dword [ebp + 0xc], 4
jne 0x5a0ee2
cmp dword [ebp - 0x20], 0
jne 0x5a0ee2
mov dword [ebp - 0x20], 0xfffffffb
mov eax, dword [ebp - 0x20]
pop esi
mov esp, ebp
pop ebp
ret