Function at 0x401040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x40b07c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, 7
push esi
xor ecx, ecx
xor esi, esi
xor edx, edx
push edi
mov dword [ebp - 0x98], eax
mov word [ebp - 0xac], cx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x44], eax
mov word [ebp - 0x58], cx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x60], eax
mov word [ebp - 0x74], cx
mov dword [ebp - 0x28], eax
push 0x44
mov eax, str.SOFTWARESynapticsSynTPEnhZoneConfigDefaults3FVertical_Scrolling
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x80], esi
mov word [ebp - 0x90], dx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], dx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], dx
call fcn.00401670
push 0x3b
mov eax, str.SOFTWARESynapticsSynTPEnhZoneConfigDefaultsPlugin_Zone
lea ecx, [ebp - 0x90]
call fcn.00401670
push 0x35
mov eax, str.SOFTWARESynapticsSynTPEnhZoneConfigDefaultsTwist
lea ecx, [ebp - 0x58]
call fcn.00401670
push 0xb
mov eax, str.ConfigFlags
lea ecx, [ebp - 0x20]
call fcn.00401670
mov edi, 1
push 0x20
mov eax, str.SOFTWAREASUSASUS_Smart_Gesture
lea ecx, [ebp - 0x74]
mov dword [ebp - 0xc4], 0xc450100
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xc0], 0xa0000100
call fcn.00401670
push 9
mov eax, str.SupportMS
lea ecx, [ebp - 0x3c]
call fcn.00401670
mov dword [ebp - 0xc8], edi
call fcn.00401540
mov edi, dword [ebp - 0x20]
lea ebx, [esi + 8]
test eax, eax
je 0x4012d7
cmp dword [ebp - 0xc], ebx
jae 0x401149
lea edi, [ebp - 0x20]
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0x98], ebx
jae 0x40115d
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0xb0]
push edx
push esi
push 0xf013f
push esi
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
push 0x80000002
call esi
mov ecx, dword [ebp - 0xb0]
push 4
lea eax, [ebp - 0xc4]
push eax
push 4
push 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ecx
call edi
cmp dword [ebp - 0xc], ebx
jb 0x4011af
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xb0], edx
jmp 0x4011b8
lea eax, [ebp - 0x20]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x90]
cmp dword [ebp - 0x7c], ebx
jae 0x4011c9
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xb4]
push edx
push 0
push 0xf013f
push 0
push 0
push 0
push eax
push 0x80000002
call esi
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xb4]
push 4
lea eax, [ebp - 0xbc]
push eax
push 4
push 0
push ecx
push edx
call edi
cmp dword [ebp - 0xc], ebx
jb 0x401219
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xb0], eax
jmp 0x401222
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xb0], ecx
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x44], ebx
jae 0x40122d
lea eax, [ebp - 0x58]
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0xb4]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
push eax
push 0x80000002
call esi
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb4]
push 4
lea edx, [ebp - 0xc0]
push edx
push 4
push 0
push eax
push ecx
call edi
cmp dword [ebp - 0x28], ebx
jb 0x40127d
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0xb0], edx
jmp 0x401286
lea eax, [ebp - 0x3c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x60], ebx
jae 0x401291
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xb4]
push edx
push 0
push 0xf013f
push 0
push 0
push 0
push eax
push 0x80000002
call esi
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xb4]
push 4
lea eax, [ebp - 0xc8]
push eax
push 4
xor esi, esi
push esi
push ecx
push edx
call edi
jmp 0x401469
cmp dword [ebp - 0xc], ebx
jae 0x4012df
lea edi, [ebp - 0x20]
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0x98], ebx
jae 0x4012f3
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xb4]
push edx
push esi
push 0xf003f
push esi
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push eax
push 0x80000002
call esi
mov ecx, dword [ebp - 0xb4]
push 4
lea eax, [ebp - 0xc4]
push eax
push 4
push 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ecx
call edi
cmp dword [ebp - 0xc], ebx
jb 0x401345
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xb0], edx
jmp 0x40134e
lea eax, [ebp - 0x20]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x90]
cmp dword [ebp - 0x7c], ebx
jae 0x40135f
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xb4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call esi
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xb4]
push 4
lea eax, [ebp - 0xbc]
push eax
push 4
push 0
push ecx
push edx
call edi
cmp dword [ebp - 0xc], ebx
jb 0x4013af
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xb0], eax
jmp 0x4013b8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xb0], ecx
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x44], ebx
jae 0x4013c3
lea eax, [ebp - 0x58]
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0xb4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call esi
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xb4]
push 4
lea edx, [ebp - 0xc0]
push edx
push 4
push 0
push eax
push ecx
call edi
cmp dword [ebp - 0x28], ebx
jb 0x401413
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0xb0], edx
jmp 0x40141c
lea eax, [ebp - 0x3c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x60], ebx
jae 0x401427
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xb4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call esi
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xb4]
push 4
lea eax, [ebp - 0xc8]
push eax
push 4
push 0
push ecx
push edx
call edi
xor esi, esi
cmp dword [ebp - 0x28], ebx
jb 0x40147a
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00401c53
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], cx
cmp dword [ebp - 0x60], ebx
jb 0x40149c
mov edx, dword [ebp - 0x74]
push edx
call fcn.00401c53
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], esi
mov word [ebp - 0x74], ax
cmp dword [ebp - 0xc], ebx
jb 0x4014b9
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00401c53
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x44], ebx
jb 0x4014d6
mov eax, dword [ebp - 0x58]
push eax
call fcn.00401c53
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], esi
mov word [ebp - 0x58], cx
cmp dword [ebp - 0x7c], ebx
jb 0x4014f6
mov edx, dword [ebp - 0x90]
push edx
call fcn.00401c53
add esp, 4
mov dword [ebp - 0x7c], edi
pop edi
mov dword [ebp - 0x80], esi
xor eax, eax
cmp dword [ebp - 0x98], ebx
pop esi
mov word [ebp - 0x90], ax
pop ebx
jb 0x40151f
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.00401c53
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00401b09
mov esp, ebp
pop ebp
ret 0x10