Function at 0x10009090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x1011b92c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x54]
lea ecx, [esi + 0x1f4]
push eax
call fcn.1000bbc0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x88]
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x58], 0x28
cmp eax, edi
je 0x100090d0
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp + 8]
mov edx, 1
mov dword [ebp - 0x5c], edx
cmp ebx, 0x3e9
je 0x100090ef
cmp ebx, 0x3ea
jne 0x1000919a
lea ecx, [ebp - 0x60]
push ecx
push 0xf003f
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009192
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x68]
push edx
push edi
lea eax, [ebp - 0x64]
push eax
push edi
push str.WheelScrollLines
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000917e
cmp dword [ebp - 0x64], 1
jne 0x1000917e
mov edx, dword [ebp - 0x68]
push edx
call sub.mfc100u.dll_new__
mov edx, dword [ebp - 0x60]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x68]
push eax
push edi
lea ecx, [ebp - 0x64]
push ecx
push 0
push str.WheelScrollLines
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10009173
cmp dword [ebp - 0x64], 1
jne 0x10009173
push edi
call dword [sym.imp.MSVCR100.dll__wtol]
add esp, 4
mov dword [ebp - 0x5c], eax
push edi
call sub.mfc100u.dll_delete_1
add esp, 4
xor edi, edi
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x5c]
imul ecx, dword [ebp - 0x58]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 8]
mov edx, 1
cmp ebx, 0x3e9
ja 0x1000938b
je case.0x100091b5.0
cmp ebx, 7
ja case.default.0x100091b5
jmp dword [ebx*4 + 0x10009478]
mov eax, dword [ebp - 0x50]
cmp eax, dword [esi + 0x20c]
jge 0x1000939e
mov edx, dword [esi + 0x20]
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
add dword [ebp - 0x50], eax
jmp case.default.0x100091b5
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [esi + 0x204]
jle 0x1000933c
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 8]
add dword [ebp - 0x50], edx
jmp case.default.0x100091b5
push edx
push edi
mov ecx, esi
call fcn.10008c30
jmp case.default.0x100091b5
dec ecx
push edx
push ecx
mov ecx, esi
call fcn.10008c30
jmp case.default.0x100091b5
cmp dword [esi + 0x88], edx
je 0x1000926c
movzx eax, word [esi + 0xa8]
cmp ax, 2
je 0x1000926c
cmp ax, 3
je 0x1000926c
cmp ax, 4
jne case.default.0x100091b5
push 0x17
lea eax, [ebp - 0x30]
push eax
push 2
lea ecx, [esi + 0x160]
call sub.mfc100u.dll_CWnd::GetScrollInfo
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x50], ecx
jmp case.default.0x100091b5
movzx eax, word [esi + 0xa8]
cmp ax, dx
je 0x100092a6
cmp ax, 5
je 0x100092a6
cmp ax, 6
jne case.default.0x100091b5
push 0x17
lea edx, [ebp - 0x4c]
push edx
push 2
lea ecx, [esi + 0xcc]
call sub.mfc100u.dll_CWnd::GetScrollInfo
push 0x17
lea eax, [ebp - 0x30]
push eax
push 2
lea ecx, [esi + 0x160]
call sub.mfc100u.dll_CWnd::GetScrollInfo
mov edx, dword [esi + 0x20]
lea ecx, [ebp - 0x14]
push ecx
push edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
sub eax, 0x10
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
sar ecx, 1
add ecx, dword [ebp - 0x34]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x18]
push eax
push ecx
mov ecx, esi
call fcn.100057a0
cmp dword [esi + 0x8c], eax
je 0x10009326
push edi
push eax
mov ecx, esi
call fcn.10008c30
jmp case.default.0x100091b5
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
jmp case.default.0x100091b5
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [esi + 0x204]
jg 0x1000937e
mov edi, dword [esi + 0x8c]
dec edi
cmp word [esi + 0xa8], 1
je 0x10009352
test edi, edi
jle 0x10009354
dec edi
test edi, edi
js case.default.0x100091b5
push 0
push edi
mov ecx, esi
call fcn.10008c30
push 1
push edi
mov ecx, esi
call fcn.10005200
mov edx, dword [eax + 0x1c]
push 1
add edx, 4
push edx
push 0
mov ecx, esi
call fcn.10008d90
jmp case.default.0x100091b5
cmp dword [ebp - 0x5c], edi
jl case.default.0x100091b5
mov eax, dword [ebp - 0x58]
sub dword [ebp - 0x50], eax
jmp case.default.0x100091b5
cmp ebx, 0x3ea
jne case.default.0x100091b5
mov eax, dword [ebp - 0x50]
cmp eax, dword [esi + 0x20c]
jl 0x100093c7
mov eax, dword [esi + 0x8c]
add eax, edx
cmp word [esi + 0xa8], dx
je 0x100093b8
lea edi, [ecx - 1]
cmp eax, edi
jge 0x100093b8
add eax, edx
cmp eax, ecx
jge case.default.0x100091b5
push edx
push eax
mov ecx, esi
call fcn.10008c30
jmp case.default.0x100091b5
cmp dword [ebp - 0x5c], edi
jl case.default.0x100091b5
mov ecx, dword [ebp - 0x58]
add dword [ebp - 0x50], ecx
lea edx, [ebp - 0xc]
push edx
lea ecx, [esi + 0x1f4]
call fcn.1000bbc0
mov edi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x50]
cmp edi, dword [ebp - 0xc]
jne 0x100093f1
cmp ebx, dword [ebp - 8]
je 0x1000945d
lea eax, [ebp - 0xc]
push eax
lea ecx, [esi + 0x1f4]
call fcn.1000bbc0
cmp edi, dword [ebp - 0xc]
jne 0x1000940a
cmp ebx, dword [ebp - 8]
je 0x10009419
push 1
push ebx
push edi
lea ecx, [esi + 0x1f4]
call fcn.1000bbe0
mov ecx, esi
call fcn.10007e00
mov ecx, esi
call fcn.100054a0
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.mfc100u.dll_CWnd::FromHandle
mov edx, dword [eax + 0x20]
push 0
push 0
push 0x5210
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b3ac1
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.10007e00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b3ac1
mov esp, ebp
pop ebp
ret 0xc