Function at 0x100bb896
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20
and dword [esp], 0
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov esi, dword [ebp + 0xb8]
push 0x800
xor edi, edi
mov dword [esp + 0x2c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], VariantClear
call dword [sym.imp.msvcr100.dll_malloc]
mov ebx, eax
pop ecx
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x101114ca
mov ecx, ebp
call fcn.100bb98b
mov dword [esp + 0x1c], eax
test eax, eax
je 0x100bb966
test esi, esi
jne 0x100bc4a5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [esp + esi*4 + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x100bb915
mov dword [esp + 0x10], edi
push eax
call fcn.100bb880
mov edi, eax
test edi, edi
js 0x100bb936
push dword [esp + 0x10]
mov ecx, ebp
push dword [esp + esi*4 + 0x2c]
call fcn.1015692e
push dword [esp + 0x10]
call ebx
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, 2
jl 0x100bb8f9
lea esi, [ebp + 0x9c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov ebx, eax
test ebx, ebx
jne 0x101114f5
mov ebx, dword [esp + 0x18]
push dword [esp + 0x1c]
call dword [sym.imp.msvcr100.dll_free]
pop ecx
push ebx
call dword [sym.imp.msvcr100.dll_free]
mov dword [esp], 0x150
call fcn.100fc596
cmp edi, eax
je 0x100bc4d7
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x100bc4c2
mov dword [esp + 0x10], esi
push eax
call fcn.100bb880
mov edi, eax
test edi, edi
js 0x100bb95b
jmp 0x101114d4
xor edi, edi
jmp 0x100bb981
mov eax, 0x8007000e
jmp 0x100bb983
push dword [esp + 0x10]
mov ecx, ebp
push SysReAllocString
call fcn.1015692e
push dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x100bb940
cmp dword [ebx + 0x58], 0
je 0x10111655
push dword [ebx + 0x2c]
call dword [sym.imp.kernel32.dll_lstrlenA]
push dword [esp + 0x1c]
mov esi, eax
call dword [sym.imp.kernel32.dll_lstrlenA]
add esi, 2
add eax, esi
push eax
call dword [sym.imp.msvcr100.dll_malloc]
mov esi, eax
pop ecx
mov dword [esp + 0x20], esi
test esi, esi
je 0x10111655
push dword [ebx + 0x2c]
push dword [esp + 0x20]
push 0x1014cbb8
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push esi
push dword [ebx + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x24], eax
test eax, eax
je 0x101115a1
push esi
call dword [sym.imp.msvcr100.dll_free]
cmp dword [esp + 0x28], 2
pop ecx
jne 0x10111669
push dword [ebx + 0x2c]
mov ecx, ebp
call fcn.1015692e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
test eax, eax
je 0x10111594
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x20]
lea ecx, [ebp + 0x9c]
mov eax, dword [ecx]
jmp 0x100bb94a
lea esi, [ebx + 0x30]
mov eax, dword [esi]
test eax, eax
je 0x101115b7
cmp eax, dword [ebx + 0x2c]
je 0x101115b7
push eax
call dword [sym.imp.msvcr100.dll_free]
pop ecx
and dword [esi], 0
push esi
push 0x1014cef4
push dword [esp + 0x1c]
mov ecx, ebp
call fcn.1015692e
mov edi, eax
test edi, edi
js 0x100bb957
lea esi, [ebx + 0x34]
cmp dword [esi], 0
je 0x101115e9
push dword [esi]
call dword [sym.imp.msvcr100.dll_free]
and dword [esi], 0
pop ecx
push esi
push 0x1014cf04
push dword [esp + 0x1c]
mov ecx, ebp
call fcn.1015692e
lea eax, [esp + 0x28]
push eax
lea esi, [ebx + 0x14]
push esi
push 0
push 0
push 0x1014cf10
push dword [esp + 0x28]
mov dword [esp + 0x40], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1011165e
cmp dword [ebx + 0x18], eax
je 0x1011162c
or dword [esi], 2
jmp 0x1011162f
and dword [esi], 0xfffffffd
cmp dword [esi], 2
je 0x10111639
cmp dword [esi], 3
jne 0x10111640
mov dword [ebx + 0x44], 1
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x20]
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov eax, dword [ebx]
mov ecx, ebx
jmp 0x100bb94a
push dword [esp + 0x20]
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov edi, 0x80004005
jmp 0x100bb957