Function at 0x10015420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059068
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100764f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
mov ecx, edx
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015490
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.10006f50
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10015652
lea ecx, [ebp - 0x34]
call fcn.100146d0
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x10015526
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001551c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001566e
push edx
push ecx
call fcn.1003465a
add esp, 8
mov ecx, ebx
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015540
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10006f50
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
push ecx
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push esi
mov dword [ebp - 0x38], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10015673
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
cmp edx, 8
jb 0x100155d4
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100155ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001568f
push edx
push ecx
call fcn.1003465a
add esp, 8
test esi, esi
je 0x10015627
cmp esi, 0x80000001
je 0x10015627
cmp esi, reloc.OLEAUT32.dll_SysReAllocString
je 0x10015627
cmp esi, 0x80000000
je 0x10015627
cmp esi, 0x80000005
je 0x10015627
cmp esi, reloc.OLEAUT32.dll_VariantInit
je 0x10015627
cmp esi, 0x80000004
je 0x10015627
cmp esi, 0x80000060
je 0x10015627
cmp esi, 0x80000050
je 0x10015627
cmp esi, 0x80000003
je 0x10015627
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x10015636
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034676
mov esp, ebp
pop ebp
ret
push eax
push str.RegOpenKeyEx_failed.
lea ecx, [ebp - 0x4c]
call fcn.10014030
push 0x10072448
lea eax, [ebp - 0x4c]
push eax
call fcn.10035fb1
call fcn.10039dac
push eax
push str.Cannot_get_DWORD_value:_RegGetValue_failed.
lea ecx, [ebp - 0x5c]
call fcn.10014030
push 0x10072448
lea eax, [ebp - 0x5c]
push eax
call fcn.10035fb1
call fcn.10039dac
int3