Function at 0x411fa0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd6d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMenuOrderFavorites_
lea ecx, [ebp - 0x14]
call fcn.004c57f5
mov eax, dword [0x52251c]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x14]
call fcn.004c5b63
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, esi
jne 0x4121a5
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x28]
push ecx
push esi
push edx
push esi
push str.Order
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
call ebx
mov eax, dword [ebp - 0x20]
cmp eax, esi
jbe 0x4120de
push eax
mov byte [ebp - 4], 2
call fcn.004c5dbe
add esp, 4
lea ecx, [ebp - 0x20]
mov edi, eax
mov eax, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edi
push edx
push esi
push str.Order
push eax
mov dword [ebp - 4], 1
call ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMenuOrderFavorites_
lea ecx, [ebp - 0x14]
call fcn.004c5910
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push ebx
call fcn.004c5b63
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push esi
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4120b4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push eax
push edi
push 3
push esi
push str.Order
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004c5de7
add esp, 4
jmp 0x4120e1
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [ebp - 0x134]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x412173
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
call fcn.004c5910
push 0x51c594
lea ecx, [ebp - 0x14]
call fcn.004c5b63
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004c5b63
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004c5910
push 0x51c594
lea ecx, [ebp - 0x1c]
call fcn.004c5b63
lea edx, [ebp - 0x134]
lea ecx, [ebp - 0x1c]
push edx
call fcn.004c5b63
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00411fa0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x134]
inc esi
push 0x104
push edx
push esi
push eax
call edi
test eax, eax
je 0x4120fe
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMenuOrderFavorites_
lea ecx, [ebp - 0x14]
call fcn.004c5910
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push edx
call fcn.004c5b63
mov eax, dword [ebp - 0x14]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004c5787
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004c5787
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8