Function at 0x408120
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bbf5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x464024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d01
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d0b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d15
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d1f
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 3
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d29
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 4
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d33
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x3c], eax
push ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], esp
mov ecx, dword [0x46c73c]
mov dword [ebp - 0x38], esp
lea ecx, [ecx - 0x10]
call fcn.004164d0
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
push ecx
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x28], esp
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d3d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
push str.ContextMenuDll
mov byte [ebp - 4], 7
call fcn.004153b0
test al, al
jne 0x408265
mov ecx, dword [ebp - 0x28]
push 0xe
push str.ContextMenuDll
call fcn.00416540
push ecx
mov byte [ebp - 4], 8
mov dword [ebp - 0x28], esp
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d47
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
push str._ContextMenu_
mov byte [ebp - 4], 9
call fcn.004153b0
test al, al
jne 0x4082aa
mov ecx, dword [ebp - 0x28]
push 0xd
push str._ContextMenu_
call fcn.00416540
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.00403a60
add esp, 0xc
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x28], ecx
lea eax, [edx - 0x10]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x30], ecx
cmp eax, ecx
je 0x40832a
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x18]
jl 0x40831e
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40831e
mov ecx, dword [ebp - 0x28]
call fcn.004164d0
mov dword [ebp - 0x28], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x2c]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408313
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x28]
add eax, 0x10
mov dword [ebp - 0x24], eax
jmp 0x40832a
push dword [edx - 0xc]
lea ecx, [ebp - 0x24]
push edx
call fcn.00416540
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408349
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov ecx, 0x449ac4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408377
test dx, dx
je 0x408373
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408377
add eax, 4
add ecx, 4
test dx, dx
jne 0x408351
xor eax, eax
jmp 0x40837c
sbb eax, eax
or eax, 1
test eax, eax
je 0x408c37
push ecx
mov dword [ebp - 0x34], esp
mov ecx, dword [0x46c73c]
mov dword [ebp - 0x30], esp
lea ecx, [ecx - 0x10]
call fcn.004164d0
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
push ecx
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x28], esp
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d51
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
push str.contextname
mov byte [ebp - 4], 0xc
call fcn.004153b0
test al, al
jne 0x4083e8
mov ecx, dword [ebp - 0x28]
push 0xb
push str.contextname
call fcn.00416540
push ecx
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x28], esp
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d5b
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
push str._ContextMenu_
mov byte [ebp - 4], 0xe
call fcn.004153b0
test al, al
jne 0x40842d
mov ecx, dword [ebp - 0x28]
push 0xd
push str._ContextMenu_
call fcn.00416540
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00403a60
add esp, 0xc
mov byte [ebp - 4], 0xf
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x34], ecx
lea eax, [edx - 0x10]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov dword [ebp - 0x2c], ecx
cmp eax, ecx
je 0x4084ad
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 0x18]
jl 0x4084a1
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4084a1
mov ecx, dword [ebp - 0x34]
call fcn.004164d0
mov dword [ebp - 0x34], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x30]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408496
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp - 0x1c], eax
jmp 0x4084ad
push dword [edx - 0xc]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00416540
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4084cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov dword [ebp - 0x38], esp
mov ecx, dword [0x46c73c]
mov dword [ebp - 0x34], esp
lea ecx, [ecx - 0x10]
call fcn.004164d0
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
push ecx
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x28], esp
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d65
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
push str.szCLSID
mov byte [ebp - 4], 0x11
call fcn.004153b0
test al, al
jne 0x408530
mov ecx, dword [ebp - 0x28]
push 7
push str.szCLSID
call fcn.00416540
push ecx
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x28], esp
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d6f
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
push str._ContextMenu_
mov byte [ebp - 4], 0x13
call fcn.004153b0
test al, al
jne 0x408575
mov ecx, dword [ebp - 0x28]
push 0xd
push str._ContextMenu_
call fcn.00416540
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00403a60
add esp, 0xc
mov byte [ebp - 4], 0x14
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov dword [ebp - 0x38], ecx
lea eax, [edx - 0x10]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [ebp - 0x30], ecx
cmp eax, ecx
je 0x4085f5
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x18]
jl 0x4085e9
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4085e9
mov ecx, dword [ebp - 0x38]
call fcn.004164d0
mov dword [ebp - 0x38], eax
or ecx, 0xffffffff
mov eax, dword [ebp - 0x34]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4085de
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov dword [ebp - 0x20], eax
jmp 0x4085f5
push dword [edx - 0xc]
lea ecx, [ebp - 0x20]
push edx
call fcn.00416540
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408614
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov dword [ebp - 0x38], esp
mov ecx, dword [0x46c73c]
mov dword [ebp - 0x34], esp
lea ecx, [ecx - 0x10]
call fcn.004164d0
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
push ecx
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x28], esp
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d79
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
push str.AppName
mov byte [ebp - 4], 0x16
call fcn.004153b0
test al, al
jne 0x408678
mov ecx, dword [ebp - 0x28]
push 7
push str.AppName
call fcn.00416540
push ecx
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x28], esp
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d83
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
push str._ContextMenu_
mov byte [ebp - 4], 0x18
call fcn.004153b0
test al, al
jne 0x4086bd
mov ecx, dword [ebp - 0x28]
push 0xd
push str._ContextMenu_
call fcn.00416540
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00403a60
add esp, 0xc
mov byte [ebp - 4], 0x19
lea ecx, [edi - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0x30], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x38], eax
cmp eax, ecx
je 0x408736
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x34], edi
jl 0x40872a
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40872a
mov ecx, dword [ebp - 0x38]
call fcn.004164d0
mov edx, dword [ebp - 0x34]
or edi, 0xffffffff
mov dword [ebp - 0x38], eax
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408722
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x408739
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.00416540
or edi, 0xffffffff
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408757
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x46a5cc], 0
lea eax, [ebp - 0x14]
push eax
je 0x40876b
push 0xf013f
jmp 0x408770
push 0xf003f
push 0
push 0x449958
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x18]
mov edx, str._shellexContextMenuHandlers_
push eax
lea ecx, [ebp - 0x38]
call fcn.00413cd0
add esp, 4
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [ebp - 0x38]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4087bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov edx, str.CLSID_
push eax
lea ecx, [ebp - 0x38]
call fcn.00413cd0
add esp, 4
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [ebp - 0x38]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4087f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov edx, str.CLSID_
push eax
lea ecx, [ebp - 0x38]
call fcn.00413cd0
add esp, 4
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [ebp - 0x38]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40882d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d8d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push str.lnkfile_shellexContextMenuHandlers_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1a
call fcn.004153b0
test al, al
jne 0x40886b
push 0x24
push str.lnkfile_shellexContextMenuHandlers_
lea ecx, [ebp - 0x28]
call fcn.00416540
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x1b
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x34]
call fcn.00413e70
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x1c
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x40889f
push dword [ecx - 0xc]
mov ecx, eax
call fcn.004154d0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov byte [ebp - 4], 0x1b
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4088c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4088e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408d97
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push str.Drive_shellexContextMenuHandlers_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1d
call fcn.004153b0
test al, al
jne 0x408923
push 0x22
push str.Drive_shellexContextMenuHandlers_
lea ecx, [ebp - 0x28]
call fcn.00416540
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x1e
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x34]
call fcn.00413e70
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x1f
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x408957
push dword [ecx - 0xc]
mov ecx, eax
call fcn.004154d0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov byte [ebp - 4], 0x1e
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40897f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40899d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004024e0
mov ecx, eax
test ecx, ecx
je 0x408da1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push str.Folder_shellexContextMenuHandlers_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x20
call fcn.004153b0
test al, al
jne 0x4089db
push 0x23
push str.Folder_shellexContextMenuHandlers_
lea ecx, [ebp - 0x28]
call fcn.00416540
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x21
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x34]
call fcn.00413e70
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x22
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x408a0f
push dword [ecx - 0xc]
mov ecx, eax
call fcn.004154d0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov byte [ebp - 4], 0x21
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408a37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408a55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00405c60
mov eax, dword [0x46c750]
mov edi, dword [eax]
cmp edi, eax
je 0x408c34
nop dword [eax]
cmp dword [edi + 0x1c], 8
lea eax, [edi + 8]
mov dword [ebp - 0x38], eax
mov edx, eax
jb 0x408a80
mov edx, dword [eax]
test edx, edx
jne 0x408a88
xor ecx, ecx
jmp 0x408a9f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408a90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.00416540
mov esi, dword [ebp - 0x10]
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x28], edx
test edx, edx
js 0x408cf7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x408ada
push edx
lea ecx, [ebp - 0x10]
call fcn.004166e0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
lea eax, [edx + 1]
push eax
push esi
call fcn.00423c0f
mov eax, dword [ebp - 0x28]
add esp, 8
cmp eax, dword [esi - 8]
jg 0x408cf7
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x408c24
cmp dword [esi - 0xc], ecx
jl 0x408c24
push eax
push esi
call fcn.0041c1a5
add esp, 8
test eax, eax
je 0x408c24
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x408c24
push 0x33
push str.CLSID645FF040_5081_101B_9F08_00AA002F954EShell_
lea ecx, [ebp - 0x10]
call fcn.00416540
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x14], 8
jb 0x408b49
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.00413da0
add esp, 4
mov byte [ebp - 4], 0x23
mov edx, dword [eax]
mov esi, dword [ebp - 0x10]
lea eax, [edx - 0x10]
lea ecx, [esi - 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
cmp eax, ecx
je 0x408bbc
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x408bad
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x408bad
mov ecx, dword [ebp - 0x38]
call fcn.004164d0
mov dword [ebp - 0x38], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x408ba5
mov esi, dword [ebp - 0x34]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x408bbc
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00416540
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408bdb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x46a5cc], 0
lea eax, [ebp - 0x14]
push eax
je 0x408bef
push 0xf013f
jmp 0x408bf4
push 0xf003f
push 0
push 0x449958
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [esi - 4], 1
jle 0x408c1a
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004154d0
mov esi, dword [ebp - 0x10]
push esi
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [edi]
mov edi, eax
cmp eax, dword [0x46c750]
jne 0x408a70
mov edi, dword [ebp - 0x18]
mov edx, ebx
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408c54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408c6f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x408c8a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408ca8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408cc6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x408ce5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
push 0x80004005
call fcn.00402240
int3