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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x103163e0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1040e140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov ecx, 0x105b91e8
call fcn.10028730
mov ecx, dword [0x105b2728]
test ecx, ecx
je 0x1003ad1c
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov ebx, eax
test ebx, ebx
je 0x1003ad1c
mov eax, dword [ebx + 0x14]
mov edi, 0x811c9dc5
mov esi, dword [ebx + 8]
xor ecx, ecx
mov dword [ebp - 0x34], eax
inc ecx
cmp byte [esi + ecx], 0
jne 0x1003ace1
xor edx, edx
test ecx, ecx
je 0x1003ad01
nop
movsx eax, byte [esi + edx]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1003acf0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
push eax
call fcn.1003e0b0
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x1003acd1
mov edi, dword [ebp - 0x30]
mov ecx, dword [0x105b2730]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
mov ecx, dword [0x105b2734]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov dword [edi + 0x338], eax
call fcn.1025a710
call fcn.1003ddd0
call fcn.100201b0
mov esi, 0x1045a4f4
mov ecx, esi
call fcn.10039b80
add esi, 0x3808
cmp esi, 0x1053a6f4
jne 0x1003ad51
mov eax, dword [0x105b9078]
mov dword [0x105b90bc], 0
mov dword [0x105b90b8], 0
mov dword [0x105b90b4], 0
cmp eax, dword [0x105b907c]
je 0x1003ad96
mov dword [0x105b907c], eax
mov ecx, 0x105b3b60
call fcn.10243ad0
lea ecx, [edi + 0x410]
call fcn.1003e650
mov ecx, dword [0x105b2730]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov edi, eax
mov dword [0x105b2798], edi
test edi, edi
je 0x1003afd0
mov eax, dword [0x105b2cb0]
mov dword [0x105b2cb0], 0
test eax, eax
je 0x1003ae17
push fcn.1001a550
lea esi, [eax - 4]
mov dword [ebp - 4], 0
push dword [esi]
push 4
push eax
call fcn.102e08e1
mov eax, dword [esi]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.102e08a3
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edi, dword [0x105b2798]
mov ecx, dword [0x105b2ca8]
test ecx, ecx
je 0x1003ae2e
mov eax, dword [0x105b2cac]
mov dword [ecx], eax
mov edi, dword [0x105b2798]
mov dword [0x105b2cac], 0
mov dword [0x105b2cb4], 0
mov byte [0x105b2cb8], 0
mov dword [0x105b2ca8], edi
mov eax, dword [edi]
mov dword [0x105b2cac], eax
test eax, eax
je 0x1003af69
xor esi, esi
mov eax, dword [0x105b2cac]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x1003ae8f
mov eax, dword [0x105ae64c]
lea edx, [ebp - 0x2c]
push 0x1c
push edx
push ecx
call eax
test eax, eax
je 0x1003ae8f
mov eax, dword [ebp - 0x18]
test al, 1
jne 0x1003ae8f
test eax, 0x100
jne 0x1003ae8f
inc esi
jmp 0x1003ae60
mov dword [0x105b2cb4], esi
test esi, esi
je 0x1003af69
lea edx, [esi + 1]
lea ecx, [ebp - 0x30]
call fcn.1003ebb0
cmp eax, 0x105b2cb0
je 0x1003aef9
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [0x105b2cb0]
mov dword [0x105b2cb0], ecx
test eax, eax
je 0x1003aef9
push fcn.1001a550
lea esi, [eax - 4]
mov dword [ebp - 4], 1
push dword [esi]
push 4
push eax
call fcn.102e08e1
mov eax, dword [esi]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.102e08a3
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x1003af2d
push fcn.1001a550
mov dword [ebp - 4], 2
lea esi, [ebx - 4]
push dword [esi]
push 4
push ebx
call fcn.102e08e1
mov eax, dword [ebx - 4]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.102e08a3
add esp, 8
mov esi, dword [0x105b2cb0]
test esi, esi
je 0x1003af69
mov eax, dword [0x105b2cb4]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [0x105b2cac]
add eax, 0xfffffffc
push eax
push esi
call fcn.102e4250
add esp, 0xc
mov eax, 0x2a
add esi, 4
mov dword [edi], esi
mov byte [0x105b2cb8], 1
jmp 0x1003af7e
cmp byte [0x105b2cb8], 0
je 0x1003af79
mov eax, 0x2a
jmp 0x1003af7e
mov eax, 0x29
cmp dword [0x105b2cac], 0
je 0x1003afa0
mov esi, dword [0x105b2cb0]
test esi, esi
je 0x1003afa0
cmp eax, dword [0x105b2cb4]
ja 0x1003afa0
mov dword [esi + eax*4], 0x10252580
xor eax, eax
cmp byte [0x105b2cb8], al
setne al
add eax, 0x30
cmp dword [0x105b2cac], 0
je 0x1003afd0
mov esi, dword [0x105b2cb0]
test esi, esi
je 0x1003afd0
cmp eax, dword [0x105b2cb4]
ja 0x1003afd0
mov dword [esi + eax*4], 0x10252380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102e0890
mov esp, ebp
pop ebp
ret