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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x2c
push ebx
xor edx, edx
push esi
push edi
cmp ecx, edx
je case.default.0x1001636e
mov esi, dword [ecx + 0x1c]
cmp esi, edx
je case.default.0x1001636e
cmp dword [ecx + 0xc], edx
je case.default.0x1001636e
cmp dword [ecx], edx
jne 0x10016326
cmp dword [ecx + 4], edx
jne case.default.0x1001636e
cmp dword [esi], 0xb
jne 0x10016331
mov dword [esi], 0xc
mov eax, dword [ecx + 0xc]
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x24], edx
cmp eax, 0x1c
jbe switch.0x1001636e
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp + 8]
jmp dword [eax*4 + 0x1001739b]
mov eax, dword [esi + 8]
test eax, eax
jne 0x100163a6
mov dword [esi], 0xc
jmp 0x10017270
cmp dword [ebp - 8], 0
je 0x100172be
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, edi
shl edx, cl
add ebx, edx
inc dword [ebp - 4]
add edi, 8
cmp edi, 0x10
jb 0x10016387
test al, 2
je 0x100163e0
cmp ebx, 0x8b1f
jne 0x100163e0
xor edi, edi
push 2
lea edx, [ebp - 0x14]
xor eax, eax
mov dword [esi + 0x18], edi
mov byte [ebp - 0x14], 0x1f
mov byte [ebp - 0x13], 0x8b
call fcn.10011b4e
mov dword [esi + 0x18], eax
xor ebx, ebx
mov dword [esi], 1
jmp 0x10017270
mov eax, dword [esi + 0x20]
and dword [esi + 0x10], 0
test eax, eax
je 0x100163ef
or dword [eax + 0x30], 0xffffffff
test byte [esi + 8], 1
je 0x1001726a
movzx eax, bl
shl eax, 8
mov ecx, ebx
shr ecx, 8
add eax, ecx
push 0x1f
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x1001726a
mov eax, ebx
and al, 0xf
cmp al, 8
jne 0x1001726a
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
add ecx, 8
sub edi, 4
cmp ecx, dword [esi + 0x24]
ja 0x1001726a
xor eax, eax
inc eax
shr ebx, 8
mov edx, eax
shl edx, cl
mov ecx, dword [ebp + 8]
not ebx
and ebx, 2
or ebx, 9
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
mov dword [ecx + 0x28], eax
mov dword [esi], ebx
xor ebx, ebx
xor edi, edi
jmp 0x10017270
cmp edi, 0x10
jae 0x1001648d
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 4]
cmp edi, 0x10
jb 0x10016466
mov ecx, dword [ebp + 8]
mov dword [esi + 0x10], ebx
cmp bl, 8
jne 0x1001726a
test ebx, 0xe000
jne 0x1001726a
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100164b6
mov edx, ebx
shr edx, 8
and edx, 1
mov dword [eax], edx
test dword [esi + 0x10], 0x200
je 0x100164db
mov eax, dword [esi + 0x18]
mov byte [ebp - 0x14], bl
shr ebx, 8
push 2
lea edx, [ebp - 0x14]
mov byte [ebp - 0x13], bl
call fcn.10011b4e
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 2
cmp edi, 0x20
jae 0x10016511
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 4]
cmp edi, 0x20
jb 0x100164ea
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1001651b
mov dword [eax + 4], ebx
test dword [esi + 0x10], 0x200
je 0x10016550
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x13], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x12], al
mov eax, dword [esi + 0x18]
shr ebx, 0x18
push 4
lea edx, [ebp - 0x14]
mov byte [ebp - 0x11], bl
call fcn.10011b4e
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 3
cmp edi, 0x10
jae 0x10016586
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 4]
cmp edi, 0x10
jb 0x1001655f
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100165a3
mov edx, ebx
and edx, 0xff
mov dword [eax + 8], edx
mov edx, dword [esi + 0x20]
mov eax, ebx
shr eax, 8
mov dword [edx + 0xc], eax
test dword [esi + 0x10], 0x200
je 0x100165c8
mov eax, dword [esi + 0x18]
mov byte [ebp - 0x14], bl
shr ebx, 8
push 2
lea edx, [ebp - 0x14]
mov byte [ebp - 0x13], bl
call fcn.10011b4e
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 4
test dword [esi + 0x10], 0x400
je 0x1001663f
cmp edi, 0x10
jae 0x10016607
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 4]
cmp edi, 0x10
jb 0x100165e0
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x20]
mov dword [esi + 0x40], ebx
test eax, eax
je 0x10016614
mov dword [eax + 0x14], ebx
test dword [esi + 0x10], 0x200
je 0x10016639
mov eax, dword [esi + 0x18]
mov byte [ebp - 0x14], bl
shr ebx, 8
push 2
lea edx, [ebp - 0x14]
mov byte [ebp - 0x13], bl
call fcn.10011b4e
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18], eax
xor ebx, ebx
xor edi, edi
jmp 0x1001664a
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1001664a
and dword [eax + 0x10], 0
mov dword [esi], 5
test dword [esi + 0x10], 0x400
je 0x100166e1
mov edx, dword [esi + 0x40]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp edx, eax
jbe 0x1001666d
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100166d4
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100166ae
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100166ae
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
sub eax, edx
mov edx, dword [ebp - 0xc]
add edx, eax
cmp edx, ecx
jbe 0x10016699
sub ecx, eax
jmp 0x1001669c
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x28]
push dword [ebp - 4]
add ecx, eax
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
test dword [esi + 0x10], 0x200
je 0x100166c8
push dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x18]
call fcn.10011b4e
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 8], eax
add dword [ebp - 4], eax
sub dword [esi + 0x40], eax
cmp dword [esi + 0x40], 0
jne 0x100172be
mov ecx, dword [ebp + 8]
and dword [esi + 0x40], 0
mov dword [esi], 6
test dword [esi + 0x10], 0x800
je 0x1001676f
cmp dword [ebp - 8], 0
je 0x100172be
xor ecx, ecx
mov eax, dword [ebp - 4]
movzx eax, byte [ecx + eax]
inc ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x10016730
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x28], edx
test edx, edx
je 0x10016730
mov edx, dword [esi + 0x40]
cmp edx, dword [ecx + 0x20]
jae 0x10016730
mov ecx, dword [ebp - 0x28]
mov byte [ecx + edx], al
inc dword [esi + 0x40]
test eax, eax
je 0x1001673c
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jb 0x10016700
test dword [esi + 0x10], 0x200
je 0x10016759
push dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x18]
call fcn.10011b4e
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
sub dword [ebp - 8], ecx
add dword [ebp - 4], ecx
test eax, eax
jne 0x100172be
mov ecx, dword [ebp + 8]
jmp 0x1001677a
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1001677a
and dword [eax + 0x1c], 0
and dword [esi + 0x40], 0
mov dword [esi], 7
test dword [esi + 0x10], 0x1000
je 0x10016808
cmp dword [ebp - 8], 0
je 0x100172be
xor ecx, ecx
mov eax, dword [ebp - 4]
movzx eax, byte [ecx + eax]
inc ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x100167c9
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x28], edx
test edx, edx
je 0x100167c9
mov edx, dword [esi + 0x40]
cmp edx, dword [ecx + 0x28]
jae 0x100167c9
mov ecx, dword [ebp - 0x28]
mov byte [ecx + edx], al
inc dword [esi + 0x40]
test eax, eax
je 0x100167d5
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jb 0x10016799
test dword [esi + 0x10], 0x200
je 0x100167f2
push dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x18]
call fcn.10011b4e
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
sub dword [ebp - 8], ecx
add dword [ebp - 4], ecx
test eax, eax
jne 0x100172be
mov ecx, dword [ebp + 8]
jmp 0x10016813
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10016813
and dword [eax + 0x24], 0
mov dword [esi], 8
test dword [esi + 0x10], 0x200
je 0x1001685e
cmp edi, 0x10
jae 0x1001684e
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 4]
cmp edi, 0x10
jb 0x10016827
mov ecx, dword [ebp + 8]
movzx eax, word [esi + 0x18]
cmp ebx, eax
jne 0x1001726a
xor ebx, ebx
xor edi, edi
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1001687b
mov edx, dword [esi + 0x10]
sar edx, 9
and edx, 1
mov dword [eax + 0x2c], edx
mov eax, dword [esi + 0x20]
mov dword [eax + 0x30], 1
and dword [esi + 0x18], 0
and dword [ecx + 0x28], 0
jmp 0x10016f0d
cmp edi, 0x20
jae 0x100168b4
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 4]
cmp edi, 0x20
jb 0x1001688d
mov ecx, dword [ebp + 8]
mov edx, ebx
mov eax, 0xff00
and edx, eax
mov edi, ebx
shl edi, 0x10
add edx, edi
mov edi, ebx
shr edi, 8
and edi, eax
shl edx, 8
shr ebx, 0x18
add edx, edi
lea eax, [edx + ebx]
mov dword [esi + 0x18], eax
mov dword [ecx + 0x28], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 0xa
cmp dword [esi + 0xc], 0
je 0x10017280
xor eax, eax
inc eax
mov dword [esi + 0x18], eax
mov dword [ecx + 0x28], eax
mov dword [esi], 0xb
cmp dword [esi + 4], 0
je 0x10016938
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
mov dword [esi], 0x18
jmp 0x10017270
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
cmp edi, 3
jb 0x10016919
mov eax, ebx
and eax, 1
shr ebx, 1
mov dword [esi + 4], eax
mov eax, ebx
and eax, 3
dec edi
sub eax, 0
je 0x1001698f
dec eax
je 0x1001696b
dec eax
je 0x10016963
dec eax
jne 0x10016995
mov dword [esi], 0x1b
jmp 0x10016995
mov dword [esi], 0xf
jmp 0x10016995
mov dword [esi + 0x4c], 0x10026b18
mov dword [esi + 0x54], 9
mov dword [esi + 0x50], 0x10027318
mov dword [esi + 0x58], 5
mov dword [esi], 0x12
jmp 0x10016995
mov dword [esi], 0xd
shr ebx, 2
dec edi
dec edi
jmp 0x10017270
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
jmp 0x100169c9
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
cmp edi, 0x20
jb 0x100169aa
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
jne 0x1001726a
xor ebx, ebx
mov dword [esi + 0x40], eax
xor edi, edi
mov dword [esi], 0xe
mov eax, dword [esi + 0x40]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10016f0d
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jbe 0x10016a0a
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
jbe 0x10016a15
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100172be
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x18]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0xc]
sub dword [ebp - 8], eax
add dword [ebp - 4], eax
sub dword [ebp - 0x10], eax
add dword [ebp - 0x18], eax
add esp, 0xc
sub dword [esi + 0x40], eax
jmp 0x10017270
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
cmp edi, 0xe
jb 0x10016a47
mov eax, ebx
and eax, 0x1f
add eax, 0x101
mov dword [esi + 0x60], eax
shr ebx, 5
mov eax, ebx
and eax, 0x1f
inc eax
shr ebx, 5
mov dword [esi + 0x64], eax
mov eax, ebx
and eax, 0xf
add eax, 4
shr ebx, 4
sub edi, 0xe
cmp dword [esi + 0x60], 0x11e
mov dword [esi + 0x5c], eax
ja 0x1001726a
cmp dword [esi + 0x64], 0x1e
ja 0x1001726a
and dword [esi + 0x68], 0
mov dword [esi], 0x10
jmp case.0x1001636e.16
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
cmp edi, 3
jb 0x10016abb
mov ecx, dword [esi + 0x68]
movzx ecx, word [ecx*2 + 0x10027398]
mov eax, ebx
and eax, 7
mov word [esi + ecx*2 + 0x70], ax
inc dword [esi + 0x68]
shr ebx, 3
sub edi, 3
mov eax, dword [esi + 0x68]
cmp eax, dword [esi + 0x5c]
jb 0x10016ada
jmp 0x10016b1c
mov eax, dword [esi + 0x68]
movzx eax, word [eax*2 + 0x10027398]
xor ecx, ecx
mov word [esi + eax*2 + 0x70], cx
inc dword [esi + 0x68]
cmp dword [esi + 0x68], 0x13
jb 0x10016b07
lea eax, [esi + 0x530]
lea ecx, [esi + 0x6c]
mov dword [ecx], eax
mov dword [esi + 0x4c], eax
lea edx, [esi + 0x2f0]
push edx
lea eax, [esi + 0x54]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [esi + 0x70]
push eax
push 0
call fcn.1001785f
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1001726a
and dword [esi + 0x68], eax
mov dword [esi], 0x11
jmp case.0x1001636e.17
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
mov ecx, dword [esi + 0x54]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x4c]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x20], eax
cmp ecx, edi
ja 0x10016b68
mov ecx, eax
shr ecx, 0x10
cmp cx, 0x10
jae 0x10016bfd
mov ecx, eax
shr ecx, 8
movzx ecx, cl
jmp 0x10016bde
cmp dword [ebp - 8], 0
je 0x100172be
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, edi
shl edx, cl
movzx ecx, ah
add ebx, edx
inc dword [ebp - 4]
add edi, 8
cmp edi, ecx
jb 0x10016bbc
movzx ecx, ah
mov eax, dword [esi + 0x68]
shr ebx, cl
sub edi, ecx
mov cx, word [ebp - 0x1e]
mov word [esi + eax*2 + 0x70], cx
inc dword [esi + 0x68]
jmp case.0x1001636e.17
cmp word [ebp - 0x1e], 0x10
jne 0x10016c5a
movzx eax, ah
jmp 0x10016c28
cmp dword [ebp - 8], 0
je 0x100172be
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, edi
shl edx, cl
add ebx, edx
inc dword [ebp - 4]
add edi, 8
lea ecx, [eax + 2]
cmp edi, ecx
jb 0x10016c09
mov ecx, eax
sub edi, eax
mov eax, dword [esi + 0x68]
shr ebx, cl
test eax, eax
je 0x1001726a
movzx eax, word [esi + eax*2 + 0x6e]
mov dword [ebp - 0x20], eax
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
dec edi
dec edi
jmp 0x10016cdf
cmp word [ebp - 0x1e], 0x11
movzx edx, ah
jne 0x10016cbe
jmp 0x10016c85
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
lea eax, [edx + 3]
cmp edi, eax
jb 0x10016c66
mov ecx, edx
shr ebx, cl
push 0xfffffffffffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x10016cd6
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
lea eax, [edx + 7]
cmp edi, eax
jb 0x10016c9f
mov ecx, edx
shr ebx, cl
push 0xfffffffffffffff9
mov eax, ebx
and eax, 0x7f
add eax, 0xb
shr ebx, 7
and dword [ebp - 0x20], 0
pop ecx
sub ecx, edx
add edi, ecx
mov edx, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
add edx, dword [esi + 0x60]
add ecx, eax
cmp ecx, edx
jbe 0x10016de4
mov dword [esi], 0x1b
cmp dword [esi], 0x1b
je 0x10017270
lea eax, [esi + 0x530]
lea ecx, [esi + 0x6c]
mov dword [ecx], eax
mov dword [esi + 0x4c], eax
lea edx, [esi + 0x2f0]
push edx
lea eax, [esi + 0x54]
push eax
push ecx
push dword [esi + 0x60]
mov dword [eax], 9
lea eax, [esi + 0x70]
push eax
push 1
call fcn.1001785f
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1001726a
lea ecx, [esi + 0x6c]
mov eax, dword [ecx]
mov dword [esi + 0x50], eax
lea edx, [esi + 0x2f0]
push edx
lea eax, [esi + 0x58]
push eax
push ecx
push dword [esi + 0x64]
mov dword [eax], 6
mov eax, dword [esi + 0x60]
lea eax, [esi + eax*2 + 0x70]
push eax
push 2
call fcn.1001785f
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1001726a
mov dword [esi], 0x12
cmp dword [ebp - 8], 6
jb 0x10016dfc
cmp dword [ebp - 0x10], 0x102
jb 0x10016dfc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
push eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
call fcn.10017493
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x10017270
mov ecx, dword [esi + 0x68]
mov dx, word [ebp - 0x20]
dec eax
mov word [esi + ecx*2 + 0x70], dx
inc dword [esi + 0x68]
test eax, eax
jne 0x10016dd4
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x60]
cmp dword [esi + 0x68], eax
jb 0x10016b87
jmp 0x10016cf8
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x4c]
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
jmp 0x10016e3f
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
mov ecx, dword [esi + 0x54]
add edi, 8
add ebx, eax
inc dword [ebp - 4]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x4c]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x10016e0f
test al, al
je 0x10016ee6
test al, 0xf0
jne 0x10016ee6
mov dword [ebp - 0xc], eax
shr dword [ebp - 0xc], 8
movzx edx, byte [ebp - 0xc]
mov dword [ebp - 0x28], edx
movzx ecx, al
add ecx, edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
shr eax, 0x10
dec edx
and edx, ebx
shr edx, cl
add edx, eax
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + edx*4]
movzx edx, byte [ebp - 0xc]
jmp 0x10016ed0
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
movzx edx, byte [ebp - 0x1f]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
movzx ecx, byte [ebp - 0x20]
add ebx, eax
inc dword [ebp - 4]
xor eax, eax
add ecx, edx
inc eax
shl eax, cl
add edi, 8
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x1e]
add eax, ecx
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edx
cmp ecx, edi
ja 0x10016e8f
movzx ecx, byte [ebp - 0x1f]
shr ebx, cl
sub edi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub edi, ecx
mov ecx, eax
shr ecx, 0x10
mov dword [esi + 0x40], ecx
test al, al
jne 0x10016f09
mov dword [esi], 0x17
jmp 0x10017270
test al, 0x20
je 0x10016f18
mov dword [esi], 0xb
jmp 0x10017270
test al, 0x40
jne 0x1001726a
movzx eax, al
and eax, 0xf
mov dword [esi + 0x48], eax
mov dword [esi], 0x13
mov eax, dword [esi + 0x48]
test eax, eax
je 0x10016f6f
cmp edi, eax
jae 0x10016f5e
cmp dword [ebp - 8], 0
je 0x100172be
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, edi
shl edx, cl
add edi, 8
add ebx, edx
inc dword [ebp - 4]
cmp edi, dword [esi + 0x48]
jb 0x10016f3a
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
dec edx
and edx, ebx
add dword [esi + 0x40], edx
shr ebx, cl
sub edi, eax
mov dword [esi], 0x14
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x50]
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
jmp 0x10016fb8
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
mov ecx, dword [esi + 0x58]
add edi, 8
add ebx, eax
inc dword [ebp - 4]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x50]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x10016f88
test al, 0xf0
jne 0x10017057
mov dword [ebp - 0xc], eax
shr dword [ebp - 0xc], 8
movzx edx, byte [ebp - 0xc]
mov dword [ebp - 0x28], edx
movzx ecx, al
add ecx, edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
shr eax, 0x10
dec edx
and edx, ebx
shr edx, cl
add edx, eax
mov eax, dword [esi + 0x50]
mov eax, dword [eax + edx*4]
movzx edx, byte [ebp - 0xc]
jmp 0x10017041
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
movzx edx, byte [ebp - 0x1f]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
movzx ecx, byte [ebp - 0x20]
add ebx, eax
inc dword [ebp - 4]
xor eax, eax
add ecx, edx
inc eax
shl eax, cl
add edi, 8
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x1e]
add eax, ecx
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edx
cmp ecx, edi
ja 0x10017000
movzx ecx, byte [ebp - 0x1f]
shr ebx, cl
sub edi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub edi, ecx
test al, 0x40
jne 0x1001726a
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
mov dword [esi], 0x15
mov eax, dword [esi + 0x48]
test eax, eax
je 0x100170c2
cmp edi, eax
jae 0x100170b1
cmp dword [ebp - 8], 0
je 0x100172be
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, edi
shl edx, cl
add edi, 8
add ebx, edx
inc dword [ebp - 4]
cmp edi, dword [esi + 0x48]
jb 0x1001708d
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
dec edx
and edx, ebx
add dword [esi + 0x44], edx
shr ebx, cl
sub edi, eax
mov eax, dword [esi + 0x2c]
sub eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x1c]
cmp dword [esi + 0x44], eax
ja 0x1001726a
mov dword [esi], 0x16
cmp dword [ebp - 0x10], 0
je 0x100172be
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0x44]
cmp ecx, eax
jbe 0x1001711e
sub ecx, eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x30]
cmp dword [ebp - 0xc], ecx
jbe 0x1001710c
add eax, dword [esi + 0x28]
sub dword [ebp - 0xc], ecx
sub eax, dword [ebp - 0xc]
jmp 0x10017111
sub eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0xc], ecx
jbe 0x1001712c
jmp 0x10017129
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0xc], ecx
jbe 0x10017137
mov dword [ebp - 0xc], ecx
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0xc]
mov dword [esi + 0x40], ecx
mov edx, dword [ebp - 0x18]
mov cl, byte [eax]
inc dword [ebp - 0x18]
inc eax
dec dword [ebp - 0xc]
mov byte [edx], cl
jne 0x10017146
cmp dword [esi + 0x40], 0
jne 0x10017270
jmp 0x1001717a
cmp dword [ebp - 0x10], 0
je 0x100172be
mov ecx, dword [ebp - 0x18]
mov al, byte [esi + 0x40]
inc dword [ebp - 0x18]
dec dword [ebp - 0x10]
mov byte [ecx], al
mov dword [esi], 0x12
jmp 0x10017270
cmp dword [esi + 8], 0
je 0x10017231
cmp edi, 0x20
jae 0x100171bb
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 4]
cmp edi, 0x20
jb 0x10017194
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
add dword [ecx + 0x14], eax
add dword [esi + 0x1c], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100171f9
cmp dword [esi + 0x10], 0
push eax
mov eax, dword [esi + 0x18]
je 0x100171e5
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
call fcn.10011b4e
jmp 0x100171f0
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
call fcn.10022eac
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov dword [ecx + 0x28], eax
cmp dword [esi + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, ebx
jne 0x10017228
mov ecx, 0xff00
and eax, ecx
mov edx, ebx
shl edx, 0x10
add eax, edx
mov edx, ebx
shr edx, 8
and edx, ecx
shl eax, 8
mov ecx, ebx
add eax, edx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [esi + 0x18]
jne 0x1001726a
xor ebx, ebx
xor edi, edi
mov dword [esi], 0x19
cmp dword [esi + 8], 0
je 0x100172a8
cmp dword [esi + 0x10], 0
je 0x100172a8
jmp 0x10017260
cmp dword [ebp - 8], 0
je 0x100172be
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add edi, 8
cmp edi, 0x20
jb 0x10017245
cmp ebx, dword [esi + 0x1c]
je 0x100172a4
mov dword [esi], 0x1b
mov eax, dword [esi]
cmp eax, 0x1c
jbe 0x1001636b
jmp case.default.0x1001636e
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
push 2
jmp 0x10016363
xor ebx, ebx
xor edi, edi
mov dword [esi], 0x1a
mov dword [ebp - 0x24], 1
jmp 0x100172be
mov dword [ebp - 0x24], 0xfffffffd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
cmp dword [esi + 0x28], 0
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edi
jne 0x100172f4
cmp dword [esi], 0x18
jge 0x10017310
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
je 0x10017310
push dword [ebp - 0x1c]
mov edi, dword [ebp + 8]
call fcn.1001622b
test eax, eax
je 0x10017310
mov dword [esi], 0x1c
push 0xfffffffffffffffc
jmp 0x10016363
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
sub eax, dword [edi + 4]
mov ebx, dword [ebp - 0x1c]
sub ebx, dword [edi + 0x10]
add dword [edi + 8], eax
add dword [edi + 0x14], ebx
add dword [esi + 0x1c], ebx
cmp dword [esi + 8], 0
mov dword [ebp - 0x2c], eax
je 0x1001735e
test ebx, ebx
je 0x1001735e
cmp dword [esi + 0x10], 0
mov eax, dword [esi + 0x18]
push ebx
je 0x1001734b
mov edx, dword [edi + 0xc]
sub edx, ebx
call fcn.10011b4e
jmp 0x10017355
mov ecx, dword [edi + 0xc]
sub ecx, ebx
call fcn.10022eac
mov dword [esi + 0x18], eax
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x2c]
cmp dword [esi], 0xb
jne 0x1001736a
mov ecx, 0x80
jmp 0x1001736c
xor ecx, ecx
mov edx, dword [esi + 4]
neg edx
sbb edx, edx
and edx, 0x40
add edx, dword [esi + 0x3c]
add edx, ecx
mov dword [edi + 0x24], edx
test eax, eax
jne 0x10017392
test ebx, ebx
jne 0x10017392
cmp dword [ebp - 0x24], ebx
jne 0x10017392
mov dword [ebp - 0x24], 0xfffffffb
mov eax, dword [ebp - 0x24]
jmp 0x10016364