Function at 0x1010fd1
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1017741
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x19c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov esi, 0x1007410
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
xor ebx, ebx
mov eax, dword [esi]
push 0x1007450
push esi
mov dword [ebp - 0x14], ebx
call dword [eax]
cmp eax, ebx
jge 0x1011039
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0x1007440
push esi
call dword [eax]
cmp eax, ebx
jge 0x1011039
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push 0x1007430
push esi
call dword [eax]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jl 0x1011059
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jl 0x1011059
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
push 0x25c
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x1011077
mov ecx, eax
call fcn.0100e789
mov ebx, eax
lea edi, [ebx + 8]
lea esi, [ebp - 0x30]
mov dword [ebx + 4], 2
or dword [ebp - 4], 0xffffffff
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
and byte [ebx + 0x18], 0
and word [ebx + 0x40], 0
push 1
pop edi
lea ecx, [ebx + 0x54]
push dword [ebp + 0xc]
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x50], esi
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
push 0x10
mov dword [ebp - 4], edi
pop ecx
mov edi, 0x1007410
lea esi, [ebp - 0x30]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1011195
lea eax, [ebp - 0xa8]
push 0x28
push eax
lea eax, [ebx + 8]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0xa8]
test eax, eax
je 0x101111c
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.01016a50
mov eax, esp
lea ecx, [ebp - 0xa8]
push esi
push ecx
push eax
call sub.MFC42.DLL_AfxW2AHelper
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x58]
push eax
call esi
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.0100ea63
lea eax, [ebp - 0x58]
mov dword [ebp + 8], 0x100
push eax
lea eax, [ebp - 0x10]
push 0x1001b18
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x1a8]
push eax
call esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp - 0x10]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x1a8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push 0x10047e0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x10111ab
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push 0x10047dc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x10]
call fcn.0101123c
test eax, eax
jne 0x1011209
mov ecx, ebx
call fcn.0100e85b
test ebx, ebx
je 0x10111cf
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
mov esi, 0x80004005
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], esi
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp + 0xc]
push 0x10047a0
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::Format
pop ecx
lea eax, [ebp + 0xc]
pop ecx
push esi
push eax
call fcn.01015db9
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x1c]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 0x18], eax
lea esp, [ebp - 0x1b4]
mov dword fs:[0], ecx
pop edi
pop esi
setge al
pop ebx
leave
ret 8