Function at 0x10171520
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword fs:[0x2c]
mov ecx, dword [0x102999e4]
push ebx
push esi
mov esi, dword [0x1029a48c]
xor ebx, ebx
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x4c], eax
mov eax, dword [0x102b62f0]
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ecx
cmp eax, dword [ecx + 4]
jle 0x101715b5
push 0x102b62f0
call fcn.101e23b9
add esp, 4
cmp dword [0x102b62f0], 0xffffffff
jne 0x101715b1
lea eax, [esp + 0xa0]
mov dword [esp + 0xa0], str.PaintKitDefinitionCount
push eax
lea eax, [esp + 0xf4]
mov ecx, 0x102a57b4
push eax
call fcn.10006340
push 0x102b62f0
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [0x102b62d4], eax
call fcn.101e236f
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [0x102b62d4]
mov eax, dword [eax + esi]
mov dword [esp + 0x4c], eax
mov eax, dword [0x102b62d8]
mov esi, dword [0x1029a48c]
cmp eax, dword [ecx + 4]
jle 0x10171626
push 0x102b62d8
call fcn.101e23b9
add esp, 4
cmp dword [0x102b62d8], 0xffffffff
jne 0x10171626
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], str.PaintKitDefinitionList
push eax
lea eax, [esp + 0xfc]
mov ecx, 0x102a57b4
push eax
call fcn.10006340
push 0x102b62d8
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [0x102b62cc], eax
call fcn.101e236f
add esp, 4
mov eax, dword [0x102b62cc]
lea ecx, [ebx + ebx*2]
mov eax, dword [eax + esi]
mov eax, dword [eax + ecx*8 + 0x14]
mov dword [esp + 0x24], eax
mov edi, dword [eax + 4]
mov edx, edi
mov dword [esp + 0x10], edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10171645
mov eax, dword [0x102b62e8]
sub edx, ecx
mov esi, dword [0x1029a48c]
xor ecx, ecx
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
cmp eax, dword [edx + 4]
jle 0x101716c8
push 0x102b62e8
call fcn.101e23b9
add esp, 4
cmp dword [0x102b62e8], 0xffffffff
jne 0x101716c4
lea eax, [esp + 0xa8]
mov dword [esp + 0xa8], str.PaintKitCount
push eax
lea eax, [esp + 0x104]
mov ecx, 0x102a57b4
push eax
call fcn.10006340
push 0x102b62e8
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [0x102b62f4], eax
call fcn.101e236f
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x102b62f4]
mov eax, dword [esi + eax]
mov dword [esp + 0x48], eax
push ecx
call fcn.10171260
mov edx, eax
mov dword [esp + 0x54], 0
mov ecx, edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0xf
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10171700
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x5c]
call fcn.1000d310
mov esi, dword [esp + 0x68]
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x54]
cmp esi, 0x10
mov edx, dword [esp + 0x64]
cmovae eax, ecx
setae bl
cmp byte [edx + eax - 7], 0x5f
je 0x1017176c
test bl, bl
je 0x10171d43
lea edx, [esi + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x1017175d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171f97
push edx
push ecx
call fcn.101e1f2f
add esp, 8
jmp 0x10171d43
mov dword [esp + 0x88], 0
lea esi, [edx - 0x1e]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0xf
cmp edx, 0x17
jb 0x10171f9c
lea eax, [edx - 0x17]
cmp eax, esi
cmovb esi, eax
test bl, bl
lea eax, [esp + 0x54]
cmovne eax, ecx
lea ecx, [esp + 0x88]
push esi
add eax, 0x17
push eax
call fcn.1000d310
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x58]
call fcn.1000d280
mov edx, dword [esp + 0x9c]
cmp edx, 0x10
jb 0x10171808
mov ecx, dword [esp + 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x101717fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171f97
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov edx, edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10171810
mov edi, dword [esp + 0x68]
sub edx, ecx
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x54]
push edx
push dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
cmp edi, 0x10
push 0
cmovae ecx, esi
setae bl
call fcn.100504b0
add esp, 0xc
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x1017187a
test bl, bl
je 0x10171d3f
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10171873
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171f97
push ecx
push esi
jmp 0x10171d37
lea ecx, [eax - 1]
mov dword [esp + 0x6c], 0
cmp dword [esp + 0x64], ecx
lea eax, [esp + 0x54]
mov dword [esp + 0x7c], 0
cmovb ecx, dword [esp + 0x64]
test bl, bl
push ecx
cmovne eax, esi
mov dword [esp + 0x84], 0xf
push eax
lea ecx, [esp + 0x74]
call fcn.1000d310
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x18]
cmp eax, dword [esp + 0xac]
je 0x10171900
mov edx, dword [esp + 0x80]
cmp edx, 0x10
jb 0x10171d09
mov ecx, dword [esp + 0x6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x101718f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171f97
push edx
push ecx
jmp 0x10171d01
mov eax, dword [esp + 0x80]
lea esi, [esp + 0x6c]
cmp eax, 0x10
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x6c]
mov edi, 0x811c9dc5
cmovae esi, eax
mov dword [esp + 0x18], eax
setae bl
test esi, esi
je 0x10171951
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10171931
sub ecx, edx
xor edx, edx
test ecx, ecx
je 0x10171951
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x10171940
lea eax, [esp + 0x44]
mov dword [esp + 0x44], edi
push eax
lea eax, [esp + 0x10c]
mov ecx, 0x102a5d78
push eax
call fcn.10071370
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x1017198d
test bl, bl
je 0x10171d09
mov ecx, dword [esp + 0x84]
jmp 0x10171cdc
mov eax, dword [esp + 0x24]
push dword [eax + 0x24]
call fcn.1007b340
mov edx, eax
mov dword [esp + 0xb0], 0
mov ecx, edx
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 7
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101719c1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xb8]
call fcn.10024b40
cmp dword [esp + 0xc4], 8
lea edx, [esp + 0xb0]
mov ecx, dword [esp + 0xb0]
mov eax, dword [esp + 0xc0]
setae bl
jb 0x10171a05
lea eax, [ecx + eax*2]
jmp 0x10171a13
lea eax, [edx + eax*2]
lea edx, [esp + 0xb0]
test bl, bl
je 0x10171a15
mov edx, ecx
push ecx
push eax
push edx
lea ecx, [esp + 0xd4]
call fcn.100817a0
lea eax, [esp + 0x40]
mov ecx, 0x102a5fb0
push eax
lea eax, [esp + 0xe4]
push eax
call fcn.10103960
lea ecx, [esp + 0xc8]
push ecx
mov esi, dword [eax]
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
je 0x10171a5e
push dword [esp + 0x28]
mov ecx, eax
call fcn.101713c0
add dword [esi + 0x10], 0x54
jmp 0x10171a6c
lea ecx, [esp + 0x28]
push ecx
push eax
lea ecx, [esi + 0xc]
call fcn.10172610
push 0xf
push str.resource_flash_
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0xf
call fcn.1000d310
push dword [esp + 0x1c]
call fcn.10171260
push eax
lea ecx, [esp + 0x2c]
call fcn.10025030
mov ebx, dword [esp + 0x3c]
lea edx, [esp + 0x28]
mov esi, dword [esp + 0x28]
cmp ebx, 0x10
mov edi, dword [esp + 0x38]
setae byte [esp + 0xf]
cmovae edx, esi
test edi, edi
je 0x10171ae6
or eax, 0xffffffff
lea ecx, [edi - 1]
cmp ecx, eax
cmovb eax, ecx
add eax, edx
cmp byte [eax], 0x5f
je 0x10171ae2
cmp eax, edx
je 0x10171ae6
dec eax
cmp byte [eax], 0x5f
jne 0x10171ad8
sub eax, edx
jmp 0x10171ae9
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x10171b87
cmp edi, eax
mov dword [esp + 0x88], 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x98], 0
cmovb eax, edi
mov dword [esp + 0x9c], 0xf
cmp byte [esp + 0xf], 0
push eax
cmovne ecx, esi
push ecx
lea ecx, [esp + 0x90]
call fcn.1000d310
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x2c]
call fcn.1000d280
mov edx, dword [esp + 0x9c]
cmp edx, 0x10
jb 0x10171b7f
mov ecx, dword [esp + 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10171b75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171f97
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov eax, ebx
sub eax, edi
push 0x10
push str._light_large.png
cmp eax, 0x10
jb 0x10171bbd
cmp ebx, 0x10
lea esi, [esp + 0x30]
lea eax, [edi + 0x10]
cmovae esi, dword [esp + 0x30]
mov dword [esp + 0x40], eax
lea eax, [esi + edi]
push eax
call fcn.101e3770
add esp, 0xc
mov byte [esi + edi + 0x10], 0
jmp 0x10171bcc
push dword [esp + 0x4c]
lea ecx, [esp + 0x34]
push 0x10
call fcn.10025540
push dword [esp + 0x24]
lea eax, [esp + 0xec]
mov ecx, 0x102a5fd0
push eax
call fcn.10103960
mov esi, dword [eax]
mov edi, dword [esi + 0x10]
cmp edi, dword [esi + 0x14]
je 0x10171c0c
mov eax, dword [esp + 0x40]
lea ecx, [edi + 4]
mov dword [edi], eax
lea eax, [esp + 0x28]
push eax
call fcn.1000d720
mov dword [edi + 0x1c], 0
add dword [esi + 0x10], 0x20
jmp 0x10171c1f
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x44]
push eax
push edi
lea ecx, [esi + 0xc]
call fcn.10172870
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x10171c55
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10171c4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171f97
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov edx, dword [esp + 0xdc]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xf
mov byte [esp + 0x28], 0
cmp edx, 0x10
jb 0x10171ca6
mov ecx, dword [esp + 0xc8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10171c9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171f97
push edx
push ecx
call fcn.101e1f2f
add esp, 8
lea ecx, [esp + 0xb0]
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0xf
mov byte [esp + 0xc8], 0
call fcn.10026090
mov ecx, dword [esp + 0x84]
cmp ecx, 0x10
jb 0x10171d09
mov edx, dword [esp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10171cff
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171f97
push ecx
push edx
call fcn.101e1f2f
add esp, 8
mov edx, dword [esp + 0x68]
cmp edx, 0x10
jb 0x10171d3f
mov ecx, dword [esp + 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10171d35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171f97
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x48]
jbe 0x101716d4
mov ebx, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x20], ebx
cmp ebx, dword [esp + 0x4c]
ja 0x10171d6e
mov ecx, dword [esp + 0x14]
jmp 0x101715c1
mov ecx, dword [esp + 0x50]
xor ebx, ebx
mov eax, dword [0x102999e4]
xor esi, esi
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x14], ecx
mov eax, dword [0x102b62d0]
mov edi, dword [0x1029a48c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], ebx
cmp eax, dword [ecx + 4]
jle 0x10171ded
push 0x102b62d0
call fcn.101e23b9
add esp, 4
cmp dword [0x102b62d0], 0xffffffff
jne 0x10171de9
lea eax, [esp + 0x50]
mov dword [esp + 0x50], str.StickerKitDefinitionCount
push eax
lea eax, [esp + 0xec]
mov ecx, 0x102a57b4
push eax
call fcn.10006340
push 0x102b62d0
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [0x102b62e0], eax
call fcn.101e236f
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [0x102b62e0]
mov eax, dword [edi + eax]
cmp ebx, eax
ja 0x10171f90
mov eax, dword [0x102b62e4]
mov edi, dword [0x1029a48c]
cmp eax, dword [ecx + 4]
jle 0x10171e5c
push 0x102b62e4
call fcn.101e23b9
add esp, 4
cmp dword [0x102b62e4], 0xffffffff
jne 0x10171e5c
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], str.StickerKitDefinitionList
push eax
lea eax, [esp + 0xe4]
mov ecx, 0x102a57b4
push eax
call fcn.10006340
push 0x102b62e4
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [0x102b62dc], eax
call fcn.101e236f
add esp, 4
mov eax, dword [0x102b62dc]
mov eax, dword [edi + eax]
mov edi, dword [eax + esi + 0x14]
mov dword [esp + 0x48], edi
mov edx, dword [edi + 0x28]
mov ecx, edx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0xf
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10171e90
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x74]
call fcn.1000d310
mov ebx, dword [esp + 0x80]
lea ecx, [esp + 0x6c]
mov esi, dword [esp + 0x6c]
cmp ebx, 0x10
mov edx, dword [esp + 0x7c]
push 9
push str.SprayKit
cmovae ecx, esi
setae byte [esp + 0x17]
push 0
call fcn.100504b0
add esp, 0xc
test eax, eax
jne 0x10171f06
cmp byte [esp + 0xf], al
je 0x10171f63
lea ecx, [ebx + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10171f02
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171f97
push ecx
push esi
jmp 0x10171f5b
mov eax, dword [0x102a5ff4]
cmp eax, dword [0x102a5ff8]
je 0x10171f1e
mov dword [eax], edi
add dword [0x102a5ff4], 4
jmp 0x10171f2e
lea ecx, [esp + 0x48]
push ecx
push eax
mov ecx, 0x102a5ff0
call fcn.10006180
mov edx, dword [esp + 0x80]
cmp edx, 0x10
jb 0x10171f63
mov ecx, dword [esp + 0x6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10171f59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10171f97
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
inc ebx
mov ecx, dword [esp + 0x14]
add esi, 0x18
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0xf
mov byte [esp + 0x6c], 0
jmp 0x10171d82
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.101e6db2
call fcn.100184d0
int3