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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
test eax, eax
je 0x452f73
cmp word [eax], 0
jne 0x452f7a
mov dword [ebp + 8], str.ConEmu
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x452f87
cmp word [eax], 0
jne 0x452f8c
mov eax, str.cmd__cur_console:n
push ebx
push esi
push edi
push eax
call fcn.004ad3e0
mov esi, eax
mov eax, dword [0x50b39c]
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 0x452fb0
mov edi, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
test edi, edi
je 0x452fe4
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452fd0
sub eax, edx
sar eax, 1
lea ebx, [eax + 3]
jmp 0x452fe6
xor ebx, ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x453004
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452ff0
sub eax, edx
sar eax, 1
lea edx, [eax + 0x10]
jmp 0x453006
xor edx, edx
mov eax, esi
lea esi, [eax + 2]
jmp 0x453010
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x453010
mov ecx, dword [ebp - 0x18]
sub eax, esi
sar eax, 1
add eax, edx
add eax, ebx
lea ebx, [eax + ecx + 0x20]
lea edx, [ebx + ebx]
push edx
call fcn.004412a0
mov esi, eax
add esp, 4
test esi, esi
je 0x453253
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 4
jmp 0x453053
mov edi, dword [ebp + 0xc]
mov eax, dword [0x50b39c]
add eax, 0x1b4
push eax
push str.__s_
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
test edi, edi
je 0x4530ba
cmp word [edi], 0
je 0x4530ba
push 0x20
push esi
call fcn.004b03ac
add esp, 8
test eax, eax
setne al
mov byte [ebp - 1], al
test al, al
je 0x45309a
push 0x4c2ee0
push ebx
push esi
call fcn.00401880
push edi
push ebx
push esi
call fcn.00401880
cmp byte [ebp - 1], 0
mov eax, 0x4c2924
jne 0x4530b2
mov eax, 0x4c2f1c
push eax
push ebx
push esi
call fcn.00401880
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4530e7
cmp word [edi], 0
je 0x4530e7
push str._config__
push ebx
push esi
call fcn.00401880
push edi
push ebx
push esi
call fcn.00401880
push 0x4c2924
push ebx
push esi
call fcn.00401880
mov eax, dword [ebp - 0xc]
xor edi, edi
cmp eax, 3
ja case.default.0x4530f1
jmp dword [eax*4 + 0x45325c]
mov edi, str.SoftwareClasses_shell
jmp case.default.0x4530f1
mov edi, str.SoftwareClassesDirectoryBackground_shell
jmp case.default.0x4530f1
mov edi, str.SoftwareClassesDirectory_shell
jmp 0x453112
mov edi, str.SoftwareClassesDrive_shell
push str._dir___1_
push ebx
push esi
call fcn.00401880
mov eax, dword [ebp + 0x14]
cmp word [eax], 0x2f
jne 0x45313c
push 0x4c2904
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
setne al
test al, al
jne 0x453148
push 0x4c2904
push ebx
push esi
call fcn.00401880
mov ecx, dword [ebp + 0x14]
push ecx
push ebx
push esi
call fcn.00401880
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push SysReAllocString
call edi
test eax, eax
jne 0x453239
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x45322f
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x4531c9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push str.Icon
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4531d8
mov edx, dword [ebp - 8]
push str.Icon
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4d9a10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x453225
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x10]
push edx
push esi
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add dword [ebp - 0xc], eax
sub dword [ebp - 0x18], eax
jne 0x453050
push esi
call fcn.00441300
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14