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

Disassembly:
sub esp, 0x658
mov eax, dword [0x40f004]
xor eax, esp
mov dword [esp + 0x654], eax
push esi
lea eax, [esp + 0x10]
push eax
xor esi, esi
push 0xf003f
push esi
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402753
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.00402e0d
add esp, 0x658
ret
mov eax, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
push esi
push str.PendingFileRenameOperations
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, esi
jne 0x4027a1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x654]
xor ecx, esp
call fcn.00402e0d
add esp, 0x658
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebp
add eax, 0x100
push eax
push 8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov ebp, eax
mov dword [esp + 0x24], ebp
test ebp, ebp
je 0x402bb9
mov edx, dword [esp + 0x18]
add edx, 0x100
push edx
push 8
call ebx
push eax
call esi
mov dword [esp + 0x20], eax
test eax, eax
je 0x402bb9
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push ebp
lea ecx, [esp + 0x30]
push ecx
push 0
push str.PendingFileRenameOperations
push edx
call edi
test eax, eax
jne 0x402bb9
push 0x26
lea edi, [esp + 0x258]
call fcn.00401340
push 0x4121e0
push str.CanonIJEREG
mov eax, edi
push eax
push str._s_s_s
mov ecx, 0x104
lea ebx, [esp + 0x470]
call fcn.00401030
add esp, 0x14
test eax, eax
jl 0x402bf6
mov edi, dword [esp + 0x20]
mov esi, ebp
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x10], ebx
mov ebp, edi
cmp word [ecx], bx
je 0x402b3f
mov edi, edi
lea eax, [esp + 0x2c]
mov edi, esi
mov ecx, eax
xor ebx, ebx
mov edx, 0x104
sub edi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x402891
movzx ecx, word [edi + eax]
test cx, cx
je 0x402891
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x402871
jmp 0x402895
test edx, edx
jne 0x40289d
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jl 0x402bb9
lea eax, [esp + 0x45c]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004030c9
mov ebx, eax
add esp, 8
lea edi, [esp + 0x14]
mov edx, 0x114
lea eax, [esp + 0x2c]
call fcn.00401090
test eax, eax
jl 0x402bb9
test ebx, ebx
jne 0x4029d7
mov ecx, dword [esp + 0x18]
shr ecx, 1
je 0x402bb9
cmp ecx, 0x7fffffff
ja 0x402bb9
lea eax, [esp + 0x2c]
mov edx, ebp
call fcn.004010f0
test eax, eax
jl 0x402bb9
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [edx + eax + 1]
lea ebx, [esi + eax*2 + 2]
lea ebp, [ebp + eax*2 + 2]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x2c]
mov ecx, ebx
mov edx, eax
xor edi, edi
mov esi, 0x114
sub ecx, edx
jmp 0x402940
lea edx, [esi + 0x7ffffeea]
test edx, edx
je 0x402960
movzx edx, word [ecx + eax]
test dx, dx
je 0x402960
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x402940
jmp 0x402964
test esi, esi
jne 0x40296c
sub eax, 2
mov edi, 0x8007007a
xor ecx, ecx
mov word [eax], cx
test edi, edi
jl 0x402bb9
mov ecx, dword [esp + 0x18]
shr ecx, 1
je 0x402bb9
cmp ecx, 0x7fffffff
ja 0x402bb9
lea eax, [esp + 0x2c]
mov edx, ebp
call fcn.004010f0
test eax, eax
jl 0x402bb9
lea edi, [esp + 0x14]
mov edx, 0x114
lea eax, [esp + 0x2c]
call fcn.00401090
test eax, eax
jl 0x402bb9
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ebp, [ebp + eax*2 + 2]
lea eax, [edx + eax + 1]
mov dword [esp + 0x10], eax
jmp 0x402b09
lea ecx, [esp + 0x2c]
push str..tmp
push ecx
call fcn.004030c9
add esp, 8
test eax, eax
je 0x402ab7
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
shr ecx, 1
mov edx, ebp
call section..text
test eax, eax
jl 0x402bb9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax + 1]
lea ebx, [esi + eax*2 + 2]
lea ebp, [ebp + eax*2 + 2]
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], edx
mov ecx, ebx
mov edx, eax
xor edi, edi
mov esi, 0x114
sub ecx, edx
lea edx, [esi + 0x7ffffeea]
test edx, edx
je 0x402a54
movzx edx, word [ecx + eax]
test dx, dx
je 0x402a54
mov word [eax], dx
add eax, 2
sub esi, 1
jne 0x402a34
jmp 0x402a58
test esi, esi
jne 0x402a60
sub eax, 2
mov edi, 0x8007007a
xor ecx, ecx
mov word [eax], cx
test edi, edi
jl 0x402bb9
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
shr ecx, 1
mov edx, ebp
call section..text
test eax, eax
jl 0x402bb9
lea edi, [esp + 0x14]
mov edx, 0x114
lea eax, [esp + 0x2c]
call fcn.00401090
test eax, eax
jl 0x402bb9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax + 1]
lea ebp, [ebp + eax*2 + 2]
mov dword [esp + 0x10], edx
jmp 0x402b09
mov eax, dword [esp + 0x14]
lea ebx, [esi + eax*2 + 2]
lea eax, [esp + 0x2c]
mov edx, ebx
mov ecx, eax
xor edi, edi
mov esi, 0x114
sub edx, ecx
lea ecx, [esi + 0x7ffffeea]
test ecx, ecx
je 0x402af0
movzx ecx, word [edx + eax]
test cx, cx
je 0x402af0
mov word [eax], cx
add eax, 2
sub esi, 1
jne 0x402ad0
jmp 0x402af4
test esi, esi
jne 0x402afc
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
mov word [eax], dx
test edi, edi
jl 0x402bb9
lea edi, [esp + 0x14]
mov edx, 0x114
lea eax, [esp + 0x2c]
call fcn.00401090
test eax, eax
jl 0x402bb9
mov eax, dword [esp + 0x14]
cmp word [ebx + eax*2 + 2], 0
lea esi, [ebx + eax*2 + 2]
jne 0x402860
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
lea ecx, [ebx + ebx + 2]
push ecx
push edi
push edx
push 0
push str.PendingFileRenameOperations
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
jne 0x402b70
mov ecx, dword [esp + 0x1c]
push str.PendingFileRenameOperations
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edx
push 8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
push edi
push 8
call ebx
push eax
call esi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x664]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00402e0d
add esp, 0x658
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402bc8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x402be2
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402bf6
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
xor eax, eax
jmp 0x402ba0