Function at 0x10adad3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10d0640]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
and dl, 2
movzx esi, dl
mov dword [ebp - 0x430], ecx
xor ecx, ecx
neg esi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0xc]
sbb esi, esi
and esi, 0xd0026
mov dword [ebp - 0x434], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x18]
add esi, 0x20019
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x42c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x444], ecx
mov dword [ebp - 0x44c], esi
cmp eax, ecx
je 0x10adb70
mov dword [eax], ecx
cmp edi, ecx
je 0x10adb76
mov dword [edi], ecx
cmp ebx, ecx
jne 0x10adb8a
mov edi, 0x80004003
push edi
push 0xa7101b5
jmp 0x10ae153
mov eax, dword [ebp - 0x430]
mov dword [ebx], ecx
cmp eax, ecx
je 0x10adb98
mov byte [eax], cl
mov ecx, dword [ebp - 0x434]
push 0x5c
pop eax
cmp ax, word [ecx]
jne 0x10adbad
mov ebx, 0x10d16e0
jmp 0x10adbdb
mov ebx, 0x10d1618
mov edi, 0x10d16cc
push dword [ebx + 4]
push dword [ebp - 0x434]
push dword [ebx]
call fcn.010ad9a3
test eax, eax
jne 0x10adbd2
add ebx, 0x14
cmp ebx, edi
jb 0x10adbb7
cmp ebx, edi
jb 0x10adbdb
mov ebx, 0x10d16cc
mov eax, dword [ebx + 8]
test al, 0x20
je 0x10adbec
or dword [ebp - 0x44c], 0x100
test al, 8
je 0x10adc0d
test byte [ebp + 0x10], 4
je 0x10adc0d
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x42c], SysReAllocString
test eax, eax
je 0x10adc0d
mov byte [eax], 1
test byte [ebp + 0x10], 0x10
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x430], eax
je 0x10adc29
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10adc29
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x418], 0
je 0x10adc95
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x418]
call fcn.01090d62
mov edi, eax
test edi, edi
je 0x10adc5c
push edi
push 0xaa901b5
jmp 0x10ae153
cmp dword [ebp - 0x418], 0
jne 0x10adc95
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x42c]
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
test edi, edi
je 0x10adc95
push edi
push 0xaae01b5
push dword [ebp - 0x438]
jmp 0x10adfdb
test byte [ebx + 8], 7
mov byte [ebp - 0x419], 0
je 0x10add15
lea eax, [ebp - 0x424]
push eax
push esi
push 0
mov esi, 0x1013fb0
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, 2
jne 0x10adcfb
test byte [ebp + 0x10], 8
je 0x10adcff
push eax
push 0xabe01b5
call fcn.0108c503
lea eax, [ebp - 0x424]
push eax
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, eax
test edi, edi
je 0x10add0a
push edi
push 0xac001b5
jmp 0x10ae153
test edi, edi
je 0x10add0a
push edi
push 0xac201b5
jmp 0x10ae153
mov al, byte [ebp + 0x10]
and al, 1
mov byte [ebp - 0x419], al
mov eax, dword [ebx + 8]
test al, 1
je 0x10add4f
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x434]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x424], 0
mov dword [ebp - 0x428], eax
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x10adf87
test al, 7
je 0x10adf06
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x440]
push eax
push 0
mov esi, 0x100cfc4
push esi
push dword [ebp - 0x424]
mov dword [ebp - 0x420], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x10adda4
push edi
push 0xae301b5
jmp 0x10ade8e
cmp dword [ebp - 0x440], 1
je 0x10addc6
cmp dword [ebp - 0x440], 7
je 0x10addc6
mov edi, 0x8007000d
push edi
push 0xae801b5
jmp 0x10ade8e
cmp dword [ebp - 0x430], 0
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x434]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x418], eax
je 0x10ade0b
push 0x1008b90
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e02c
push dword [ebp - 0x430]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0102e02c
cmp dword [ebp - 0x43c], 0
je 0x10aded7
lea eax, [ebp - 0x448]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x10ade4a
push edi
push 0xb0201b5
jmp 0x10adfd4
test byte [ebx + 8], 4
je 0x10adf87
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x440]
push eax
push 0
push esi
push dword [ebp - 0x448]
mov dword [ebp - 0x420], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x10ade94
push edi
push 0xb0e01b5
push esi
jmp 0x10adfdb
cmp dword [ebp - 0x440], 1
je 0x10adeb6
cmp dword [ebp - 0x440], 7
je 0x10adeb6
mov edi, 0x8007000d
push edi
push 0xb1301b5
jmp 0x10adfd4
push 0x1008b90
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e02c
lea eax, [ebp - 0x414]
push eax
push esi
jmp 0x10adef5
push 0x5c
push dword [ebp - 0x434]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x10adf87
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e02c
jmp 0x10adf87
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x434]
lea esi, [edx + ecx*2]
push 0x5c
pop ecx
mov dword [ebp - 0x418], esi
cmp cx, word [esi]
jne 0x10adf28
inc esi
inc esi
mov dword [ebp - 0x418], esi
xor ecx, ecx
cmp cx, word [esi]
je 0x10adf5f
test al, 0x10
je 0x10adf5f
lea eax, [ebp - 0x444]
push eax
push esi
call fcn.010ad9e7
test eax, eax
je 0x10adf53
push eax
push eax
push 0xb3601b5
push esi
call fcn.0108c457
jmp 0x10adf5f
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x418], eax
xor eax, eax
mov word [ebp - 0x20c], ax
cmp dword [ebp - 0x430], eax
je 0x10adf87
push dword [ebp - 0x430]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0102dff2
cmp dword [ebp - 0x428], 0
jne 0x10adfe5
mov eax, dword [ebp - 0x424]
test eax, eax
jne 0x10adfa0
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp - 0x45c]
push ecx
lea ecx, [ebp - 0x428]
push ecx
xor esi, esi
push esi
push dword [ebp - 0x44c]
lea ecx, [ebp - 0x20c]
push esi
push esi
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
je 0x10adfe5
push edi
push 0xb5301b5
lea eax, [ebp - 0x20c]
push eax
call fcn.0108c53e
jmp 0x10ae174
mov ecx, dword [ebp - 0x418]
push 0x5c
pop eax
cmp ax, word [ecx]
jne 0x10adffa
add dword [ebp - 0x418], 2
cmp dword [ebp - 0x43c], 0
je 0x10ae06f
mov ecx, dword [ebp - 0x418]
xor eax, eax
cmp ax, word [ecx]
je 0x10ae06f
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ebx, ebx
push ebx
push ebx
push ebx
mov edi, 0x104
push ebx
jmp 0x10ae040
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
call fcn.0108f8de
test eax, eax
je 0x10ae063
inc ebx
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
push dword [ebp - 0x428]
mov dword [ebp - 0x450], edi
call esi
test eax, eax
je 0x10ae023
jmp 0x10ae06f
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10ae078
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x420], eax
cmp byte [ebp - 0x419], cl
je 0x10ae09f
add dword [ebp - 0x420], 0x70
push dword [ebp - 0x420]
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [ebp - 0x454]
mov dword [esi], eax
cmp eax, ebx
jne 0x10ae0ca
mov edi, 0x8007000e
push edi
push 0xb7a01b5
jmp 0x10ae153
xor ecx, ecx
mov word [eax], cx
cmp byte [ebp - 0x419], cl
je 0x10ae0ec
mov eax, dword [ebp - 0x420]
push 0x101de00
shr eax, 1
push eax
push dword [esi]
call fcn.0102dff2
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x420]
shr eax, 1
push eax
push dword [esi]
call fcn.0102e02c
xor eax, eax
cmp ax, word [ebp - 0x20c]
jne 0x10ae12e
mov eax, dword [ebp - 0x420]
cmp eax, 2
jbe 0x10ae12e
mov ecx, dword [esi]
shr eax, 1
lea eax, [ecx + eax*2 - 4]
push 0x5c
pop ecx
cmp cx, word [eax]
jne 0x10ae12e
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x43c], ebx
je 0x10ae15a
push dword [ebp - 0x43c]
push dword [ebp - 0x418]
call fcn.01091ad0
mov edi, eax
cmp edi, ebx
je 0x10ae15a
push edi
push 0xb8b01b5
call fcn.0108c503
jmp 0x10ae174
mov eax, dword [ebp - 0x458]
cmp eax, ebx
je 0x10ae172
mov ecx, dword [ebp - 0x428]
mov dword [eax], ecx
mov dword [ebp - 0x428], ebx
xor edi, edi
cmp dword [ebp - 0x42c], reloc.OLEAUT32.dll_SysReAllocString
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10ae19a
cmp dword [ebp - 0x42c], 0x80000001
je 0x10ae19a
push dword [ebp - 0x42c]
call esi
xor ebx, ebx
cmp dword [ebp - 0x424], ebx
je 0x10ae1ac
push dword [ebp - 0x424]
call esi
cmp dword [ebp - 0x448], ebx
je 0x10ae1bc
push dword [ebp - 0x448]
call esi
cmp dword [ebp - 0x428], ebx
je 0x10ae1cc
push dword [ebp - 0x428]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x438], ebx
je 0x10ae1e2
push dword [ebp - 0x438]
call esi
cmp dword [ebp - 0x444], ebx
je 0x10ae1f2
push dword [ebp - 0x444]
call esi
cmp edi, ebx
je 0x10ae222
mov ebx, dword [ebp - 0x454]
test ebx, ebx
je 0x10ae20c
mov eax, dword [ebx]
test eax, eax
je 0x10ae20c
push eax
call esi
and dword [ebx], 0
mov ebx, dword [ebp - 0x43c]
test ebx, ebx
je 0x10ae222
mov eax, dword [ebx]
test eax, eax
je 0x10ae222
push eax
call esi
and dword [ebx], 0
push edi
call fcn.01091ee9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077d0b
leave
ret 0x1c