Function at 0x10122fa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
cmp dword [0x101732c], esi
je 0x101232a
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [entry0]
jmp 0x1012571
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, esi
mov dword [ebp - 8], esi
je 0x101233a
mov eax, dword [edi]
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.01011928
test eax, eax
jne 0x1012367
cmp dword [ebp - 0x10], esi
je 0x101235f
push dword [ebp - 0x10]
call fcn.01011027
pop ecx
push 0xe
pop eax
jmp 0x1012570
push ebx
mov ebx, dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x18], 0
mov dword [ebp - 4], eax
jne 0x10123c3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jbe 0x10123a8
cmp ecx, 2
jbe 0x101239d
cmp ecx, 7
jne 0x10123a8
test edi, edi
je 0x10123b1
mov eax, dword [ebp + 0x1c]
add eax, eax
jmp 0x10123af
test edi, edi
je 0x10123b1
mov eax, dword [ebp + 0x1c]
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x101255d
mov dword [eax], ecx
jmp 0x101255d
test eax, eax
jne 0x101255d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jbe 0x10123e3
cmp ecx, 2
jbe 0x10123dc
cmp ecx, 7
jne 0x10123e3
mov eax, dword [ebp + 0x1c]
add eax, eax
jmp 0x10123e6
mov eax, dword [ebp + 0x1c]
test edi, edi
je 0x1012405
cmp dword [edi], eax
jae 0x1012405
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10123f9
mov dword [eax], ecx
mov dword [ebp - 4], 0xea
jmp 0x101255d
and dword [ebp - 0x20], 0
xor edx, edx
cmp ecx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
jbe 0x101252c
cmp ecx, 2
jbe 0x101242a
cmp ecx, 7
jne 0x101252c
push eax
lea ecx, [ebp - 0x20]
call fcn.01011587
test eax, eax
jne 0x101246b
xor esi, esi
cmp dword [ebp - 0x18], esi
je 0x1012447
push dword [ebp - 0x18]
call fcn.01011027
pop ecx
cmp dword [ebp - 0x20], esi
je 0x1012455
push dword [ebp - 0x20]
call fcn.01011027
pop ecx
cmp dword [ebp - 0x10], esi
je 0x1012463
push dword [ebp - 0x10]
call fcn.01011027
pop ecx
push 0xe
pop eax
jmp 0x101256f
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x20]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call esi
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1012541
cmp dword [ebp + 0xc], ebx
jbe 0x1012541
cmp dword [ebp + 0xc], 2
ja 0x1012541
mov esi, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x1c]
push esi
call fcn.010116ee
test eax, eax
jne 0x10124d2
cmp dword [ebp - 0x18], ebx
je 0x10124c2
push dword [ebp - 0x18]
call fcn.01011027
pop ecx
cmp esi, ebx
je 0x10124cd
push esi
call fcn.01011027
pop ecx
cmp dword [ebp - 0x10], ebx
jmp 0x1012458
push dword [ebp - 0x18]
call fcn.01011c9c
lea eax, [eax + eax + 2]
cmp eax, dword [ebp - 8]
mov dword [edi], eax
jae 0x10124fe
push dword [ebp - 0x18]
push dword [ebp + 0x18]
call fcn.01011c39
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1012541
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x1012541
cmp dword [ebp - 0x18], ebx
je 0x101250c
push dword [ebp - 0x18]
call fcn.01011027
pop ecx
cmp esi, ebx
je 0x1012517
push esi
call fcn.01011027
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x1012525
push dword [ebp - 0x10]
call fcn.01011027
pop ecx
mov eax, 0xea
jmp 0x101256f
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
je 0x101254f
push dword [ebp - 0x18]
call fcn.01011027
pop ecx
cmp dword [ebp - 0x20], ebx
je 0x101255d
push dword [ebp - 0x20]
call fcn.01011027
pop ecx
cmp dword [ebp - 0x10], 0
je 0x101256c
push dword [ebp - 0x10]
call fcn.01011027
pop ecx
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret 0x18