Function at 0x416580
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10024
call fcn.0049b530
mov eax, dword [0x4e44b4]
xor eax, esp
mov dword [esp + 0x10020], eax
push ebx
push esi
xor ebx, ebx
push 0xfffc
lea eax, [esp + 0x2e]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], 7
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x34], bx
call fcn.00499a30
add esp, 0xc
cmp esi, ebx
je 0x4168a9
mov eax, esi
lea edx, [eax + 2]
jmp 0x4165e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4165e0
sub eax, edx
sar eax, 1
je 0x4168a9
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
push ebx
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41687f
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0xc]
push edx
push ebx
lea eax, [esp + 0x28]
push eax
push ebx
push str.PendingFileRenameOperations
push ecx
call edi
test eax, eax
jne 0x41687e
mov edx, dword [esp + 0xc]
push ebp
push edx
call fcn.00494ec8
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x28], ebp
call fcn.00494ec8
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
push ebx
push ebp
mov dword [esp + 0x30], esi
call fcn.00499a30
mov edx, dword [esp + 0x24]
push edx
push ebx
push esi
call fcn.00499a30
mov edx, dword [esp + 0x34]
add esp, 0x20
lea eax, [esp + 0x10]
push eax
push ebp
lea ecx, [esp + 0x2c]
push ecx
push ebx
push str.PendingFileRenameOperations
push edx
call edi
test eax, eax
jne 0x416861
cmp dword [esp + 0x10], 2
jbe 0x416816
jmp 0x4166b0
push 0xfffe
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00499a30
push 0x109
push ebp
lea ecx, [esp + 0x44]
push 0x7fff
push ecx
call fcn.004963d0
lea edi, [esp + 0x4c]
add esp, 0x1c
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4166e0
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
sub edi, ecx
push eax
sar edi, 1
call fcn.00496499
add esp, 8
test eax, eax
jne 0x4167a2
push edi
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.00496126
mov edx, dword [esp + 0x24]
lea eax, [edi + edi]
lea ecx, [edx + eax + 2]
push 0xfffe
add esi, eax
lea edx, [esp + 0x40]
push 0
mov word [esi], 0
push edx
add esi, 2
mov dword [esp + 0x30], ecx
lea ebx, [ebx + eax + 2]
lea edi, [eax + ebp + 2]
call fcn.00499a30
push 0x109
push edi
lea eax, [esp + 0x50]
push 0x7fff
push eax
call fcn.004963d0
lea eax, [esp + 0x58]
add esp, 0x28
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x416766
sub eax, ecx
sar eax, 1
mov ebp, eax
push ebp
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.00496126
mov edx, dword [esp + 0x24]
lea eax, [ebp + ebp]
add esi, eax
lea ecx, [edx + eax + 2]
add esp, 0xc
mov word [esi], 0
add esi, 2
mov dword [esp + 0x18], ecx
jmp 0x4167f1
push 0xfffe
lea edx, [esp + 0x34]
push 0
lea ebx, [ebx + edi*2 + 2]
push edx
lea edi, [ebp + edi*2 + 2]
call fcn.00499a30
push 0x104
push edi
lea eax, [esp + 0x44]
push 0x7fff
push eax
call fcn.004963d0
lea eax, [esp + 0x4c]
add esp, 0x1c
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4167e0
sub eax, edx
sar eax, 1
add eax, eax
lea ebx, [ebx + eax + 2]
lea ecx, [ebx + 2]
cmp ecx, dword [esp + 0x10]
lea ebp, [edi + eax + 2]
jb 0x4166b0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x416828
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push str.PendingFileRenameOperations
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x416855
add eax, 2
push eax
mov eax, dword [esp + 0x20]
push eax
mov word [esi], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push ecx
push 0
push str.PendingFileRenameOperations
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test eax, eax
jne 0x416861
mov dword [esp + 0x28], 1
xor ebx, ebx
cmp ebp, ebx
je 0x416870
push ebp
call fcn.004961ac
add esp, 4
cmp esi, ebx
pop ebp
je 0x41687e
push esi
call fcn.004961ac
add esp, 4
pop edi
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x41688e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop esi
pop ebx
mov ecx, dword [esp + 0x10020]
xor ecx, esp
call fcn.00495cb8
add esp, 0x10024
ret
mov ecx, dword [esp + 0x10028]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00495cb8
add esp, 0x10024
ret