Function at 0x1030bf9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push edi
lea eax, [ebp - 8]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x1030c3a
push eax
push dword [ebp + 0xc]
push 0x100873c
call fcn.0100e475
add esp, 0xc
jmp 0x1030e66
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call esi
mov dword [ebp + 8], eax
cmp eax, edi
je 0x1030c82
cmp eax, 2
je 0x1030e65
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0x10087d8
call fcn.0100e475
add esp, 0x10
jmp 0x1030e65
push ebx
push 0x1038d54
push dword [ebp - 0xc]
call fcn.01030e8f
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 0x10], ebx
cmp ebx, edi
jne 0x1030cb2
push 0x10087a8
call fcn.0100e475
pop ecx
mov dword [ebp + 8], 0xe
jmp 0x1030e64
push dword [ebp - 0xc]
push edi
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp - 8]
call esi
mov dword [ebp + 8], eax
cmp eax, edi
je 0x1030cfa
cmp eax, 2
je 0x1030e64
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0x10087d8
call fcn.0100e475
add esp, 0x10
jmp 0x1030e64
push dword [ebp + 0x10]
call fcn.01030b7e
cmp dword [ebp - 4], eax
je 0x1030d18
push dword [ebp + 0x10]
mov dword [ebp + 8], 0x57
push 0x1008784
jmp 0x1030d42
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 4]
dec eax
je 0x1030e54
sub eax, 3
je 0x1030e4a
sub eax, 3
je 0x1030d4e
push dword [ebp - 4]
push 0x100876c
call fcn.0100e475
pop ecx
pop ecx
jmp 0x1030e64
push 8
pop eax
mov word [esi], ax
mov esi, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp + 0x14], ebx
cmp word [esi], di
je 0x1030e2e
mov ebx, 0x1008768
push ebx
lea ecx, [ebp + 0xc]
call fcn.0100e8c1
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
call fcn.0100eabe
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
je 0x1030d8e
call fcn.01008f06
mov dword [ebp + 0xc], edi
push esi
lea ecx, [ebp + 0x10]
call fcn.0100e8c1
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0x14]
call fcn.0100eabe
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
je 0x1030db2
call fcn.01008f06
mov dword [ebp + 0x10], edi
push ebx
lea ecx, [ebp - 0x14]
call fcn.0100e8c1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x14]
call fcn.0100eabe
mov ecx, dword [ebp - 0x14]
cmp ecx, edi
je 0x1030dd6
call fcn.01008f06
mov dword [ebp - 0x14], edi
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1030ddb
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
cmp word [esi], di
je 0x1030e23
push 0x1008764
lea ecx, [ebp - 0x18]
call fcn.0100e8c1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x14]
call fcn.0100eabe
mov ecx, dword [ebp - 0x18]
cmp ecx, edi
je 0x1030e1a
call fcn.01008f06
mov dword [ebp - 0x18], edi
cmp word [esi], di
jne 0x1030d6a
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
je 0x1030e2e
mov eax, dword [ebx]
jmp 0x1030e30
xor eax, eax
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 8], eax
cmp ebx, edi
je 0x1030e64
mov ecx, ebx
call fcn.01008f06
jmp 0x1030e64
push 3
pop eax
mov word [esi], ax
mov eax, dword [ebx]
jmp 0x1030e61
push 8
pop eax
push ebx
mov word [esi], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 8], eax
pop ebx
pop esi
cmp dword [ebp - 8], edi
je 0x1030e74
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], edi
pop edi
je 0x1030e83
push dword [ebp - 0x10]
call fcn.01009bf2
pop ecx
mov eax, dword [ebp + 8]
leave
ret 0x14