Function at 0x1008f680
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 0x1008f69f
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.100902a0
mov eax, dword [eax]
cmp dword [eax + 0x20], 0
je 0x1008f6bb
lea eax, [esp + 0x14]
jmp 0x1008f9f3
cmp dword [0x1027e154], 0x32
jb 0x1008f75b
mov eax, dword [0x1027e150]
mov dword [esp + 0x10], eax
mov esi, dword [eax]
cmp dword [esi + 0x1c], 0xf
lea ebx, [esi + 8]
mov ebp, dword [esi + 0x18]
jbe 0x1008f6e2
mov ebx, dword [esi + 8]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebp, ebp
je 0x1008f701
nop dword [eax]
movzx eax, byte [ebx + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebp
jb 0x1008f6f0
and edx, dword [0x1027e164]
mov eax, dword [0x1027e158]
lea ecx, [eax + edx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x1008f72d
cmp eax, esi
jne 0x1008f725
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x1008f735
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x1008f735
cmp eax, esi
jne 0x1008f735
mov eax, dword [esi]
mov dword [ecx], eax
mov edx, dword [esi]
lea ecx, [esi + 8]
dec dword [0x1027e154]
mov eax, dword [esi + 4]
mov dword [eax], edx
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
call fcn.10091bb0
push 0x24
push esi
call fcn.1011808f
add esp, 8
mov eax, dword [0x101939c8]
mov ecx, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0xf
jb 0x1008fa0a
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x1008f77f
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.100243b0
mov edx, dword [esp + 0x48]
mov eax, edx
mov ecx, dword [esp + 0x44]
sub eax, ecx
push 0xa
push str._large.png
cmp eax, 0xa
jb 0x1008f7d6
cmp edx, 0xf
lea esi, [esp + 0x3c]
lea eax, [ecx + 0xa]
cmova esi, dword [esp + 0x3c]
add esi, ecx
mov dword [esp + 0x4c], eax
push esi
call fcn.101214b0
add esp, 0xc
mov byte [esi + 0xa], 0
lea eax, [esp + 0x34]
jmp 0x1008f7e5
push dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push 0xa
call fcn.10022e40
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 0x10178eac
mov ecx, ebx
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 [ebx]
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 0x1008f87b
mov edx, dword [esp + 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008f871
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008fa0f
push ecx
push edx
call fcn.1011808f
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 0x1008f8c6
mov edx, dword [esp + 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008f8bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008fa0f
push ecx
push edx
call fcn.1011808f
add esp, 8
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
test ebp, ebp
je 0x1008f9ef
mov eax, dword [0x101939c8]
push ebp
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov esi, eax
test esi, esi
je 0x1008f9e0
push esi
call fcn.1011809d
add esp, 4
mov ebx, eax
push esi
push 0
push ebx
call fcn.10120e50
mov ecx, dword [0x101939c8]
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 0x1008f9d7
mov ecx, dword [0x101945dc]
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.1008a100
mov dword [esp + 0x10], eax
test eax, eax
je 0x1008f9d7
push edi
lea eax, [esp + 0x54]
push eax
call fcn.100902a0
push dword [esp + 0x10]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax]
call fcn.100f6df0
push dword [esp + 0x10]
mov dword [esi + 0x20], eax
call fcn.1012bf89
add esp, 4
push ebx
call fcn.101180a6
add esp, 4
mov eax, dword [0x101939c8]
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.100902a0
pop edi
pop esi
pop ebp
mov eax, dword [eax]
pop ebx
mov eax, dword [eax + 0x20]
add esp, 0x10c
ret
call fcn.100032b0
call fcn.10124a26
int3