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

Disassembly:
push 0xffffffffffffffff
push 0x579802
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5e95e0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e95e0]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
mov eax, dword [eax - 0xc]
test eax, eax
lea esi, [edi + 4]
mov dword [esp + 0x2c], edi
je 0x401672
lea ecx, [esp + 0x1c]
push 0x5925cc
push ecx
mov ecx, esi
call fcn.00401c80
add esp, 8
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x250], 0
mov edx, dword [esp + 0x28]
push 0x592720
push edx
push SysReAllocStringLen
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401647
cmp dword [esp + 0x20], 1
jne 0x401647
mov eax, dword [edi + 0x18]
lea ecx, [esp + 0x30]
lea ebp, [edi + 0x18]
push ecx
push eax
call fcn.005522fc
add esp, 8
test eax, eax
jne 0x401647
mov ebx, dword [esp + 0x1c]
push 0x592720
push SysReAllocStringLen
mov edi, 0x592720
call fcn.00401990
push 0x5925d0
lea ecx, [esp + 0x2c]
call fcn.00402390
push esi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x250], 1
call fcn.00401ae0
push str.OpenWithList
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x25c], 2
call fcn.00401ba0
mov eax, dword [eax]
add esp, 0x18
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea ecx, [esp + 0x14]
call fcn.004a4690
lea ecx, [esp + 0x18]
mov byte [esp + 0x244], 1
call fcn.004a4690
mov edx, dword [ebp]
cmp dword [edx - 0xc], 0
je 0x4014ed
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401ae0
push str.OpenWithProgids
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x25c], 3
call fcn.00401ba0
mov ecx, dword [ebp]
mov eax, dword [eax]
add esp, 0x18
push ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
lea ecx, [esp + 0x18]
call fcn.004a4690
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], 1
call fcn.004a4690
push str._shellopencommand
lea eax, [esp + 0x1c]
push ebp
push eax
mov dword [esp + 0x30], 0x104
call fcn.00401ba0
mov eax, dword [eax]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x28]
push ecx
push 0x592720
push eax
push SysReAllocStringLen
call ebp
test eax, eax
lea ecx, [esp + 0x18]
sete bl
call fcn.004a4690
test bl, bl
je 0x4015f0
cmp dword [esp + 0x20], 1
jne 0x4015f0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x18]
call fcn.00402390
mov bl, 4
mov byte [esp + 0x244], bl
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0xc]
lea esi, [eax - 5]
lea edi, [esp + 0x14]
call fcn.00401d70
push 0x5c
mov ecx, edi
call fcn.00401a30
test eax, eax
jl 0x4015ba
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00401a60
push eax
mov ecx, edi
mov byte [esp + 0x248], 5
call fcn.00402310
lea ecx, [esp + 0x18]
mov byte [esp + 0x244], bl
call fcn.004a4690
lea eax, [esp + 0x18]
push str.Applications
push eax
lea ecx, [esp + 0x1c]
call fcn.00401c80
mov eax, dword [eax]
add esp, 8
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea ecx, [esp + 0x18]
call fcn.004a4690
lea ecx, [esp + 0x14]
call fcn.004a4690
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x28]
push eax
push str.Backup
push ecx
push SysReAllocStringLen
mov dword [esp + 0x3c], 0x104
call ebp
test eax, eax
jne 0x40163a
cmp dword [esp + 0x20], 1
jne 0x40163a
mov ebx, dword [esp + 0x1c]
push 0x592720
push SysReAllocStringLen
lea edi, [esp + 0x38]
call fcn.00401990
lea ecx, [esp + 0x28]
call fcn.004a4690
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401672
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x18]
cmp dword [eax - 0xc], 0
je 0x401687
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0x5926e0
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00552101
add esp, 0x234
ret