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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x706540
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x2d], dl
test ecx, ecx
mov dword [ebp - 4], 0
mov edi, dword [0x7ccb78]
mov ebx, 0x780fa8
cmovne ebx, ecx
mov dword [ebp - 0x38], edi
test edi, edi
je 0x474d6f
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x70d440]
mov ecx, edi
call esi
mov byte [ebp - 4], 1
mov eax, dword [edi]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x70d440]
mov ecx, edi
call esi
cmp byte [ebp - 0x2d], 0
mov byte [ebp - 4], 2
mov eax, dword [0x7c2908]
cmovne eax, dword [0x7c2900]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x474de5
mov byte [ebp - 4], 3
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x70d440]
mov ecx, edi
call esi
mov byte [ebp - 4], 4
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x70d440]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
mov ecx, ebx
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474e00
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00449180
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
mov edx, 0x811c9dc5
cmovae esi, dword [ebp - 0x2c]
xor ecx, ecx
add ebx, ebx
je 0x474e43
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x474e32
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x18]
and eax, edx
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x44], edx
mov esi, dword [edx + eax*8]
add eax, eax
lea ecx, [eax*4 + 4]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], eax
nop dword [eax]
cmp eax, ecx
jne 0x474e78
mov eax, ecx
jmp 0x474e80
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + edx]
mov eax, dword [eax]
cmp esi, eax
je 0x474ee7
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
lea ebx, [esi + 8]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [esi + 0x1c], 8
jb 0x474e9b
mov ebx, dword [esi + 8]
mov edx, dword [esi + 0x18]
cmp edx, dword [ebp - 0x1c]
jne 0x474eda
test edx, edx
je 0x474ec1
sub ebx, ecx
nop dword [eax]
mov ax, word [ebx + ecx]
cmp ax, word [ecx]
jne 0x474eda
add ecx, 2
sub edx, 1
jne 0x474eb0
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00478e60
mov ebx, dword [ebp - 0x34]
test al, al
je 0x474eec
mov esi, dword [ebx + 4]
jmp 0x474eec
mov esi, dword [esi]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
jmp 0x474e70
mov ebx, dword [ebp - 0x34]
mov esi, ecx
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x474f26
mov edx, dword [ebp - 0x2c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x474f1c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x474fb2
push ecx
push edx
call fcn.006d0b31
add esp, 8
cmp esi, dword [ebx + 4]
je 0x474f51
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x474f44
mov ecx, ebx
call fcn.00474fd0
push 0x20
push ebx
call fcn.006d0b31
add esp, 8
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00479140
mov byte [ebp - 4], 5
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x70d440]
mov ecx, edi
call esi
mov byte [ebp - 4], 6
jmp 0x474db8
push 0x8d
push str.c:_a_b_a_6cb29bb7_scsadminkitdevelopment2_stderrerror.cpp
push ecx
push 0x7cf920
mov edx, str.KLERR
mov ecx, 1
call fcn.0046b800
int3
call fcn.006d79b8
mov ecx, edi
call dword [0x70d440]
mov ecx, esi
call edi
mov ecx, eax
jmp 0x474f8c