Function at 0x1077c4b
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 0x1077cbf
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x1077c71
test al, al
jne 0x1077cbf
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x1077cbf
mov eax, dword [0x10b24c0]
mov edi, dword [0x10b24c4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x1077cbf
cmp edx, edi
jne 0x1077cbf
push 0x1077f20
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 0x1077d48
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 0x1077d22
dec eax
je 0x1077d1e
dec eax
je 0x1077d1a
dec eax
jne 0x1077d48
xor edi, edi
inc edi
jmp 0x1077d25
push 2
jmp 0x1077d24
xor edi, edi
jmp 0x1077d25
push 3
pop edi
cmp edi, dword [0x10b2138]
je 0x1077d48
mov eax, dword [ebp - 0x10]
and eax, 3
cmp al, 3
jne 0x1077d40
push 0
mov ecx, esi
call fcn.01071f95
push edi
mov ecx, esi
call fcn.0107133d
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.01071f95
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 0x1077da1
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x1077da3
test byte [ebp - 0x10], 1
jne 0x1077da3
push eax
push 0x44e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
xor eax, eax
cmp word [ebp - 4], ax
je 0x1077db4
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.0106ec64
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.010712e0
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 0x1077e54
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 0x1077e9c
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 0x1077f14
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x1077ec6
test al, al
jne 0x1077f14
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x1077f14
mov eax, dword [0x10b24c0]
mov edi, dword [0x10b24c4]
mov ecx, eax
and ecx, edx
mov edx, edi
and edx, esi
cmp ecx, eax
jne 0x1077f14
cmp edx, edi
jne 0x1077f14
push 0x1077f30
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
pop edi
pop esi
pop ebx
leave
ret 4