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

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x1015a99f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
push edi
lea eax, [esp + 0x18]
push eax
call fcn.1015b5a0
mov eax, dword [eax]
cmp dword [eax + 0x20], 0
je 0x1015a9bb
lea eax, [esp + 0x14]
jmp 0x1015acf6
cmp dword [0x104eeeb4], 0x32
jb 0x1015aa5b
mov eax, dword [0x104eeeb0]
mov dword [esp + 0x10], eax
mov esi, dword [eax]
cmp dword [esi + 0x1c], 0xf
lea ebx, [esi + 8]
mov ebp, dword [esi + 0x18]
jbe 0x1015a9e2
mov ebx, dword [esi + 8]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebp, ebp
je 0x1015aa01
nop dword [eax]
movzx eax, byte [ebx + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebp
jb 0x1015a9f0
and edx, dword [0x104eeec4]
mov eax, dword [0x104eeeb8]
lea ecx, [eax + edx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x1015aa2d
cmp eax, esi
jne 0x1015aa25
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x1015aa35
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x1015aa35
cmp eax, esi
jne 0x1015aa35
mov eax, dword [esi]
mov dword [ecx], eax
mov edx, dword [esi]
lea ecx, [esi + 8]
dec dword [0x104eeeb4]
mov eax, dword [esi + 4]
mov dword [eax], edx
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
call fcn.1015cec0
push 0x24
push esi
call fcn.1015fe24
add esp, 8
mov eax, dword [0x1021663c]
mov ecx, dword [edi + 0x10]
mov ebp, dword [eax]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0xf
jb 0x1015ad0d
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x1015aa7f
mov eax, dword [edi]
push ecx
push eax
push 0xf
push str.resource_flash_
push ecx
push dword [esp + 0x28]
lea ecx, [esp + 0x4c]
call fcn.1002b2f0
mov ecx, dword [esp + 0x48]
mov eax, ecx
mov ebx, dword [esp + 0x44]
sub eax, ebx
push 0xa
push str._large.png
cmp eax, 0xa
jb 0x1015aad8
cmp ecx, 0xf
lea esi, [esp + 0x3c]
lea eax, [ebx + 0xa]
cmova esi, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
lea eax, [esi + ebx]
push eax
call fcn.10161360
add esp, 0xc
mov byte [esi + ebx + 0xa], 0
lea eax, [esp + 0x34]
jmp 0x1015aae7
push dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push 0xa
call fcn.10029d90
mov dword [esp + 0x2c], 0
lea edx, [esp + 0x1c]
mov dword [esp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x1c], xmm0
push str.GAME
movups xmm0, xmmword [eax]
push 0x10195c04
mov ecx, ebp
movups xmmword [esp + 0x24], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [esp + 0x38], 0xf
mov eax, dword [ebp]
cmova edx, dword [esp + 0x24]
push edx
mov eax, dword [eax + 8]
call eax
mov ecx, dword [esp + 0x30]
mov ebp, eax
cmp ecx, 0xf
jbe 0x1015ab7e
mov edx, dword [esp + 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1015ab74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1015ad12
push ecx
push edx
call fcn.1015fe24
add esp, 8
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0xf
mov byte [esp + 0x1c], 0
cmp ecx, 0xf
jbe 0x1015abc9
mov edx, dword [esp + 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1015abbf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1015ad12
push ecx
push edx
call fcn.1015fe24
add esp, 8
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
test ebp, ebp
je 0x1015acf2
mov eax, dword [0x1021663c]
push ebp
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov esi, eax
test esi, esi
je 0x1015ace3
push esi
call fcn.1015fe67
add esp, 4
mov ebx, eax
push esi
push 0
push ebx
call fcn.101618e0
mov ecx, dword [0x1021663c]
add esp, 0xc
mov ecx, dword [ecx]
push ebp
push esi
push ebx
mov edx, dword [ecx]
mov edx, dword [edx]
call edx
test eax, eax
jle 0x1015acda
mov ecx, dword [0x10217cb0]
lea edx, [esp + 0x14]
mov eax, dword fs:[0x2c]
push 4
push 0
mov dword [esp + 0x70], 0
mov eax, dword [eax + ecx*4]
lea ecx, [esp + 0x60]
mov dword [esp + 0x80], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x114], ebx
mov dword [eax + 0xc], 0
mov dword [eax + 8], 1
lea eax, [ebx + esi]
mov dword [esp + 0x118], eax
mov dword [esp + 0x110], eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x110], ebx
call fcn.10154fa0
mov dword [esp + 0x10], eax
test eax, eax
je 0x1015acda
push edi
lea eax, [esp + 0x54]
push eax
call fcn.1015b5a0
push dword [esp + 0x10]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax]
call fcn.10131230
push dword [esp + 0x10]
mov dword [esi + 0x20], eax
call fcn.1016c4c9
add esp, 4
push ebx
call fcn.1015fe32
add esp, 4
mov eax, dword [0x1021663c]
push ebp
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea eax, [esp + 0x50]
push edi
push eax
call fcn.1015b5a0
pop edi
pop esi
pop ebp
mov eax, dword [eax]
pop ebx
mov eax, dword [eax + 0x20]
add esp, 0x10c
ret
call fcn.10003b10
call fcn.10164f66
int3