Function at 0x10784db
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x10b24cc], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 8], ebx
je 0x107854f
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x1078501
test al, al
jne 0x107854f
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
mov edx, 0x10000
mov esi, SHChangeNotifyRegister
and eax, edx
and ecx, esi
or eax, ecx
je 0x107854f
mov eax, dword [0x10b24c0]
mov edi, dword [0x10b24c4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x107854f
cmp edx, edi
jne 0x107854f
push 0x10787b0
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
push dword [ebx + 0x28c]
lea eax, [ebp - 0x40]
mov esi, 0x10b1460
push eax
mov ecx, esi
call fcn.01023f3c
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, 0x476
push edi
push dword [ebp + 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x10785d8
push 0
push 0
push 0x147
push edi
push dword [ebp + 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
sub eax, 0
je 0x10785b2
dec eax
je 0x10785ae
dec eax
je 0x10785aa
dec eax
jne 0x10785d8
xor edi, edi
inc edi
jmp 0x10785b5
push 2
jmp 0x10785b4
xor edi, edi
jmp 0x10785b5
push 3
pop edi
cmp edi, dword [0x10b2138]
je 0x10785d8
mov eax, dword [ebp - 0x10]
and eax, 3
cmp al, 3
jne 0x10785d0
push 0
mov ecx, esi
call fcn.0107252f
push edi
mov ecx, esi
call fcn.010718bd
mov edi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x44e
push dword [ebp + 8]
call edi
push eax
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.0107252f
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x28c]
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.01023f3c
mov eax, dword [ebp - 4]
shr eax, 0x10
test ax, ax
jne 0x1078631
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x1078633
test byte [ebp - 0x10], 1
jne 0x1078633
push eax
push 0x44e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
xor eax, eax
cmp word [ebp - 4], ax
je 0x1078644
push eax
push eax
push eax
push eax
mov ecx, esi
call fcn.0100309d
mov eax, dword [ebp - 8]
push dword [eax + 0x28c]
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0106ef38
mov ecx, esi
call fcn.0100dbeb
mov ecx, esi
call fcn.01021587
push 0x451
push dword [ebp + 8]
call edi
push eax
mov ecx, esi
call fcn.01071860
push 0x475
push dword [ebp + 8]
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0x1042660
push 0x100f278
push SHChangeNotifyRegister
call esi
push 0x473
push dword [ebp + 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x10786e4
push 0x473
push dword [ebp + 8]
call edi
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0x1035580
push 0x100f278
push SHChangeNotifyRegister
call esi
mov edi, 0x477
push edi
push dword [ebp + 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x107872c
push 0
push 0
push 0x147
push edi
push dword [ebp + 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push 0x103555c
push 0x100f278
push SHChangeNotifyRegister
call esi
push 0x10213ec
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
cmp dword [0x10b24cc], 0
je 0x10787a4
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x1078756
test al, al
jne 0x10787a4
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
mov edx, 0x10000
mov esi, SHChangeNotifyRegister
and eax, edx
and ecx, esi
or eax, ecx
je 0x10787a4
mov eax, dword [0x10b24c0]
mov edi, dword [0x10b24c4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x10787a4
cmp edx, edi
jne 0x10787a4
push 0x10787c0
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
pop edi
pop esi
pop ebx
leave
ret 4