Function at 0x10aa8d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10cd598]
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], 0x80000002
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 0x10aa96d
mov dword [eax], ecx
cmp edi, ecx
je 0x10aa973
mov dword [edi], ecx
cmp ebx, ecx
jne 0x10aa987
mov edi, 0x80004003
push edi
push 0xa7101b5
jmp 0x10aaf50
mov eax, dword [ebp - 0x430]
mov dword [ebx], ecx
cmp eax, ecx
je 0x10aa995
mov byte [eax], cl
mov ecx, dword [ebp - 0x434]
push 0x5c
pop eax
cmp ax, word [ecx]
jne 0x10aa9aa
mov ebx, 0x10ce630
jmp 0x10aa9d8
mov ebx, 0x10ce568
mov edi, 0x10ce61c
push dword [ebx + 4]
push dword [ebp - 0x434]
push dword [ebx]
call fcn.010aa7a0
test eax, eax
jne 0x10aa9cf
add ebx, 0x14
cmp ebx, edi
jb 0x10aa9b4
cmp ebx, edi
jb 0x10aa9d8
mov ebx, 0x10ce61c
mov eax, dword [ebx + 8]
test al, 0x20
je 0x10aa9e9
or dword [ebp - 0x44c], 0x100
test al, 8
je 0x10aaa0a
test byte [ebp + 0x10], 4
je 0x10aaa0a
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x42c], 0x80000001
test eax, eax
je 0x10aaa0a
mov byte [eax], 1
test byte [ebp + 0x10], 0x10
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x430], eax
je 0x10aaa26
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10aaa26
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x418], 0
je 0x10aaa92
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x418]
call fcn.0108dc13
mov edi, eax
test edi, edi
je 0x10aaa59
push edi
push 0xaa901b5
jmp 0x10aaf50
cmp dword [ebp - 0x418], 0
jne 0x10aaa92
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 0x10aaa92
push edi
push 0xaae01b5
push dword [ebp - 0x438]
jmp 0x10aadd8
test byte [ebx + 8], 7
mov byte [ebp - 0x419], 0
je 0x10aab12
lea eax, [ebp - 0x424]
push eax
push esi
push 0
mov esi, 0x1013928
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, 2
jne 0x10aaaf8
test byte [ebp + 0x10], 8
je 0x10aaafc
push eax
push 0xabe01b5
call fcn.010893e6
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 0x10aab07
push edi
push 0xac001b5
jmp 0x10aaf50
test edi, edi
je 0x10aab07
push edi
push 0xac201b5
jmp 0x10aaf50
mov al, byte [ebp + 0x10]
and al, 1
mov byte [ebp - 0x419], al
mov eax, dword [ebx + 8]
test al, 1
je 0x10aab4c
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 0x10aad84
test al, 7
je 0x10aad03
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, 0x100ceb4
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 0x10aaba1
push edi
push 0xae301b5
jmp 0x10aac8b
cmp dword [ebp - 0x440], 1
je 0x10aabc3
cmp dword [ebp - 0x440], 7
je 0x10aabc3
mov edi, 0x8007000d
push edi
push 0xae801b5
jmp 0x10aac8b
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 0x10aac08
push 0x1008aa0
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102d9bc
push dword [ebp - 0x430]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0102d9bc
cmp dword [ebp - 0x43c], 0
je 0x10aacd4
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 0x10aac47
push edi
push 0xb0201b5
jmp 0x10aadd1
test byte [ebx + 8], 4
je 0x10aad84
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 0x10aac91
push edi
push 0xb0e01b5
push esi
jmp 0x10aadd8
cmp dword [ebp - 0x440], 1
je 0x10aacb3
cmp dword [ebp - 0x440], 7
je 0x10aacb3
mov edi, 0x8007000d
push edi
push 0xb1301b5
jmp 0x10aadd1
push 0x1008aa0
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0102d9bc
lea eax, [ebp - 0x414]
push eax
push esi
jmp 0x10aacf2
push 0x5c
push dword [ebp - 0x434]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x10aad84
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0102d9bc
jmp 0x10aad84
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 0x10aad25
inc esi
inc esi
mov dword [ebp - 0x418], esi
xor ecx, ecx
cmp cx, word [esi]
je 0x10aad5c
test al, 0x10
je 0x10aad5c
lea eax, [ebp - 0x444]
push eax
push esi
call fcn.010aa7e4
test eax, eax
je 0x10aad50
push eax
push eax
push 0xb3601b5
push esi
call fcn.0108933a
jmp 0x10aad5c
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x418], eax
xor eax, eax
mov word [ebp - 0x20c], ax
cmp dword [ebp - 0x430], eax
je 0x10aad84
push dword [ebp - 0x430]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0102d982
cmp dword [ebp - 0x428], 0
jne 0x10aade2
mov eax, dword [ebp - 0x424]
test eax, eax
jne 0x10aad9d
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 0x10aade2
push edi
push 0xb5301b5
lea eax, [ebp - 0x20c]
push eax
call fcn.01089421
jmp 0x10aaf71
mov ecx, dword [ebp - 0x418]
push 0x5c
pop eax
cmp ax, word [ecx]
jne 0x10aadf7
add dword [ebp - 0x418], 2
cmp dword [ebp - 0x43c], 0
je 0x10aae6c
mov ecx, dword [ebp - 0x418]
xor eax, eax
cmp ax, word [ecx]
je 0x10aae6c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ebx, ebx
push ebx
push ebx
push ebx
mov edi, 0x104
push ebx
jmp 0x10aae3d
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
call fcn.0108c78f
test eax, eax
je 0x10aae60
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 0x10aae20
jmp 0x10aae6c
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 0x10aae75
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x420], eax
cmp byte [ebp - 0x419], cl
je 0x10aae9c
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 0x10aaec7
mov edi, 0x8007000e
push edi
push 0xb7a01b5
jmp 0x10aaf50
xor ecx, ecx
mov word [eax], cx
cmp byte [ebp - 0x419], cl
je 0x10aaee9
mov eax, dword [ebp - 0x420]
push 0x101d790
shr eax, 1
push eax
push dword [esi]
call fcn.0102d982
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x420]
shr eax, 1
push eax
push dword [esi]
call fcn.0102d9bc
xor eax, eax
cmp ax, word [ebp - 0x20c]
jne 0x10aaf2b
mov eax, dword [ebp - 0x420]
cmp eax, 2
jbe 0x10aaf2b
mov ecx, dword [esi]
shr eax, 1
lea eax, [ecx + eax*2 - 4]
push 0x5c
pop ecx
cmp cx, word [eax]
jne 0x10aaf2b
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x43c], ebx
je 0x10aaf57
push dword [ebp - 0x43c]
push dword [ebp - 0x418]
call fcn.0108e981
mov edi, eax
cmp edi, ebx
je 0x10aaf57
push edi
push 0xb8b01b5
call fcn.010893e6
jmp 0x10aaf71
mov eax, dword [ebp - 0x458]
cmp eax, ebx
je 0x10aaf6f
mov ecx, dword [ebp - 0x428]
mov dword [eax], ecx
mov dword [ebp - 0x428], ebx
xor edi, edi
cmp dword [ebp - 0x42c], 0x80000002
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10aaf97
cmp dword [ebp - 0x42c], 0x80000001
je 0x10aaf97
push dword [ebp - 0x42c]
call esi
xor ebx, ebx
cmp dword [ebp - 0x424], ebx
je 0x10aafa9
push dword [ebp - 0x424]
call esi
cmp dword [ebp - 0x448], ebx
je 0x10aafb9
push dword [ebp - 0x448]
call esi
cmp dword [ebp - 0x428], ebx
je 0x10aafc9
push dword [ebp - 0x428]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x438], ebx
je 0x10aafdf
push dword [ebp - 0x438]
call esi
cmp dword [ebp - 0x444], ebx
je 0x10aafef
push dword [ebp - 0x444]
call esi
cmp edi, ebx
je 0x10ab01f
mov ebx, dword [ebp - 0x454]
test ebx, ebx
je 0x10ab009
mov eax, dword [ebx]
test eax, eax
je 0x10ab009
push eax
call esi
and dword [ebx], 0
mov ebx, dword [ebp - 0x43c]
test ebx, ebx
je 0x10ab01f
mov eax, dword [ebx]
test eax, eax
je 0x10ab01f
push eax
call esi
and dword [ebx], 0
push edi
call fcn.0108ed8e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01074bd5
leave
ret 0x1c