Function at 0x1006a6b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100de944
mov eax, dword fs:[0]
push eax
sub esp, 0x514
mov eax, dword [0x1010e07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x480], ecx
jb 0x1006a6f6
mov ecx, dword [edi]
jmp 0x1006a6f8
mov ecx, edi
mov eax, dword [eax]
lea edx, [ebp - 0x47c]
push edx
push 0x20019
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x478], eax
cmp eax, ebx
je 0x1006a8c0
push 1
push 2
lea ecx, [ebp - 0x520]
call fcn.100042d0
mov dword [ebp - 4], ebx
push esi
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
mov ecx, dword [ebp - 0x478]
push ecx
push ecx
lea edx, [ebp - 0x520]
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, [ebp - 0x43c]
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x43c], bl
call fcn.100065d0
mov byte [ebp - 4], 1
push 0xe
push str.RegUtility.cpp
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x448], ebx
mov byte [ebp - 0x458], bl
call fcn.100065d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x520]
call fcn.100043f0
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x43c]
push ecx
push 0x1c
lea edx, [ebp - 0x458]
push edx
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [ebp - 4], 2
cmp dword [ebp - 0x460], 8
jb 0x1006a830
mov eax, dword [ebp - 0x474]
push eax
call fcn.100b2678
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x460], 7
mov dword [ebp - 0x464], ebx
mov word [ebp - 0x474], cx
mov byte [ebp - 4], 1
mov edi, 0x10
cmp dword [ebp - 0x444], edi
jb 0x1006a869
mov edx, dword [ebp - 0x458]
push edx
call fcn.100b2678
add esp, 4
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x448], ebx
mov byte [ebp - 0x458], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x428], edi
jb 0x1006a895
mov eax, dword [ebp - 0x43c]
push eax
call fcn.100b2678
add esp, 4
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x43c], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x520]
call fcn.100029c0
xor al, al
jmp 0x1006acd6
push 0x40e
lea edx, [ebp - 0x41e]
xor ecx, ecx
push ebx
push edx
mov byte [ebp - 0x478], bl
mov word [ebp - 0x420], cx
call fcn.100b2ed0
add esp, 0xc
lea eax, [ebp - 0x488]
push eax
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x484]
push edx
push ebx
mov ecx, esi
mov dword [ebp - 0x488], 0x410
call fcn.10006030
push eax
mov eax, dword [ebp - 0x47c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1006aac4
push 1
push 2
lea ecx, [ebp - 0x520]
call fcn.100042d0
mov dword [ebp - 4], 4
push esi
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
push ebx
push ecx
lea ecx, [ebp - 0x520]
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
push str.CRegUtility::ReadRegValue
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], ebx
mov byte [ebp - 0x458], bl
call fcn.100065d0
mov byte [ebp - 4], 5
push 0xe
push str.RegUtility.cpp
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x43c], bl
call fcn.100065d0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x474]
push edx
lea ecx, [ebp - 0x520]
call fcn.100043f0
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x458]
push eax
push 0x29
lea ecx, [ebp - 0x43c]
push ecx
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [ebp - 4], 6
cmp dword [ebp - 0x460], 8
jb 0x1006aa33
mov edx, dword [ebp - 0x474]
push edx
call fcn.100b2678
add esp, 4
xor eax, eax
mov dword [ebp - 0x460], 7
mov dword [ebp - 0x464], ebx
mov word [ebp - 0x474], ax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x428], 0x10
jb 0x1006aa68
mov ecx, dword [ebp - 0x43c]
push ecx
call fcn.100b2678
add esp, 4
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x43c], bl
mov byte [ebp - 4], 4
cmp dword [ebp - 0x444], 0x10
jb 0x1006aa9a
mov edx, dword [ebp - 0x458]
push edx
call fcn.100b2678
add esp, 4
mov dword [ebp - 0x444], 0xf
mov dword [ebp - 0x448], ebx
mov byte [ebp - 0x458], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x520]
call fcn.100029c0
jmp 0x1006aae2
cmp dword [ebp - 0x484], 4
jne 0x1006aae2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0x480]
mov byte [ebp - 0x478], 1
mov dword [ecx], eax
mov edx, dword [ebp - 0x47c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 2
lea ecx, [ebp - 0x520]
mov dword [ebp - 0x47c], ebx
call fcn.100042d0
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x480]
push ebx
push ecx
push str.._samDesired:
push ecx
mov ecx, dword [eax]
push ecx
push ecx
mov edx, dword [ebp - 0x478]
push str.._dwKeyValue:
push ecx
push esi
push ecx
push str.._strKeyName:
push ecx
push edi
push ecx
push str._strSubKey:
push ecx
push edx
push ecx
lea eax, [ebp - 0x520]
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
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 esi, 0xf
push str.CRegUtility::ReadRegValue
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x448], ebx
mov byte [ebp - 0x458], bl
call fcn.100065d0
mov byte [ebp - 4], 9
push 0xe
push str.RegUtility.cpp
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x43c], bl
call fcn.100065d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x474]
push ecx
lea ecx, [ebp - 0x520]
call fcn.100043f0
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x458]
push edx
push 0x38
lea eax, [ebp - 0x43c]
push eax
push 3
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x460], 8
jb 0x1006ac46
mov ecx, dword [ebp - 0x474]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov dword [ebp - 0x460], 7
mov dword [ebp - 0x464], ebx
mov word [ebp - 0x474], dx
mov byte [ebp - 4], 9
mov edi, 0x10
cmp dword [ebp - 0x428], edi
jb 0x1006ac7f
mov eax, dword [ebp - 0x43c]
push eax
call fcn.100b2678
add esp, 4
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x43c], bl
mov byte [ebp - 4], 8
cmp dword [ebp - 0x444], edi
jb 0x1006acac
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.100b2678
add esp, 4
mov dword [ebp - 0x444], esi
mov dword [ebp - 0x448], ebx
mov byte [ebp - 0x458], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x520]
call fcn.100029c0
mov al, byte [ebp - 0x478]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b2b2c
mov esp, ebp
pop ebp
ret 8