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

Disassembly:
push 0xffffffffffffffff
push 0x4ee288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x10], edi
mov esi, dword [str.SOFTWAREOXXOgamesDiamondDrop]
lea ecx, [esp + 0x10]
mov dword [esp + 0x70], edi
call fcn.00405650
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
push 0x2001f
push edi
push edi
push edi
push esi
push 0x80000001
mov dword [esp + 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405622
mov eax, dword [str.Game]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push 0
push ecx
push 0
mov ebp, 0xf
push eax
push edx
mov edi, eax
mov dword [esp + 0x2c], ebp
call esi
test eax, eax
jne 0x405462
cmp dword [esp + 0x14], ebp
jne 0x405462
mov eax, dword [esp + 0x18]
mov ebp, 3
cmp eax, ebp
jne 0x405467
lea eax, [esp + 0x14]
lea ecx, [ebx + 0x1d1]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push edi
push eax
call esi
jmp 0x405467
mov ebp, 3
mov eax, dword [0x4ef348]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push 0
mov edi, eax
push eax
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x2c], ebp
call esi
test eax, eax
jne 0x4054b3
cmp dword [esp + 0x14], ebp
jne 0x4054b3
cmp dword [esp + 0x18], ebp
jne 0x4054b3
lea ecx, [esp + 0x14]
lea edx, [ebx + 0x1cc]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push edi
push ecx
call esi
mov eax, dword [0x4ef344]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push 0
push ecx
push 0
mov ebp, 2
push eax
push edx
mov edi, eax
mov dword [esp + 0x2c], ebp
call esi
test eax, eax
jne 0x405505
cmp dword [esp + 0x14], ebp
jne 0x405505
cmp dword [esp + 0x18], 3
jne 0x405505
lea eax, [esp + 0x14]
lea ecx, [ebx + 0x1cf]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push edi
push eax
call esi
mov eax, dword [str.Score]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push 0
mov edi, eax
push eax
mov eax, dword [esp + 0x24]
mov ebp, 0x4c
push eax
mov dword [esp + 0x2c], ebp
call esi
test eax, eax
jne 0x4055c0
cmp dword [esp + 0x14], ebp
jne 0x4055c0
cmp dword [esp + 0x18], 3
jne 0x4055c0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push edi
push ecx
call esi
test eax, eax
sete al
test al, al
je 0x4055c0
xor eax, eax
lea ecx, [esp + 0x20]
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
lea edx, [esp + 0x68]
cmp ecx, edx
jb 0x40556c
cmp dword [esp + 0x1c], eax
jne 0x4055c0
lea esi, [ebx + 0x1e0]
lea edx, [esp + 0x20]
lea eax, [esp + 0x20]
mov ecx, 0x716384a4
sub esi, edx
mov dl, byte [eax]
xor dl, cl
mov byte [esi + eax], dl
inc eax
lea edx, [esp + 0x68]
rol ecx, 1
cmp eax, edx
jb 0x4055ac
jmp 0x405622
lea esi, [ebx + 0x1e0]
mov ecx, 0xf
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea edi, [ebx + 0x21c]
cmp edi, esi
jbe 0x405622
mov ebp, 0xfffffe18
sub ebp, ebx
lea ecx, [esi + ebp + 8]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
push 8
shr eax, 0x1f
add edx, eax
mov eax, 5
sub eax, edx
lea ecx, [eax + eax*4]
xor ecx, 0x9cb1d745
mov dword [esi + 8], ecx
mov edx, dword [str.Empty]
push edx
push esi
call fcn.004bba60
add esi, 0xc
add esp, 0xc
cmp esi, edi
jb 0x4055e2
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x405635
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret