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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [0x101a9aa4]
mov eax, dword [0x101a9c94]
add eax, 0xffffffc8
xor eax, 0x976fd347
movss xmm0, dword [ecx + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [ecx]
movss dword [ebp - 0x10], xmm0
mov eax, dword [eax + esi]
movss xmm0, dword [ecx + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [0x101a9cec]
add eax, 0xffffffb2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [ecx + 8]
xor eax, 0x976fd35d
movss dword [ebp - 0x18], xmm0
push edi
movss xmm0, dword [eax + esi]
divss xmm0, dword [ecx + 0x20]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [0x101b5230]
addss xmm0, dword [0x100dccd8]
cvttss2si edi, xmm0
mov dword [ebp - 4], edi
test al, 1
jne 0x1004046e
or eax, 1
mov dword [0x101b5230], eax
mov eax, dword [0x101a9a40]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x10040456
nop dword [eax + eax]
mov edi, dword [ebx + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [ecx + edi], 0
jne 0x10040420
xor edx, edx
test ecx, ecx
je 0x10040449
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x10040430
cmp esi, 0x731ec79a
je 0x10040460
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x10040410
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
xor ebx, ebx
mov dword [0x101b5234], ebx
jmp 0x10040474
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov dword [0x101b5234], ebx
jmp 0x10040474
mov ebx, dword [0x101b5234]
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x34]
call eax
test eax, eax
je 0x10040490
mov ecx, dword [0x101b5234]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov eax, dword [0x101a9cec]
add eax, 0xffffffb2
xor eax, 0x976fd35d
mov ecx, dword [eax + esi]
mov eax, dword [0x101a9aa4]
mov dword [eax + 0x10], ecx
mov eax, dword [0x101a9cec]
add eax, 0xffffffb2
xor eax, 0x976fd35d
mov ecx, dword [eax + esi]
mov eax, dword [0x101a9aa4]
mov dword [eax], ecx
mov ecx, dword [0x101a9aa4]
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x14], eax
mov ecx, dword [0x101a9aa4]
mov eax, dword [ecx + 0x20]
mov dword [ecx + 8], eax
mov eax, dword [0x101a9aa4]
mov dword [eax + 4], edi
mov eax, dword [0x101a9aa4]
mov dword [eax + 0x1c], edi
mov eax, dword [0x101a9c94]
add eax, 0xffffffc8
xor eax, 0x976fd347
cmp byte [ebp + 0x10], 0
jne 0x10040500
or dword [eax + esi], 8
jmp 0x10040504
and dword [eax + esi], 0xfffffff7
mov eax, dword [0x101a9aa4]
lea ecx, [esi + 4]
push ecx
movss xmm0, dword [eax + 0x10]
mov eax, dword [ecx]
movss dword [esp], xmm0
push 0x7ff00
push 0x80
push dword [ebp + 0xc]
mov eax, dword [eax + 0x34]
call eax
mov ecx, dword [0x101a9c94]
mov dl, al
mov eax, dword [ebp - 8]
add ecx, 0xffffffc8
movss xmm0, dword [ebp - 0xc]
xor ecx, 0x976fd347
pop edi
mov dword [ecx + esi], eax
mov ecx, dword [0x101a9aa4]
pop esi
pop ebx
movss dword [ecx + 0x10], xmm0
mov ecx, dword [0x101a9aa4]
movss xmm0, dword [ebp - 0x10]
movss dword [ecx], xmm0
mov eax, dword [0x101a9aa4]
movss xmm0, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
movss dword [eax + 0x14], xmm0
mov eax, dword [0x101a9aa4]
movss xmm0, dword [ebp - 0x18]
movss dword [eax + 8], xmm0
mov eax, dword [0x101a9aa4]
mov dword [eax + 4], ecx
mov eax, dword [0x101a9aa4]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x1c], ecx
mov al, dl
mov esp, ebp
pop ebp
ret 0xc