Function at 0x495d30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [0x4cbec8]
push edi
push 1
push 0
push 0xffffffffffffffff
mov dword [esp + 0x30], ecx
mov ecx, esi
push 0
mov dword [esp + 0x30], esi
call fcn.004a2db0
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x495d64
lea ebx, [edx + 0x57]
jmp 0x496038
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x4c8024]
mov eax, dword [eax + 0xb0]
or eax, 0x20019
push eax
push 0
push dword [esp + 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x496038
mov ebp, dword [esp + 0x48]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push ebp
push dword [esp + 0x24]
call edi
mov ebx, eax
test ebx, ebx
jne 0x495df3
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 6
ja case.0x495dbe.5
jmp dword [eax*4 + 0x496058]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
push ebp
push dword [esp + 0x24]
call edi
mov ebx, eax
test ebx, ebx
jne 0x495df3
push dword [esp + 0x1c]
mov ecx, esi
call fcn.004014c0
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x496038
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
push ebp
push dword [esp + 0x24]
call edi
mov ebx, eax
test ebx, ebx
jne 0x495df3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495df3
push 1
push ebx
add eax, 2
mov ecx, esi
push eax
push ebx
call fcn.004a2db0
cmp eax, 1
je 0x495e54
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0xc
push 0
push 1
mov ecx, esi
call fcn.00401550
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
push 0
push 0
push ebp
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x10]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x495eb1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495eb1
mov word [edi + eax], bx
cmp dword [esp + 0x18], 7
jne 0x495eb4
mov eax, edi
nop dword [eax + eax]
cmp byte [eax], 0
jne 0x495eae
cmp byte [eax + 1], 0
mov byte [eax], 0xa
je 0x495eb4
inc eax
jmp 0x495ea0
mov byte [edi], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x495eb7
sub edi, ecx
cmp byte [esi + 0x17], al
jne 0x495eca
mov ebp, dword [esi + 0xc]
jmp 0x495ecc
mov ebp, esi
cmp byte [ebp + 0x17], 1
jne 0x495ee4
test byte [ebp + 0x15], 8
je 0x495edf
mov ecx, ebp
call fcn.004013b0
add ebp, 0xc
jmp 0x495ee9
mov ebp, 0x4ce2c0
mov dword [ebp], edi
cmp byte [esi + 0x17], 0
jne 0x495ef5
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x495f08
cmp dword [0x4cc838], 0
jne 0x49600f
and byte [esi + 0x15], 0x86
jmp 0x496038
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
push ebp
push dword [esp + 0x24]
call edi
mov ebx, eax
test ebx, ebx
jne 0x495df3
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495df3
push 1
push ebx
add eax, eax
mov ecx, esi
push eax
push ebx
call fcn.004a2db0
cmp eax, 1
jne 0x495e3e
push ebx
push eax
mov ecx, esi
call fcn.00401550
mov ebp, eax
lea ecx, [esp + 0x14]
push ecx
mov byte [ebp], bl
mov eax, dword [esp + 0x18]
add eax, ebp
push eax
push ebx
push ebx
push dword [esp + 0x58]
mov dword [esp + 0x54], eax
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x496038
movups xmm0, xmmword [str.0123456789ABCDEF]
mov al, byte [0x4c12e0]
xor edx, edx
xor edi, edi
mov byte [esp + 0x38], al
movups xmmword [esp + 0x28], xmm0
cmp dword [esp + 0x14], edx
jbe 0x495feb
mov esi, dword [esp + 0x40]
nop dword [eax]
movzx ecx, byte [edi + esi]
inc edi
mov eax, ecx
shr ecx, 4
and eax, 0xf
movzx eax, byte [esp + eax + 0x28]
mov byte [edx + ebp + 1], al
movzx eax, byte [esp + ecx + 0x28]
mov byte [edx + ebp], al
add edx, 2
cmp edi, dword [esp + 0x14]
jb 0x495fc0
mov esi, dword [esp + 0x20]
mov byte [edx + ebp], 0
cmp byte [esi + 0x17], 0
jne 0x495ff8
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x495f08
cmp dword [0x4cc838], 0
je 0x495f08
push 1
mov ecx, 0x4cc82c
call fcn.004056e0
test eax, eax
jne 0x496038
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x65e
mov ecx, dword [esp + 0x24]
test ebx, ebx
push ebx
setne al
movzx eax, al
push eax
call fcn.0043e820
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc