Function at 0x10046f50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100786b2
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x1009e034]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x1009e034]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
push 1
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerMenuOrderStart_Menu2Programs
push 0x80000001
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], 0
call fcn.1005c350
lea eax, [esp + 0x4c]
mov dword [esp + 0x2e8], 0
push eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0xc8], 0
call fcn.1005cd10
mov byte [esp + 0x2e8], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
lea ebx, [ebx]
test ecx, ecx
je 0x10047295
test eax, eax
js 0x1004728a
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
cmp word [esp + 0xcc], ax
je 0x1004704f
lea eax, [esp + 0xcc]
lea edx, [eax + 2]
jmp 0x10047040
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10047040
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x38]
call fcn.10003de0
mov byte [esp + 0x2e8], 2
cmp dword [esp + 0x40], 1
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
jb 0x1004720d
cmp edx, 8
lea eax, [esp + 0x30]
cmovae eax, ecx
cmp word [eax], 0x40
je 0x1004720d
xor eax, eax
push eax
push 0x1007d0cc
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.10003de0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
mov byte [esp + 0x2e8], 3
call fcn.10048b80
test al, al
sete bl
mov byte [esp + 0x2e8], 2
cmp dword [esp + 0x2c], 8
jb 0x100470e8
push dword [esp + 0x18]
call esi
add esp, 4
test bl, bl
je 0x100471f8
cmp dword [esp + 0x64], 8
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
call fcn.10008e70
push 1
push 0x1007d9c8
lea ecx, [esp + 0x20]
mov byte [esp + 0x2f0], 4
call fcn.10008160
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
call fcn.10007f90
cmp dword [esp + 0x2c], 8
push dword [esp + 0x68]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x54]
lea ecx, [esp + 0x90]
mov dword [esp + 0x90], 0
call fcn.1005c350
push 0
lea eax, [esp + 0x88]
push eax
push ecx
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x2f4], 5
call fcn.1004bcb0
cmp dword [esp + 0xb8], 8
jb 0x10047192
push dword [esp + 0xa4]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x9c], 8
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], 0
mov word [esp + 0xa4], ax
jb 0x100471c8
push dword [esp + 0x88]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], 0
mov word [esp + 0x88], ax
jb 0x100471f8
push dword [esp + 0x18]
call esi
add esp, 4
mov byte [esp + 0x2e8], 1
cmp dword [esp + 0x44], 8
jb 0x10047220
push dword [esp + 0x30]
jmp 0x1004721b
mov byte [esp + 0x2e8], 1
cmp edx, 8
jb 0x10047220
push ecx
call esi
add esp, 4
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
dec eax
mov dword [esp + 0xc8], eax
test ecx, ecx
je 0x1004727b
test eax, eax
js 0x1004727b
lea edx, [esp + 0xbc]
push edx
push 0
push 0
push 0
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0xe0]
push edx
push eax
push ecx
mov dword [esp + 0x68], 0x103
call edi
mov ecx, dword [esp + 0xc4]
test eax, eax
mov eax, dword [esp + 0xc8]
je 0x10047000
xor edx, edx
mov word [esp + 0xcc], dx
jmp 0x10047000
test ecx, ecx
je 0x10047295
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x80], 8
jb 0x100472a8
push dword [esp + 0x6c]
call esi
add esp, 4
xor eax, eax
cmp dword [esp + 0x64], 8
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
jb 0x100472d2
push dword [esp + 0x50]
call esi
add esp, 4
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.1006e4e6
mov esp, ebp
pop ebp
ret