Function at 0x5017c0
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov ebx, eax
xor esi, esi
cmp dword [ebx + 0x304], esi
push edi
je 0x501826
mov eax, dword [ebx + 0x374]
cmp eax, 0xa
jb 0x501826
cmp eax, 0x11
ja 0x501826
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x14]
mov eax, dword [ebx + 0x374]
shl ecx, 0x10
or ecx, edx
push ecx
mov ecx, dword [ebx + 4]
push eax
push 0xa1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx + 0x28]
mov edx, dword [edx + 0x34]
push 1
lea ecx, [ebx + 0x28]
push eax
mov eax, dword [esp + 0x40]
push eax
call edx
mov ebp, eax
cmp ebp, esi
je 0x5019cc
mov edi, ebp
call fcn.004799d0
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.button
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.imgbtn
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.dlgbtn
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.dlgbtnEx2
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.tabctrl
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.link
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.skinbtn
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.imgbtnsized
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.check
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.radio
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.slider
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 4]
push str.listwnd
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call edx
test eax, eax
jne 0x501a0e
test dword [ebx + 0x2ec], 0x40000000
jne 0x501a0e
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebx + 4]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000000
jne 0x501b03
cmp dword [ebx + 0x2d4], 0
je 0x501b03
mov edx, dword [ebx + 4]
push 0
push 0xf012
push 0x112
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx + 0xfc]
mov eax, dword [eax + 0x34]
push 1
lea ecx, [ebx + 0xfc]
push edx
mov edx, dword [esp + 0x40]
push edx
call eax
mov ebp, eax
cmp ebp, esi
jne 0x501a0e
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx + 0x1d0]
mov edx, dword [edx + 0x34]
push 1
lea ecx, [ebx + 0x1d0]
push eax
mov eax, dword [esp + 0x40]
push eax
call edx
mov ebp, eax
mov edi, ebp
call fcn.004799d0
mov esi, eax
test esi, esi
je 0x501b03
mov eax, dword [esi + 0x34]
and eax, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
test eax, eax
jne 0x501b03
mov edi, dword [esi + 8]
call fcn.004799d0
test eax, eax
je 0x501a5d
mov edx, dword [eax + 0x34]
and edx, 0x10
cmp dl, 0x10
je 0x501b03
mov edi, dword [eax + 8]
call fcn.004799d0
test eax, eax
jne 0x501a42
cmp dword [ebx + 0x2d0], 0
jne 0x501b03
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
cmp ebp, dword [ebx + 0x2b8]
mov dword [ebx + 0x2d0], 1
je 0x501a8c
mov dword [ebx + 0x2b8], ebp
mov dword [ebx + 0x2bc], ebp
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push 1
push 2
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x38]
mov ecx, esi
call eax
test eax, eax
je 0x501ab4
push 1
push ebx
call fcn.004fb9a0
movzx ecx, word [esp + 0x3c]
movzx edx, word [esp + 0x38]
mov eax, dword [esp + 0x34]
shl ecx, 0x10
or ecx, edx
push ecx
push eax
push 0x201
mov ecx, esi
call fcn.00479a50
mov ebx, dword [ebx + 4]
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
push 0x4e
push ebx
mov dword [esp + 0x34], 7
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc