Function at 0x10087620
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e9048
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.10064d10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10087832
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x10087829
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add eax, 8
mov ebx, 2
shr eax, 1
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp - 0x14]
lea eax, [eax + 8]
shr eax, 1
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101875f8
mov ecx, dword [ebp - 0x14]
mov ebx, eax
add ecx, 8
mov dword [ebp - 0x20], ebx
push ecx
push 0
push esi
call fcn.101a01b0
mov ecx, dword [ebp - 0x14]
add ecx, 8
push ecx
push 0
push ebx
call fcn.101a01b0
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov edi, ebx
shr eax, 1
xor ebx, ebx
mov dword [ebp - 0x18], ebx
lea eax, [esi + eax*2]
mov dword [ebp - 0x1c], eax
cmp esi, eax
jae 0x10087834
push esi
call fcn.101ac64d
mov eax, esi
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10087746
sub eax, edx
sar eax, 1
cmp dword [ebp + 0x1c], 8
lea ebx, [eax + 1]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push esi
call fcn.101a7c4c
add esp, 8
test eax, eax
je 0x100877b0
push str..tmp
push esi
call fcn.101a7c4c
add esp, 8
test eax, eax
je 0x1008778a
cmp word [eax + 8], 0
je 0x100877b0
push str..new
push esi
call fcn.101a7c4c
add esp, 8
test eax, eax
je 0x100877a3
cmp word [eax + 8], 0
je 0x100877b0
lea esi, [esi + ebx*2]
mov ebx, 1
mov dword [ebp - 0x18], ebx
jmp 0x100877d9
mov edx, edi
mov ecx, esi
sub edx, esi
jmp 0x100877c0
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x100877c0
lea esi, [esi + ebx*2]
lea edi, [edi + ebx*2]
mov ebx, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x1c]
jb 0x10087738
test ebx, ebx
je 0x10087834
lea eax, [ebp - 0x10]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10087834
mov eax, dword [ebp - 0x20]
sub edi, eax
and edi, 0xfffffffe
push edi
push eax
push 7
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10087834
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp dword [ebp + 0x1c], 8
jb 0x10087845
push dword [ebp + 8]
call fcn.101a02f0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret