Function at 0x100322d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [0x100a2bb4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x370], ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x380], eax
mov dword [ebp - 0x37c], eax
mov dword [ebp - 0x378], eax
lea eax, [ebp - 0x10c]
push 0x80
push eax
lea eax, [edi + 0x18]
mov dword [ebp - 0x38c], 0x80
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jle 0x100462c4
lea eax, [ebp - 0x10c]
push eax
push 0x100044cc
lea eax, [ebp - 0x30c]
push 0x100
push eax
call fcn.10032cbe
add esp, 0x10
test byte [0x100a4750], 2
jne 0x10046291
lea eax, [ebp - 0x388]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x30c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x100323d6
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 0x388]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x100323c8
lea ebx, [edi + 0x4c]
push ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
mov dword [ebp - 0x390], esi
test esi, esi
js 0x100323c8
cmp dword [edi + 8], 0
jne 0x100323fe
push dword [ebp - 0x388]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
js 0x100462e6
test byte [0x100a4750], 2
jne 0x10046331
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10037870
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x370]
lea ecx, [ebp - 0x394]
add eax, 0x1c
push eax
call fcn.10033224
mov eax, dword [ebp - 0x370]
xor ecx, ecx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x370], edx
test edx, edx
jne 0x10032462
cmp ecx, edx
jb 0x10032442
lea eax, [edi + 0x5c]
push eax
push 0x100044fc
push 1
push 0
push ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
mov eax, dword [ebp - 0x394]
test eax, eax
je 0x100323c8
dec dword [eax + 0x1c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100323c8
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [ebp - 0x374], eax
lea ecx, [ecx]
lea ecx, [ebp - 0x36c]
mov edx, esi
push ecx
mov ecx, eax
call fcn.10032d1d
mov edx, ebx
lea ecx, [ebp - 0x320]
call fcn.1003020b
test eax, eax
jne 0x100462aa
mov edx, dword [ebp - 0x370]
inc esi
mov eax, dword [ebp - 0x374]
cmp esi, edx
jb 0x10032470
mov dword [ebp - 0x374], esi
mov esi, dword [ebp - 0x390]
mov ecx, dword [ebp - 0x374]
jmp 0x10032428
push 0x24d
mov edx, 0x10021660
mov ecx, eax
call fcn.10051341
add esp, 4
jmp 0x1003235a
mov eax, dword [ebp - 0x364]
cmp eax, dword [edi + 8]
jne 0x10032495
mov edx, dword [ebp - 0x370]
jmp 0x100324a6
test byte [0x100a4750], 2
je 0x100462e1
push 0x27f
mov edx, 0x10021660
xor ecx, ecx
call fcn.10051341
add esp, 4
mov esi, 0x80004005
test byte [0x100a4750], 2
je 0x10046303
push 0x285
mov edx, 0x10021660
mov ecx, esi
call fcn.10051341
add esp, 4
mov eax, dword [ebp - 0x380]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp - 0x37c]
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 0x378]
mov dword [edi + 0x5c], 0
mov dword [edi + 0x58], eax
jmp 0x100323dc
mov ecx, dword [0x100aa1c0]
mov edx, 0xa2809
push esi
push 0x100216b8
call fcn.1005682f
jmp 0x100323eb