Function at 0x10135e9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], 0x1003654
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, edi
mov dword [esi + 0x20], eax
je 0x1013795
push 0x208
push 8
push eax
mov dword [esi + 0x2c], 0x104
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [esi + 0x28], eax
je 0x1013795
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x10032f0
push 0x80000002
call ebx
cmp eax, edi
jne 0x10136b9
mov eax, dword [esi + 0x2c]
shl eax, 1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x28]
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10032d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x10136a7
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
je 0x10136a7
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], edi
je 0x1013794
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1003388
push 0x80000002
call ebx
cmp eax, edi
jne 0x101377d
mov eax, dword [esi + 0x2c]
shl eax, 1
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 0x28]
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10033ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, edi
jne 0x101376d
xor eax, eax
inc eax
cmp dword [ebp - 0xc], eax
jne 0x101376d
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x2c]
shl eax, 1
push eax
push 8
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esi + 0x2c]
shl ecx, 1
cmp eax, edi
mov dword [esi + 0x10], eax
mov dword [ebp - 8], ecx
je 0x1013770
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x1003400
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, edi
jne 0x1013754
cmp dword [ebp - 0xc], 1
je 0x1013770
push 0x100
push edi
push edi
push dword [esi + 0x28]
push dword [esi + 0x2c]
push dword [esi + 0x10]
call fcn.01006033
xor ebx, ebx
jmp 0x1013770
xor ebx, ebx
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
je 0x1013794
push 0x100
push edi
push edi
push 0x1003610
push dword [esi + 0x2c]
push dword [esi + 0x28]
call fcn.01006033
pop ebx
lea eax, [ebp - 4]
push eax
push 0x10032f0
push 0x80000002
mov dword [esi + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10137e9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push 0x1003374
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10137e0
cmp dword [ebp - 0x14], 1
sete al
mov dword [esi + 0x30], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret