Function at 0x1077aeb
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 0x1077b5f
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x1077b11
test al, al
jne 0x1077b5f
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x1077b5f
mov eax, dword [0x10b24c0]
mov edi, dword [0x10b24c4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x1077b5f
cmp edx, edi
jne 0x1077b5f
push 0x1077dc0
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.01023e74
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 0x1077be8
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 0x1077bc2
dec eax
je 0x1077bbe
dec eax
je 0x1077bba
dec eax
jne 0x1077be8
xor edi, edi
inc edi
jmp 0x1077bc5
push 2
jmp 0x1077bc4
xor edi, edi
jmp 0x1077bc5
push 3
pop edi
cmp edi, dword [0x10b2138]
je 0x1077be8
mov eax, dword [ebp - 0x10]
and eax, 3
cmp al, 3
jne 0x1077be0
push 0
mov ecx, esi
call fcn.01071efd
push edi
mov ecx, esi
call fcn.010712a5
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.01071efd
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.01023e74
mov eax, dword [ebp - 4]
shr eax, 0x10
test ax, ax
jne 0x1077c41
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x1077c43
test byte [ebp - 0x10], 1
jne 0x1077c43
push eax
push 0x44e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
xor eax, eax
cmp word [ebp - 4], ax
je 0x1077c54
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.0106ec28
mov ecx, esi
call fcn.0100dbeb
mov ecx, esi
call fcn.010214c3
push 0x451
push dword [ebp + 8]
call edi
push eax
mov ecx, esi
call fcn.01071248
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 0x1048f98
push 0x100f280
push 0x80000001
call esi
push 0x473
push dword [ebp + 8]
call ebx
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1077cf4
push 0x473
push dword [ebp + 8]
call edi
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0x10353e0
push 0x100f280
push 0x80000001
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 0x1077d3c
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 0x10353bc
push 0x100f280
push 0x80000001
call esi
push 0x1021328
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
cmp dword [0x10b24cc], 0
je 0x1077db4
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x1077d66
test al, al
jne 0x1077db4
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x1077db4
mov eax, dword [0x10b24c0]
mov edi, dword [0x10b24c4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x1077db4
cmp edx, edi
jne 0x1077db4
push 0x1077dd0
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
pop edi
pop esi
pop ebx
leave
ret 4