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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412190
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.0040b7a0
test al, al
je 0x4087ef
mov dword [ebp - 0x20], 1
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jmp 0x4087f9
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 0x40898c
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebx - 1], 0x5c
jne 0x408839
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 0x40887d
mov dword [ebp - 0x1c], 1
jmp 0x408888
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40898c
cmp dword [ebp - 0x20], 1
jne 0x40890b
lea eax, [ebp + 0xc]
push eax
call fcn.0040b840
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 0x4088ec
mov eax, dword [ebp - 0x30]
push ebx
xor esi, esi
push str.Checking_Wow64_Key__s
push esi
push eax
call fcn.004044c0
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 0x4088ff
mov dword [ebp - 0x24], 1
lea ecx, [ebp + 0xc]
push ecx
call fcn.0040b800
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40898c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, edx
jne 0x40898c
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40897f
mov ecx, dword [ebp - 0x30]
push ebx
push str.Key__s_has_been_removed_from_Registry
push eax
push ecx
call fcn.004044c0
add esp, 0x10
push ebx
call fcn.00403180
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x419f28
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 0x4087f7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc