Function at 0x100232ce
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x358
mov eax, dword [0x100436e0]
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 0x10023303
mov eax, dword [eax - 4]
shr eax, 1
jne 0x1002330a
push 5
call fcn.1000c0de
test esi, esi
je 0x10023315
mov eax, dword [esi - 4]
shr eax, 1
jne 0x1002331c
push 5
call fcn.1000c0de
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.1002359e
test eax, eax
je 0x1002334f
push eax
call fcn.1000c0de
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x160]
push eax
push SysReAllocString
call fcn.1002090c
test eax, eax
jne 0x10023581
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 0x1002354e
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10023526
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 0x1002354e
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.10008870
mov ebp, eax
test ebp, ebp
jne 0x1002340c
push 7
jmp 0x10023550
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 0x10023508
cmp dword [esp + 0x2c], 1
jne 0x1002354e
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 0x10023405
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 0x10023544
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 0x10023405
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.1000a5df
push esi
test eax, eax
jne 0x10023539
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 0x10023544
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.1000a5df
test eax, eax
je 0x10023432
cmp eax, 0x103
jne 0x1002354e
push ebp
call fcn.100088c0
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10023581
push 5
pop esi
jmp 0x10023570
call dword [sym.imp.oleaut32.dll_SysStringLen]
jmp 0x10023405
push eax
call fcn.1000d7f1
mov esi, eax
jmp 0x10023551
push 5
pop esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10023566
test esi, esi
jne 0x10023566
push 5
pop esi
test ebp, ebp
je 0x10023570
push ebp
call fcn.100088c0
mov ecx, ebx
call sym.EXPSRV.dll___vbaFreeVar
test esi, esi
je 0x10023581
push esi
call fcn.1000c0de
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10029dae
add esp, 0x358
ret 0xc