Function at 0x49e348
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24c
mov eax, 0x4e0e1c
call fcn.004be9c5
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.004016f0
push 0x208
lea eax, [ebp - 0x21e]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x220], bx
call fcn.004be240
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.004016f0
lea esi, [ebp - 0x230]
call fcn.004016f0
mov byte [ebp - 4], 1
mov eax, dword [edi]
push str.hkcr
push eax
call fcn.004b9d0f
test eax, eax
pop ecx
pop ecx
jne 0x49e411
mov ecx, SysReAllocString
jmp 0x49e461
mov eax, dword [edi]
push str.hkcu
push eax
call fcn.004b9d0f
test eax, eax
pop ecx
pop ecx
jne 0x49e42b
mov ecx, SysReAllocString
jmp 0x49e461
mov eax, dword [edi]
push str.hklm
push eax
call fcn.004b9d0f
test eax, eax
pop ecx
pop ecx
jne 0x49e445
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x49e461
mov edi, dword [edi]
push str.hkus
push edi
call fcn.004b9d0f
test eax, eax
pop ecx
pop ecx
jne 0x49e63b
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 0x49e63b
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 0x49e63b
lea edx, [ebp - 0x220]
lea edi, [ebp - 0x228]
call fcn.00404a50
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.00413b40
pop ecx
lea ecx, [ebp - 0x23c]
mov byte [ebp - 0x221], al
call fcn.004016d0
cmp byte [ebp - 0x221], bl
je 0x49e509
mov edx, esi
call fcn.004139a0
push dword [ebp - 0x240]
lea eax, [ebp - 0x240]
push eax
lea ebx, [ebp - 0x228]
call fcn.00416b50
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 0x49e573
cmp dword [esi + 0xc], 0
jl 0x49e55e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49e55e
call fcn.004012e0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x228], edi
jmp 0x49e573
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x228]
call fcn.00401470
mov edi, dword [ebp - 0x228]
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.004016d0
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 0x49e5dc
cmp dword [esi + 0xc], 0
jl 0x49e5cd
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49e5cd
call fcn.004012e0
mov ebx, eax
mov eax, esi
call fcn.004010d0
add ebx, 0x10
mov dword [ebp - 0x230], ebx
jmp 0x49e5dc
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x230]
call fcn.00401470
mov esi, dword [ebp - 0x234]
lea eax, [edi - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x49e620
cmp dword [esi + 0xc], 0
jl 0x49e611
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x49e611
call fcn.004012e0
mov edi, eax
mov eax, esi
call fcn.004010d0
add edi, 0x10
mov dword [ebp - 0x234], edi
jmp 0x49e620
mov ebx, dword [edi - 0xc]
push edi
lea eax, [ebp - 0x234]
call fcn.00401470
mov edi, dword [ebp - 0x248]
lea eax, [ebp - 0x238]
push eax
call fcn.0049e977
mov byte [ebp - 0x221], 1
xor ebx, ebx
cmp dword [ebp - 0x22c], ebx
je 0x49e655
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x22c], ebx
lea ecx, [ebp - 0x230]
call fcn.004016d0
lea ecx, [ebp - 0x234]
call fcn.004016d0
lea ecx, [ebp - 0x228]
call fcn.004016d0
mov al, byte [ebp - 0x221]
call fcn.004bea48
ret 0x18