Function at 0x1023145e
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x358
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x354], eax
mov eax, dword [esp + 0x360]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x370]
push edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x10231493
mov eax, dword [eax - 4]
shr eax, 1
jne 0x1023149a
push 5
call fcn.10089e37
test esi, esi
je 0x102314a5
mov eax, dword [esi - 4]
shr eax, 1
jne 0x102314ac
push 5
call fcn.10089e37
mov ebx, dword [esp + 0x36c]
xor eax, eax
mov word [ebx], ax
lea eax, [esp + 0x15c]
push eax
mov eax, dword [esp + 0x18]
mov edi, 0x104
push esi
mov dword [esp + 0x40], edi
xor ebp, ebp
call fcn.1015692e
test eax, eax
je 0x102314df
push eax
call fcn.10089e37
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x160]
push eax
push SysReAllocString
call fcn.1015692e
test eax, eax
jne 0x10231711
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x28]
push eax
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x38]
push eax
push eax
push eax
xor esi, esi
push esi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x102316de
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x102316b6
push 2
pop ecx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
push ecx
push 8
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x50], esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov edi, eax
test edi, edi
je 0x102316de
mov eax, 0x2008
mov word [ebx], ax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
add eax, eax
push eax
mov dword [ebx + 8], edi
call fcn.1000ac41
mov ebp, eax
test ebp, ebp
jne 0x1023159c
push 7
jmp 0x102316e0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
xor ecx, ecx
lea eax, [esp + 0x28]
push eax
push ecx
lea eax, [esp + 0x34]
push eax
push ecx
lea eax, [esp + 0x30]
push eax
push ebp
mov dword [esp + 0x2c], ecx
push ecx
jmp 0x10231698
cmp dword [esp + 0x2c], 1
jne 0x102316de
and dword [esp + 0x34], 0
push ebp
mov dword [esp + 0x34], esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x10231595
push esi
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
test eax, eax
js 0x102316d4
mov eax, dword [esp + 0x28]
dec eax
shr eax, 1
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x10231595
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push esi
push 0
push 0
lea eax, [esp + 0x30]
push eax
push ebp
push dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
push dword [esp + 0x2c]
call fcn.101fc8d9
push esi
test eax, eax
jne 0x102316c9
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x40], 1
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
test eax, eax
js 0x102316d4
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x30]
push eax
inc esi
push ebp
mov dword [esp + 0x2c], esi
push esi
push dword [esp + 0x2c]
call fcn.101fc8d9
test eax, eax
je 0x102315c2
cmp eax, 0x103
jne 0x102316de
push ebp
call fcn.1000ac28
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10231711
push 5
pop esi
jmp 0x10231700
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10231595
push eax
call fcn.1009ecbc
mov esi, eax
jmp 0x102316e1
push 5
pop esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x102316f6
test esi, esi
jne 0x102316f6
push 5
pop esi
test ebp, ebp
je 0x10231700
push ebp
call fcn.1000ac28
mov ecx, ebx
call fcn.10014cf3
test esi, esi
je 0x10231711
push esi
call fcn.10089e37
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x358
ret 0xc