Function at 0x107687f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x10b21ec], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 8], ebx
je 0x10768f3
mov al, byte [0x10b21f0]
cmp al, 4
jae 0x10768a5
test al, al
jne 0x10768f3
mov eax, dword [0x10b21d8]
mov ecx, dword [0x10b21dc]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x10768f3
mov eax, dword [0x10b21e0]
mov edi, dword [0x10b21e4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x10768f3
cmp edx, edi
jne 0x10768f3
push 0x1076b50
push dword [0x10b219c]
push dword [0x10b2198]
call fcn.010127a5
push dword [ebx + 0x28c]
lea eax, [ebp - 0x40]
mov esi, 0x10b1180
push eax
mov ecx, esi
call fcn.010319db
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 0x107697c
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 0x1076956
dec eax
je 0x1076952
dec eax
je 0x107694e
dec eax
jne 0x107697c
xor edi, edi
inc edi
jmp 0x1076959
push 2
jmp 0x1076958
xor edi, edi
jmp 0x1076959
push 3
pop edi
cmp edi, dword [0x10b1e58]
je 0x107697c
mov eax, dword [ebp - 0x10]
and eax, 3
cmp al, 3
jne 0x1076974
push 0
mov ecx, esi
call fcn.01070235
push edi
mov ecx, esi
call fcn.0106f5dd
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.01070235
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.010319db
mov eax, dword [ebp - 4]
shr eax, 0x10
test ax, ax
jne 0x10769d5
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x10769d7
test byte [ebp - 0x10], 1
jne 0x10769d7
push eax
push 0x44e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
xor eax, eax
cmp word [ebp - 4], ax
je 0x10769e8
push eax
push eax
push eax
push eax
mov ecx, esi
call fcn.01002fe4
mov eax, dword [ebp - 8]
push dword [eax + 0x28c]
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0106cd10
mov ecx, esi
call fcn.0100ed89
mov ecx, esi
call fcn.0102fdb4
push 0x451
push dword [ebp + 8]
call edi
push eax
mov ecx, esi
call fcn.0106f580
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 0x10429f8
push 0x100f4a0
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 0x1076a88
push 0x473
push dword [ebp + 8]
call edi
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0x10315b4
push 0x100f4a0
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 0x1076ad0
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 0x1031590
push 0x100f4a0
push 0x80000001
call esi
push 0x1015480
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
cmp dword [0x10b21ec], 0
je 0x1076b48
mov al, byte [0x10b21f0]
cmp al, 4
jae 0x1076afa
test al, al
jne 0x1076b48
mov eax, dword [0x10b21d8]
mov ecx, dword [0x10b21dc]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x1076b48
mov eax, dword [0x10b21e0]
mov edi, dword [0x10b21e4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x1076b48
cmp edx, edi
jne 0x1076b48
push 0x1076b60
push dword [0x10b219c]
push dword [0x10b2198]
call fcn.010127a5
pop edi
pop esi
pop ebx
leave
ret 4