Function at 0x1006781
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
je 0x1006995
cmp dword [ebp + 0xc], ebx
je 0x1006995
cmp dword [ebp + 0x10], ebx
je 0x1006995
cmp dword [ebp + 0x14], ebx
je 0x1006995
cmp dword [ebp + 0x18], ebx
je 0x1006995
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x1006995
cmp dword [ebp + 0x1c], ebx
je 0x10067e3
cmp dword [ebp + 0x1c], 1
jne 0x10067ec
cmp dword [eax], 1
je 0x1006986
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x18]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
jne 0x10068db
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call esi
mov edi, eax
cmp edi, ebx
jne 0x10068db
cmp dword [ebp + 0x1c], ebx
mov eax, dword [ebp - 8]
je 0x1006838
cmp dword [ebp + 0x1c], 1
jne 0x100684d
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x18]
jne 0x100698a
cmp eax, dword [ebp - 0xc]
jne 0x100698a
inc eax
and eax, 0xfffffffe
mov dword [ebp - 8], eax
add eax, 2
push eax
call fcn.010099e1
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1006887
mov eax, dword [ebp - 0xc]
inc eax
and eax, 0xfffffffe
mov dword [ebp - 0xc], eax
add eax, 2
push eax
call fcn.010099e1
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x1006895
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
push 0xe
call fcn.01002093
push 0xe
jmp 0x100699e
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x18]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
jne 0x10068c9
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x10]
call esi
mov edi, eax
cmp edi, ebx
je 0x10068e8
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
lea eax, [ebp - 0x14]
push eax
call fcn.01009f4b
push edi
call fcn.01002093
mov eax, edi
jmp 0x100699f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x100692d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jne 0x100692d
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.01006406
cmp eax, 1
je 0x100692d
cmp dword [ebp + 0x1c], 2
je 0x1006915
cmp dword [ebp + 0x1c], 4
jne 0x100696e
push 3
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.01006335
jmp 0x100696e
cmp dword [ebp + 0x1c], 3
je 0x1006939
cmp dword [ebp + 0x1c], 4
jne 0x1006965
push 1
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.01006335
push 2
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01006335
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
lea eax, [ebp - 0x14]
push eax
call fcn.01009f4b
push ebx
call fcn.01002093
xor eax, eax
jmp 0x100699f
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
jmp 0x1006986
push 0x57
call fcn.01002093
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x1c