Function at 0x1011ef28
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013b394
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x1011ef63
push 0x1d9
push str.olereg.cpp
call fcn.100d7320
test eax, eax
je 0x1011ef63
int3
xor eax, eax
test eax, eax
jne 0x1011ef49
cmp dword [ebp + 0x10], 0
je 0x1011ef89
cmp dword [ebp + 0xc], 0
jne 0x1011ef89
push 0x1da
push str.olereg.cpp
call fcn.100d7320
test eax, eax
je 0x1011ef89
int3
xor ecx, ecx
test ecx, ecx
jne 0x1011ef69
lea ecx, [ebp - 0x18]
call fcn.100d38c7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100d38c7
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0x18], 0x80000000
jne 0x1011efce
lea edx, [ebp - 0x1c]
push edx
push str.CLSID
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1011f14f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp + 8], eax
cmp dword [ebp + 0x18], 0x80000000
jne 0x1011f007
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
test edx, edx
jne 0x1011f007
jmp 0x1011efd5
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.100b3a7e
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.100b3a7e
cmp dword [ebp + 0x18], 0x80000000
jne 0x1011f070
lea ecx, [ebp - 0x18]
call fcn.100d394c
test eax, eax
je 0x1011f070
mov edx, dword [ebp - 0x20]
push edx
push str.Warning:_skipping_empty_key__s._n
call fcn.100542d5
add esp, 8
jmp 0x1011efd5
cmp dword [ebp + 0x14], 0
jne 0x1011f0f0
mov dword [ebp - 0x28], pe_nt_image_headers32
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x18]
call fcn.100d396a
push eax
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x1011f0f0
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.100d3c16
and eax, 0xff
test eax, eax
je 0x1011f0eb
lea ecx, [ebp - 0x18]
call fcn.100d396a
push eax
lea edx, [ebp - 0x128]
push edx
push str.Warning:_Leaving_value__s_for_key__s_in_registry_n
call fcn.100542d5
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.100d396a
push eax
push str._tintended_value_was__s._n
call fcn.100542d5
add esp, 8
jmp 0x1011efd5
lea ecx, [ebp - 0x14]
call fcn.100d396a
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x14]
call fcn.100d396a
push eax
push 1
lea ecx, [ebp - 0x18]
call fcn.100d396a
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x1011f14a
lea ecx, [ebp - 0x14]
call fcn.100d396a
push eax
lea ecx, [ebp - 0x18]
call fcn.100d396a
push eax
push str.Error:_failed_setting_key__s_to_value__s._n
call fcn.100542d5
add esp, 0xc
mov dword [ebp - 0x10], 0
jmp 0x1011f14f
jmp 0x1011efd5
cmp dword [ebp - 0x1c], 0
je 0x1011f15f
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10087a5c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10087a5c
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14