Function at 0x101fa0e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
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 - 8]
push eax
push 0xf003f
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push 0x80000002
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x101fbf7
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x101fbf7
push dword [ebp - 0x10]
mov esi, dword [sym.imp.msvcrt.dll_malloc]
call esi
cmp eax, edi
pop ecx
mov dword [ebp - 4], eax
jne 0x101fa99
mov dword [ebp + 0x14], 8
jmp 0x101fbf7
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x101fbf7
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x18]
push dword [eax]
lea eax, [ebp - 0x18]
push eax
push dword [ebx]
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp + 0xc], edi
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x101fb17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x101fb17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x14], eax
jmp 0x101fbf2
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp + 0x10]
push dword [ebp - 0xc]
mov dword [ecx], eax
call esi
push dword [ebp - 0x1c]
mov dword [ebp + 0xc], eax
call esi
push dword [ebp - 0x18]
mov dword [ebp + 8], eax
call esi
push dword [ebp - 0x14]
mov dword [ebx], eax
call esi
mov esi, dword [ebp + 0x18]
add esp, 0x14
cmp dword [ebp + 0xc], edi
mov dword [esi], eax
je 0x101fbeb
cmp dword [ebp + 8], edi
je 0x101fbeb
cmp dword [ebx], edi
je 0x101fbeb
cmp eax, edi
je 0x101fbeb
mov eax, dword [ebp + 0x10]
push 1
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x101fb09
push 2
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x101fb09
lea eax, [ebp - 0x14]
push eax
push dword [esi]
lea eax, [ebp - 0x18]
push eax
push dword [ebx]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
je 0x101fb09
mov esi, dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp - 4], edi
je 0x101fbd3
push dword [ebp - 4]
call esi
pop ecx
cmp dword [ebp - 8], edi
pop edi
pop esi
pop ebx
je 0x101fbe4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
leave
ret 0x14
mov dword [ebp + 0x14], 8
cmp dword [ebp + 0x14], edi
je 0x101fbc2
cmp dword [ebp + 0xc], edi
mov esi, dword [sym.imp.msvcrt.dll_free]
je 0x101fc08
push dword [ebp + 0xc]
call esi
pop ecx
cmp dword [ebp + 8], edi
je 0x101fc13
push dword [ebp + 8]
call esi
pop ecx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, edi
je 0x101fc25
push eax
call esi
mov eax, dword [ebp + 0x10]
pop ecx
mov dword [eax], edi
mov eax, dword [ebx]
cmp eax, edi
je 0x101fc31
push eax
call esi
pop ecx
mov dword [ebx], edi
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
cmp eax, edi
je 0x101fbc8
push eax
call esi
pop ecx
mov dword [ebx], edi
jmp 0x101fbc8