Function at 0x415ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454a58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x478990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0041c8d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x415d27
push 0x80004005
call fcn.00406820
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push str.CheckPendingFile
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0
call fcn.00406740
push str.Test_PendingFileRenameOperations
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x10
lea ecx, [ebp - 0x2c]
push 0x30
push str.SYSTEMCurrentControlSetControlSession_Manager
call fcn.004065f0
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ebx, 0xffffffff
test eax, eax
jne 0x415ee2
lea ecx, [ebp - 0x2c]
call fcn.004063e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x20]
call esi
cmp eax, 0xea
jne 0x415dff
mov eax, dword [ebp - 0x1c]
add eax, 2
push eax
mov dword [ebp - 0x1c], eax
call fcn.0041c5d9
add esp, 4
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x415eba
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.00406740
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00406090
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415e40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x2c]
push dword [esi - 8]
push esi
call fcn.0043ea2f
add esp, 8
test eax, eax
js 0x415eb0
cmp eax, dword [esi - 8]
jg 0x415eb0
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edi, dword [ebp - 0x18]
push edi
call fcn.0041c5e2
mov eax, dword [ebp - 0x18]
add esp, 4
test edi, edi
mov ecx, 0x8123
cmovne eax, ecx
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
jbe 0x415ed9
push str.Found_PendingFileRenameOperations:
push dword [ebp - 0x28]
push 8
push 0x47d0b4
call fcn.00417de0
push esi
push dword [ebp - 0x28]
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x20
mov byte [ebp - 0x21], 1
jmp 0x415efd
push 0x80070057
call fcn.00406820
mov esi, dword [ebp - 0x18]
push esi
call fcn.0041c5e2
mov eax, dword [ebp - 0x18]
add esp, 4
test esi, esi
mov esi, dword [ebp - 0x2c]
mov ecx, 0x8123
cmovne eax, ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.PendingFileRenameOperations_is_empty
push dword [ebp - 0x28]
push 8
push 0x47d0b4
call fcn.00417de0
add esp, 0x10
mov byte [ebp - 0x21], 0
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415f1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x415f3b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043e7dc
mov esp, ebp
pop ebp
ret