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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x600ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x7f206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov esi, eax
mov ecx, dword [eax + 0x14]
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], ecx
cmp ecx, 0x10
jb 0x40516f
mov esi, dword [eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x405191
nop word [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x405180
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edx
mov esi, dword [ebx + 4]
mov dword [ebp - 0x14], ecx
cmp esi, dword [eax + ecx*8]
je 0x405286
mov esi, dword [eax + ecx*8 + 4]
mov esi, dword [esi]
jmp 0x4051b3
mov ecx, dword [ebp - 0x14]
cmp esi, dword [eax + ecx*8]
je 0x405286
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
mov eax, dword [ecx + 0x10]
jb 0x4051cd
mov ecx, dword [ecx]
cmp dword [ebp - 0x18], 0x10
mov edx, dword [ebp + 0xc]
jb 0x4051d8
mov edx, dword [edx]
cmp edi, eax
mov eax, dword [ebx + 0xc]
jne 0x4051b0
sub edi, 4
jb 0x4051f5
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x4051fa
add edx, 4
add ecx, 4
sub edi, 4
jae 0x4051e4
cmp edi, 0xfffffffc
je 0x40522e
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x405227
cmp edi, 0xfffffffd
je 0x40522e
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x405227
cmp edi, 0xfffffffe
je 0x40522e
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x405227
cmp edi, 0xffffffff
je 0x40522e
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
je 0x40522e
sbb eax, eax
or eax, 1
jmp 0x405230
xor eax, eax
mov ecx, dword [ebp - 0x14]
test eax, eax
mov edi, dword [ebp - 0x20]
mov eax, dword [ebx + 0xc]
jne 0x4051b3
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [ebx + 8]
call fcn.00404d50
push 0x60
push edi
call fcn.004a7e9f
mov eax, dword [ebp + 8]
add esp, 8
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x20], edi
mov eax, dword [edi]
cmp esi, eax
je 0x4052b6
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 4], edx
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + ecx*8]
cmp eax, dword [ebx + 4]
jne 0x4052cd
mov dword [edx + ecx*8], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + ecx*8 + 4], edi
jmp 0x4052f5
cmp eax, esi
jne 0x4052d6
mov dword [edx + ecx*8], edi
jmp 0x4052f5
mov eax, dword [edx + ecx*8 + 4]
mov eax, dword [eax]
mov dword [edx + ecx*8 + 4], eax
cmp eax, edi
je 0x4052f5
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + edx*8 + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx*8 + 4], eax
mov dword [ebp - 4], 2
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x7b9d60]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x7b9d60]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [ebx]
jbe 0x40538a
cmp ecx, 0x200
jae 0x40534a
shl ecx, 3
jmp 0x405354
cmp ecx, 0x1fffffff
jae 0x405354
add ecx, ecx
push ecx
mov ecx, ebx
call fcn.00404830
mov eax, dword [ebx + 4]
cmp dword [eax], eax
je 0x40538a
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
nop dword [eax]
mov esi, dword [ebx + 4]
mov ecx, ebx
mov esi, dword [esi]
push esi
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405120
cmp esi, dword [ebp + 0xc]
jne 0x405370
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc