Function at 0x446010
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46ca18
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.00430040
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x44606b
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x34]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
mov eax, dword [esp + 0x34]
neg ebp
sbb ebp, ebp
not ebp
and ebp, eax
jmp 0x44606f
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x446323
call fcn.004380e0
test eax, eax
je 0x4461b2
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
push eax
call fcn.004289e0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x14]
push 0
push edx
push 0
push eax
push ebp
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44619c
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4460d8
cmp eax, 2
je 0x4460d8
cmp eax, 6
je 0x4460d8
cmp eax, 7
jne 0x44619c
mov ecx, dword [esp + 0x34]
add ecx, 2
push ecx
call fcn.0045e1f2
mov edx, dword [esp + 0x38]
mov esi, eax
xor eax, eax
mov edi, esi
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
mov dword [esp + 0x2c], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x34]
push eax
push esi
push 0
push 0
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x446193
mov edi, esi
cmp word [edi], ax
je 0x446147
mov eax, dword [ebx + 4]
push esi
push eax
mov ecx, ebx
call fcn.004305e0
push esi
call fcn.00410fb4
lea esi, [esi + eax*2 + 2]
add esp, 4
cmp word [esi], 0
jne 0x446128
cmp ebp, dword [esp + 0x28]
je 0x446161
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x446161
push 0
push 0
call fcn.00413200
push edi
call fcn.0045e21b
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.00429360
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
call fcn.0045e21b
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.00429360
jmp 0x446309
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
push edx
call fcn.00423060
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push edx
push ebp
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4462f8
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x446206
cmp eax, 2
je 0x446206
cmp eax, 6
je 0x446206
cmp eax, 7
jne 0x4462f8
mov eax, dword [esp + 0x34]
add eax, 2
push eax
call fcn.0045e1f2
mov ecx, dword [esp + 0x38]
mov esi, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x30], esi
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
push esi
push 0
push 0
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4462ef
mov edx, esi
cmp byte [edx], 0
je 0x44629f
push esi
lea ecx, [esp + 0x18]
call fcn.004289e0
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebx
mov byte [esp + 0x28], 2
call fcn.004306d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.00429360
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x44625a
cmp ebp, dword [esp + 0x28]
je 0x4462b9
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4462b9
push 0
push 0
call fcn.00413200
mov edx, dword [esp + 0x30]
push edx
call fcn.0045e21b
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.00423a00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
call fcn.0045e21b
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call fcn.00423a00
cmp ebp, dword [esp + 0x28]
je 0x446323
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x446323
push 0
push 0
call fcn.00413200
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret