Function at 0x408290
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411ec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call fcn.0040b4f0
test al, al
je 0x4082cf
mov dword [ebp - 0x20], 1
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jmp 0x4082d9
xor esi, esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
push 0xf003f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
push ecx
call esi
test eax, eax
jne 0x40846c
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebx - 1], 0x5c
jne 0x408319
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebx - 1], al
xor eax, eax
lea edx, [ebp - 0x18]
push eax
push eax
push eax
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push edx
mov edx, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push eax
push ecx
push eax
push eax
push eax
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call edi
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add edx, ecx
test edx, edx
jne 0x40835d
mov dword [ebp - 0x1c], 1
jmp 0x408368
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40846c
cmp dword [ebp - 0x20], 1
jne 0x4083eb
lea eax, [ebp + 0xc]
push eax
call fcn.0040b590
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [ebp - 0x2c]
push ecx
push 0xf013f
push 0
push ebx
push edx
call esi
test eax, eax
jne 0x4083cc
mov eax, dword [ebp - 0x30]
push ebx
xor esi, esi
push str.Checking_Wow64_Key__s
push esi
push eax
call fcn.00404400
add esp, 0x10
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
push esi
push esi
push esi
push esi
push ecx
push esi
push esi
push edx
push esi
push esi
push esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call edi
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, edx
test eax, eax
jne 0x4083df
mov dword [ebp - 0x24], 1
lea ecx, [ebp + 0xc]
push ecx
call fcn.0040b550
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40846c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, edx
jne 0x40846c
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40845f
mov ecx, dword [ebp - 0x30]
push ebx
push str.Key__s_has_been_removed_from_Registry
push eax
push ecx
call fcn.00404400
add esp, 0x10
push ebx
call fcn.004030c0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x418ea8
lea edx, [ecx + ebx - 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov eax, 1
test eax, eax
jne 0x4082d7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc