Function at 0x1008f310
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 0x1008f32f
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.10090470
mov eax, dword [eax]
cmp dword [eax + 0x20], 0
je 0x1008f34b
lea eax, [esp + 0x14]
jmp 0x1008f683
cmp dword [0x1027d164], 0x32
jb 0x1008f3eb
mov eax, dword [0x1027d160]
mov dword [esp + 0x10], eax
mov esi, dword [eax]
cmp dword [esi + 0x1c], 0x10
lea ebx, [esi + 8]
mov ebp, dword [esi + 0x18]
jb 0x1008f372
mov ebx, dword [esi + 8]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebp, ebp
je 0x1008f391
nop dword [eax]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebp
jb 0x1008f380
and edx, dword [0x1027d174]
mov eax, dword [0x1027d168]
lea ecx, [eax + edx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x1008f3bd
cmp eax, esi
jne 0x1008f3b5
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x1008f3c5
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x1008f3c5
cmp eax, esi
jne 0x1008f3c5
mov eax, dword [esi]
mov dword [ecx], eax
mov edx, dword [esi]
lea ecx, [esi + 8]
dec dword [0x1027d164]
mov eax, dword [esi + 4]
mov dword [eax], edx
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
call fcn.10091950
push 0x24
push esi
call fcn.10117c1f
add esp, 8
mov eax, dword [0x10192958]
mov ecx, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0xf
jb 0x1008f69a
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1008f40f
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.10024730
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 0x1008f466
cmp edx, 0x10
lea esi, [esp + 0x3c]
lea eax, [ecx + 0xa]
cmovae esi, dword [esp + 0x3c]
add esi, ecx
mov dword [esp + 0x4c], eax
push esi
call fcn.10121200
add esp, 0xc
mov byte [esi + 0xa], 0
lea eax, [esp + 0x34]
jmp 0x1008f475
push dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push 0xa
call fcn.10023130
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 0x10177eb8
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], 0x10
mov eax, dword [ebx]
cmovae edx, dword [esp + 0x24]
push edx
mov eax, dword [eax + 8]
call eax
mov ecx, dword [esp + 0x30]
mov ebp, eax
cmp ecx, 0x10
jb 0x1008f50b
mov edx, dword [esp + 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008f501
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008f69f
push ecx
push edx
call fcn.10117c1f
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, 0x10
jb 0x1008f556
mov edx, dword [esp + 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1008f54c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1008f69f
push ecx
push edx
call fcn.10117c1f
add esp, 8
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
test ebp, ebp
je 0x1008f67f
mov eax, dword [0x10192958]
push ebp
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov esi, eax
test esi, esi
je 0x1008f670
push esi
call fcn.10117c2d
add esp, 4
mov ebx, eax
push esi
push 0
push ebx
call fcn.10120ba0
mov ecx, dword [0x10192958]
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 0x1008f667
mov ecx, dword [0x101935ec]
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.10089cf0
mov dword [esp + 0x10], eax
test eax, eax
je 0x1008f667
push edi
lea eax, [esp + 0x54]
push eax
call fcn.10090470
push dword [esp + 0x10]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
mov esi, dword [eax]
call fcn.100f6c50
push dword [esp + 0x10]
mov dword [esi + 0x20], eax
call fcn.1012bcd9
add esp, 4
push ebx
call fcn.10117c36
add esp, 4
mov eax, dword [0x10192958]
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.10090470
pop edi
pop esi
pop ebp
mov eax, dword [eax]
pop ebx
mov eax, dword [eax + 0x20]
add esp, 0x10c
ret
call fcn.100032a0
call fcn.10124776
int3