Function at 0x1009601
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
jne 0x1009625
mov dword [ebp - 4], 0x3f2
jmp 0x10097e1
cmp dword [ebp + 0x18], eax
je 0x1009634
cmp dword [ebp + 0x14], eax
je 0x1009634
cmp dword [ebp + 0xc], eax
jne 0x1009640
mov dword [ebp - 4], 0x57
jmp 0x10097e1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
push dword [ebp + 0xc]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0xa
add eax, eax
push eax
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10096b3
push dword [ebp + 0xc]
push dword [0x1012068]
push edi
call fcn.0100a0c2
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
call fcn.010094db
test eax, eax
mov dword [ebp - 4], eax
jne 0x10096a5
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x10096a5
mov dword [ebp - 4], pe_nt_image_headers32
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10096ba
mov dword [ebp - 4], 8
cmp dword [ebp - 4], 0xe8
jne 0x100972d
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
mov dword [ebp - 4], eax
jne 0x1009733
cmp dword [ebp - 0x10], 2
jbe 0x1009726
push dword [ebp - 0x10]
push 8
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 8], eax
je 0x100978b
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
push dword [ebp - 8]
mov dword [ebp - 4], eax
call ebx
test eax, eax
jne 0x100972d
mov dword [ebp - 4], pe_nt_image_headers32
cmp dword [ebp - 4], 0
je 0x10097a2
cmp dword [ebp - 8], 0
je 0x100974f
push dword [ebp - 8]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
je 0x100979b
push dword [ebp + 0x10]
call ebx
inc eax
cmp eax, 1
mov dword [ebp - 0xc], eax
jbe 0x100979b
add eax, eax
push eax
push 8
mov dword [ebp - 0xc], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 8], eax
je 0x1009794
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
and dword [ebp - 4], 0
jmp 0x10097a2
mov dword [ebp - 4], 0xe
jmp 0x100972d
mov dword [ebp - 4], 0xe
xor eax, eax
cmp dword [ebp - 4], eax
jne 0x10097c6
mov edi, dword [ebp + 0x14]
mov eax, dword [edi]
test eax, eax
je 0x10097b7
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x10097de
cmp dword [ebp - 8], eax
je 0x10097de
push dword [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret 0x14