Function at 0x404ff0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x535740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x14], esi
mov eax, dword [str.SOFTWAREOXXOgameshuehnerattacke]
lea ecx, [esp + 0x13]
push ecx
push reloc.DSOUND.dll_DirectSoundCreate
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], esi
mov byte [esp + 0x1f], 0
call fcn.004052e0
test al, al
je 0x405294
mov eax, dword [str.Game]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push esi
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, 0x11
push eax
push edx
mov edi, eax
mov dword [esp + 0x30], ebp
call esi
test eax, eax
jne 0x40509c
cmp dword [esp + 0x18], ebp
jne 0x40509c
mov eax, dword [esp + 0x1c]
mov ebp, 3
cmp eax, ebp
jne 0x4050a1
lea eax, [esp + 0x18]
lea ecx, [ebx + 0x119]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push edi
push eax
call esi
jmp 0x4050a1
mov ebp, 3
mov eax, dword [0x537814]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push 0
push edx
push 0
mov edi, eax
push eax
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x30], ebp
call esi
test eax, eax
jne 0x4050ed
cmp dword [esp + 0x18], ebp
jne 0x4050ed
cmp dword [esp + 0x1c], ebp
jne 0x4050ed
lea ecx, [esp + 0x18]
lea edx, [ebx + 0x114]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push edi
push ecx
call esi
mov eax, dword [0x537810]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
mov ebp, 2
push eax
push edx
mov edi, eax
mov dword [esp + 0x30], ebp
call esi
test eax, eax
jne 0x40513f
cmp dword [esp + 0x18], ebp
jne 0x40513f
cmp dword [esp + 0x1c], 3
jne 0x40513f
lea eax, [esp + 0x18]
lea ecx, [ebx + 0x117]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push edi
push eax
call esi
mov edx, dword [str.Score]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push 0
push 0
push 0
push edx
push eax
call esi
test eax, eax
jne 0x405294
mov eax, dword [esp + 0x1c]
test eax, eax
jbe 0x405294
mov edx, dword [str.Score]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push 0
push 0
push 0
push edx
push eax
call esi
mov ecx, dword [esp + 0x1c]
mov edi, eax
neg edi
sbb edi, edi
not edi
and edi, ecx
push edi
call fcn.004e8303
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
mov edx, dword [str.Score]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 1
push ecx
push ebp
push 0
push 0
push edx
push eax
mov dword [esp + 0x34], edi
call esi
test eax, eax
jne 0x405287
lea edx, [edi + ebp]
mov eax, ebp
cmp edx, ebp
mov ecx, 0x2839609e
jbe 0x4051f3
xor byte [eax], cl
inc eax
rol ecx, 3
cmp eax, edx
jb 0x4051e9
lea ecx, [ebp + 0x10]
xor eax, eax
lea esi, [ecx + edi - 0x10]
cmp esi, ecx
jbe 0x405221
xor edx, edx
mov dl, byte [ecx]
xor eax, edx
mov edx, eax
shl edx, 6
xor edx, eax
shl edx, 2
xor edx, eax
shl edx, 2
xor edx, eax
shl edx, 3
xor eax, edx
inc ecx
cmp ecx, esi
jb 0x405200
cmp eax, dword [ebp + 0xa]
jne 0x405287
mov ecx, ebp
lea eax, [ebx + 0x188]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
xor edx, edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov dl, byte [ebp + 0xe]
xor eax, eax
mov al, byte [ebp + 0xf]
imul eax, edx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
push eax
call fcn.004e8303
add ebx, 0x198
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.0040c290
lea ecx, [edi - 0x10]
mov dword [ebx], esi
mov edi, dword [ebx]
mov edx, ecx
lea esi, [ebp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
je 0x405294
push ebp
call fcn.004e7830
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x4052a7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret