Function at 0x406894
Capabilities:
Delete file
Encode data using xor

Disassembly:
mov eax, 0x4bccdf
call fcn.004a7b94
sub esp, 0x5c
push ebx
push esi
push edi
mov ebx, ecx
mov esi, str.hiscores.dat
push esi
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4c3890
push esi
call fcn.004a85fe
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x4068f5
push str.Failed_to_create_high_score_file__nPlease_report_to_support_popcap.com.
lea ecx, [ebp - 0x68]
call fcn.004030c7
mov ebx, dword [ebx + 0x5c]
mov eax, dword [ebx]
and dword [ebp - 4], edi
lea ecx, [ebp - 0x68]
push ecx
mov ecx, ebx
call dword [eax + 0x4c]
push 1
lea ecx, [ebp - 0x68]
call fcn.00402944
jmp 0x406aa5
lea eax, [ebx + 0xcc]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x1e0]
mov dword [ebp - 0x44], eax
lea eax, [ebx + 0xc0]
mov dword [ebp - 0x28], eax
lea eax, [ebx + 0x8c]
xor esi, esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], 2
inc esi
mov ecx, ebx
call fcn.00406346
push edi
push 4
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.004a8718
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov cx, word [eax + 0x10]
add esp, 0x10
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x1c], ecx
jb 0x406951
mov eax, dword [eax]
push edi
push 2
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.004a8718
movsx eax, word [ebp - 0x1c]
push edi
push esi
push eax
push dword [ebp - 0x18]
call fcn.004a8718
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
push edi
push 4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.004a8718
movsx ecx, word [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
and dword [ebp - 0x10], 0
xor eax, 0x42beef
add esp, 0x30
test ecx, ecx
mov dword [ebp - 0x34], eax
jle 0x4069bc
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
movsx edx, byte [ebx + edx]
imul edx, edx, 0x11
xor eax, edx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ecx
mov dword [ebp - 0x34], eax
jl 0x40699f
mov ebx, dword [ebp - 0x3c]
push edi
push 4
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.004a8718
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x44], 5
jmp 0x4069e4
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax + 0x14], 0x10
mov cx, word [eax + 0x10]
mov dword [ebp - 0x20], ecx
jb 0x4069f5
mov eax, dword [eax]
push edi
push 2
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.004a8718
movsx eax, word [ebp - 0x20]
push edi
push esi
push eax
push dword [ebp - 0x24]
call fcn.004a8718
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push edi
push 4
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.004a8718
movsx ecx, word [ebp - 0x20]
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x10], 0
xor eax, 0x42beef
add esp, 0x30
test ecx, ecx
mov dword [ebp - 0x40], eax
jle 0x406a60
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
movsx edx, byte [ebx + edx]
imul edx, edx, 0x11
xor eax, edx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], ecx
mov dword [ebp - 0x40], eax
jl 0x406a43
mov ebx, dword [ebp - 0x3c]
push edi
push 4
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004a8718
add dword [ebp - 0x18], 0x1c
add dword [ebp - 0x14], 4
add esp, 0x10
dec dword [ebp - 0x44]
jne 0x4069e1
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x28], 4
add dword [ebp - 0x2c], 0x1c
dec dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
jne 0x406923
push edi
call fcn.004a841c
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret