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

Disassembly:
mov eax, 0x41c3fa
call fcn.00411e88
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.004126a0
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 0x406d62
cmp dword [ebp - 0x18], ebx
jne 0x406be6
push 0x10
call fcn.00411ea7
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x406bdd
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.0040b7db
mov eax, dword [ebp - 0x1c]
jmp 0x406bdf
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.004126a0
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 0x406c5f
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x18]
call fcn.00406b3c
jmp 0x406d1f
push 0xc
call fcn.00411ea7
cmp eax, ebx
pop ecx
je 0x406c78
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [ebp - 0x1c], eax
jmp 0x406c7b
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
call fcn.00409ec8
mov ecx, dword [ebp - 0x1c]
push esi
mov dword [eax], ecx
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.004126a0
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.00409ec8
mov ecx, dword [eax]
call fcn.004010e7
push esi
lea eax, [ebp - 0x130]
push ebx
push eax
call fcn.004126a0
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 0x4213b0
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.00409ec8
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.004126a0
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 0x406bac
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.004126a0
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.00411ea7
cmp eax, ebx
pop ecx
je 0x406dca
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [ebp - 0x1c], eax
jmp 0x406dcd
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00409ec8
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.00409ec8
mov ecx, dword [eax]
call fcn.004010e7
cmp dword [ebp - 0x28], ebx
jne 0x406e4a
push esi
lea eax, [ebp - 0x130]
push ebx
push eax
mov dword [ebp - 0x10], esi
call fcn.004126a0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x4213b0
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.00409ec8
mov ecx, dword [eax]
add ecx, 4
call fcn.004010e7
jmp 0x406e5e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00409ec8
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