Function at 0x49a840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50cc94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x511ea4]
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x49a888
push 0x80004005
call fcn.00421000
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, 0x4e0608
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x49a98b
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.004a91be
mov dword [ebp - 0x18], eax
test eax, eax
je 0x49a9a9
mov ecx, ebx
shr ecx, 4
inc ecx
movzx edx, cx
push 6
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x49a9a9
push ebx
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00421708
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x18], edx
test edx, edx
je 0x49a9a9
movzx ebx, word [edx]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x49a91e
push ebx
lea ecx, [ebp - 0x10]
call fcn.00421527
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
add edx, 2
mov dword [ebp - 0x18], edx
cmp eax, 0xffffffff
jne 0x49a939
push edx
call fcn.004af97a
mov edx, dword [ebp - 0x18]
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [ebx + ebx]
push edx
push ecx
push edi
mov dword [ebp - 0x18], ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x49a959.1
movzx ecx, byte [eax + 0x49ab28]
jmp dword [ecx*4 + 0x49ab18]
call fcn.004a17ee
call fcn.004a1826
test ebx, ebx
jl 0x49a981
cmp ebx, dword [edi - 8]
jg 0x49a981
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [edi - 0xc], ebx
mov word [eax + edi], dx
jmp 0x49a9a9
push 0x80070057
call fcn.00421000
push 0x4e0608
call fcn.004af97a
add esp, 4
push eax
push 0x4e0608
lea ecx, [ebp - 0x10]
call fcn.0042423a
mov edi, dword [ebp - 0x10]
mov eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push eax
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x2000
call ebx
cmp dword [esi + 0x14], 0
je 0x49aa4b
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 0x49a9f3
push ecx
lea ecx, [ebp - 0x10]
call fcn.00421527
mov edi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x14]
lea edx, [ebp - 0x14]
push edx
push edi
lea eax, [ebp - 0x1c]
push eax
push 0
push str.DataIntegrity
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.004af95b
add esp, 8
test eax, eax
jl 0x49a981
cmp eax, dword [edi - 8]
jg 0x49a981
push ecx
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
mov eax, esp
mov dword [ebp - 0x18], esp
push edi
push str.AutoRecoverPreviousSession:_DataIntegrity_s
push eax
call fcn.00468c80
add esp, 0xc
jmp 0x49aa5f
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str._AutoRecoverPreviousSession:_hDataIntegrityKeyNULL
push ecx
call fcn.00468c80
add esp, 8
call fcn.00499920
mov ecx, dword [edi - 0xc]
add esp, 4
test ecx, ecx
je 0x49aa9b
mov eax, dword [esi + 0x18]
add eax, 4
cmp word [eax], 0
jne 0x49aa9b
cmp ecx, 0x1000
jge 0x49aa9b
mov edx, 0x1000
sub edx, dword [esi + 4]
push edi
push edx
push eax
call fcn.004b39e8
add esp, 0xc
push esi
call fcn.0049a3b0
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov eax, dword [esi + 0xc]
push 1
push 0xffffffffffffffff
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esi + 8], eax
xor edx, edx
mov dword [esi + 4], 0
mov word [ecx + 4], dx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 8]
mov dword [eax], ecx
mov edx, dword [esi + 0xc]
push edx
call ebx
mov eax, dword [esi + 0xc]
push eax
call ebx
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49ab04
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret