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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5091c8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54c730]
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 esi, ecx
mov dword [ebp - 0x34], esi
call fcn.00433be0
mov eax, dword [esi + 0x558]
add esi, 0x558
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x38], ebx
call dword [eax + 0xc]
test eax, eax
jle 0x476d17
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x100]
mov ecx, eax
call fcn.00413fa0
mov ebx, eax
mov dword [ebp - 0x18], 0
mov edi, ebx
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x476b26
sub edi, ecx
sar edi, 1
cmp edi, 7
ja 0x476b66
lea esi, [edi + edi]
mov dword [ebp - 0x18], edi
push esi
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004db720
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
jmp 0x476bc5
cmp edi, 0x7ffffffe
ja 0x476d33
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x476b86
mov esi, SysReAllocString
jmp 0x476b91
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x2c], esi
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a550
mov dword [ebp - 0x14], esi
lea esi, [edi + edi]
push esi
push ebx
mov ebx, eax
mov dword [ebp - 0x30], eax
push ebx
mov dword [ebp - 0x18], edi
call fcn.004db1a0
add esp, 0xc
mov dword [ebp - 0x28], ebx
xor eax, eax
mov word [ebx + esi], ax
mov eax, dword [ebp - 0x2c]
cmp eax, 8
mov dword [ebp - 4], 0
lea esi, [ebp - 0x28]
mov edx, 0x811c9dc5
cmovae esi, ebx
lea ebx, [edi + edi]
xor ecx, ecx
test ebx, ebx
je 0x476bf4
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x476be3
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xaa4]
and eax, edx
mov edx, dword [ecx + 0xa98]
mov ecx, dword [ecx + 0xa90]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov esi, dword [edx + eax*8]
add eax, eax
lea ebx, [eax*4 + 4]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
cmp eax, ecx
jne 0x476c2e
mov eax, ecx
jmp 0x476c33
mov eax, dword [ebx + edx]
mov eax, dword [eax]
cmp esi, eax
je 0x476ca3
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x28]
lea ebx, [esi + 8]
cmovae eax, dword [ebp - 0x30]
cmp dword [esi + 0x1c], 8
jb 0x476c4e
mov ebx, dword [esi + 8]
mov edx, dword [esi + 0x18]
cmp edx, edi
jne 0x476c96
test edx, edx
je 0x476c71
sub ebx, eax
nop dword [eax + eax]
mov cx, word [ebx + eax]
cmp cx, word [eax]
jne 0x476c93
add eax, 2
sub edx, 1
jne 0x476c60
mov edi, dword [ebp - 0x34]
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0xa8c]
call fcn.004757a0
test al, al
je 0x476ca5
mov esi, dword [edi + 0xa90]
jmp 0x476ca5
mov ecx, dword [ebp - 0x3c]
mov esi, dword [esi]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
jmp 0x476c26
mov esi, ecx
mov edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
cmp esi, dword [edi + 0xa90]
je 0x476cbd
push 0
push ebx
mov ecx, edi
call fcn.004764a0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x476cfa
mov edx, dword [ebp - 0x30]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x476cf0
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476d38
push ecx
push edx
call fcn.0049b31a
add esp, 8
mov eax, dword [edi + 0x558]
lea esi, [edi + 0x558]
inc ebx
mov ecx, esi
mov dword [ebp - 0x38], ebx
call dword [eax + 0xc]
cmp ebx, eax
jl 0x476af3
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.0049b5d0
mov esp, ebp
pop ebp
ret
call fcn.0040a4d0
call fcn.004df039
int3