Function at 0x509b10
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x60be40
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x6e163c]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x84]
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x80]
xor esi, esi
mov dword [esp + 0x14], ecx
cmp eax, esi
je 0x509b6e
add eax, 4
jmp 0x509b70
xor eax, eax
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], esi
mov byte [esp + 0x3c], 0
call fcn.00403c48
mov dword [esp + 0x28], vtable.CFilename.0
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x78], esi
call fcn.0050ca90
sub esp, 0x18
mov eax, esp
lea ecx, [esp + 0x44]
mov dword [esp + 0x34], esp
push ecx
push eax
call fcn.00509a60
add esp, 8
lea ecx, [esp + 0x64]
call fcn.00410349
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov byte [esp + 0x74], 1
cmp ebx, 0x10
jae 0x509bda
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x60]
add edx, eax
xor ecx, ecx
cmp eax, edx
jae 0x509bf6
movzx esi, byte [eax]
imul ecx, ecx, 0x1000193
inc eax
xor ecx, esi
cmp eax, edx
jb 0x509be6
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.005099f0
mov esi, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x18], edx
test esi, esi
jne 0x509c69
mov esi, vtable.CFilename.0
mov dword [esp + 0x48], esi
cmp ebx, 0x10
jb 0x509c35
mov eax, dword [esp + 0x50]
push eax
call fcn.005b2946
add esp, 4
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
mov dword [esp + 0x28], esi
jb 0x509c62
mov ecx, dword [esp + 0x30]
push ecx
call fcn.005b2946
add esp, 4
xor al, al
jmp 0x509d34
mov eax, dword [esp + 0x30]
mov ebx, 0x10
cmp dword [esp + 0x44], ebx
jae 0x509c7c
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x40]
push edx
push eax
call fcn.0050c8c0
mov ecx, eax
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
mov edx, ecx
sub edx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esi + 8]
mov dword [edi], edx
mov eax, dword [esi + 0xc]
mov dword [edi + 4], eax
mov edx, dword [esi + 0x10]
mov dword [edi + 8], edx
mov eax, dword [esi + 0x14]
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0x18]
mov dword [ebp], edx
mov eax, dword [esi + 0x1c]
mov dword [ebp + 4], eax
mov edx, dword [esi + 0x20]
mov dword [ebp + 8], edx
mov eax, dword [esi + 0x24]
add esp, 8
mov dword [ebp + 0xc], eax
xor eax, eax
xor dword [edi + eax*4], ecx
inc eax
cmp eax, 4
jb 0x509cd3
xor eax, eax
mov edi, edi
xor dword [ebp + eax*4], ecx
inc eax
cmp eax, 4
jb 0x509ce0
mov esi, vtable.CFilename.0
mov dword [esp + 0x48], esi
cmp dword [esp + 0x64], ebx
jb 0x509d06
mov ecx, dword [esp + 0x50]
push ecx
call fcn.005b2946
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
mov dword [esp + 0x28], esi
cmp dword [esp + 0x44], ebx
jb 0x509d32
mov edx, dword [esp + 0x30]
push edx
call fcn.005b2946
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005b8641
add esp, 0x64
ret 0x10