Function at 0x4a7d70
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x750
push ebx
mov ebx, ecx
lea eax, [ebp - 4]
push eax
push str.SoftwareSynapticsSynTPInstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebx + 0x10], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x14], 0
mov dword [ebp - 8], ebx
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4a7df5
test byte [0x652fc0], 4
je 0x4a848e
push str.SoftwareSynapticsSynTPInstall
push 0x52ecc4
push 3
push str.CIBMScrolling::LoadScrollTable
call fcn.004cb410
add esp, 0x10
pop ebx
mov esp, ebp
pop ebp
ret 4
test byte [0x652fc0], 4
je 0x4a7e17
push str.SoftwareSynapticsSynTPInstall
push 0x52ed18
push 3
push str.CIBMScrolling::LoadScrollTable
call fcn.004cb410
add esp, 0x10
push 0x100
lea eax, [ebp - 0x350]
mov dword [ebp - 0x20], 0x100
push 0
push eax
call fcn.004cf600
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push str.ProgDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4a7e89
test byte [0x652fc0], 4
je 0x4a7e79
push str.SynTpEnh.exe
push str.Couldnt_parse_install_path:__s_n
push 3
push str.CIBMScrolling::LoadScrollTable
call fcn.004cb3a0
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x250], ax
lea eax, [ebp - 0x24e]
push eax
call fcn.004cf600
add esp, 0xc
cmp dword [ebp - 0x28], 2
jne 0x4a7ec8
push 0x104
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x4a7ee8
xor ecx, ecx
lea ebx, [ebx]
movzx eax, word [ebp + ecx - 0x350]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x252], ax
test ax, ax
jne 0x4a7ed0
push edi
lea edi, [ebp - 0x250]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4a7ef2
mov eax, dword [0x50f8e4]
push dword [ebp - 4]
mov dword [edi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
movzx eax, word [ecx + 0x52ed74]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x4e], ax
test ax, ax
jne 0x4a7f10
lea edi, [ebp - 0x250]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a7f30
test byte [0x652fc0], 1
mov ecx, 6
push esi
mov esi, str.tp4table.dat
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x4a7f6f
lea eax, [ebp - 0x250]
push eax
push str.Loading_scroll_info_file__s_n
push 1
push str.CIBMScrolling::LoadScrollTable
call fcn.004cb410
add esp, 0x10
lea eax, [ebp - 0x250]
push 0x52edb8
push eax
call fcn.004d545a
mov edi, eax
add esp, 8
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x4a848c
push edi
lea eax, [ebp - 0x750]
push 0x400
push eax
call fcn.004d525e
add esp, 0xc
test eax, eax
je 0x4a82b8
lea ecx, [ecx]
mov dx, word [ebp - 0x750]
cmp dx, 0x3b
je 0x4a829b
cmp dx, 0x23
je 0x4a829b
cmp dx, 0x5b
je 0x4a82b8
xor ecx, ecx
lea eax, [ebp - 0x750]
mov esi, eax
test dx, dx
je 0x4a829b
movzx edx, word [eax]
cmp edx, 0x2c
je 0x4a7ffa
cmp edx, 0xa
je 0x4a7ffa
add eax, 2
jmp 0x4a800e
mov dword [ebp + ecx*4 - 0x50], esi
xor edx, edx
inc ecx
mov word [eax], dx
cmp ecx, 9
je 0x4a801d
add eax, 2
mov esi, eax
cmp word [eax], 0
jne 0x4a7fe8
cmp ecx, 9
jl 0x4a829b
push dword [ebp - 0x30]
call fcn.004d2e41
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 8], 0
je 0x4a8035
test al, 8
jmp 0x4a8037
test al, 4
je 0x4a829b
mov esi, dword [ebp - 0x38]
push 0x52edbc
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a8059
xor esi, esi
jmp 0x4a8165
push str.StandardP
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a8071
lea esi, [eax + 0xb]
jmp 0x4a8165
push str.WheelVkey
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a808b
lea esi, [eax + 1]
jmp 0x4a8165
push str.WheelStd
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a80a5
lea esi, [eax + 2]
jmp 0x4a8165
push str.TwoParents
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a80bf
lea esi, [eax + 3]
jmp 0x4a8165
push str.TwoParentsP
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a80d9
lea esi, [eax + 0xa]
jmp 0x4a8165
push str.VkKeys
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a80f0
lea esi, [eax + 5]
jmp 0x4a8165
push str.Fine
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a8107
lea esi, [eax + 4]
jmp 0x4a8165
push str.None
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a811e
lea esi, [eax + 6]
jmp 0x4a8165
push str.Wheel
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a8135
lea esi, [eax + 7]
jmp 0x4a8165
push str.WheelP
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a814c
lea esi, [eax + 8]
jmp 0x4a8165
push 0x52ee74
push esi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a829b
lea esi, [eax + 0xd]
push dword [ebp - 0x34]
call fcn.004d2e41
add esp, 4
mov dword [ebp - 0x24], eax
cmp eax, 1
ja 0x4a829b
inc dword [ebx + eax*4 + 0x18]
push 0x40c
call fcn.004d5fda
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a848c
mov ecx, dword [ebp - 0x48]
lea edx, [ebx + 0x304]
mov edi, edx
sub edi, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x4a81a4
mov ecx, dword [ebp - 0x44]
mov edi, ebx
sub edi, ecx
jmp 0x4a81c0
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edi + 2], ax
test ax, ax
jne 0x4a81c0
mov ecx, dword [ebp - 0x40]
mov edi, ebx
sub edi, ecx
jmp 0x4a81e0
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edi + 0x102], ax
test ax, ax
jne 0x4a81e0
mov ecx, dword [ebp - 0x3c]
mov edi, ebx
sub edi, ecx
lea ebx, [ebx]
movzx eax, word [ecx]
mov word [ecx + edi + 0x204], ax
add ecx, 2
test ax, ax
jne 0x4a8200
mov eax, dword [ebp - 0x24]
mov dword [ebx], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x408], eax
mov eax, 0x51a7c0
mov word [ebx + 0x404], si
lea ecx, [ecx]
mov cx, word [edx]
cmp cx, word [eax]
jne 0x4a8256
test cx, cx
je 0x4a8252
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x4a8256
add edx, 4
add eax, 4
test cx, cx
jne 0x4a8230
xor eax, eax
jmp 0x4a825b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a8269
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 1
push 8
call fcn.004d5fda
add esp, 4
test eax, eax
je 0x4a8323
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 8]
mov dword [eax], 0
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4a8292
mov dword [ecx], eax
jmp 0x4a8295
mov dword [ebx + 0xc], eax
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x10], eax
push edi
lea eax, [ebp - 0x750]
push 0x400
push eax
call fcn.004d525e
add esp, 0xc
test eax, eax
jne 0x4a7fb0
push edi
lea eax, [ebp - 0x750]
mov dword [ebx + 0x30], 0
push 0x400
push eax
mov dword [ebx + 0x2c], 0
call fcn.004d525e
add esp, 0xc
test eax, eax
je 0x4a8483
mov dx, word [ebp - 0x750]
cmp dx, 0x3b
je 0x4a8466
cmp dx, 0x23
je 0x4a8466
xor ecx, ecx
lea eax, [ebp - 0x750]
mov esi, eax
test dx, dx
je 0x4a8466
movzx edx, word [eax]
cmp edx, 0x2c
je 0x4a8335
cmp edx, 0xa
je 0x4a8335
add eax, 2
jmp 0x4a8349
push ebx
call fcn.004d17d8
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp + ecx*4 - 0x50], esi
xor edx, edx
inc ecx
mov word [eax], dx
cmp ecx, 5
je 0x4a8358
add eax, 2
mov esi, eax
cmp word [eax], 0
jne 0x4a8311
cmp ecx, 5
jl 0x4a8466
push 0x214
call fcn.004d5fda
mov esi, eax
add esp, 4
test esi, esi
je 0x4a848c
mov edi, dword [ebp - 0x40]
push str.smooth
push edi
call fcn.004d47f9
add esp, 8
test eax, eax
jne 0x4a8389
lea ebx, [eax + 1]
jmp 0x4a839c
push str.standard
push edi
call fcn.004d47f9
add esp, 8
mov ebx, 2
mov ecx, dword [ebp - 0x48]
mov edx, esi
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x4a83a3
mov ecx, dword [ebp - 0x44]
lea edi, [esi + 0x100]
mov edx, edi
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x4a83c0
mov dword [esi + 0x210], ebx
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], eax
cmp word [edi], 0x2a
je 0x4a8417
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push str._d._d._d._d
push edi
call fcn.004d4967
mov eax, dword [ebp - 0x18]
add esp, 0x18
mov dword [esi + 0x200], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x204], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x208], eax
mov eax, dword [ebp - 0x14]
push 8
mov dword [esi + 0x20c], eax
call fcn.004d5fda
add esp, 4
test eax, eax
je 0x4a8495
mov ebx, dword [ebp - 8]
mov dword [eax + 4], esi
mov dword [eax], 0
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x4a845d
mov dword [ecx], eax
jmp 0x4a8460
mov dword [ebx + 0x2c], eax
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x30], eax
push edi
lea eax, [ebp - 0x750]
push 0x400
push eax
call fcn.004d525e
add esp, 0xc
test eax, eax
jne 0x4a82e3
push edi
call fcn.004d187c
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.004d17d8
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4