Function at 0x1076417
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x10b11ec], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 8], ebx
je 0x107648b
mov al, byte [0x10b11f0]
cmp al, 4
jae 0x107643d
test al, al
jne 0x107648b
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x107648b
mov eax, dword [0x10b11e0]
mov edi, dword [0x10b11e4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x107648b
cmp edx, edi
jne 0x107648b
push 0x10766e8
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
push dword [ebx + 0x28c]
lea eax, [ebp - 0x40]
mov esi, 0x10b0180
push eax
mov ecx, esi
call fcn.01031a43
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 0x1076514
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 0x10764ee
dec eax
je 0x10764ea
dec eax
je 0x10764e6
dec eax
jne 0x1076514
xor edi, edi
inc edi
jmp 0x10764f1
push 2
jmp 0x10764f0
xor edi, edi
jmp 0x10764f1
push 3
pop edi
cmp edi, dword [0x10b0e58]
je 0x1076514
mov eax, dword [ebp - 0x10]
and eax, 3
cmp al, 3
jne 0x107650c
push 0
mov ecx, esi
call fcn.0107016d
push edi
mov ecx, esi
call fcn.0106f515
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.0107016d
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.01031a43
mov eax, dword [ebp - 4]
shr eax, 0x10
test ax, ax
jne 0x107656d
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x107656f
test byte [ebp - 0x10], 1
jne 0x107656f
push eax
push 0x44e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
xor eax, eax
cmp word [ebp - 4], ax
je 0x1076580
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.0106cc48
mov ecx, esi
call fcn.0100ed89
mov ecx, esi
call fcn.0102fe1c
push 0x451
push dword [ebp + 8]
call edi
push eax
mov ecx, esi
call fcn.0106f4b8
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 0x1042af0
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 0x1076620
push 0x473
push dword [ebp + 8]
call edi
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
push 0x103161c
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 0x1076668
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 0x10315f8
push 0x100f4a0
push 0x80000001
call esi
push 0x1015480
push 0
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_SendNotifyMessageW]
cmp dword [0x10b11ec], 0
je 0x10766e0
mov al, byte [0x10b11f0]
cmp al, 4
jae 0x1076692
test al, al
jne 0x10766e0
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x10766e0
mov eax, dword [0x10b11e0]
mov edi, dword [0x10b11e4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x10766e0
cmp edx, edi
jne 0x10766e0
push 0x10766f8
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
pop edi
pop esi
pop ebx
leave
ret 4