Function at 0x1017aefc
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x294
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
mov ebx, dword [esp + 0x2b0]
push edi
lea esi, [esp + 0x2a4]
lea edi, [esp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 4
pop ecx
mov edi, 0x1000e4fc
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov dword [esp + 0xc], 0x104
je 0x1017b1dc
mov ecx, dword [0x10239cd8]
push ebp
lea eax, [esp + 0x14]
push eax
call fcn.1016f992
xor ecx, ecx
test eax, eax
sete cl
push 0x28
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x1c]
push eax
shl ecx, 3
xor ecx, dword [ebx + 0x18]
and ecx, 8
xor dword [ebx + 0x18], ecx
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [esp + 0x14c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1000c540
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push str.InprocServer32
mov edi, 0x1024046c
push edi
lea eax, [esp + 0x2c]
push eax
push edi
push str.Clsid
lea eax, [esp + 0x60]
push 0x1006e7dc
push eax
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0x54]
push eax
push SysReAllocString
call esi
test eax, eax
jne 0x1017b1d9
lea ecx, [esp + 0x19c]
lea eax, [ebx + 8]
push ecx
push eax
call fcn.1017b81f
test eax, eax
je 0x1017b1d9
lea eax, [esp + 0x24]
push eax
push edi
push str.Clsid
lea eax, [esp + 0x58]
push 0x1014cbb0
push eax
call ebp
and dword [esp + 0x24], 0
add esp, 0x14
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x54]
push eax
push SysReAllocString
call esi
mov ebp, dword [sym.imp.msvcr100.dll_free]
test eax, eax
jne 0x1017b1ac
push dword [esp + 0x10]
call dword [sym.imp.msvcr100.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1017b1ac
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x54]
push eax
push SysReAllocString
call esi
test eax, eax
jne 0x1017b1ac
cmp dword [esp + 0x10], 0xfe
jle 0x1017b09c
and dword [esp + 0x10], 0
mov eax, edi
push eax
call dword [sym.imp.USER32.dll_CharNextA]
test eax, eax
je 0x1017b099
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 0xfd
jl 0x1017b07d
mov byte [eax], 0
push edi
lea eax, [ebx + 4]
push eax
call fcn.1017b81f
push edi
mov esi, eax
call ebp
pop ecx
test esi, esi
je 0x1017b1ac
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.Instance_CLSID
mov ecx, 0x1024046c
push ecx
lea eax, [esp + 0x2c]
push eax
push ecx
push str.Clsid
lea eax, [esp + 0x60]
push 0x1006e7dc
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0x54]
push eax
push SysReAllocString
mov dword [esp + 0x20], 0x104
call edi
test eax, eax
lea eax, [esp + 0x19c]
je 0x1017b115
lea eax, [esp + 0x24]
push eax
call fcn.1015692e
push str.MiscStatus
mov ecx, 0x1024046c
push ecx
mov dword [ebx + 0x14], eax
lea eax, [esp + 0x2c]
push eax
push ecx
push str.Clsid
lea eax, [esp + 0x60]
push 0x1017b1f8
push eax
call esi
and dword [ebx + 0x18], 0xfffffffb
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0x54]
push eax
push SysReAllocString
mov dword [esp + 0x20], 0x104
call edi
test eax, eax
jne 0x1017b186
lea eax, [esp + 0x19c]
push eax
call dword [sym.imp.msvcr100.dll_atol]
pop ecx
test eax, 0x400
je 0x1017b186
or dword [ebx + 0x18], 4
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.1017b81f
test eax, eax
je 0x1017b1ac
push 1
push ebx
push dword [0x1023986c]
call fcn.1015692e
test eax, eax
je 0x1017b1ac
xor eax, eax
inc eax
jmp 0x1017b1db
cmp dword [ebx + 8], 0
je 0x1017b1b8
push dword [ebx + 8]
call ebp
pop ecx
and dword [ebx + 8], 0
cmp dword [ebx + 4], 0
je 0x1017b1c8
push dword [ebx + 4]
call ebp
pop ecx
and dword [ebx + 4], 0
cmp dword [ebx], 0
je 0x1017b1d6
push dword [ebx]
call ebp
pop ecx
and dword [ebx], 0
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x294
ret 0x14