Function at 0x49d150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dce70
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x523f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x529c44]
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49d198
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov ecx, 0x4eba54
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x49d1d6
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.004b33b0
test eax, eax
je 0x49d1f4
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00424e6b
jmp 0x49d1f1
push 0x4eba54
call fcn.004b9b7a
add esp, 4
push eax
push 0x4eba54
lea ecx, [ebp - 0x10]
call fcn.004253ee
mov edi, dword [ebp - 0x10]
mov eax, 1
mov dword [ebp - 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push eax
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x14], 0x2000
call ebx
cmp dword [esi + 0x14], 0
je 0x49d298
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi - 8]
shr ecx, 1
inc ecx
mov edx, 1
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x49d23e
push ecx
lea ecx, [ebp - 0x10]
call fcn.00422527
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x14]
push ecx
push edi
lea edx, [ebp - 0x18]
push edx
push 0
push str.DataIntegrity
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004b9b5b
add esp, 8
test eax, eax
jl 0x49d28e
cmp eax, dword [edi - 8]
jg 0x49d28e
xor ecx, ecx
push ecx
mov edx, esp
mov dword [ebp - 0x1c], esp
push edi
push str.AutoRecoverPreviousSession:_DataIntegrity_s
mov dword [edi - 0xc], eax
push edx
mov word [edi + eax*2], cx
call fcn.0046bd30
add esp, 0xc
jmp 0x49d2ac
push 0x80070057
call fcn.00422000
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push str._AutoRecoverPreviousSession:_hDataIntegrityKeyNULL
push eax
call fcn.0046bd30
add esp, 8
call fcn.0049c850
mov ecx, dword [edi - 0xc]
add esp, 4
test ecx, ecx
je 0x49d2e8
mov eax, dword [esi + 0x18]
add eax, 4
cmp word [eax], 0
jne 0x49d2e8
cmp ecx, 0x1000
jge 0x49d2e8
mov ecx, 0x1000
sub ecx, dword [esi + 4]
push edi
push ecx
push eax
call fcn.004bdcad
add esp, 0xc
push esi
call fcn.0049ce30
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esi + 0xc]
push 1
push 0xffffffffffffffff
push ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 4], 0
mov word [edx + 4], ax
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [ecx], edx
mov eax, dword [esi + 0xc]
push eax
call ebx
mov ecx, dword [esi + 0xc]
push ecx
call ebx
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49d351
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret