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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10116d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x101a8540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f580
sub ecx, esi
mov dword [ebp - 0x18], 0
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push edx
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
call fcn.100025b0
cmp dword [ebp - 0x14], 0xf
lea eax, [edi + 0x1c]
mov esi, dword [edi + 8]
mov edx, 0x811c9dc5
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x58], eax
test eax, eax
je 0x1004f5f9
mov edi, dword [ebp - 0x40]
mov esi, eax
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1004f5e2
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [edi + 0x1c]
call fcn.10048ef0
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x1004f61a
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x34], eax
cmp eax, dword [edi + 0x20]
je 0x1004f659
mov edi, dword [edi + 4]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x40], ecx
cmp edi, esi
je 0x1004f647
nop dword [eax]
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
cmp dword [ebp - 0x40], eax
je 0x1004f644
add edi, 4
cmp edi, esi
jne 0x1004f630
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov esi, edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1004bbc0
mov edi, dword [ebp - 0x38]
push 8
call fcn.101118c3
mov edx, eax
mov dword [ebp - 0x40], eax
add esp, 4
test edx, edx
je 0x1004f67c
mov eax, dword [ebp + 0x10]
mov dword [edx], vtable.._AU__binding___BY01DPQCVector__MV1__u_detail_sol__.0
mov eax, dword [eax]
mov dword [edx + 4], eax
jmp 0x1004f681
xor edx, edx
mov dword [ebp - 0x40], edx
mov eax, dword [edi + 8]
mov byte [ebp - 4], 1
cmp esi, eax
je 0x1004f697
mov ecx, dword [esi]
xor edi, edi
mov dword [ebp - 0x3c], edi
mov dword [esi], edx
jmp 0x1004f6c7
lea ecx, [edi + 4]
mov dword [ebp - 0x34], edx
xor edi, edi
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 2
cmp eax, dword [ecx + 8]
je 0x1004f6b6
mov dword [ebp - 0x34], edi
mov dword [eax], edx
add dword [ecx + 4], 4
jmp 0x1004f6c0
lea edx, [ebp - 0x34]
push edx
push eax
call fcn.10048d30
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1004f6d2
mov eax, dword [ecx]
push 1
call dword [eax + 4]
call fcn.10055fb0
cmp dword [eax + 0x2c], 0xf
lea ecx, [eax + 0x18]
mov eax, dword [ecx + 0x10]
jbe 0x1004f6e5
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmova edx, dword [ebp - 0x28]
cmp esi, eax
je 0x1004f6fd
mov byte [ebp - 0x29], 0
jmp 0x1004f762
test esi, esi
jne 0x1004f707
mov byte [ebp - 0x29], 1
jmp 0x1004f762
sub esi, 4
jb 0x1004f721
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1004f726
add edx, 4
add ecx, 4
sub esi, 4
jae 0x1004f710
cmp esi, 0xfffffffc
je 0x1004f75a
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1004f753
cmp esi, 0xfffffffd
je 0x1004f75a
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x1004f753
cmp esi, 0xfffffffe
je 0x1004f75a
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x1004f753
cmp esi, 0xffffffff
je 0x1004f75a
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x1004f75a
sbb eax, eax
or eax, 1
jmp 0x1004f75c
xor eax, eax
test eax, eax
sete byte [ebp - 0x29]
call fcn.10055fb0
cmp dword [eax + 0x44], 0xf
lea ecx, [eax + 0x30]
mov eax, dword [ecx + 0x10]
jbe 0x1004f775
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmova edx, dword [ebp - 0x28]
cmp esi, eax
je 0x1004f78d
mov byte [ebp - 0x2a], 0
jmp 0x1004f7f2
test esi, esi
jne 0x1004f797
mov byte [ebp - 0x2a], 1
jmp 0x1004f7f2
sub esi, 4
jb 0x1004f7b1
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1004f7b6
add edx, 4
add ecx, 4
sub esi, 4
jae 0x1004f7a0
cmp esi, 0xfffffffc
je 0x1004f7ea
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1004f7e3
cmp esi, 0xfffffffd
je 0x1004f7ea
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x1004f7e3
cmp esi, 0xfffffffe
je 0x1004f7ea
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x1004f7e3
cmp esi, 0xffffffff
je 0x1004f7ea
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x1004f7ea
sbb eax, eax
or eax, 1
jmp 0x1004f7ec
xor eax, eax
test eax, eax
sete byte [ebp - 0x2a]
call fcn.10055fb0
cmp dword [eax + 0x35c], 0xf
lea ecx, [eax + 0x348]
mov eax, dword [ecx + 0x10]
jbe 0x1004f80b
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmova edx, dword [ebp - 0x28]
cmp esi, eax
je 0x1004f823
mov byte [ebp - 0x2b], 0
jmp 0x1004f884
test esi, esi
jne 0x1004f82d
mov byte [ebp - 0x2b], 1
jmp 0x1004f884
sub esi, 4
jb 0x1004f843
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1004f848
add edx, 4
add ecx, 4
sub esi, 4
jae 0x1004f832
cmp esi, 0xfffffffc
je 0x1004f87c
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1004f875
cmp esi, 0xfffffffd
je 0x1004f87c
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x1004f875
cmp esi, 0xfffffffe
je 0x1004f87c
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x1004f875
cmp esi, 0xffffffff
je 0x1004f87c
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x1004f87c
sbb eax, eax
or eax, 1
jmp 0x1004f87e
xor eax, eax
test eax, eax
sete byte [ebp - 0x2b]
call fcn.10055fb0
cmp dword [eax + 0x374], 0xf
lea ecx, [eax + 0x360]
mov eax, dword [ecx + 0x10]
jbe 0x1004f89d
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmova edx, dword [ebp - 0x28]
cmp esi, eax
je 0x1004f8b5
mov byte [ebp - 0x2c], 0
jmp 0x1004f916
test esi, esi
jne 0x1004f8bf
mov byte [ebp - 0x2c], 1
jmp 0x1004f916
sub esi, 4
jb 0x1004f8d5
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1004f8da
add edx, 4
add ecx, 4
sub esi, 4
jae 0x1004f8c4
cmp esi, 0xfffffffc
je 0x1004f90e
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1004f907
cmp esi, 0xfffffffd
je 0x1004f90e
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x1004f907
cmp esi, 0xfffffffe
je 0x1004f90e
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x1004f907
cmp esi, 0xffffffff
je 0x1004f90e
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x1004f90e
sbb eax, eax
or eax, 1
jmp 0x1004f910
xor eax, eax
test eax, eax
sete byte [ebp - 0x2c]
call fcn.10055fb0
cmp dword [eax + 0x1dc], 0xf
lea ecx, [eax + 0x1c8]
mov eax, dword [ecx + 0x10]
jbe 0x1004f92f
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmova edx, dword [ebp - 0x28]
cmp esi, eax
je 0x1004f947
mov byte [ebp - 0x2d], 0
jmp 0x1004f9a8
test esi, esi
jne 0x1004f951
mov byte [ebp - 0x2d], 1
jmp 0x1004f9a8
sub esi, 4
jb 0x1004f967
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1004f96c
add edx, 4
add ecx, 4
sub esi, 4
jae 0x1004f956
cmp esi, 0xfffffffc
je 0x1004f9a0
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x1004f999
cmp esi, 0xfffffffd
je 0x1004f9a0
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x1004f999
cmp esi, 0xfffffffe
je 0x1004f9a0
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x1004f999
cmp esi, 0xffffffff
je 0x1004f9a0
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x1004f9a0
sbb eax, eax
or eax, 1
jmp 0x1004f9a2
xor eax, eax
test eax, eax
sete byte [ebp - 0x2d]
mov esi, dword [ebp - 0x38]
cmp byte [esi + 0xa8], 0
je 0x1004f9c1
cmp byte [esi + 0xa9], 0
mov byte [ebp - 0x2e], 0
jne 0x1004f9c5
mov byte [ebp - 0x2e], 1
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
cmp byte [ebp - 0x29], 0
mov edx, eax
mov dword [ebp - 0x48], edx
mov dh, byte [ebp - 0x2b]
jne 0x1004f9e5
mov ecx, 0x10049d30
test dh, dh
je 0x1004f9ea
mov ecx, 0x10049d30
cmp byte [ebp - 0x2a], 0
mov dword [ebp - 0x50], ecx
jne 0x1004f9fe
cmp byte [ebp - 0x2c], 0
mov eax, 0x10049ec0
je 0x1004fa03
mov eax, 0x10049ec0
cmp byte [ebp - 0x29], 0
mov dl, byte [ebp - 0x2d]
mov byte [ebp - 0x9c], dl
mov dl, byte [ebp - 0x29]
mov byte [ebp - 0x9b], dl
mov dl, byte [ebp - 0x2a]
mov byte [ebp - 0x9a], dl
mov dl, byte [ebp - 0x2c]
mov byte [ebp - 0x98], dl
mov dl, byte [ebp - 0x2e]
mov byte [ebp - 0x99], dh
mov byte [ebp - 0x97], dl
lea edx, [ebp - 0x28]
mov dword [ebp - 0x94], edx
lea edx, [ebp - 0x50]
mov dword [ebp - 0x88], edx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x96], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0x100499b0
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x1004c150
mov dword [ebp - 0x78], 0x1004c130
mov dword [ebp - 0x74], 0x1004c540
mov dword [ebp - 0x70], 0x1004c520
mov dword [ebp - 0x6c], 0x10054a80
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
je 0x1004fabe
mov dword [esi + 0x88], ecx
mov dword [esi + 0x90], edx
cmp byte [ebp - 0x2a], 0
je 0x1004fad0
mov dword [esi + 0x8c], eax
mov dword [esi + 0x94], edx
cmp byte [ebp - 0x2b], 0
je 0x1004fae2
mov dword [esi + 0x98], ecx
mov dword [esi + 0xa0], edx
cmp byte [ebp - 0x2c], 0
je 0x1004faf4
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa4], edx
lea eax, [ebp - 0x9c]
mov ecx, esi
push eax
push dword [ebp - 0x54]
call fcn.1004bd50
cmp dword [ebp - 0x14], 0xf
lea esi, [ebp - 0x28]
movq xmm0, qword [ebp - 0x50]
cmova esi, dword [ebp - 0x28]
sub esp, 0xc
mov eax, dword [ebp - 0x48]
mov edx, esp
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x18]
movq qword [edx], xmm0
push esi
mov dword [edx + 8], eax
call fcn.10053f50
test edi, edi
je 0x1004fb3d
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1004fb73
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004fb69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004fb69
call dword [0x1011d424]
push ecx
push edx
call fcn.101118f3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10111c1a
mov esp, ebp
pop ebp
ret 0xc