Function at 0x4129a4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x34
mov eax, 0x41775c
call fcn.00415de0
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 0x412cba
mov ecx, eax
call fcn.004126b4
mov esi, eax
cmp dword [ebp - 0x24], ebx
je 0x412a12
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x412a0b
call fcn.0040e697
xor ecx, ecx
mov dword [ebp - 0x24], ecx
jmp 0x412a14
xor ecx, ecx
mov dword [ebp - 0x28], esi
test esi, esi
je 0x412a3f
mov dword [ebp - 0x24], 1
cmp word [esi], cx
je 0x412a2f
mov dword [ebp - 0x24], ecx
jmp 0x412da8
mov edx, esi
call fcn.0040e697
and dword [ebp - 0x24], 0
xor esi, esi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x10]
test byte [ebp + 8], 0xe
je 0x412da8
cmp dword [ebp + 0xc], 0
je 0x412a61
mov ecx, eax
call fcn.00412e29
test eax, eax
je 0x412da8
test byte [ebp + 8], 2
je 0x412b54
mov edi, dword [0x41a04c]
xor esi, esi
cmp edi, 0xffffffff
je 0x412cc2
inc esi
cmp dword [ebp - 0x34], 0
je 0x412a90
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 0x412a9e
mov dword [ebp - 0x34], 1
mov cl, 1
mov dword [ebp - 4], 0xc
test bl, 1
je 0x412ac5
and ebx, 0xfffffffe
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x412ac5
mov dword [eax + 4], 1
test cl, cl
je 0x412b54
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 0x412b40
cmp dword [ebp - 0x1c], 1
jne 0x412b40
mov ecx, dword [ebp - 0x14]
call fcn.0040e6dd
mov edi, eax
cmp dword [ebp - 0x24], 0
je 0x412b0f
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x412b0b
call fcn.0040e697
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], edi
test edi, edi
je 0x412b3d
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 0x412da1
test byte [ebp + 8], 4
je 0x412c47
mov edi, dword [0x41a050]
xor esi, esi
cmp edi, 0xffffffff
je 0x412d00
inc esi
cmp dword [ebp - 0x2c], 0
je 0x412b83
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 0x412b91
mov dword [ebp - 0x2c], 1
mov cl, 1
mov dword [ebp - 4], 0xc
test bl, 2
je 0x412bb8
and ebx, 0xfffffffd
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x412bb8
mov dword [eax + 4], 1
test cl, cl
je 0x412c47
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 0x412c33
cmp dword [ebp - 0x1c], 1
jne 0x412c33
mov ecx, dword [ebp - 0x14]
call fcn.0040e6dd
mov edi, eax
cmp dword [ebp - 0x24], 0
je 0x412c02
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x412bfe
call fcn.0040e697
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], edi
test edi, edi
je 0x412c30
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 0x412da1
test byte [ebp + 8], 8
je 0x412da6
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040ee62
mov byte [ebp - 4], 0x37
or ebx, 4
mov dword [ebp - 0x18], ebx
push dword [eax]
push 0x20019
push 0
push 0x408984
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp - 0x10]
test eax, eax
jne 0x412d3e
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 0x412d3e
cmp dword [ebp - 0x1c], 1
jne 0x412d3e
mov dl, 1
jmp 0x412d40
mov esi, dword [ebp - 0x28]
jmp 0x412a42
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040ee62
mov byte [ebp - 4], 0x28
xor ebx, ebx
inc ebx
mov dword [ebp - 0x18], ebx
push dword [eax]
push 0x20019
push 0
push 0x408940
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412a9e
xor cl, cl
jmp 0x412aa0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040ee62
mov byte [ebp - 4], 0x33
or ebx, 2
mov dword [ebp - 0x18], ebx
push dword [eax]
push 0x20019
push 0
push 0x408940
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x412b91
xor cl, cl
jmp 0x412b93
xor dl, dl
mov dword [ebp - 4], 0xc
and ebx, 0xfffffffb
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], ebx
call fcn.0040bc09
test dl, dl
je 0x412da6
mov ecx, dword [ebp - 0x14]
call fcn.0040e6dd
mov esi, eax
cmp dword [ebp - 0x24], 0
je 0x412d75
mov ecx, dword [ebp - 0x28]
call fcn.0040e75a
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], esi
test esi, esi
je 0x412da6
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 0x412da8
xor esi, esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
call fcn.0040dd20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.0040ed7d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040ed7d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0040ed7d
mov eax, esi
call fcn.00415da9
ret 8