Function at 0x101206b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 4
xor esi, esi
cmp dword [ebp + 8], esi
pop ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], esi
je 0x1012265
push dword [ebp + 8]
call fcn.010111ae
test eax, eax
jne 0x101209d
push 5
jmp 0x1012267
cmp dword [ebp + 0xc], esi
je 0x1012265
cmp dword [ebp + 0x10], esi
je 0x1012265
cmp dword [ebp + 0x14], esi
je 0x1012265
push dword [ebp + 8]
mov esi, dword [sym.imp.ntdll.dll_wcslen]
call esi
mov edi, 0x1019588
push edi
mov dword [ebp - 0x10], eax
call esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, eax
lea eax, [ecx + ecx + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
mov dword [ebp - 0x10], esi
jne 0x10120f2
push 0xc
jmp 0x1012267
push edi
push esi
call dword [sym.imp.ntdll.dll_wcscpy]
push 0x10019b0
push esi
mov esi, dword [sym.imp.ntdll.dll_wcscat]
call esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call esi
xor esi, esi
add esp, 0x18
inc esi
push esi
call fcn.01011074
test eax, eax
jne 0x1012130
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
jmp 0x1012268
push 0xf003f
call fcn.0100daeb
mov edi, eax
test edi, edi
mov dword [ebp - 0x1c], edi
jne 0x101214e
push esi
call fcn.010110d1
jmp 0x101225d
lea eax, [ebp - 0xc]
push eax
push esi
push 0
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov dword [ebp + 8], eax
call fcn.010110d1
cmp dword [ebp + 8], 0
jne 0x1012256
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1001f28
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x10121a2
mov edi, dword [ebp - 8]
or edi, 0x10000000
jmp 0x10121a5
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1001788
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x10121d0
cmp dword [ebp - 8], 1
jne 0x10121d0
or edi, 0x80000000
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
xor ebx, ebx
push ebx
push 0x1001f1c
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x10121fc
cmp dword [ebp - 8], 1
jne 0x10121fc
or edi, 0x40000000
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x1001f30
push dword [ebp - 0xc]
mov dword [ebp - 4], 8
call esi
test eax, eax
jne 0x1012230
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x101223a
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [eax], edi
call esi
push dword [ebp - 0x1c]
call esi
xor esi, esi
jmp 0x1012120
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1b
pop esi
jmp 0x1012120
push 6
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10