Function at 0x495ed8
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x22c
mov eax, 0x4af0d2
call fcn.004a95a1
mov edi, edx
mov dword [ebp - 0x228], edi
mov ebx, ecx
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x495f1f
test byte [eax + 0x1c], 1
je 0x495f1f
cmp byte [eax + 0x19], 5
jb 0x495f1f
push edi
push dword [ebx]
mov edx, 0x410160
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x59
pop ecx
call fcn.0041b4e5
and dword [ebp - 0x224], 0
lea eax, [ebp - 0x224]
xor esi, esi
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x224], 0
je 0x4960ee
push 0x410144
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x4960f8
push 0x410134
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x4960e0
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
lea eax, [ebp - 0x214]
mov dword [ebp - 4], ecx
push eax
push 0x2011f
push ecx
push edi
push dword [ebx]
mov dword [ebp - 0x214], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x495fda
cmp dword [ebp - 0x220], esi
je 0x495fcc
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov edx, dword [ebp - 0x214]
mov dword [ebp - 0x220], edx
jmp 0x495fe0
mov edx, dword [ebp - 0x220]
mov edi, dword [0x4b70c8]
cmp edi, 0x4b70c8
je 0x496022
test byte [edi + 0x1c], 2
je 0x496022
movzx eax, byte [edi + 0x19]
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp eax, ecx
jb 0x496022
push dword [ebp - 0x228]
push dword [ebx]
push esi
push dword [edi + 0x14]
push dword [edi + 0x10]
call fcn.00494a1c
mov edx, dword [ebp - 0x220]
test esi, esi
jne 0x4960d5
lea eax, [ebp - 0x238]
xor edi, edi
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push edx
jmp 0x49607e
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x220]
call fcn.00495ed8
mov esi, eax
test esi, esi
jne 0x496092
lea eax, [ebp - 0x238]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x220]
mov dword [ebp - 0x214], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x496048
mov edx, dword [ebp - 0x220]
test edx, edx
je 0x4960ab
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
mov dword [ebp - 0x220], edx
test esi, esi
jne 0x4960d5
mov esi, dword [ebp - 0x22c]
mov ecx, esi
push edi
push 0x100
push dword [ebp - 0x228]
push dword [ebx]
call dword [0x4bb544]
call esi
mov edx, dword [ebp - 0x220]
mov esi, eax
test edx, edx
je 0x4960e0
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4960f8
push edi
mov ecx, ebx
call fcn.004967ca
mov esi, eax
mov edi, dword [0x4b70c8]
cmp edi, 0x4b70c8
je 0x496134
test byte [edi + 0x1c], 1
je 0x496134
movzx ecx, byte [edi + 0x19]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
cmp ecx, eax
jb 0x496134
push esi
push dword [edi + 0x14]
mov edx, 0x410160
push dword [edi + 0x10]
push 0x5b
pop ecx
call fcn.0041610f
mov eax, esi
call fcn.004a9550
ret