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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dae09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x20
cmp dword [0x10129f3c], 0x10
mov eax, 0x10129f28
push esi
push edi
mov dword [ebp - 0x14], ecx
jb 0x1004f5cf
mov eax, dword [0x10129f28]
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004f5c0
mov edi, dword [0x10129f28]
jmp 0x1004f5de
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1004f5d2
mov edi, 0x10129f28
sub eax, edx
mov esi, 0x45c3370d
xor edx, edx
test eax, eax
je 0x1004f601
nop dword [eax + eax]
movzx ecx, byte [edx + edi]
inc edx
xor ecx, esi
imul esi, ecx, 0x1000193
cmp edx, eax
jb 0x1004f5f0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1010f2d4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1012ccf0]
cmp eax, dword [ecx + 4]
jle 0x1004f679
push 0x1012ccf0
call fcn.100b0641
add esp, 4
cmp dword [0x1012ccf0], 0xffffffff
jne 0x1004f679
xorps xmm0, xmm0
mov dword [0x1012c530], 0
movups xmmword [0x1012c520], xmm0
push 0x100df120
mov dword [0x1012c534], 0xf
mov byte [0x1012c520], 0
call fcn.100b0b61
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x1012ccf0
call fcn.100b05f7
add esp, 4
cmp esi, dword [0x101103e4]
je 0x1004f705
mov ecx, dword [0x10129f38]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x1004f8bb
cmp dword [0x10129f3c], 0x10
mov eax, 0x10129f28
push 1
cmovae eax, dword [0x10129f28]
push 0x100f05e8
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.10054410
lea eax, [ebp - 0x30]
mov ecx, 0x1012c520
push eax
call fcn.10053a00
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x1004f705
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004f6fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004f8c0
push ecx
push edx
call fcn.100b0b76
add esp, 8
mov eax, dword [0x10129f24]
sub eax, 1
je 0x1004f882
sub eax, 1
je 0x1004f739
cmp dword [0x101103e4], 0
je 0x1004f8a8
mov dword [0x101103e4], 0
mov ecx, 0x100f0294
jmp 0x1004f8a3
cmp byte [0x10129f40], 0
mov eax, dword [ebp - 0x14]
mov dword [0x101103e4], esi
mov eax, dword [eax + 4]
je 0x1004f85d
and eax, 0x8000001f
jns 0x1004f760
dec eax
or eax, 0xffffffe0
add eax, 1
jne 0x1004f8a8
push 0x1012c520
lea ecx, [ebp - 0x30]
call fcn.10053b80
mov dword [ebp - 4], 1
mov eax, 1
mov esi, dword [0x1012c530]
mov ecx, 0x1012c520
cmp esi, eax
cmovb eax, esi
cmp dword [0x1012c534], 0x10
cmovae ecx, dword [0x1012c520]
sub esi, eax
add eax, ecx
mov dword [ebp - 0x14], esi
lea edx, [esi + 1]
push edx
push eax
push ecx
call fcn.100b3840
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
add esp, 0xc
cmp edi, 0x10
mov dword [0x1012c530], esi
mov esi, dword [ebp - 0x30]
cmovae eax, esi
mov dl, byte [eax]
mov byte [ebp - 0x18], dl
cmp ecx, dword [0x1012c534]
jae 0x1004f7fc
cmp dword [0x1012c534], 0x10
lea eax, [ecx + 1]
mov dword [0x1012c530], eax
mov eax, 0x1012c520
cmovae eax, dword [0x1012c520]
mov byte [eax + ecx], dl
mov byte [eax + ecx + 1], 0
jmp 0x1004f811
push dword [ebp - 0x18]
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push ecx
mov ecx, 0x1012c520
call fcn.10053f60
mov dword [ebp - 4], 0xffffffff
cmp edi, 0x10
jb 0x1004f848
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1004f83e
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004f8c0
push ecx
push esi
call fcn.100b0b76
add esp, 8
cmp dword [0x1012c534], 0x10
mov ecx, 0x1012c520
cmovae ecx, dword [0x1012c520]
jmp 0x1004f8a3
and eax, 0x8000003f
jns 0x1004f86b
dec eax
or eax, 0xffffffc0
add eax, 1
jne 0x1004f8a8
cmp dword [0x10129f3c], 0x10
mov ecx, 0x10129f28
cmovae ecx, dword [0x10129f28]
jmp 0x1004f8a3
mov eax, dword [ebp - 0x14]
mov dword [0x101103e4], esi
mov eax, dword [eax + 4]
and eax, 0x8000003f
jns 0x1004f89c
dec eax
or eax, 0xffffffc0
add eax, 1
jne 0x1004f8a8
mov ecx, str.plaguecheat
call fcn.1006d200
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100476d0
call fcn.100b7b82
int3