Function at 0x406f96
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x419386
call fcn.0040ed94
sub esp, 0x13c
push ebx
push esi
push edi
mov dword [ebp - 0x2c], ecx
push 5
mov esi, str.BuildMenuFromRegistry
pop ecx
lea edi, [ebp - 0x148]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ebx
call fcn.0040f5d0
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4071bc
cmp dword [ebp - 0x18], ebx
jne 0x407040
push 0x10
call fcn.0040edb3
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x407037
mov cl, byte [ebp + 0xf]
mov byte [eax + 8], bl
mov byte [eax], cl
mov cl, byte [ebp + 0xf]
mov byte [eax + 1], cl
mov ecx, eax
call fcn.00409490
mov eax, dword [ebp - 0x1c]
jmp 0x407039
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Order
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x20]
call edi
push esi
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x10], esi
call fcn.0040f5d0
add esp, 0xc
lea eax, [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4070b9
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x18]
call fcn.00406f96
jmp 0x407179
push 0xc
call fcn.0040edb3
cmp eax, ebx
pop ecx
je 0x4070d2
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [ebp - 0x1c], eax
jmp 0x4070d5
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
call fcn.00408202
mov ecx, dword [ebp - 0x1c]
push esi
mov dword [eax], ecx
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.0040f5d0
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Name
push dword [ebp - 0x20]
call edi
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408202
mov ecx, dword [eax]
call fcn.004010e7
push esi
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.0040f5d0
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x41e3a8
push dword [ebp - 0x20]
call edi
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408202
mov ecx, dword [eax]
add ecx, 4
call fcn.004010e7
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x10], esi
call fcn.0040f5d0
add esp, 0xc
inc dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x28]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x407006
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Order
mov dword [ebp - 0x14], ebx
push dword [ebp + 0xc]
call edi
push esi
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x10], esi
call fcn.0040f5d0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.Name
push dword [ebp + 0xc]
call edi
push 0xc
call fcn.0040edb3
cmp eax, ebx
pop ecx
je 0x407224
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [ebp - 0x1c], eax
jmp 0x407227
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00408202
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408202
mov ecx, dword [eax]
call fcn.004010e7
cmp dword [ebp - 0x28], ebx
jne 0x4072a4
push esi
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x10], esi
call fcn.0040f5d0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x41e3a8
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00408202
mov ecx, dword [eax]
add ecx, 4
call fcn.004010e7
jmp 0x4072b8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00408202
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8