Function at 0x1001c347
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100494f0
call fcn.100464e0
sub esp, 0x234
push ebx
mov dword [ebp - 0x20], ecx
push esi
xor ebx, ebx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call sub.MFC42u.DLL_CString::CString_1
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x23e]
mov word [ebp - 0x240], bx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 0x20a
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0xd], bl
call fcn.1001c53a
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push str.hkcr
mov byte [ebp - 4], 1
mov eax, dword [edi]
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x1001c3bc
mov ecx, 0x80000000
jmp 0x1001c403
mov eax, dword [edi]
push str.hkcu
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x1001c3d3
mov ecx, 0x80000001
jmp 0x1001c403
mov eax, dword [edi]
push str.hklm
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x1001c3ea
mov ecx, SysStringLen
jmp 0x1001c403
mov edi, dword [edi]
push str.hkus
push edi
call esi
pop ecx
test eax, eax
pop ecx
jne 0x1001c4f2
mov ecx, SysStringLen
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x20019
mov eax, dword [eax]
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1001c4f2
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x240]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1001c4f2
lea eax, [ebp - 0x240]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::operator
lea eax, [ebp + 0x10]
push 1
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Right
mov esi, 0x1005cd28
push esi
push dword [eax]
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
cmp eax, ebx
pop ecx
lea ecx, [ebp + 0x10]
setne byte [ebp + 0xf]
call sub.MFC42u.DLL_CString::CString
cmp byte [ebp + 0xf], bl
je 0x1001c492
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::operator_1
push dword [ebp + 0x18]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
call sub.MFC42u.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.100460f4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
call fcn.100460f4
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x30]
push eax
call fcn.100460f4
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ecx + 4]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.1001c7d9
mov byte [ebp - 0xd], 1
cmp dword [ebp - 0x18], ebx
je 0x1001c503
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18