Function at 0x412924
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x34
mov eax, 0x4176ec
call fcn.00415d70
mov eax, ecx
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 2
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 0xc
test byte [ebp + 8], 1
je 0x412c3a
mov ecx, eax
call fcn.00412634
mov esi, eax
cmp dword [ebp - 0x24], ebx
je 0x412992
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x41298b
call fcn.0040e617
xor ecx, ecx
mov dword [ebp - 0x24], ecx
jmp 0x412994
xor ecx, ecx
mov dword [ebp - 0x28], esi
test esi, esi
je 0x4129bf
mov dword [ebp - 0x24], 1
cmp word [esi], cx
je 0x4129af
mov dword [ebp - 0x24], ecx
jmp 0x412d28
mov edx, esi
call fcn.0040e617
and dword [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x10]
test byte [ebp + 8], 0xe
je 0x412d28
cmp dword [ebp + 0xc], 0
je 0x4129e1
mov ecx, eax
call fcn.00412da9
test eax, eax
je 0x412d28
test byte [ebp + 8], 2
je 0x412ad4
mov edi, dword [0x41a04c]
xor esi, esi
cmp edi, 0xffffffff
je 0x412c42
inc esi
cmp dword [ebp - 0x34], 0
je 0x412a10
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x38], edi
test edi, edi
je 0x412a1e
mov dword [ebp - 0x34], 1
mov cl, 1
mov dword [ebp - 4], 0xc
test bl, 1
je 0x412a45
and ebx, 0xfffffffe
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x412a45
mov dword [eax + 4], 1
test cl, cl
je 0x412ad4
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412ac0
cmp dword [ebp - 0x1c], 1
jne 0x412ac0
mov ecx, dword [ebp - 0x14]
call fcn.0040e65d
mov edi, eax
cmp dword [ebp - 0x24], 0
je 0x412a8f
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x412a8b
call fcn.0040e617
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], edi
test edi, edi
je 0x412abd
xor eax, eax
mov dword [ebp - 0x24], 1
mov word [edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
and dword [ebp - 0x24], 0
xor edi, edi
inc edi
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 0x34]
mov dword [ebp - 0x34], esi
test edi, edi
jne 0x412d21
test byte [ebp + 8], 4
je 0x412bc7
mov edi, dword [0x41a050]
xor esi, esi
cmp edi, 0xffffffff
je 0x412c80
inc esi
cmp dword [ebp - 0x2c], 0
je 0x412b03
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], edi
test edi, edi
je 0x412b11
mov dword [ebp - 0x2c], 1
mov cl, 1
mov dword [ebp - 4], 0xc
test bl, 2
je 0x412b38
and ebx, 0xfffffffd
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x412b38
mov dword [eax + 4], 1
test cl, cl
je 0x412bc7
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412bb3
cmp dword [ebp - 0x1c], 1
jne 0x412bb3
mov ecx, dword [ebp - 0x14]
call fcn.0040e65d
mov edi, eax
cmp dword [ebp - 0x24], 0
je 0x412b82
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x412b7e
call fcn.0040e617
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], edi
test edi, edi
je 0x412bb0
xor eax, eax
mov dword [ebp - 0x24], 1
mov word [edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
and dword [ebp - 0x24], 0
xor edi, edi
inc edi
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
test edi, edi
jne 0x412d21
test byte [ebp + 8], 8
je 0x412d26
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040ede2
mov byte [ebp - 4], 0x37
or ebx, 4
mov dword [ebp - 0x18], ebx
push dword [eax]
push 0x20019
push 0
push 0x40892c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x412cbe
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412cbe
cmp dword [ebp - 0x1c], 1
jne 0x412cbe
mov dl, 1
jmp 0x412cc0
mov esi, dword [ebp - 0x28]
jmp 0x4129c2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040ede2
mov byte [ebp - 4], 0x28
xor ebx, ebx
inc ebx
mov dword [ebp - 0x18], ebx
push dword [eax]
push 0x20019
push 0
push 0x4088e8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412a1e
xor cl, cl
jmp 0x412a20
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040ede2
mov byte [ebp - 4], 0x33
or ebx, 2
mov dword [ebp - 0x18], ebx
push dword [eax]
push 0x20019
push 0
push 0x4088e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412b11
xor cl, cl
jmp 0x412b13
xor dl, dl
mov dword [ebp - 4], 0xc
and ebx, 0xfffffffb
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], ebx
call fcn.0040bbb9
test dl, dl
je 0x412d26
mov ecx, dword [ebp - 0x14]
call fcn.0040e65d
mov esi, eax
cmp dword [ebp - 0x24], 0
je 0x412cf5
mov ecx, dword [ebp - 0x28]
call fcn.0040e6da
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esi
test esi, esi
je 0x412d26
mov dword [ebp - 0x24], 1
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
push 0
push 0
push edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
and dword [ebp - 0x24], 0
mov esi, dword [ebp - 0x28]
jmp 0x412d28
xor esi, esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.0040dca0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.0040ecfd
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040ecfd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040ecfd
mov eax, esi
call fcn.00415d39
ret 8