Function at 0x101fad8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
mov dword [ebx], edi
mov dword [eax], edi
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x101fca3
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x101fca3
push dword [ebp - 0x18]
mov esi, dword [sym.imp.msvcrt.dll_malloc]
call esi
cmp eax, edi
pop ecx
mov dword [ebp - 0xc], eax
jne 0x101fb7c
mov dword [ebp + 0x14], 8
jmp 0x101fca3
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x101fca3
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push dword [eax]
lea eax, [ebp - 0x20]
push eax
push dword [ebx]
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x101fbe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x101fbe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x14], eax
jmp 0x101fc80
push dword [ebp - 0x28]
call esi
mov ecx, dword [ebp + 0x10]
push dword [ebp - 0x14]
mov dword [ecx], eax
call esi
push dword [ebp - 0x24]
mov dword [ebp - 4], eax
call esi
push dword [ebp - 0x20]
mov dword [ebp - 8], eax
call esi
push dword [ebp - 0x1c]
mov dword [ebx], eax
call esi
mov esi, dword [ebp + 0x18]
add esp, 0x14
cmp dword [ebp - 4], edi
mov dword [esi], eax
je 0x101fc79
cmp dword [ebp - 8], edi
je 0x101fc79
cmp dword [ebx], edi
je 0x101fc79
cmp eax, edi
je 0x101fc79
mov eax, dword [ebp + 0x10]
push 1
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x101fbd3
push 2
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x101fbd3
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
lea eax, [ebp - 0x20]
push eax
push dword [ebx]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x101fcd9
jmp 0x101fbd3
mov dword [ebp + 0x14], 8
cmp dword [ebp + 0x14], edi
je 0x101fcd9
cmp dword [ebp - 4], edi
je 0x101fc94
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 8], edi
je 0x101fca3
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
cmp eax, edi
je 0x101fcb6
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [esi], edi
mov eax, dword [ebx]
cmp eax, edi
je 0x101fcc6
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebx], edi
mov esi, dword [ebp + 0x18]
mov eax, dword [esi]
cmp eax, edi
je 0x101fcd9
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [esi], edi
cmp dword [ebp - 0xc], edi
je 0x101fce8
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 0x10], edi
pop edi
pop esi
pop ebx
je 0x101fcf9
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
leave
ret 0x14