Function at 0x217acd28
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x34]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.217ac805
add esp, 0x24
test eax, eax
je 0x217acdab
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x28]
call fcn.217ac61b
pop ecx
lea eax, [ebp - 0x30]
pop ecx
push eax
lea eax, [ebp - 0x134]
push 0x217b38fc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0x24]
mov esi, 0xf003f
push eax
push esi
lea eax, [ebp - 0x134]
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x217acdb2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp + 0x38], ebx
je 0x217acded
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push 0x217b3ad4
push ebx
push str.Control
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x217ad028
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push 0x217b3ad8
push ebx
push str.MiscStatus
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x217ad028
lea eax, [ebp - 0x134]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 2
push eax
push 1
push ebx
push ebx
mov byte [ebp - 0x134], 0x30
push dword [ebp - 4]
mov byte [ebp - 0x133], bl
call edi
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x217ad028
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push ebx
push 0x217b3adc
push ebx
push 0x217b391c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x217ad028
push dword [ebp + 0x2c]
lea eax, [ebp - 0x134]
push 0x217b3920
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push ebx
push dword [ebp - 8]
call edi
push dword [ebp - 8]
mov dword [ebp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x34], ebx
jne 0x217ad028
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x38], ebx
mov dword [ebp - 4], ebx
je 0x217acf66
lea eax, [ebp - 0x134]
push 0x104
push eax
push dword [0x217b3010]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movzx eax, word [ebp + 0x30]
push eax
lea eax, [ebp - 0x30]
push str.___d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push 0x217b3ae0
push ebx
push str.ToolboxBitmap32
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x217ad028
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call edi
cmp eax, ebx
mov dword [ebp + 0x34], eax
jne 0x217ad028
lea eax, [ebp + 0x1c]
push eax
push 0x217a7a08
push 1
push ebx
push 0x217a79f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x217ad028
mov eax, dword [0x217a73d0]
cmp eax, ebx
jle 0x217acfd2
cmp eax, ebx
mov dword [ebp + 0x30], ebx
jle 0x217acfbe
lea edx, [ebp - 0x1d4]
mov ecx, 0x217b3b18
cmp ecx, 0x217b3b40
jge 0x217acfbe
mov esi, dword [ecx]
mov edi, edx
movsd dword es:[edi], dword [esi]
inc dword [ebp + 0x30]
add ecx, 4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add edx, 0x10
cmp dword [ebp + 0x30], eax
movsd dword es:[edi], dword [esi]
jl 0x217acfa0
mov ecx, dword [ebp + 0x1c]
lea esi, [ebp - 0x1d4]
push esi
push eax
push dword [ebp + 0x28]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
mov eax, dword [0x217a73d4]
cmp eax, ebx
jle 0x217ad01f
cmp eax, ebx
mov dword [ebp + 0x30], ebx
jle 0x217ad00b
lea edx, [ebp - 0x1d4]
mov ecx, 0x217b3e88
cmp ecx, 0x217b3eb0
jge 0x217ad00b
mov esi, dword [ecx]
mov edi, edx
movsd dword es:[edi], dword [esi]
inc dword [ebp + 0x30]
add ecx, 4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add edx, 0x10
cmp dword [ebp + 0x30], eax
movsd dword es:[edi], dword [esi]
jl 0x217acfed
mov ecx, dword [ebp + 0x1c]
lea esi, [ebp - 0x1d4]
push esi
push eax
push dword [ebp + 0x28]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x1c]
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp + 0x24], ebx
je 0x217ad036
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x217ad044
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp + 0x34], ebx
sete al
jmp 0x217acdad