Function at 0x1006ad00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100de891
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x1010e07c]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x1010e07c]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
jb 0x1006ad5f
mov ecx, dword [edi]
jmp 0x1006ad61
mov ecx, edi
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebp + 0x14]
or edx, 0x20019
push edx
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x1006af5a
push 1
push 2
lea ecx, [esp + 0x3c]
call fcn.100042d0
mov dword [esp + 0x130], ebx
push esi
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push ecx
lea edx, [esp + 0x5c]
push str.RegOpenKeyEx_Failed._lStatus:
push edx
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.10014310
add esp, 4
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 0xc
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 8
push 0x19
mov esi, 0xf
push str.CRegUtility::ReadRegValue
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.100065d0
mov byte [esp + 0x130], 1
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.100065d0
mov byte [esp + 0x130], 2
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x38]
call fcn.100043f0
mov byte [esp + 0x130], 3
push eax
lea ecx, [esp + 0xd0]
push ecx
push 0x42
lea edx, [esp + 0xf4]
push edx
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x130], 2
cmp dword [esp + 0x118], 8
jb 0x1006aeb3
mov eax, dword [esp + 0x104]
push eax
call fcn.100b2678
add esp, 4
xor ecx, ecx
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], cx
mov byte [esp + 0x130], 1
mov edi, 0x10
cmp dword [esp + 0xfc], edi
jb 0x1006aef5
mov edx, dword [esp + 0xe8]
push edx
call fcn.100b2678
add esp, 4
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov byte [esp + 0x130], bl
cmp dword [esp + 0xe0], edi
jb 0x1006af2a
mov eax, dword [esp + 0xcc]
push eax
call fcn.100b2678
add esp, 4
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.100029c0
xor al, al
jmp 0x1006b516
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x18]
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
mov dword [ecx], ebx
push ebx
mov ecx, esi
mov byte [esp + 0x2c], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.10006030
mov ecx, dword [esp + 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x1006af9a
cmp eax, ebx
jne 0x1006b2d2
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100b21c0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
mov dword [esp + 0x20], edi
cmp ecx, ebx
jbe 0x1006afde
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov ecx, esi
call fcn.10006030
mov edx, dword [esp + 0x34]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
je 0x1006b1d8
push 1
push 2
lea ecx, [esp + 0x3c]
call fcn.100042d0
mov dword [esp + 0x130], 4
mov eax, dword [esp + 0x30]
push esi
push ecx
push str.__strKeyName:
push ecx
push eax
push ecx
push str.._strSubKey:
push ecx
push edi
push ecx
lea ecx, [esp + 0x5c]
push str.RegQueryValueEx_Failed._lStatus:
push ecx
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.10014310
add esp, 4
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 0xc
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 8
push 0x19
mov edi, 0xf
push str.CRegUtility::ReadRegValue
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], edi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.100065d0
mov byte [esp + 0x130], 5
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.100065d0
mov byte [esp + 0x130], 6
lea edx, [esp + 0x104]
push edx
lea ecx, [esp + 0x38]
call fcn.100043f0
mov byte [esp + 0x130], 7
push eax
lea eax, [esp + 0xec]
push eax
push 0x5b
lea ecx, [esp + 0xd8]
push ecx
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x130], 6
cmp dword [esp + 0x118], 8
jb 0x1006b135
mov edx, dword [esp + 0x104]
push edx
call fcn.100b2678
add esp, 4
xor eax, eax
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], ax
mov byte [esp + 0x130], 5
cmp dword [esp + 0xe0], 0x10
jb 0x1006b173
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.100b2678
add esp, 4
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov byte [esp + 0x130], 4
cmp dword [esp + 0xfc], 0x10
jb 0x1006b1aa
mov edx, dword [esp + 0xe8]
push edx
call fcn.100b2678
add esp, 4
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.100029c0
jmp 0x1006b2bf
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x1006b20f
mov edx, dword [esp + 0x20]
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1006b1f0
mov ecx, dword [esp + 0x28]
sub eax, edi
sar eax, 1
push eax
push edx
call fcn.10006a20
jmp 0x1006b2ab
mov edi, 7
cmp eax, edi
je 0x1006b221
cmp eax, 2
jne 0x1006b2af
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
inc eax
shr eax, 1
xor ecx, ecx
push eax
mov word [esp + 0xd0], cx
push edx
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
call fcn.10006a20
mov dword [esp + 0x130], 8
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0xcc]
push eax
call fcn.100070c0
mov dword [esp + 0x130], 0xffffffff
cmp dword [esp + 0xe0], 8
jb 0x1006b293
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], dx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
mov byte [esp + 0x1c], 1
mov edi, 0xf
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1006b2d7
push eax
call fcn.100b2e04
add esp, 4
jmp 0x1006b2d7
mov edi, 0xf
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 2
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], ebx
call fcn.100042d0
mov dword [esp + 0x130], 9
mov eax, dword [ebp + 0x14]
push eax
push ecx
push str.._samDesired:
push ecx
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x38]
push edx
push ecx
push str.._dwType:
push ecx
push eax
push ecx
mov edx, dword [esp + 0x44]
push str.._strKeyValue:
push ecx
push esi
push ecx
push str.._strKeyName:
push ecx
mov ecx, dword [esp + 0x70]
push ecx
push ecx
push str._strSubKey:
push ecx
push edx
push ecx
lea eax, [esp + 0x8c]
push str.bRet:
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.10063b30
add esp, 4
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 0xc
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 0xc
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 0xc
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.1005be10
add esp, 4
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.1005be10
push 0x19
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
push str.CRegUtility::ReadRegValue
lea ecx, [esp + 0xf0]
call fcn.100065d0
mov byte [esp + 0x130], 0xa
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.100065d0
mov byte [esp + 0x130], 0xb
lea ecx, [esp + 0x104]
push ecx
lea ecx, [esp + 0x38]
call fcn.100043f0
mov byte [esp + 0x130], 0xc
push eax
lea edx, [esp + 0xec]
push edx
push 0x70
lea eax, [esp + 0xd8]
push eax
push 3
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x130], 0xb
cmp dword [esp + 0x118], 8
jb 0x1006b471
mov ecx, dword [esp + 0x104]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], dx
mov byte [esp + 0x130], 0xa
mov esi, 0x10
cmp dword [esp + 0xe0], esi
jb 0x1006b4b3
mov eax, dword [esp + 0xcc]
push eax
call fcn.100b2678
add esp, 4
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov byte [esp + 0x130], 9
cmp dword [esp + 0xfc], esi
jb 0x1006b4e9
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.100b2678
add esp, 4
mov dword [esp + 0xfc], edi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.100029c0
mov al, byte [esp + 0x1c]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.100b2b2c
mov esp, ebp
pop ebp
ret 0x10