Function at 0x1014401
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1017c78
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x270
push ebx
push esi
push edi
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push 0x20019
push edi
mov dword [ebp - 0x50], 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x10144ef
lea eax, [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x54]
push edi
push eax
push edi
mov dword [ebp - 0x18], edi
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call esi
mov ebx, eax
cmp ebx, edi
je 0x1014490
cmp ebx, 0x7a
je 0x1014490
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, ebx
jmp 0x10147b8
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
pop ecx
lea eax, [ebp - 0x18]
mov dword [ebp + 0x10], ebx
push eax
lea eax, [ebp - 0x54]
push ebx
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
mov esi, eax
cmp esi, edi
je 0x10144ca
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x10144ef
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x1014502
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x10147b8
cmp dword [ebp - 0x28], edi
jne 0x101459a
lea eax, [ebp - 0x10]
push 0x1004e1c
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
pop ecx
mov dword [ebp - 0x68], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
pop ecx
lea eax, [ebp - 0x6c]
mov ebx, 0x100d
push eax
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0x6c], 2
push dword [edi + 0x20]
call esi
cmp eax, 0xffffffff
jne 0x10147a0
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
push 0x1007
mov dword [ebp - 0x4c], eax
push dword [edi + 0x20]
mov dword [ebp - 0x48], eax
call esi
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
push ebx
push dword [edi + 0x20]
call esi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0x1006
mov dword [ebp - 0x48], 1
push dword [edi + 0x20]
mov dword [ebp - 0x3c], 0x1004e18
call esi
jmp 0x10147a0
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x100d
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x101479a
mov eax, dword [ebp - 0x74]
mov cl, byte [eax]
test cl, cl
jne 0x10146a4
mov ecx, 0xff
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x70]
add eax, 8
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x17c]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x1014626
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x10]
push 0x1004e10
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x1014636
lea eax, [ebp - 0x10]
push 0x1004df8
push eax
call sub.MFC42.DLL_CString::Format
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x6c], 2
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
push ebx
push dword [edi + 0x20]
call esi
cmp eax, 0xffffffff
jne 0x1014792
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
push 0x1007
mov dword [ebp - 0x4c], eax
push dword [edi + 0x20]
mov dword [ebp - 0x48], eax
call esi
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
push ebx
push dword [edi + 0x20]
call esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], 1
test byte [eax + 4], 1
mov dword [ebp - 0x3c], 0x1004e18
ja 0x101476b
jmp 0x1014764
cmp cl, 1
jne 0x101477d
mov ecx, 0xff
add eax, 8
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x17c]
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x1014703
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x10]
push 0x1004e10
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x1014713
lea eax, [ebp - 0x10]
push 0x1004df8
push eax
call sub.MFC42.DLL_CString::Format
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x6c], 2
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
push ebx
push dword [edi + 0x20]
call esi
cmp eax, 0xffffffff
jne 0x1014792
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
push 0x1007
mov dword [ebp - 0x4c], eax
push dword [edi + 0x20]
mov dword [ebp - 0x48], eax
call esi
lea eax, [ebp - 0x6c]
push eax
push 0xffffffffffffffff
push ebx
push dword [edi + 0x20]
call esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x3c], 0x1004df4
lea eax, [ebp - 0x50]
push eax
push 0
push 0x1006
push dword [edi + 0x20]
call esi
jmp 0x1014792
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push eax
push 0x1004de0
push eax
push 1
call sub.MFC42.DLL_CListCtrl::InsertItem
inc dword [ebp - 0x20]
jmp 0x10145a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_free]
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10