Function at 0x104e2c6
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xa0]
push edi
xor edi, edi
cmp eax, edi
je 0x104e8e8
push ebx
mov ebx, dword [eax + 0x40]
push ebp
call sub.MFC42.DLL_AfxGetModuleState
cmp dword [ebx + 0x8a8], edi
je 0x104e5fa
lea ecx, [esi + 0x31c]
call fcn.0104ae15
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x100a80c
push ebx
push edi
push 0x14d
push dword [esi + 0x13c]
call ebp
cmp eax, 0xffffffff
jne 0x104e630
push ebx
push edi
push 0x143
push dword [esi + 0x13c]
call ebp
lea ebx, [esi + 0x11c]
mov ecx, ebx
call fcn.0101eb23
dec eax
push eax
mov ecx, ebx
call fcn.0101eb49
mov edx, dword [esi + 0x110]
cmp edx, edi
mov dword [esp + 0x10], edx
jle 0x104e368
xor eax, eax
mov ecx, edx
mov ebx, dword [esi + 0x10c]
mov dword [ebx + eax + 0x70], edi
add eax, 0x8c
dec ecx
jne 0x104e356
cmp edx, 4
mov ebp, 0xffff0002
mov ebx, 0xffff0000
jle 0x104e3cb
mov eax, dword [esi + 0x10c]
push ebp
push ebx
push edi
push edi
mov dword [eax + 0x2a0], 1
mov eax, dword [esi + 0x10c]
push edi
mov dword [eax + 0x29c], edi
mov eax, dword [esi + 0x10c]
push edi
push edi
add eax, 0x262
push eax
push 0x23
lea ecx, [esi + 0x31c]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esi + 0x10c]
push dword [ecx + 0x2b4]
lea ecx, [esi + 0x31c]
push eax
call sub.MFC42.DLL_CTreeCtrl::SetCheck
cmp dword [esp + 0x10], edi
jle 0x104e41c
mov ecx, dword [esi + 0x10c]
push ebp
push ebx
push edi
xor eax, eax
inc eax
mov dword [ecx + 0x70], eax
mov ecx, dword [esi + 0x10c]
push edi
push edi
mov dword [ecx + 0x6c], eax
mov eax, dword [esi + 0x10c]
push edi
push edi
add eax, 0x32
push eax
push 0x23
lea ecx, [esi + 0x31c]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esi + 0x10c]
push dword [ecx + 0x84]
lea ecx, [esi + 0x31c]
push eax
call sub.MFC42.DLL_CTreeCtrl::SetCheck
xor eax, eax
inc eax
cmp dword [esp + 0x10], eax
jle 0x104e47c
mov ecx, dword [esi + 0x10c]
push ebp
push ebx
push edi
mov dword [ecx + 0xfc], eax
mov eax, dword [esi + 0x10c]
push edi
push edi
mov dword [eax + 0xf8], 2
mov eax, dword [esi + 0x10c]
push edi
push edi
add eax, 0xbe
push eax
push 0x23
lea ecx, [esi + 0x31c]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esi + 0x10c]
push dword [ecx + 0x110]
lea ecx, [esi + 0x31c]
push eax
call sub.MFC42.DLL_CTreeCtrl::SetCheck
xor eax, eax
inc eax
cmp dword [esp + 0x10], 2
jle 0x104e4da
mov ecx, dword [esi + 0x10c]
push ebp
push ebx
push edi
mov dword [ecx + 0x188], eax
mov eax, dword [esi + 0x10c]
push edi
push edi
mov dword [eax + 0x184], 3
mov eax, dword [esi + 0x10c]
push edi
push edi
add eax, 0x14a
push eax
push 0x23
lea ecx, [esi + 0x31c]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esi + 0x10c]
push dword [ecx + 0x19c]
lea ecx, [esi + 0x31c]
push eax
call sub.MFC42.DLL_CTreeCtrl::SetCheck
xor eax, eax
inc eax
cmp dword [esp + 0x10], 3
jle 0x104e538
mov ecx, dword [esi + 0x10c]
push ebp
push ebx
push edi
mov dword [ecx + 0x214], eax
mov eax, dword [esi + 0x10c]
push edi
push edi
mov dword [eax + 0x210], 4
mov eax, dword [esi + 0x10c]
push edi
push edi
add eax, 0x1d6
push eax
push 0x23
lea ecx, [esi + 0x31c]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esi + 0x10c]
push dword [ecx + 0x228]
lea ecx, [esi + 0x31c]
push eax
call sub.MFC42.DLL_CTreeCtrl::SetCheck
xor eax, eax
inc eax
push 5
pop ecx
cmp dword [esp + 0x10], ecx
jle 0x104e58f
mov edx, dword [esi + 0x10c]
push ebp
push ebx
push edi
push edi
mov dword [edx + 0x32c], eax
mov eax, dword [esi + 0x10c]
push edi
mov dword [eax + 0x328], ecx
mov eax, dword [esi + 0x10c]
push edi
push edi
add eax, 0x2ee
push eax
lea ebx, [esi + 0x31c]
push 0x23
mov ecx, ebx
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esi + 0x10c]
push dword [ecx + 0x340]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CTreeCtrl::SetCheck
lea ecx, [esi + 0x35c]
call fcn.0104ae51
mov ebx, eax
cmp ebx, edi
je 0x104e8b5
xor ebp, ebp
mov eax, dword [esi + 0x10c]
push dword [eax + ebp + 0x70]
lea ecx, [esi + 0x35c]
push ebx
call sub.MFC42.DLL_CTreeCtrl::SetCheck
mov eax, dword [esi + 0x10c]
add eax, ebp
cmp dword [eax + 0x70], 1
jne 0x104e5d5
cmp dword [eax + 0x84], edi
jne 0x104e5d5
mov dword [eax + 0x70], edi
push ebx
push 1
push 0x110a
push dword [esi + 0x37c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
add ebp, 0x8c
cmp ebx, edi
jne 0x104e5a6
jmp 0x104e8b5
cmp dword [ebx + 0x1084], edi
je 0x104e8c2
lea ecx, [esi + 0x31c]
call fcn.0104ae15
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x100a800
push ebx
push edi
push 0x14d
push dword [esi + 0x13c]
call ebp
cmp eax, 0xffffffff
je 0x104e63e
pop ebp
pop ebx
pop edi
mov ecx, esi
pop esi
add esp, 4
jmp fcn.0104e14f
push ebx
push edi
push 0x143
push dword [esi + 0x13c]
call ebp
lea ebx, [esi + 0x11c]
mov ecx, ebx
call fcn.0101eb23
dec eax
push eax
mov ecx, ebx
call fcn.0101eb49
mov edx, dword [esi + 0x110]
cmp edx, edi
mov dword [esp + 0x10], edx
jle 0x104e687
xor eax, eax
mov ecx, edx
mov ebx, dword [esi + 0x10c]
mov dword [ebx + eax + 0x70], edi
add eax, 0x8c
dec ecx
jne 0x104e675
cmp edx, 6
mov ebp, 0xffff0002
mov ebx, 0xffff0000
jle 0x104e6ea
mov eax, dword [esi + 0x10c]
push ebp
push ebx
push edi
push edi
mov dword [eax + 0x3b8], 1
mov eax, dword [esi + 0x10c]
push edi
mov dword [eax + 0x3b4], edi
mov eax, dword [esi + 0x10c]
push edi
push edi
add eax, 0x37a
push eax
push 0x23
lea ecx, [esi + 0x31c]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esi + 0x10c]
push dword [ecx + 0x3cc]
lea ecx, [esi + 0x31c]
push eax
call sub.MFC42.DLL_CTreeCtrl::SetCheck
cmp dword [esp + 0x10], 3
jle 0x104e744
mov ecx, dword [esi + 0x10c]
push ebp
push ebx
push edi
xor eax, eax
inc eax
mov dword [ecx + 0x214], eax
mov ecx, dword [esi + 0x10c]
push edi
push edi
mov dword [ecx + 0x210], eax
mov eax, dword [esi + 0x10c]
push edi
push edi
add eax, 0x1d6
push eax
push 0x23
lea ecx, [esi + 0x31c]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esi + 0x10c]
push dword [ecx + 0x228]
lea ecx, [esi + 0x31c]
push eax
call sub.MFC42.DLL_CTreeCtrl::SetCheck
cmp dword [esp + 0x10], edi
jle 0x104e79a
mov eax, dword [esi + 0x10c]
push ebp
push ebx
push edi
push edi
mov dword [eax + 0x70], 1
mov eax, dword [esi + 0x10c]
push edi
mov dword [eax + 0x6c], 2
mov eax, dword [esi + 0x10c]
push edi
push edi
add eax, 0x32
push eax
push 0x23
lea ecx, [esi + 0x31c]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esi + 0x10c]
push dword [ecx + 0x84]
lea ecx, [esi + 0x31c]
push eax
call sub.MFC42.DLL_CTreeCtrl::SetCheck
xor eax, eax
inc eax
cmp dword [esp + 0x10], eax
jle 0x104e7fa
mov ecx, dword [esi + 0x10c]
push ebp
push ebx
push edi
mov dword [ecx + 0xfc], eax
mov eax, dword [esi + 0x10c]
push edi
push edi
mov dword [eax + 0xf8], 3
mov eax, dword [esi + 0x10c]
push edi
push edi
add eax, 0xbe
push eax
push 0x23
lea ecx, [esi + 0x31c]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esi + 0x10c]
push dword [ecx + 0x110]
lea ecx, [esi + 0x31c]
push eax
call sub.MFC42.DLL_CTreeCtrl::SetCheck
xor eax, eax
inc eax
cmp dword [esp + 0x10], 2
jle 0x104e853
mov ecx, dword [esi + 0x10c]
push ebp
push ebx
push edi
mov dword [ecx + 0x188], eax
mov eax, dword [esi + 0x10c]
push edi
push edi
mov dword [eax + 0x184], 4
mov eax, dword [esi + 0x10c]
push edi
push edi
add eax, 0x14a
push eax
lea ebx, [esi + 0x31c]
push 0x23
mov ecx, ebx
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov ecx, dword [esi + 0x10c]
push dword [ecx + 0x19c]
mov ecx, ebx
push eax
call sub.MFC42.DLL_CTreeCtrl::SetCheck
lea ecx, [esi + 0x35c]
call fcn.0104ae51
mov ebx, eax
cmp ebx, edi
je 0x104e8b5
xor ebp, ebp
mov eax, dword [esi + 0x10c]
push dword [eax + ebp + 0x70]
lea ecx, [esi + 0x35c]
push ebx
call sub.MFC42.DLL_CTreeCtrl::SetCheck
mov eax, dword [esi + 0x10c]
add eax, ebp
cmp dword [eax + 0x70], 1
jne 0x104e895
cmp dword [eax + 0x84], edi
jne 0x104e895
mov dword [eax + 0x70], edi
push ebx
push 1
push 0x110a
push dword [esi + 0x37c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
add ebp, 0x8c
cmp ebx, edi
jne 0x104e866
lea ecx, [esi + 0x19c]
push 1
call sub.MFC42.DLL_CWnd::EnableWindow
lea ecx, [esi + 0x11c]
call fcn.0101eb36
mov ecx, esi
mov dword [esi + 0x3b0], eax
call fcn.0104ca62
pop ebp
pop ebx
pop edi
mov ecx, esi
pop esi
add esp, 4
jmp fcn.0104b3b0
pop edi
pop esi
pop ecx
ret