Function at 0x1002f3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083380
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x100b0b2c]
lea ecx, [ebp - 0x10]
push 0x1008fa88
call fcn.10022bb0
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0x2000
call fcn.1002f290
cmp dword [esi + 0x14], 0
je 0x1002f49e
mov edi, dword [ebp - 0x14]
shr edi, 1
inc edi
jns 0x1002f422
push 0x80070057
call fcn.10021340
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x1002f442
push edi
lea ecx, [ebp - 0x10]
call fcn.10023670
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push str.DataIntegrity
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.1006b17d
mov edx, eax
add esp, 8
test edx, edx
js 0x1002f418
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x1002f418
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
push str.AutoRecoverPreviousSession:_DataIntegrity_s
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 1
jmp 0x1002f4b3
lea eax, [ebp - 0x18]
push str._AutoRecoverPreviousSession:_hDataIntegrityKeyNULL
push eax
call fcn.1003a800
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
call fcn.100394f0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1002f4de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x1002f516
mov ecx, dword [esi + 0x18]
add ecx, 4
cmp word [ecx], 0
jne 0x1002f516
cmp edx, 0x1000
jge 0x1002f516
push eax
mov eax, 0x1000
sub eax, dword [esi + 4]
push eax
push ecx
call fcn.1006c14d
add esp, 0xc
mov ecx, esi
call fcn.1002ef50
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
mov ecx, esi
call fcn.1002e880
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x1002f577
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str._Lock:_failed_releasing__LE_d
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
call fcn.100394f0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002f577
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1002f598
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret