Function at 0x1009c9f
Capabilities:
Set registry value
Swap mouse buttons

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebx + 0xd80]
push eax
lea eax, [ebx + 0x980]
push eax
lea eax, [ebx + 0x580]
mov edi, ecx
push eax
mov dword [ebp - 4], edi
call fcn.0100971c
mov esi, eax
lea eax, [ebx + 0x180]
push eax
mov ecx, edi
call fcn.0100963a
test esi, esi
je 0x1009d17
push 0
mov ecx, edi
call fcn.0100953e
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 2
push dword [ebx + 0x1180]
push 0
push 0x1023
call esi
push 2
push dword [ebx + 0x1184]
push 0
push 0x1025
call esi
jmp 0x1009eac
lea ecx, [edi + 0x1188]
lea eax, [ebx + 0x1188]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1009eac
push 0x7c
add edi, 8
lea esi, [ebx + 8]
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1009d47
sbb eax, eax
sbb eax, 0xffffffff
xor esi, esi
cmp eax, esi
je 0x1009e84
mov ecx, dword [ebp - 4]
push 1
call fcn.0100953e
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 2
push esi
push esi
push 0x1023
call edi
push 2
push esi
push esi
push 0x1025
call edi
xor eax, eax
mov dword [ebp + eax*4 - 0xe0], eax
inc eax
cmp eax, 0x1f
jl 0x1009d79
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0xe0]
push eax
push 0x1f
call dword [sym.imp.USER32.dll_SetSysColors]
lea eax, [ebp + 8]
push eax
push str.Control_PanelColors
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x1009e33
lea eax, [ebx + 8]
mov esi, 0x100d1a0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
push ecx
movzx ecx, ah
movzx eax, al
push ecx
push eax
lea eax, [ebp - 0x48]
push 0x1002990
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x48]
push eax
push dword [esi]
push str.colors
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x48]
push eax
push 1
push 0
push dword [esi]
push dword [ebp + 8]
call edi
add dword [ebp - 8], 4
add esi, 4
cmp esi, str.colors
jl 0x1009dc2
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea eax, [ebp + 8]
push eax
push 0xf003f
push esi
push 0x1002920
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009ea9
lea esi, [ebx + 0x1188]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push 0x1002974
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push dword [ebx + 0x11b0]
jmp 0x1009ea1
mov eax, dword [ebx + 0x11b0]
cmp eax, esi
jl 0x1009ea9
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0x11b0]
je 0x1009ea9
lea ecx, [ebx + 0x1188]
push ecx
push eax
mov ecx, dword [ebp - 4]
call fcn.010097c3
mov edi, dword [ebp - 4]
lea edx, [ebx + 0x84]
push 0x18
add edi, 0x84
pop ecx
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1009ec8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1009ed9
push 3
push edx
push 0x18
push 0x33
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edi, dword [ebp - 4]
lea edx, [ebx + 0x9c]
push 0x1c
add edi, 0x9c
pop ecx
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1009ef8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1009f09
push 3
push edx
push 0x1c
push 0x37
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edi, dword [ebp - 4]
lea edx, [ebx + 0xb8]
push 8
add edi, 0xb8
pop ecx
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1009f28
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1009f39
push 3
push edx
push 8
push 0x3b
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edi, dword [ebp - 4]
lea edx, [ebx + 0xc0]
push 8
add edi, 0xc0
pop ecx
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1009f58
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1009f69
push 3
push edx
push 8
push 0x35
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edi, dword [ebp - 4]
lea edx, [ebx + 0xc8]
push 0x30
add edi, 0xc8
pop ecx
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1009f88
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1009f99
push 3
push edx
push 0x30
push 0x41
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edi, dword [ebp - 4]
lea edx, [ebx + 0xf8]
push 0xc
add edi, 0xf8
pop ecx
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1009fb8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
je 0x1009fcb
push 3
push edx
push 0xc
push 0x3d
call esi
mov eax, dword [ebx + 0x104]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0x104]
je 0x1009fe5
push 3
push 0
push eax
push 0x39
call esi
mov ecx, dword [ebp - 4]
lea edi, [ebx + 0x108]
mov eax, dword [edi]
cmp eax, dword [ecx + 0x108]
je 0x100a00e
push 3
push 0
push eax
push 0x45
call esi
push 3
push dword [edi]
push 0
push 0x100b
call esi
mov eax, dword [ebx + 0x10c]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0x10c]
je 0x100a026
push eax
call dword [sym.imp.USER32.dll_SwapMouseButton]
mov eax, dword [ebx + 0x110]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0x110]
je 0x100a040
push 3
push 0
push eax
push 0x5d
call esi
mov eax, dword [ebx + 0x114]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0x114]
je 0x100a05a
push 3
push eax
push 0
push 0x71
call esi
mov eax, dword [ebx + 0x178]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0x178]
je 0x100a077
push 3
push eax
push 0
push 0x2007
call esi
mov ecx, dword [ebp - 4]
lea esi, [ebx + 0x17c]
mov eax, dword [esi]
cmp eax, dword [ecx + 0x17c]
je 0x100a0a7
push eax
call dword [sym.imp.USER32.dll_SetCaretBlinkTime]
push dword [esi]
push 0x10027a0
push 0x1002774
push 0x80000001
call fcn.01009c6e
mov eax, dword [ebx + 0x118]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0x118]
je 0x100a0be
push eax
call fcn.01009426
mov eax, dword [ebx + 0x11c]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx + 0x11c]
je 0x100a0d5
push eax
call fcn.01004c54
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.010065ac
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100a13f
mov edx, 0x1f4
mov ecx, edx
lea edi, [ebp - 0x2d4]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100a104
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100a116
push 3
push dword [ebp + 0xc]
push edx
push 0x2a
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov esi, dword [ebp + 0x10]
push 0x5c
pop ecx
lea edi, [ebp - 0x64]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100a12a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100a14a
push 3
push dword [ebp + 0x10]
push 0x5c
push 0x22
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
jmp 0x100a14a
lea ecx, [ebx + 0x120]
call fcn.010098b5
mov edi, dword [ebp - 4]
mov esi, ebx
mov ecx, 0x46d
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret 0xc