Function at 0x100149c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058548
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100754f8]
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 0x10014a30
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.10006ee0
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 0x10014bf2
lea ecx, [ebp - 0x34]
call fcn.10013b20
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x10014ac6
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10014abc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014c0e
push edx
push ecx
call fcn.10033b8a
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 0x10014ae0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10006ee0
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 0x10014c13
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
cmp edx, 8
jb 0x10014b74
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10014b6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014c2f
push edx
push ecx
call fcn.10033b8a
add esp, 8
test esi, esi
je 0x10014bc7
cmp esi, 0x80000001
je 0x10014bc7
cmp esi, reloc.OLEAUT32.dll_SysReAllocString
je 0x10014bc7
cmp esi, 0x80000000
je 0x10014bc7
cmp esi, 0x80000005
je 0x10014bc7
cmp esi, reloc.OLEAUT32.dll_VariantInit
je 0x10014bc7
cmp esi, 0x80000004
je 0x10014bc7
cmp esi, 0x80000060
je 0x10014bc7
cmp esi, 0x80000050
je 0x10014bc7
cmp esi, 0x80000003
je 0x10014bc7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x10014bd6
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.10033ba6
mov esp, ebp
pop ebp
ret
push eax
push str.RegOpenKeyEx_failed.
lea ecx, [ebp - 0x4c]
call fcn.10013480
push 0x100711c0
lea eax, [ebp - 0x4c]
push eax
call fcn.100354e1
call fcn.100392dc
push eax
push str.Cannot_get_DWORD_value:_RegGetValue_failed.
lea ecx, [ebp - 0x5c]
call fcn.10013480
push 0x100711c0
lea eax, [ebp - 0x5c]
push eax
call fcn.100354e1
call fcn.100392dc
int3