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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e293
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x4e2054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x407a58
mov edx, dword [ebx + 4]
lea eax, [ebx + 4]
mov dword [ebp - 0x24], edx
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], eax
mov eax, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
lea esi, [ecx + 8]
cmp dword [esi + 0x14], 8
mov edx, dword [ecx + 4]
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x30], edx
jb 0x4078b9
mov esi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x4078d8
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4078c4
mov eax, dword [ebp - 0x10]
and edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx + edx*8]
mov edx, dword [ecx]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], ecx
nop
mov edi, eax
cmp eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
sete bl
mov dword [ebp - 0x28], eax
lea esi, [edi + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 1
lea ecx, [esi + 0x18]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 1
call fcn.00403fc0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00403fc0
push 0x38
push edi
call fcn.0047cbc7
mov ecx, dword [ebp - 0x18]
add esp, 8
dec dword [ecx + 8]
test bl, bl
jne 0x407960
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
jne 0x4078f0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x407a46
mov eax, dword [ebp - 0x14]
jmp 0x407a44
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
jne 0x407972
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x407975
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
je 0x407a46
cmp dword [ecx + 0x1c], 8
lea esi, [ecx + 8]
mov edi, dword [esi + 0x10]
jb 0x407992
mov esi, dword [esi]
xor eax, eax
mov edx, 0x811c9dc5
add edi, edi
je 0x4079b4
nop dword [eax]
movzx ecx, byte [eax + esi]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, edi
jb 0x4079a0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
and edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x20]
lea eax, [eax + edx*8]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
nop dword [eax]
mov edi, ecx
cmp ecx, eax
mov eax, dword [ecx]
mov dword [ebp - 0x40], eax
sete bl
mov dword [ebp + 8], eax
lea esi, [edi + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 5
lea ecx, [esi + 0x18]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 5
call fcn.00403fc0
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00403fc0
push 0x38
push edi
call fcn.0047cbc7
mov eax, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0x10]
dec dword [eax + 8]
test bl, bl
jne 0x407a2b
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], eax
je 0x407a41
mov eax, dword [ebp - 0x30]
jmp 0x4079d0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], eax
jmp 0x40797e
mov eax, dword [ebp - 0x1c]
mov dword [eax], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8