Function at 0x49e373
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24c
mov eax, 0x4e0ed4
call fcn.004beaa5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
lea esi, [ebp - 0x228]
mov edi, ecx
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x22c], ebx
call fcn.00416d00
push 0x208
lea eax, [ebp - 0x21e]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x220], bx
call fcn.004be320
add esp, 0xc
lea esi, [ebp - 0x234]
mov dword [ebp - 0x258], 0x20a
mov dword [ebp - 0x244], ebx
mov byte [ebp - 0x221], bl
mov dword [ebp - 0x238], ebx
call fcn.00416d00
lea esi, [ebp - 0x230]
call fcn.00416d00
mov byte [ebp - 4], 1
mov eax, dword [edi]
push str.hkcr
push eax
call fcn.004b9e54
test eax, eax
pop ecx
pop ecx
jne 0x49e43c
mov ecx, SysReAllocString
jmp 0x49e48c
mov eax, dword [edi]
push str.hkcu
push eax
call fcn.004b9e54
test eax, eax
pop ecx
pop ecx
jne 0x49e456
mov ecx, SysReAllocString
jmp 0x49e48c
mov eax, dword [edi]
push str.hklm
push eax
call fcn.004b9e54
test eax, eax
pop ecx
pop ecx
jne 0x49e470
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x49e48c
mov edi, dword [edi]
push str.hkus
push edi
call fcn.004b9e54
test eax, eax
pop ecx
pop ecx
jne 0x49e666
mov ecx, SysStringLen
mov eax, dword [ebp - 0x250]
mov eax, dword [eax]
lea edx, [ebp - 0x22c]
push edx
push 0x20019
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49e666
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax]
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x244]
push ecx
push ebx
push eax
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x49e666
lea edx, [ebp - 0x220]
lea edi, [ebp - 0x228]
call fcn.004049e0
mov eax, edi
push eax
xor eax, eax
inc eax
lea ecx, [ebp - 0x23c]
call fcn.00401030
mov esi, 0x4f09a4
push eax
mov ecx, esi
call fcn.004138f0
pop ecx
lea ecx, [ebp - 0x23c]
mov byte [ebp - 0x221], al
call fcn.00416ce0
cmp byte [ebp - 0x221], bl
je 0x49e534
mov edx, esi
call fcn.00413750
push dword [ebp - 0x240]
lea eax, [ebp - 0x240]
push eax
lea ebx, [ebp - 0x228]
call fcn.00416a70
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov edi, dword [ebp - 0x228]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x49e59e
cmp dword [esi + 0xc], 0
jl 0x49e589
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49e589
call fcn.004012d0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x228], edi
jmp 0x49e59e
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x228]
call fcn.00401450
mov edi, dword [ebp - 0x228]
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.00416ce0
mov eax, dword [ebp - 0x24c]
mov eax, dword [eax]
mov esi, dword [ebp - 0x230]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x49e607
cmp dword [esi + 0xc], 0
jl 0x49e5f8
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49e5f8
call fcn.004012d0
mov ebx, eax
mov eax, esi
call fcn.004010d0
add ebx, 0x10
mov dword [ebp - 0x230], ebx
jmp 0x49e607
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x230]
call fcn.00401450
mov esi, dword [ebp - 0x234]
lea eax, [edi - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x49e64b
cmp dword [esi + 0xc], 0
jl 0x49e63c
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x49e63c
call fcn.004012d0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x234], edi
jmp 0x49e64b
mov ebx, dword [edi - 0xc]
push edi
lea eax, [ebp - 0x234]
call fcn.00401450
mov edi, dword [ebp - 0x248]
lea eax, [ebp - 0x238]
push eax
call fcn.0049e9a2
mov byte [ebp - 0x221], 1
xor ebx, ebx
cmp dword [ebp - 0x22c], ebx
je 0x49e680
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x22c], ebx
lea ecx, [ebp - 0x230]
call fcn.00416ce0
lea ecx, [ebp - 0x234]
call fcn.00416ce0
lea ecx, [ebp - 0x228]
call fcn.00416ce0
mov al, byte [ebp - 0x221]
call fcn.004beb28
ret 0x18