Function at 0x4957b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [0x4eceb0]
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.004a2730
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x4957e4
lea ebx, [edx + 0x57]
jmp 0x495ab8
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x4e88cc]
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 0x495ab8
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 0x495873
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 6
ja case.0x49583e.5
jmp dword [eax*4 + 0x495ad8]
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 0x495873
push dword [esp + 0x1c]
mov ecx, esi
call fcn.004014c0
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x495ab8
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 0x495873
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495873
push 1
push ebx
add eax, 2
mov ecx, esi
push eax
push ebx
call fcn.004a2730
cmp eax, 1
je 0x4958d4
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 0x495931
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495931
mov word [edi + eax], bx
cmp dword [esp + 0x18], 7
jne 0x495934
mov eax, edi
nop dword [eax + eax]
cmp byte [eax], 0
jne 0x49592e
cmp byte [eax + 1], 0
mov byte [eax], 0xa
je 0x495934
inc eax
jmp 0x495920
mov byte [edi], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x495937
sub edi, ecx
cmp byte [esi + 0x17], al
jne 0x49594a
mov ebp, dword [esi + 0xc]
jmp 0x49594c
mov ebp, esi
cmp byte [ebp + 0x17], 1
jne 0x495964
test byte [ebp + 0x15], 8
je 0x49595f
mov ecx, ebp
call fcn.004013b0
add ebp, 0xc
jmp 0x495969
mov ebp, 0x4ef2a8
mov dword [ebp], edi
cmp byte [esi + 0x17], 0
jne 0x495975
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x495988
cmp dword [0x4ed820], 0
jne 0x495a8f
and byte [esi + 0x15], 0x86
jmp 0x495ab8
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 0x495873
mov eax, dword [esp + 0x14]
test eax, eax
je 0x495873
push 1
push ebx
add eax, eax
mov ecx, esi
push eax
push ebx
call fcn.004a2730
cmp eax, 1
jne 0x4958be
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 0x495ab8
movups xmm0, xmmword [str.0123456789ABCDEF]
mov al, byte [0x4e0bd8]
xor edx, edx
xor edi, edi
mov byte [esp + 0x38], al
movups xmmword [esp + 0x28], xmm0
cmp dword [esp + 0x14], edx
jbe 0x495a6b
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 0x495a40
mov esi, dword [esp + 0x20]
mov byte [edx + ebp], 0
cmp byte [esi + 0x17], 0
jne 0x495a78
mov esi, dword [esi + 0xc]
cmp byte [esi + 0x17], 2
jne 0x495988
cmp dword [0x4ed820], 0
je 0x495988
push 1
mov ecx, 0x4ed814
call fcn.004056b0
test eax, eax
jne 0x495ab8
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.0043e7b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc