Function at 0x10ada68
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10d0620]
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 0x10adb05
mov dword [eax], ecx
cmp edi, ecx
je 0x10adb0b
mov dword [edi], ecx
cmp ebx, ecx
jne 0x10adb1f
mov edi, 0x80004003
push edi
push 0xa7101b5
jmp 0x10ae0e8
mov eax, dword [ebp - 0x430]
mov dword [ebx], ecx
cmp eax, ecx
je 0x10adb2d
mov byte [eax], cl
mov ecx, dword [ebp - 0x434]
push 0x5c
pop eax
cmp ax, word [ecx]
jne 0x10adb42
mov ebx, 0x10d16c0
jmp 0x10adb70
mov ebx, 0x10d15f8
mov edi, 0x10d16ac
push dword [ebx + 4]
push dword [ebp - 0x434]
push dword [ebx]
call fcn.010ad938
test eax, eax
jne 0x10adb67
add ebx, 0x14
cmp ebx, edi
jb 0x10adb4c
cmp ebx, edi
jb 0x10adb70
mov ebx, 0x10d16ac
mov eax, dword [ebx + 8]
test al, 0x20
je 0x10adb81
or dword [ebp - 0x44c], 0x100
test al, 8
je 0x10adba2
test byte [ebp + 0x10], 4
je 0x10adba2
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x42c], SysReAllocString
test eax, eax
je 0x10adba2
mov byte [eax], 1
test byte [ebp + 0x10], 0x10
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x430], eax
je 0x10adbbe
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10adbbe
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x418], 0
je 0x10adc2a
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x418]
call fcn.01090d87
mov edi, eax
test edi, edi
je 0x10adbf1
push edi
push 0xaa901b5
jmp 0x10ae0e8
cmp dword [ebp - 0x418], 0
jne 0x10adc2a
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 0x10adc2a
push edi
push 0xaae01b5
push dword [ebp - 0x438]
jmp 0x10adf70
test byte [ebx + 8], 7
mov byte [ebp - 0x419], 0
je 0x10adcaa
lea eax, [ebp - 0x424]
push eax
push esi
push 0
mov esi, 0x1013fa0
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, 2
jne 0x10adc90
test byte [ebp + 0x10], 8
je 0x10adc94
push eax
push 0xabe01b5
call fcn.0108c55a
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 0x10adc9f
push edi
push 0xac001b5
jmp 0x10ae0e8
test edi, edi
je 0x10adc9f
push edi
push 0xac201b5
jmp 0x10ae0e8
mov al, byte [ebp + 0x10]
and al, 1
mov byte [ebp - 0x419], al
mov eax, dword [ebx + 8]
test al, 1
je 0x10adce4
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 0x10adf1c
test al, 7
je 0x10ade9b
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, 0x100cfb4
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 0x10add39
push edi
push 0xae301b5
jmp 0x10ade23
cmp dword [ebp - 0x440], 1
je 0x10add5b
cmp dword [ebp - 0x440], 7
je 0x10add5b
mov edi, 0x8007000d
push edi
push 0xae801b5
jmp 0x10ade23
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 0x10adda0
push 0x1008ba8
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e0bc
push dword [ebp - 0x430]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0102e0bc
cmp dword [ebp - 0x43c], 0
je 0x10ade6c
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 0x10adddf
push edi
push 0xb0201b5
jmp 0x10adf69
test byte [ebx + 8], 4
je 0x10adf1c
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 0x10ade29
push edi
push 0xb0e01b5
push esi
jmp 0x10adf70
cmp dword [ebp - 0x440], 1
je 0x10ade4b
cmp dword [ebp - 0x440], 7
je 0x10ade4b
mov edi, 0x8007000d
push edi
push 0xb1301b5
jmp 0x10adf69
push 0x1008ba8
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e0bc
lea eax, [ebp - 0x414]
push eax
push esi
jmp 0x10ade8a
push 0x5c
push dword [ebp - 0x434]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x10adf1c
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0102e0bc
jmp 0x10adf1c
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 0x10adebd
inc esi
inc esi
mov dword [ebp - 0x418], esi
xor ecx, ecx
cmp cx, word [esi]
je 0x10adef4
test al, 0x10
je 0x10adef4
lea eax, [ebp - 0x444]
push eax
push esi
call fcn.010ad97c
test eax, eax
je 0x10adee8
push eax
push eax
push 0xb3601b5
push esi
call fcn.0108c4ae
jmp 0x10adef4
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x418], eax
xor eax, eax
mov word [ebp - 0x20c], ax
cmp dword [ebp - 0x430], eax
je 0x10adf1c
push dword [ebp - 0x430]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0102e082
cmp dword [ebp - 0x428], 0
jne 0x10adf7a
mov eax, dword [ebp - 0x424]
test eax, eax
jne 0x10adf35
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 0x10adf7a
push edi
push 0xb5301b5
lea eax, [ebp - 0x20c]
push eax
call fcn.0108c595
jmp 0x10ae109
mov ecx, dword [ebp - 0x418]
push 0x5c
pop eax
cmp ax, word [ecx]
jne 0x10adf8f
add dword [ebp - 0x418], 2
cmp dword [ebp - 0x43c], 0
je 0x10ae004
mov ecx, dword [ebp - 0x418]
xor eax, eax
cmp ax, word [ecx]
je 0x10ae004
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ebx, ebx
push ebx
push ebx
push ebx
mov edi, 0x104
push ebx
jmp 0x10adfd5
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
call fcn.0108f903
test eax, eax
je 0x10adff8
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 0x10adfb8
jmp 0x10ae004
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 0x10ae00d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x420], eax
cmp byte [ebp - 0x419], cl
je 0x10ae034
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 0x10ae05f
mov edi, 0x8007000e
push edi
push 0xb7a01b5
jmp 0x10ae0e8
xor ecx, ecx
mov word [eax], cx
cmp byte [ebp - 0x419], cl
je 0x10ae081
mov eax, dword [ebp - 0x420]
push 0x101de90
shr eax, 1
push eax
push dword [esi]
call fcn.0102e082
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x420]
shr eax, 1
push eax
push dword [esi]
call fcn.0102e0bc
xor eax, eax
cmp ax, word [ebp - 0x20c]
jne 0x10ae0c3
mov eax, dword [ebp - 0x420]
cmp eax, 2
jbe 0x10ae0c3
mov ecx, dword [esi]
shr eax, 1
lea eax, [ecx + eax*2 - 4]
push 0x5c
pop ecx
cmp cx, word [eax]
jne 0x10ae0c3
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x43c], ebx
je 0x10ae0ef
push dword [ebp - 0x43c]
push dword [ebp - 0x418]
call fcn.01091af5
mov edi, eax
cmp edi, ebx
je 0x10ae0ef
push edi
push 0xb8b01b5
call fcn.0108c55a
jmp 0x10ae109
mov eax, dword [ebp - 0x458]
cmp eax, ebx
je 0x10ae107
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 0x10ae12f
cmp dword [ebp - 0x42c], 0x80000001
je 0x10ae12f
push dword [ebp - 0x42c]
call esi
xor ebx, ebx
cmp dword [ebp - 0x424], ebx
je 0x10ae141
push dword [ebp - 0x424]
call esi
cmp dword [ebp - 0x448], ebx
je 0x10ae151
push dword [ebp - 0x448]
call esi
cmp dword [ebp - 0x428], ebx
je 0x10ae161
push dword [ebp - 0x428]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x438], ebx
je 0x10ae177
push dword [ebp - 0x438]
call esi
cmp dword [ebp - 0x444], ebx
je 0x10ae187
push dword [ebp - 0x444]
call esi
cmp edi, ebx
je 0x10ae1b7
mov ebx, dword [ebp - 0x454]
test ebx, ebx
je 0x10ae1a1
mov eax, dword [ebx]
test eax, eax
je 0x10ae1a1
push eax
call esi
and dword [ebx], 0
mov ebx, dword [ebp - 0x43c]
test ebx, ebx
je 0x10ae1b7
mov eax, dword [ebx]
test eax, eax
je 0x10ae1b7
push eax
call esi
and dword [ebx], 0
push edi
call fcn.01091f0e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01077dc7
leave
ret 0x1c