Function at 0x45edf0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
test eax, eax
je 0x45ee03
cmp word [eax], 0
jne 0x45ee0a
mov dword [ebp + 8], 0x4e5ea4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x45ee17
cmp word [eax], 0
jne 0x45ee1c
mov eax, str.cmd__cur_console:n
push ebx
push esi
push edi
push eax
call fcn.00406cc0
mov esi, eax
mov eax, dword [0x52fe2c]
add esp, 4
add eax, 0x1b4
mov dword [ebp + 0x14], esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45ee40
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45ee74
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45ee60
sub eax, edx
sar eax, 1
lea ebx, [eax + 3]
jmp 0x45ee76
xor ebx, ebx
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x45ee96
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45ee82
sub eax, edx
sar eax, 1
lea edx, [eax + 0x10]
jmp 0x45ee98
xor edx, edx
mov eax, esi
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45eea0
mov ecx, dword [ebp - 0x1c]
sub eax, esi
sar eax, 1
add eax, edx
add eax, ebx
lea ebx, [eax + ecx + 0x20]
lea edx, [ebx + ebx]
push edx
mov dword [ebp - 8], ebx
call fcn.0044c4d0
mov esi, eax
add esp, 4
test esi, esi
je 0x45f126
mov eax, dword [0x52fe5c]
cmp eax, 6
ja 0x45eefc
jne 0x45eee8
cmp dword [0x52fe60], 0
ja 0x45eefc
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 6
jmp 0x45ef13
mov byte [ebp - 1], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 6
jmp 0x45ef13
mov edi, dword [ebp + 0x10]
mov eax, dword [0x52fe2c]
add eax, 0x1b4
push eax
push str.__s_
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x45ef84
cmp word [eax], 0
je 0x45ef84
push 0x20
push esi
call fcn.004c9bca
mov edi, dword [ebp - 8]
add esp, 8
test eax, eax
setne bl
test bl, bl
je 0x45ef5d
push 0x4e587c
push edi
push esi
call fcn.004017b0
mov ecx, dword [ebp + 0xc]
push ecx
push edi
push esi
call fcn.004017b0
mov eax, 0x4e5880
test bl, bl
jne 0x45ef76
mov eax, 0x4e494c
push eax
push edi
push esi
call fcn.004017b0
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x45efae
cmp word [edi], 0
je 0x45efae
push str._config__
push ebx
push esi
call fcn.004017b0
push edi
push ebx
push esi
call fcn.004017b0
push 0x4e5880
push ebx
push esi
call fcn.004017b0
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp eax, 5
ja case.default.0x45efb8
jmp dword [eax*4 + 0x45f130]
mov edi, str.SoftwareClasses_shell
jmp case.default.0x45efb8
mov edi, str.SoftwareClassesDirectoryBackground_shell
jmp case.default.0x45efb8
cmp byte [ebp - 1], 0
je case.0x45efb8.5
mov edi, str.SoftwareClassesLibraryFolderBackground_shell
jmp case.default.0x45efb8
mov edi, str.SoftwareClassesDirectory_shell
jmp 0x45efea
mov edi, str.SoftwareClassesDrive_shell
push str._dir___1_
push ebx
push esi
call fcn.004017b0
mov eax, dword [ebp + 0x14]
cmp word [eax], 0x2f
jne 0x45f014
push 0x4e720c
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
setne al
test al, al
jne 0x45f020
push 0x4e720c
push ebx
push esi
call fcn.004017b0
mov edx, dword [ebp + 0x14]
push edx
push ebx
push esi
call fcn.004017b0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push SysReAllocString
call ebx
test eax, eax
jne 0x45f109
mov edx, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
mov eax, dword [ebp - 0x18]
push edx
push eax
call ebx
test eax, eax
jne 0x45f0ff
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x45f09d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0xc]
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push str.Icon
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x45f0ac
mov eax, dword [ebp - 0xc]
push str.Icon
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0xc]
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4fa9c0
push edx
call ebx
test eax, eax
jne 0x45f0f5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x14]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 8]
mov eax, 1
add dword [ebp - 0x10], eax
sub dword [ebp - 0x1c], eax
jne 0x45ef10
push esi
call fcn.0044c4f0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14