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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword fs:[0x2c]
mov ecx, dword [0x102999e4]
push esi
push edi
mov edi, dword [0x1029a47c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x102bbd34]
mov dword [esp + 0xc], edi
cmp eax, dword [esi + 4]
jle 0x1017e630
push 0x102bbd34
call fcn.101e23b9
add esp, 4
cmp dword [0x102bbd34], 0xffffffff
jne 0x1017e630
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.FindHudElement
push eax
lea eax, [esp + 0x24]
mov ecx, 0x102a57d4
push eax
call fcn.10006340
push 0x102bbd34
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0xf]
movsx eax, al
mov dword [0x102bbd38], eax
call fcn.101e236f
add esp, 4
mov eax, dword [0x102bbd3c]
cmp eax, dword [esi + 4]
jle 0x1017e68c
push 0x102bbd3c
call fcn.101e23b9
add esp, 4
cmp dword [0x102bbd3c], 0xffffffff
jne 0x1017e68c
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.FindHudElement
push eax
lea eax, [esp + 0x24]
mov ecx, 0x102a57d4
push eax
call fcn.10006340
push 0x102bbd3c
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x14]
movsx eax, al
mov dword [0x102bbd40], eax
call fcn.101e236f
add esp, 4
mov eax, dword [0x102bbd44]
cmp eax, dword [esi + 4]
jle 0x1017e75c
push 0x102bbd44
call fcn.101e23b9
add esp, 4
cmp dword [0x102bbd44], 0xffffffff
jne 0x1017e75c
lea eax, [esp + 0x14]
mov dword [esp + 0x14], str.FindHudElement
push eax
lea eax, [esp + 0x1c]
mov ecx, 0x102a57d4
push eax
call fcn.10006340
push 1
push 0xc8
push 0
mov edi, dword [eax]
sub esp, 0xc
mov esi, esp
mov word [esp + 0x20], 0x50ff
mov ecx, esi
push 2
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.1012ca90
mov edx, dword [esi]
lea ecx, [esp + 0x28]
mov ax, word [esp + 0x20]
mov dword [esp + 0x28], 0
mov word [edx], ax
lea eax, [edx + 2]
mov dword [esi + 4], eax
call fcn.1012ca30
lea eax, [esp + 0x38]
push eax
lea ecx, [edi + 0xc]
call fcn.101367e0
push 0x102bbd44
add dword [eax], 2
mov eax, dword [eax]
movsx eax, byte [eax]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [0x102bbd48], eax
call fcn.101e236f
mov edi, dword [esp + 0x10]
add esp, 4
mov esi, dword [0x102bbd38]
add esi, edi
mov dword [esp + 0x10], esi
je 0x1017e770
mov esi, dword [esi]
mov dword [esp + 0x10], esi
test esi, esi
jle 0x1017e82f
add edi, dword [0x102bbd40]
mov dword [esp + 0x14], edi
je 0x1017e78a
mov edi, dword [edi]
mov dword [esp + 0x14], edi
xor eax, eax
mov dword [esp + 8], eax
mov edx, dword [edi + eax*4]
mov dword [esp + 0x20], edx
test edx, edx
je 0x1017e822
mov ecx, dword [edx]
mov eax, dword [0x102bbd48]
mov eax, dword [ecx + eax*4]
mov ecx, edx
call eax
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
je 0x1017e81e
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1017e7c0
sub ecx, dword [esp + 0xc]
je 0x1017e81e
mov eax, edx
mov dword [esp + 0xc], 0x811c9dc5
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1017e7e0
sub eax, edx
mov edx, 0
je 0x1017e815
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
movsx ecx, byte [edx + edi]
inc edx
xor ecx, esi
imul esi, ecx, 0x1000193
cmp edx, eax
jb 0x1017e7f8
mov edi, dword [esp + 0x14]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 8]
cmp dword [esp + 0xc], eax
je 0x1017e839
mov eax, dword [esp + 8]
inc eax
mov dword [esp + 8], eax
cmp eax, esi
jl 0x1017e790
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x20]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4