Function at 0x4ad0adb3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.4ad01e21
cmp byte [0x4ad359dc], 0
mov dword [ebp - 0x1c], 0x80000002
mov dword [ebp - 0x18], 0x80000001
je 0x4ad0adde
mov byte [0x4ad2ca64], 1
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x4ad1e02c]
push esi
lea esi, [ebp - 0x1c]
sub esi, eax
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 2
mov edi, 0x1000
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push 0x4ad0bef0
push dword [esi + eax]
call dword [0x4ad1e030]
test eax, eax
jne 0x4ad0aff5
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push esi
push 0x4ad0becc
push dword [ebp - 8]
mov dword [ebp + 8], esi
mov dword [ebp - 4], edi
call ebx
test eax, eax
je 0x4ad113fd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp + 8]
push eax
push esi
push 0x4ad0bea8
push dword [ebp - 8]
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x4ad0ae81
cmp dword [ebp + 8], 4
jne 0x4ad0b043
cmp dword [ebp - 0x101c], esi
setne al
mov byte [0x4ad2ca64], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp + 8]
push eax
push esi
push 0x4ad0be84
push dword [ebp - 8]
mov dword [ebp - 4], edi
call ebx
test eax, eax
je 0x4ad11451
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp + 8]
push eax
push esi
push 0x4ad0be68
push dword [ebp - 8]
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x4ad0aede
cmp dword [ebp + 8], 4
jne 0x4ad0b052
mov ax, word [ebp - 0x101c]
mov word [0x4ad2ca88], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp + 8]
push eax
push esi
push 0x4ad0be48
push dword [ebp - 8]
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x4ad0af30
cmp dword [ebp + 8], 4
jne 0x4ad114a2
mov ax, word [ebp - 0x101c]
mov word [0x4ad2ca58], ax
cmp ax, si
je 0x4ad0af27
cmp ax, 0xd
je 0x4ad0af27
cmp ax, 0x20
jbe 0x4ad0af30
mov word [0x4ad2ca58], 0x20
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp + 8]
push eax
push esi
push 0x4ad0be20
push dword [ebp - 8]
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x4ad0b038
cmp dword [ebp + 8], 4
jne 0x4ad114ca
mov ax, word [ebp - 0x101c]
mov word [0x4ad2ca5c], ax
cmp ax, si
je 0x4ad0af7d
cmp ax, 0xd
je 0x4ad0af7d
cmp ax, 0x20
jbe 0x4ad0af87
mov ax, 0x20
mov word [0x4ad2ca5c], ax
mov cx, word [0x4ad2ca58]
push 0x20
pop edx
cmp cx, dx
jne 0x4ad0b061
cmp ax, dx
jb 0x4ad114f2
jne 0x4ad0afb1
cmp cx, dx
jae 0x4ad0afb1
mov word [0x4ad2ca5c], cx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp + 8]
push eax
push esi
push 0x4ad0be10
push dword [ebp - 8]
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x4ad0afe9
cmp dword [ebp + 8], 2
je 0x4ad114fd
cmp word [ebp - 0x101c], si
jne 0x4ad11544
push dword [ebp - 8]
call dword [0x4ad1e028]
mov esi, dword [ebp - 0x14]
add dword [ebp - 0xc], 4
dec dword [ebp - 0x10]
jne 0x4ad0ae01
push 0
call dword [0x4ad0110c]
push eax
call dword [0x4ad01084]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
mov ax, word [0x4ad2ca5c]
jmp 0x4ad0af87
cmp dword [ebp + 8], 1
jne 0x4ad0ae81
jmp 0x4ad11437
cmp dword [ebp + 8], 1
jne 0x4ad0aede
jmp 0x4ad1148b
cmp ax, dx
jmp 0x4ad0afa3
cmp dword [ebp + 8], 4
jne 0x4ad1140e
cmp dword [ebp - 0x101c], esi
setne al
jmp 0x4ad1142d
cmp dword [ebp + 8], 1
jne 0x4ad0ae48
lea eax, [ebp - 0x101c]
push eax
call dword [0x4ad0107c]
dec eax
neg eax
sbb al, al
pop ecx
inc al
mov byte [0x4ad3a4d0], al
jmp 0x4ad0ae48
lea eax, [ebp - 0x101c]
push eax
call dword [0x4ad0107c]
dec eax
neg eax
sbb al, al
pop ecx
inc al
jmp 0x4ad0ae7c
cmp dword [ebp + 8], 4
jne 0x4ad11462
cmp dword [ebp - 0x101c], esi
setne al
jmp 0x4ad11481
cmp dword [ebp + 8], 1
jne 0x4ad0aea6
lea eax, [ebp - 0x101c]
push eax
call dword [0x4ad0107c]
dec eax
neg eax
sbb al, al
pop ecx
inc al
mov byte [0x4ad30b80], al
jmp 0x4ad0aea6
push esi
lea eax, [ebp - 0x101c]
push esi
push eax
call dword [0x4ad010fc]
add esp, 0xc
jmp 0x4ad0aed8
cmp dword [ebp + 8], 1
jne 0x4ad114bf
push esi
lea eax, [ebp - 0x101c]
push esi
push eax
call dword [0x4ad010fc]
add esp, 0xc
jmp 0x4ad0af10
mov ax, word [0x4ad2ca58]
jmp 0x4ad0af16
cmp dword [ebp + 8], 1
jne 0x4ad114e7
push esi
lea eax, [ebp - 0x101c]
push esi
push eax
call dword [0x4ad010fc]
add esp, 0xc
jmp 0x4ad0af66
mov ax, word [0x4ad2ca5c]
jmp 0x4ad0af6c
mov word [0x4ad2ca58], ax
jmp 0x4ad0afb1
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, dword [ebp - 4]
shr eax, 1
shr ecx, 1
lea esi, [ebp + eax*2 - 0x1018]
push ecx
push esi
lea eax, [ebp - 0x101c]
push eax
call dword [0x4ad011cc]
test eax, eax
je 0x4ad11535
lea eax, [ebp - 0x101c]
push esi
push eax
call dword [fcn.4ad01114]
pop ecx
pop ecx
jmp 0x4ad1153d
and word [ebp - 0x101c], 0
xor esi, esi
jmp 0x4ad0afdc
mov esi, dword [fcn.4ad01118]
lea eax, [ebp - 0x101c]
push eax
call esi
pop ecx
lea eax, [eax + eax + 2]
push eax
call fcn.4ad01302
test eax, eax
je 0x4ad11588
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x101c]
push eax
call esi
pop ecx
lea eax, [eax + eax + 2]
push eax
call fcn.4ad01302
push eax
call dword [fcn.4ad01114]
pop ecx
pop ecx
jmp 0x4ad1158a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x4ad0afe9